LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 04-17-2007, 12:41 PM   #1
fsucsguy
LQ Newbie
 
Registered: Apr 2007
Posts: 9

Rep: Reputation: 0
Angry problem compiling glibmm-2.13.3


I'm trying to compile glibmm-2.13.3 from sources, and the configure script is able to run successfully...

for make, it is giving me an error...

make all-recursive
make[1]: Entering directory `/home/navodaya/sys_software/glibmm-2.13.3'
Making all in tools
make[2]: Entering directory `/home/navodaya/sys_software/glibmm-2.13.3/tools'
Making all in m4
make[3]: Entering directory `/home/navodaya/sys_software/glibmm-2.13.3/tools/m4'
make[3]: Nothing to be done for `all'.
make[3]: Leaving directory `/home/navodaya/sys_software/glibmm-2.13.3/tools/m4'
Making all in pm
make[3]: Entering directory `/home/navodaya/sys_software/glibmm-2.13.3/tools/pm'
make[3]: Nothing to be done for `all'.
make[3]: Leaving directory `/home/navodaya/sys_software/glibmm-2.13.3/tools/pm'
Making all in extra_defs_gen
make[3]: Entering directory `/home/navodaya/sys_software/glibmm-2.13.3/tools/extra_defs_gen'
if /bin/sh ../../libtool --tag=CXX --mode=compile g++ -DHAVE_CONFIG_H -I. -I. -I../.. -I../../glib -I/usr/include/sigc++-2.0 -I/usr/lib/sigc++-2.0/include -I../..//usr/lib64/pkgconfig -I../..//usr/lib64/pkgconfig/. -I../..//usr/lib64/pkgconfig/./glib -I../..//usr/lib64/pkgconfig/./gmodule -g -O2 -Wall -Wno-long-long -MT generate_extra_defs.lo -MD -MP -MF ".deps/generate_extra_defs.Tpo" -c -o generate_extra_defs.lo generate_extra_defs.cc; \
then mv -f ".deps/generate_extra_defs.Tpo" ".deps/generate_extra_defs.Plo"; else rm -f ".deps/generate_extra_defs.Tpo"; exit 1; fi
g++ -DHAVE_CONFIG_H -I. -I. -I../.. -I../../glib -I/usr/include/sigc++-2.0 -I/usr/lib/sigc++-2.0/include -I../..//usr/lib64/pkgconfig -I../..//usr/lib64/pkgconfig/. -I../..//usr/lib64/pkgconfig/./glib -I../..//usr/lib64/pkgconfig/./gmodule -g -O2 -Wall -Wno-long-long -MT generate_extra_defs.lo -MD -MP -MF .deps/generate_extra_defs.Tpo -c generate_extra_defs.cc -fPIC -DPIC -o .libs/generate_extra_defs.o
In file included from generate_extra_defs.cc:23:
generate_extra_defs.h:23:25: glib-object.h: No such file or directory
In file included from generate_extra_defs.cc:23:
generate_extra_defs.h:27: error: `GType' was not declared in this scope
generate_extra_defs.h:29: error: `GType' was not declared in this scope
generate_extra_defs.h:30: error: `GType' was not declared in this scope
generate_extra_defs.h:31: error: `GType' was not declared in this scope
generate_extra_defs.h:32: error: `GType' was not declared in this scope
generate_extra_defs.h:33: error: `GType' was not declared in this scope
generate_extra_defs.cc:25: error: redefinition of `std::string get_properties'
generate_extra_defs.h:29: error: `std::string get_properties' previously declared here
generate_extra_defs.cc:25: error: `GType' was not declared in this scope
generate_extra_defs.cc:26: error: expected `,' or `;' before '{' token
generate_extra_defs.cc:77: error: redefinition of `std::string get_type_name'
generate_extra_defs.h:30: error: `std::string get_type_name' previously declared here
generate_extra_defs.cc:77: error: `GType' was not declared in this scope
generate_extra_defs.cc:78: error: expected `,' or `;' before '{' token
generate_extra_defs.cc:89: error: redefinition of `std::string get_type_name_parameter'
generate_extra_defs.h:31: error: `std::string get_type_name_parameter' previously declared here
generate_extra_defs.cc:89: error: `GType' was not declared in this scope
generate_extra_defs.cc:90: error: expected `,' or `;' before '{' token
generate_extra_defs.cc:100: error: redefinition of `std::string get_type_name_signal'
generate_extra_defs.h:32: error: `std::string get_type_name_signal' previously declared here
generate_extra_defs.cc:100: error: `GType' was not declared in this scope
generate_extra_defs.cc:101: error: expected `,' or `;' before '{' token
generate_extra_defs.cc:106: error: redefinition of `std::string get_signals'
generate_extra_defs.h:33: error: `std::string get_signals' previously declared here
generate_extra_defs.cc:106: error: `GType' was not declared in this scope
generate_extra_defs.cc:107: error: expected `,' or `;' before '{' token
generate_extra_defs.cc:203: error: redefinition of `std::string get_defs'
generate_extra_defs.h:27: error: `std::string get_defs' previously declared here
generate_extra_defs.cc:203: error: `GType' was not declared in this scope
generate_extra_defs.cc:204: error: expected `,' or `;' before '{' token
make[3]: *** [generate_extra_defs.lo] Error 1
make[3]: Leaving directory `/home/navodaya/sys_software/glibmm-2.13.3/tools/extra_defs_gen'
make[2]: *** [all-recursive] Error 1
make[2]: Leaving directory `/home/navodaya/sys_software/glibmm-2.13.3/tools'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/home/navodaya/sys_software/glibmm-2.13.3'
make: *** [all] Error 2

-------------------------
looks to me like the include path is not correct... the pkg-config utility gives me a weird response... as follows...

pkg-config --cflags glib-2.0
-I$(top_builddir)//usr/lib64/pkgconfig -I$(top_builddir)//usr/lib64/pkgconfig/. -I$(top_builddir)//usr/lib64/pkgconfig/./glib
-----------------------------

I checked in the glib-2.0.pc file, the contents are valid and points to correct locations... but in glib-2.0-uninstalled.pc (I dont why u need this file?) the contents are ...
------------
glib_genmarshal=${pc_top_builddir}/${pcfiledir}/gobject/glib-genmarshal
gobject_query=${pc_top_builddir}/${pcfiledir}/gobject/gobject-query
glib_mkenums=${pc_top_builddir}/${pcfiledir}/./gobject/glib-mkenums

Name: GLib Uninstalled
Description: C Utility Library, Not Installed
Version: 2.12.9
Libs: ${pc_top_builddir}/${pcfiledir}/glib/libglib-2.0.la
Cflags: -I${pc_top_builddir}/${pcfiledir} -I${pc_top_builddir}/${pcfiledir}/. -I${pc_top_builddir}/${pcfiledir}/./glib

--------------------
any help is greatly appreciated... thanks everyone for looking ...
 
Old 04-17-2007, 05:15 PM   #2
fsucsguy
LQ Newbie
 
Registered: Apr 2007
Posts: 9

Original Poster
Rep: Reputation: 0
Red face

some one please tell me why I was getting some wrong include patch....

I have that glib-object.h file... in the correct directory pointed by glib-2.0.pc file...
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
problem installing glibmm-2.13.3 library.... fsucsguy Linux - Newbie 3 04-16-2007 03:14 PM
glibmm - installation problem. fsucsguy Linux - Software 1 04-16-2007 02:08 PM
Got a problem compiling glibmm-2.4.0 Adan Linux - Software 2 09-02-2004 07:13 AM
problem installing glibmm-2.4.0 PierrePau Linux - Software 0 06-02-2004 06:41 PM
glibmm problem zmieff Linux - Newbie 1 05-10-2004 03:01 PM


All times are GMT -5. The time now is 10:09 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration