flat assembler
Message board for the users of flat assembler.

Index > Linux > GTK+ compilation

Author
Thread Post new topic Reply to topic
flash



Joined: 11 Mar 2006
Posts: 55
Location: Cuba
flash 05 Oct 2007, 16:57
Hi people:
I'am trying to modify GTK examples on de Samples section (GTK samples) in order to make the code compilant for GTK+ but the line
Code:
gcc -Wall -s -O3  checkbutton.o -o checkbutton `gtk-config --cflags` `gtk-config --libs`
    

must be changed by something like:
Code:
gcc -Wall -s -O3  checkbutton.o -o checkbutton `gtk-package --cflags --libs somepakage.pc`
    

But I can not find the way that it could work because gnomeui, gtklib-2.0 and others "somepackages" do not work
Can some one explain me what happens???
Thank's
Luis Enrique

_________________
i don't hate goto
Post 05 Oct 2007, 16:57
View user's profile Send private message Reply with quote
nocona



Joined: 04 Aug 2007
Posts: 35
nocona 06 Oct 2007, 04:08
what do you means by "do not work?".. how about trying pkg-config, i.e

Code:
gcc -Wall -s -O3  checkbutton.o -o checkbutton `pkg-config --libs --cflags gtk+-2.0`
    


and could you provide any error message while building?
Post 06 Oct 2007, 04:08
View user's profile Send private message Reply with quote
flash



Joined: 11 Mar 2006
Posts: 55
Location: Cuba
flash 06 Oct 2007, 13:09
Yes... when I use for example
Code:
gcc -Wall -s -O3  checkbutton.o -o checkbutton `pkg-config --libs --cflags gnomeui`
    

The error is that gnomeui.pc can not be found but in other cases the error is that symbols links like gtk-init, gtk-connect, and so can not be found. I am not understanding because this are functions of gtk+ to.

_________________
i don't hate goto
Post 06 Oct 2007, 13:09
View user's profile Send private message Reply with quote
Display posts from previous:
Post new topic Reply to topic

Jump to:  


< Last Thread | Next Thread >
Forum Rules:
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You cannot attach files in this forum
You can download files in this forum


Copyright © 1999-2024, Tomasz Grysztar. Also on GitHub, YouTube.

Website powered by rwasa.