FBC Compile errors with GTK

Windows specific questions.
guyc
Posts: 8
Joined: Aug 14, 2013 21:29

FBC Compile errors with GTK

Postby guyc » Sep 18, 2013 17:35

I am trying to use GTk under windows 7 with FBC and I get the following compile errors trying to test a simple program using GTK libraries. I get the following;

fbc -w all "C:\Users\guyc\Desktop\test.bas" (in directory: c:\Program Files (x86)\FreeBASIC)
c:\PROGRA~2\FREEBA~1\bin\win32\ld.exe: cannot find -lgtk-win32-2.0
c:\PROGRA~2\FREEBA~1\bin\win32\ld.exe: cannot find -lgdk-win32-2.0
c:\PROGRA~2\FREEBA~1\bin\win32\ld.exe: cannot find -lgio-2.0
c:\PROGRA~2\FREEBA~1\bin\win32\ld.exe: cannot find -lgobject-2.0
c:\PROGRA~2\FREEBA~1\bin\win32\ld.exe: cannot find -lgthread-2.0
c:\PROGRA~2\FREEBA~1\bin\win32\ld.exe: cannot find -lglib-2.0
c:\PROGRA~2\FREEBA~1\bin\win32\ld.exe: cannot find -lgmodule-2.0
c:\PROGRA~2\FREEBA~1\bin\win32\ld.exe: cannot find -lcairo
c:\PROGRA~2\FREEBA~1\bin\win32\ld.exe: cannot find -lpango-1.0
c:\PROGRA~2\FREEBA~1\bin\win32\ld.exe: cannot find -lgdk_pixbuf-2.0
c:\PROGRA~2\FREEBA~1\bin\win32\ld.exe: cannot find -lpangocairo-1.0
c:\PROGRA~2\FREEBA~1\bin\win32\ld.exe: cannot find -latk-1.0
Compilation failed.

Here is my code:

#include once "gtk/gtk.bi"
#define NULL 0

Dim As GtkWidget Ptr win

gtk_init(NULL, NULL)

win = gtk_window_new(GTK_WINDOW_TOPLEVEL)
gtk_window_set_title(GTK_WINDOW(win), "Center")
gtk_widget_set_size_request(win, 250, 150)
gtk_window_set_position(GTK_WINDOW(win), GTK_WIN_POS_CENTER)

g_signal_connect(G_OBJECT(win), "destroy", _
G_CALLBACK (@gtk_main_quit), NULL)

gtk_widget_show(win)
gtk_main()

END 0

=========================
I downloaded GTK and unzipped in c:\gtk. Under c:\gtk\bin\ I see the dll's. Example: libgdk-win32-2.0-0.dll

Both the path and exact filename do not match the compile error output.
Are there other steps I need to do other than just unzip the GTK package? Is there an FBC or Windows install program I need to run on the unzipped GTK package?
marcov
Posts: 2762
Joined: Jun 16, 2005 9:45
Location: Eindhoven, NL
Contact:

Re: FBC Compile errors with GTK

Postby marcov » Sep 18, 2013 20:43

guyc wrote: Are there other steps I need to do other than just unzip the GTK package? Is there an FBC or Windows install program I need to run on the unzipped GTK package?


My guess you also need the corresponding development package that contains .a import libs for those dlls.
guyc
Posts: 8
Joined: Aug 14, 2013 21:29

Re: FBC Compile errors with GTK

Postby guyc » Sep 18, 2013 22:54

I see the.a files in gtk\lib but I am not sure what I am supposed to do with those files.

Return to “Windows”

Who is online

Users browsing this forum: No registered users and 13 guests