LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


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

Rep: Reputation: 0
Unhappy 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...
 
Old 04-18-2007, 06:43 PM   #2
kaz2100
Senior Member
 
Registered: Apr 2005
Location: Penguin land, with apple, no gates
Distribution: SlackWare > Debian testing woody(32) sarge etch lenny squeeze(+64) wheezy .. bullseye bookworm
Posts: 1,833

Rep: Reputation: 108Reputation: 108
Hya

Install libglib2.0-dev

Happy Penguins!
 
Old 04-19-2007, 11:24 AM   #3
fsucsguy
LQ Newbie
 
Registered: Apr 2007
Posts: 9

Original Poster
Rep: Reputation: 0
Cool

I couldnt find any libglib2.0-dev packages for redhat EL... there was no such package on gnome.org

any links to download ??.. source or rpm anything will work...
 
Old 04-20-2007, 08:47 AM   #4
kaz2100
Senior Member
 
Registered: Apr 2005
Location: Penguin land, with apple, no gates
Distribution: SlackWare > Debian testing woody(32) sarge etch lenny squeeze(+64) wheezy .. bullseye bookworm
Posts: 1,833

Rep: Reputation: 108Reputation: 108
Hya,

okey, Now I know that you are using RedHat. Package name may be different.

I do not know how to find in RedHat, so look for the file "glib-object.h".

http://rpm.pbone.net/index.php3/stat/6/idpl/3580167 is one of them, but I am not sure if any conflict with your other packages.

Cheers

Happy Penguins!
 
  


Reply



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 compiling glibmm-2.13.3 fsucsguy Linux - Newbie 1 04-17-2007 04:15 PM
glibmm - installation problem. fsucsguy Linux - Software 1 04-16-2007 01:08 PM
Got a problem compiling glibmm-2.4.0 Adan Linux - Software 2 09-02-2004 06:13 AM
problem installing glibmm-2.4.0 PierrePau Linux - Software 0 06-02-2004 05:41 PM
glibmm problem zmieff Linux - Newbie 1 05-10-2004 02:01 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 07:14 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
Open Source Consulting | Domain Registration