Unable to use Loudmouth library after installation

77 views
Skip to first unread message

Arpan

unread,
Oct 7, 2009, 7:42:25 PM10/7/09
to Loudmouth Dev
I installed the loudmouth library using the 'apt-get' utility.

What do i need to "#include" while writing my own code in order to use
the loudmouth library? Or do i pass it as an option during
compilation?

The example on the website had "#include <loudmouth.h>" on top but I
can't find that file anywhere.

Thanks

Arpan

mm_202

unread,
Oct 7, 2009, 8:18:38 PM10/7/09
to loudmo...@googlegroups.com
Arpan,

I usually build from source, but I would suspect that Debian/Ubuntu
would put the includes under '/usr/include/loudmouth-1.0'.

Try adding these compiler flags: " -I/usr/linclude/loudmouth-1.0
-lloudmouth-1"

Also (at least from src), the headers are under
{PREFIX}/loudmouth-1.0/loudmouth. so my includes look like:
#include <loudmouth/loudmouth.h>

Worst case, run 'locate loudmouth.h' and just use the entire path in
the include.

Hope that helps.

-- mm_202.

Tadeusz Sośnierz

unread,
Oct 8, 2009, 5:13:47 AM10/8/09
to loudmo...@googlegroups.com
> On Wed, Oct 7, 2009 at 7:42 PM, Arpan <arpan...@gmail.com> wrote:
> >
> > I installed the loudmouth library using the 'apt-get' utility.
> >
> > What do i need to "#include" while writing my own code in order to use
> > the loudmouth library? Or do i pass it as an option during
> > compilation?
> >
> > The example on the website had "#include <loudmouth.h>" on top but I
> > can't find that file anywhere.
> >
Read about pkg-config. The whole compilation will go somewhat like this:
cc `pkg-config --libs --cflags loudmouth-1.0` code.c
the `pkg-config` will generate appropriate compiler flags.
Regards,
Ted
Reply all
Reply to author
Forward
0 new messages