Re: [gtkmm] syntax error near unexpected token `PKG_CHECK_MODULES(GTKMM, gtkmm-2



Thank you very much Cedric, using autotools manually made the app compile fine the first time. Now I might learn those auto-stuff [autotools, autoconf, automake, etc] for future reference. Thanks again ^_^

----Original Message Follows----
From: Cedric Gustin <cedric gustin swing be>
Reply-To: cedric gustin swing be
To: Ramon Francisco Lopez Osuna <rlopez_osuna hotmail com>
CC: gtkmm-list gnome org
Subject: Re: [gtkmm] syntax error near unexpected token `PKG_CHECK_MODULES(GTKMM, gtkmm-2
Date: Mon, 27 Dec 2004 08:23:20 +0100
MIME-Version: 1.0
Received: from atlas.pcpm.ucl.ac.be ([130.104.231.55]) by mc7-f39.hotmail.com with Microsoft SMTPSVC(5.0.2195.6824); Sun, 26 Dec 2004 23:23:52 -0800 Received: from [130.104.231.127] (gandalf.pcpm.ucl.ac.be [130.104.231.127])by atlas.pcpm.ucl.ac.be (8.12.10/8.12.10/jmb-scan-2004.11.16) with ESMTP id iBR7CRDO012565;Mon, 27 Dec 2004 08:12:27 +0100 (MET)
X-Message-Info: JGTYoYF78jEE5bOH+XbdSLLz2Nupsc/B
User-Agent: Mozilla Thunderbird 1.0 (Windows/20041206)
X-Accept-Language: en-us, en
References: <BAY1-F346B92580BDFBFB7474AF3E8A70 phx gbl>
X-Enigmail-Version: 0.89.5.0
X-Enigmail-Supports: pgp-inline, pgp-mime
X-Greylist: Sender DNS name whitelisted, not delayed by milter-greylist-1.5.12 (atlas.pcpm.ucl.ac.be [130.104.231.55]); Mon, 27 Dec 2004 08:12:28 +0100 (MET)
X-MailScanner-MAPR: Found to be clean
Return-Path: cedric gustin swing be
X-OriginalArrivalTime: 27 Dec 2004 07:23:52.0701 (UTC) FILETIME=[04656AD0:01C4EBE5]

Ramon Francisco Lopez Osuna wrote:
>Hi Cedric,sorry I forget said that I use msys. Well, as you said, I
>try to set ACLOCAL_FLAGS to "-I
>$GTK_BASEPATH\\share\\aclocal" as you said, well in fact I dont
>knew how until I research about it and came with a comand named env
>[I belieave is for environment] and before make something, I see
>what I have in env and found that the ACLOCAL_FLAGS are fine:
>
>$ env
>NUMBER_OF_PROCESSORS=1
>PROMPT=$P$G
>PWD=/home/Ramza/ejemgtkmm/a
>LOGONSERVER=\\LORDICZER
>MINGW32BGCOLOR=LightYellow
>COLORFGBG=default;default
>FGCOLOR=Navy
>ACLOCAL_FLAGS=-I /C/ARCHIV~1/ARCHIV~1/GTK/2.0/share/aclocal
>COMSPEC=C:\WINDOWS\system32\cmd.exe
>...
>GTK_BASEPATH=/C/ARCHIV~1/ARCHIV~1/GTK/2.0
>...
>and all the stuff that output that command.
>
>then I copy manually all of pkg.m4 to my aclocal.m4 that was
>generated from ./autogen.sh
>and it fail in the same point. Then, I try commenting the lines
>[with a #]
>
>PKG_CHECK_MODULES(GTKMM,gtkmm-2.4 >= 2.4.8,,
>     PKG_CHECK_MODULES(GTKMM,[gtkmm-2.0 >= 2.0.0]))

Don't comment this. It is required for the detection of gtkmm on your system. It also sets some compiler and linker flags.

Instead of using autogen.sh, try to run the autotools manually

libtoolize -f
aclocal -I $GTK_BASEPATH/share/aclocal
automake -a -c
autoconf
./configure

Cedric

_________________________________________________________________
MSN Premium. Protégete, Comunícate y Diviértete http://join.msn.com/?pgmarket=es-mx&page=byoa/prem&xAPID=989&DI=233&SU=http://www.t1msn.com.mx/




[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]