[prev in list] [next in list] [prev in thread] [next in thread]
List: freedesktop-dbus
Subject: Re: D-bus application compilation problem-serious.
From: Dean Jenkins <djenkins () mvista ! com>
Date: 2010-06-24 8:04:27
Message-ID: AANLkTinJK9REHG4MggkB8db2ZgtYOY2vWR0Kfe3V83od () mail ! gmail ! com
[Download RAW message or body]
Hi, Mukesh,
> But,when I compile it with gcc-4.2.0 ,with all compilation options of –libs
> –glib-2.0 –dbus-1.0 etc. I am always getting some error
>
> Related to any library functions. Like undefined refrence to
> dbus_bus_acquire_service() or dbus_g_proxy_for_new_service.
>
>
>
> Can someone please guide me about this problem.
>
I use the following in my Makefile for GLib D-bus binding (sorry I
don't yet use Qt D-bus binding)
PKG_LIBS := $(shell pkg-config --libs --cflags glib-2.0 dbus-1
dbus-glib-1 gthread-2.0)
By using pkg-config it will automatically set the required build flags
without you worrying about it.
Then just give $(PKG_LIBS) to the compiler and linker.
I hope that helps ?
Regards,
Dean
_______________________________________________
dbus mailing list
dbus@lists.freedesktop.org
http://lists.freedesktop.org/mailman/listinfo/dbus
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic