Re: [gtkmm] syntax error near unexpected token `PKG_CHECK_MODULES(GTKMM, gtkmm-2
- From: "Ramon Francisco Lopez Osuna" <rlopez_osuna hotmail com>
- To: cedric gustin swing be
- Cc: gtkmm-list gnome org
- Subject: Re: [gtkmm] syntax error near unexpected token `PKG_CHECK_MODULES(GTKMM, gtkmm-2
- Date: Sat, 25 Dec 2004 17:24:14 -0600
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]))
and it output the following:
configure: creating ./config.status
config.status: creating Makefile
config.status: creating src/Makefile
config.status: creating config.h
config.status: executing depfiles commands
then I try make and output this:
$ make
cd . && /bin/sh /home/Ramza/ejemgtkmm/a/missing --run autoheader
WARNING: Using auxiliary files such as `acconfig.h', `config.h.bot'
WARNING: and `config.h.top', to define templates for `config.h.in'
WARNING: is deprecated and discouraged.
WARNING: Using the third argument of `AC_DEFINE' and
WARNING: `AC_DEFINE_UNQUOTED' allows to define a template without
WARNING: `acconfig.h':
WARNING: AC_DEFINE([NEED_MAIN], 1,
WARNING: [Define if a function `main' is needed.])
WARNING: More sophisticated templates can also be produced, see the
WARNING: documentation.
touch ./config.h.in
cd . && /bin/sh ./config.status config.h
config.status: creating config.h
config.status: config.h is unchanged
make all-recursive
make[1]: Entering directory `/home/Ramza/ejemgtkmm/a'
Making all in src
make[2]: Entering directory `/home/Ramza/ejemgtkmm/a/src'
if g++ -DHAVE_CONFIG_H -I. -I. -I.. -g -O2 -MT a.o -MD -MP -MF
".deps/a.Tpo" \
-c -o a.o `test -f 'a.cc' || echo './'`a.cc; \
then mv ".deps/a.Tpo" ".deps/a.Po"; \
else rm -f ".deps/a.Tpo"; exit 1; \
fi
a.cc:9:24: gtkmm/main.h: No such file or directory
In file included from window1.hh:13,
from a.cc:11:
window1_glade.hh:21:30: gtkmm/accelgroup.h: No such file or directory
In file included from window1.hh:13,
from a.cc:11:
window1_glade.hh:26: error: `Glib' has not been declared
window1_glade.hh:26: error: ISO C++ forbids declaration of `RefPtr' with no
type
window1_glade.hh:26: error: expected `;' before '<' token
window1_glade.hh:29: error: `Glib' has not been declared
window1_glade.hh:29: error: expected `)' before '<' token
window1_glade.hh:33: error: `Glib' has not been declared
window1_glade.hh:33: error: ISO C++ forbids declaration of `RefPtr' with no
type
window1_glade.hh:33: error: expected `;' before '<' token
window1_glade.hh:36: error: expected `;' before '}' token
window1_glade.hh:39:26: gtkmm/window.h: No such file or directory
window1_glade.hh:40:26: gtkmm/button.h: No such file or directory
window1_glade.hh:42: error: `Gtk' has not been declared
window1_glade.hh:43: error: expected class-name before '{' token
window1_glade.hh:47: error: `Gtk' has not been declared
window1_glade.hh:48: error: `Gtk' has not been declared
a.cc: In function `int main(int, char**)':
a.cc:16: error: `Gtk' has not been declared
a.cc:16: error: `Main' undeclared (first use this function)
a.cc:16: error: (Each undeclared identifier is reported only once for each
function it appears in.)
a.cc:16: error: expected `;' before "m"
a.cc:19: error: `m' undeclared (first use this function)
make[2]: *** [a.o] Error 1
make[2]: Leaving directory `/home/Ramza/ejemgtkmm/a/src'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/home/Ramza/ejemgtkmm/a'
make: *** [all] Error 2
I think that in work at the first if fix that error in the configure part. I
hope you can figure ou how fix that error. Thanks
----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.4)
Date: Fri, 24 Dec 2004 12:39:01 +0100
MIME-Version: 1.0
Received: from atlas.pcpm.ucl.ac.be ([130.104.231.55]) by
mc10-f8.hotmail.com with Microsoft SMTPSVC(6.0.3790.211); Fri, 24 Dec 2004
02:39:44 -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 iBOBSIDO027590;Fri, 24
Dec 2004 12:28:18 +0100 (MET)
X-Message-Info: 6sSXyD95QpVNkWG9qkOmdPqwOz0GN+S9MOgaAefDEjY=
User-Agent: Mozilla Thunderbird 1.0 (Windows/20041206)
X-Accept-Language: en-us, en
References: <BAY1-F3309B7EF2AB9FD3CE234B4E8A60 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]); Fri, 24 Dec
2004 12:28:30 +0100 (MET)
X-MailScanner-MAPR: Found to be clean
Return-Path: cedric gustin swing be
X-OriginalArrivalTime: 24 Dec 2004 10:39:45.0296 (UTC)
FILETIME=[E23FD900:01C4E9A4]
Ramon Francisco Lopez Osuna wrote:
>Hi everybody, excuse me, I have a doubt about an issue I get when
>try to compile a very simple app made with Glade, that consist in a
>window with only one button [without signals, just for testing
>porpouses] and the first time I try to compile the app I get this
>error:
>./configure: line 18100: syntax error near unexpected token
>`PKG_CHECK_MODULES(GTKMM,gtkmm-2.4'
>./configure: line 18100: `PKG_CHECK_MODULES(GTKMM,gtkmm-2.4 >=
>2.4.8,,'
>
>I dont know why I got this error [well, in fact, I believe its a
>pkg-config problem, but everthing seems good]. Please, if somebody
>knows how fix it, I really aprecciate the help. I use WinXP with
>MingW in GCC 3.4.2, the lastest GTK and GTKMM developer packages
>gtk-win32-devel-2.4-rc24.exe and gtkmm-devel-2.4.8-2.exe. and, by
>the way, I try compiling an app [the same in fact] but with GTK+ and
>it compile perfectly even with the gettext option checked. Well,
>thanks for take your time for read this and forgive me for the
>spelling, Im no so good at english.
I suppose you use msys...
Set ACLOCAL_FLAGS to "-I $GTK_BASEPATH\\share\\aclocal"
configure needs to know about some macros that are defined in the pkg.m4
file.
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]