LinuxQuestions.org
Help answer threads with 0 replies.
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 06-16-2004, 10:22 PM   #1
Kanaflloric
Member
 
Registered: Jun 2004
Location: Canada
Distribution: Slackware 10.0
Posts: 80

Rep: Reputation: 15
Compilation problem with gtk+-2.4.0


I am trying to install gtk+-2.4.0
I installed all the things it requires (freetype 2.0.9, pango.1.4.0, glib-2.4.0, etc...) and everything is OK now. (It took me a lot of time)

But gtk complains during the 'make' :

gdk-pixdata.c:405:69: too many arguments for macro "ngettext"
make[4]: *** [gdk-pixdata.lo] Erreur 1
make[4]: Quitte le repertoire '/home/eric/gtk+-2.4.0'
etc...

I guess one of the libraries installed on my computer is too old, but wich one ? I have no idea !

Thanks a lot for any ideas
 
Old 06-16-2004, 11:25 PM   #2
foo_bar_foo
Senior Member
 
Registered: Jun 2004
Posts: 2,553

Rep: Reputation: 53
hi,
ngettext is actually a programm in itself
try:
ngettext --version
it's part of Gettext package
it translates strings to different languages i think
could try upgrading that ???
easiest thing
just open up that file
scroll down to line 405
and mess with it until it compiles
what do you care what the error message says anyway??????
original:
Code:
 g_set_error (error, GDK_PIXBUF_ERROR,
		       GDK_PIXBUF_ERROR_INSUFFICIENT_MEMORY,
		       ngettext("failed to allocate image buffer of %u byte",
				"failed to allocate image buffer of %u bytes",
				pixdata->rowstride * pixdata->height),
		       pixdata->rowstride * pixdata->height);
try:
Code:
g_set_error (error, GDK_PIXBUF_ERROR,
		       GDK_PIXBUF_ERROR_INSUFFICIENT_MEMORY,
		       _("failed to allocate image buffer of %u bytes"),
		       pixdata->rowstride * pixdata->height);
or better yet:
Code:
g_set_error (error, GDK_PIXBUF_ERROR,
		       GDK_PIXBUF_ERROR_INSUFFICIENT_MEMORY,
		       _("failed to allocate image buffer"));
 
Old 06-17-2004, 10:43 PM   #3
Kanaflloric
Member
 
Registered: Jun 2004
Location: Canada
Distribution: Slackware 10.0
Posts: 80

Original Poster
Rep: Reputation: 15
I upgraded Gettext and it worked
Thanks !
 
  


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
C++ Compilation problem with G++ nelnel Programming 6 07-06-2005 09:58 PM
gtk+ 2.4.14 problem, how do I execute GTK? nautal Linux - Software 2 06-17-2005 06:09 PM
gtk program compilation error RohanShrivastav Programming 5 02-16-2005 07:12 AM
gtk+ compilation problem maciekish Linux - Software 3 01-11-2005 07:03 AM
GTK-1.2 C compilation error GabeF Programming 2 05-12-2003 08:24 AM

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

All times are GMT -5. The time now is 06:18 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