Re: Threads & Glade
- From: Iago Rubio <iago iagorubio com>
- To: gtk-app-devel-list gnome org
- Subject: Re: Threads & Glade
- Date: Wed, 05 Oct 2005 08:52:30 +0200
On Wed, 2005-10-05 at 08:15 +0200, Iago Rubio wrote:
On Mon, 2005-10-03 at 01:37 -0700, lucapetra (sent by Nabble.com) wrote:
Thanks. Another question:
How i have to modify the makefile ? I have to compile using 'pkg-config --cflags --libs gtk+-2.0
gthread-2.0' but i dont' know where to modify the makefile...
I tried to modify CFLAGS, LIBS, PKG-CONFIG but don't works.Thisi is the error: 'undefined reference to
g_thread_init'
Modify your configure.in and Makefie.am files.
Sorry for the short response.
As you're using a Glade project, open your configure.in file and add
gthread-2.0 to the variable pkg_modules.
You can add this code snippet to your configure.in:
echo -n "checking for gthread-2.0 ... "
if pkg-config --exists gthread-2.0 ; then
echo "yes"
pkg_modules="$pkg_modules gthread-2.0"
else
echo "no"
AC_MSG_ERROR(gthread-2.0 not found)
fi
You should add it between the lines:
pkg_modules="...."
and
PKG_CHECK_MODULES(PACKAGE, [$pkg_modules])
Then use this command to rebuild the Makefiles and configure script:
aclocal && automake --gnu --add-missing && autoconf
Then ./configure && make as usual.
The same question is on the archives, but related to gnome-vfs:
http://mail.gnome.org/archives/gtk-app-devel-list/2005-
July/msg00415.html
Hope this helps.
--
Iago Rubio
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]