You are not logged in.

#1 2010-02-10 20:23:39

matio
Member
From: UK
Registered: 2009-10-26
Posts: 7

[SOLVED] Compiling a mrss program

I am trying to compile a program that includes (lib)mrss
When I try to compile:

[matio@myhost clutterC]$ gcc rssReader.c -o rssReader `pkg-config clutter-1.0 --cflags --libs`
In file included from rssReader.c:3:
/usr/local/include/mrss.h:23:27: error: libxml/parser.h: No such file or directory


[matio@myhost clutterC]$ gcc rssReader.c -o rssReader `pkg-config clutter-1.0 --cflags --libs` `pkg-config libmrss --cflags --libs`
Package libmrss was not found in the pkg-config search path.
Perhaps you should add the directory containing `libmrss.pc'
to the PKG_CONFIG_PATH environment variable
No package 'libmrss' found
In file included from rssReader.c:3:
/usr/local/include/mrss.h:23:27: error: libxml/parser.h: No such file or directory

How can I add the library?

Last edited by matio (2010-02-19 15:51:41)

Offline

#2 2010-02-11 00:41:27

tavianator
Member
From: Waterloo, ON, Canada
Registered: 2007-08-21
Posts: 859
Website

Re: [SOLVED] Compiling a mrss program

Ensure you have libxml2 installed and then pass "-I/usr/include/libxml2" to gcc.  And the "pkg-config libmrss" in backticks doesn't look like it's doing anything.

Offline

#3 2010-02-11 15:28:39

matio
Member
From: UK
Registered: 2009-10-26
Posts: 7

Re: [SOLVED] Compiling a mrss program

Thanks a lot, that worked

Offline

#4 2010-02-12 22:26:40

PirateJonno
Forum Fellow
From: New Zealand
Registered: 2009-04-13
Posts: 372

Re: [SOLVED] Compiling a mrss program

FYI, everything recognised by pkgconfig will be in /usr/lib/pkgconfig/


"You can watch for your administrator to install the latest kernel with watch uname -r" - From the watch man page

Offline

#5 2010-02-12 23:22:06

tavianator
Member
From: Waterloo, ON, Canada
Registered: 2007-08-21
Posts: 859
Website

Re: [SOLVED] Compiling a mrss program

You're welcome; please prepend [SOLVED] to the thread title by editing the first post.

Offline

Board footer

Powered by FluxBB