Re: LCCWin32 and GTK2.0



Emanuele wrote:

Hi all!
I have tried to compile the HELLO WORLD source of the GTK2.0 from the tutorial; i have tried under Linux and 
under Windows. Under Linux i have tried the line find in the tutorial, but it does not work: simply pkg-
config tells me that GTK+-2.0 does not exists, but it's a fault because in my RedHat8.0 i have ALSO installed 
that package. After many failings i have tried to pass directly the library to the gcc and it work, with the:

-lgtk-x11-2.0

You need to install gtk+-2.0 devel package in order to compile your application.
The devel packages are not installed by default.
If 'pkg-config --cflags --libs gtk+-2.0' says smth like "No package 'gtk+-2.0' found" this means that it cant find "gtk+-2.0.pc" file. I dont know where it have to be located in RedHat-8.0 in RedHat-7.3 location is "/usr/local/lib/pkgconfig". You need to specify
this path to pkg-config via PKG_CONFIG_PATH env. variable like this:
export PKG_CONFIG_PATH="/usr/lib/pkgconfig:/usr/local/lib/pkgconfig"

I really dont understand how you get to compile gtk+-2.0 prog without headers installed.

PS: I dont use gtk+-2.0 under M$ Wind0ws, so cant help with the second part.

Olexiy





[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]