Hi Przemek, I've successfully created xhgtk lib using MinGW, but for some reason, the .dll creation you've suggested throws thousands of errors similar to this: ./libxhgtk.a/TWindow.o:TWindow.c:(.text+0x37): undefined reference to `hb_vmExecute'
Do you have any idea what could be missing? --- xhgtk-mingw-4.1.2.bat @echo off call devenvsetup-mingw-4.1.2.bat call devenvsetup-hb-1.1.bat rem ; From: http://www.gtk.org/download-windows.html set GTK_BASEPATH=C:/devl/gtk+-2.14.7 set PATH=C:\devl\gtk+-2.14.7\bin;C:\devl\pkg-config-0.23\bin;%PATH% set PKG_CONFIG_PATH=%GTK_BASEPATH%/lib/pkgconfig set PKG_CONFIG_PATH=%PKG_CONFIG_PATH%;C:/devl/glib-2.18.4/lib/pkgconfig set PKG_CONFIG_PATH=%PKG_CONFIG_PATH%;C:/devl/pango-1.22.4/lib/pkgconfig set PKG_CONFIG_PATH=%PKG_CONFIG_PATH%;C:/devl/cairo-1.8.6/lib/pkgconfig set PKG_CONFIG_PATH=%PKG_CONFIG_PATH%;C:/devl/atk-1.24.0/lib/pkgconfig set PKG_CONFIG_PATH=%PKG_CONFIG_PATH%;C:/devl/png-1.2.34/lib/pkgconfig rem ; From: http://gladewin32.sourceforge.net/ set PKG_CONFIG_PATH=%PKG_CONFIG_PATH%;C:/devl/gtk-dev-2.12.9/lib/pkgconfig copy "C:\devl\glib-2.18.4\lib\glib-2.0\include\glibconfig.h" "C:\devl\glib-2.18.4\include\glib-2.0\glibconfig.h" copy "C:\devl\gtk+-2.14.7\lib\gtk-2.0\include\gdkconfig.h" "C:\devl\gtk+-2.14.7\include\gtk-2.0\gdkconfig.h" set HB_BIN_INSTALL=%HB_INSTALL_PREFIX%/bin set HB_LIB_INSTALL=%HB_INSTALL_PREFIX%/lib set HB_INC_INSTALL=%HB_INSTALL_PREFIX%/include set HB_COMPILER=mingw32 sh build.sh sh -c '${HB_BIN_INSTALL}/hb-mkslib libxhgtk lib/libxhgtk.a `pkg-config --libs gtk+-2.0 libglade-2.0`' --- Brgds, Viktor On Wed, Feb 11, 2009 at 6:35 PM, Przemyslaw Czerpak <[email protected]>wrote: > On Wed, 11 Feb 2009, Szak�ts Viktor wrote: > > Hi Viktor, > > > I'm happy to report, that GTK+ is in the Harbour. > > Samples building / running just fine, after simply adding a few libs > > to HB_USER_LIBS, -I for the headers and copying in the required RT .dlls. > > Congrats for the xhgtk team, very nice job. > > You do not have to use this libs too if you are using MinGW or other > GCC based compiler. > Try to build xhgtk shared library by: > hb-mkslib libxhgtk libxhgtk.a `pkg-config --libs gtk+-2.0 libglade-2.0` > It will have all references to extenral GTK libraries inside xhgtk.dll > so all what you will have to do is adding -lxhgtk when you link your > application. > If you are using hb* scripts then you can also use -xhgtk switch for > linking (hblnk or hbmk). In such case it will work also for static > xhgtk lib. > > best regards, > Przemek > _______________________________________________ > Harbour mailing list > [email protected] > http://lists.harbour-project.org/mailman/listinfo/harbour >
_______________________________________________ Harbour mailing list [email protected] http://lists.harbour-project.org/mailman/listinfo/harbour
