Re: Windows 64 bit gtkmm binaries



On 9/19/2010 5:07 PM, Armin Burgmeier wrote:
There has been some interest in 64 bit gtkmm binaries for Windows
recently. I have built the gtkmm stack on 32 and 64 bit Windows with the
mingw-w64 toolchain from [1]. The result is at [2]. This is supposed to
be used with the current 64 bit GTK+ all-in-one-bundle from [3] (you
will have to make a slight adaption to cairo.pc for pkg-config to work
correctly, see [4]).

The main build issue was too old libtool versions in the tarball of most
packages. I had to run libtoolize and ./autogen.sh on them for libtool
to produce 64 bit DLLs (it just did static libraries otherwise).

It would be great if people could try this out; if it works well then
I'll also add a 64 bit installer starting with the next gtkmm release
(probably 2.22). I'll also try to add 32 and 64 bit binaries for use
with MSVC 2010.

Armin

 [1] http://sourceforge.net/projects/mingw-w64/files/Toolchains
targetting Win64/ 
 [2] http://arbur.net/gnome/gtkmm/gtkmm-2.20.3-win64.7z
 [3] http://ftp.acc.umu.se/pub/GNOME/binaries/win64/gtk+/2.20/gtk
+-bundle_2.20.1-20100912_win64.zip
 [4] https://bugzilla.gnome.org/show_bug.cgi?id=630010

_______________________________________________
gtkmm-list mailing list
gtkmm-list gnome org
http://mail.gnome.org/mailman/listinfo/gtkmm-list


First and foremost, I would like to apologize for not responding as quickly as I should, it has been a bit hectic here.
However, I would like to submit an issue.
In my Win7-64, I have uncompressed, setup (manually due to the non existence of a Installer, yet) [1] and have edited the PATH to look like this

Variable name:
   MinGW64

Variable value:
   D:\MinGW64\bin;D:\MinGW64\lib

Variable name:
   PKG_CONFIG_PATH

Variable value:
   D:\Gtk+\bin;D:\Gtk+\lib;D:\gtkmm\win64\gtkmm_release\bin;D:\gtkmm\win64\gtkmm_release\lib;D:\gtkmm\win64\gtkmm_release\lib\pkgconfig

Variable name:
   Path
Variable value:
   %MinGW64%;%PKG_CONFIG_PATH%;.....

Now, when I type
pkg-config gtkmm-2.4 --cflags
pkg-config gtkmm-2.4 --libs

pkg-config grabs the right information, see the attached file.

Using Code::Blocks (cb), I have added the information from pkg-config [Building Options->Compiler->Other Options-> (pkg-config gtkmm-2.4 --cflags (compiler options) as well as the information for the (Linker Options) see attached file].

Now, all I have to do is to compile, right? Well when trying to compile a simple demo, see bellow, I get a lot of errors, see the attached file.

#include <gtkmm.h>

int main(int argc, char *argv[])
{
    Gtk::Main kit(argc, argv);

    Gtk::Window window;

    Gtk::Main::run(window);

    return 0;
}

What am I doing wrong? what do I need to change?


TIA
pkg-config gtkmm-2.4 --cflags (compiler)
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
-mms-bitfields -ID:/gtkmm/win64/gtkmm_release/include/gtkmm-2.4 -ID:/gtkmm/win64/gtkmm_release/lib/gtkmm-2.4/include -ID:/gtkmm/win64/gtkmm_release/include/giomm-2.4 -ID:/gtkmm/win64/gtkmm_release/lib/giomm-2.4/include -ID:/gtkmm/win64/gtkmm_release/include/pangomm-1.4 -ID:/gtkmm/win64/gtkmm_release/lib/pangomm-1.4/include -ID:/gtkmm/win64/gtkmm_release/include/atkmm-1.6 -ID:/gtkmm/win64/gtkmm_release/include/gdkmm-2.4 -ID:/gtkmm/win64/gtkmm_release/lib/gdkmm-2.4/include -ID:/gtkmm/win64/gtkmm_release/include/glibmm-2.4 -ID:/gtkmm/win64/gtkmm_release/lib/glibmm-2.4/include -ID:/gtkmm/win64/gtkmm_release/include/sigc++-2.0 -ID:/gtkmm/win64/gtkmm_release/lib/sigc++-2.0/include -ID:/gtkmm/win64/gtkmm_release/include/cairomm-1.0 -ID:/gtkmm/win64/gtkmm_release/lib/cairomm-1.0/include -Id:/Gtk+/include/gtk-2.0 -Id:/Gtk+/include/glib-2.0 -Id:/Gtk+/lib/glib-2.0/include -Id:/Gtk+/include/pango-1.0 -Id:/Gtk+/include/cairo -Id:/Gtk+/include -Id:/Gtk+/include/freetype2 -Id:/Gtk+/include/libpng14 -Id:/Gtk+/lib/gtk-2.0/include -Id:/Gtk+/include/atk-1.0  



pkg-config gtkmm-2.4 --libs (linker)
~~~~~~~~~~~~~~~~~~~~~~~~~~~
~~~~~~~~~
-LD:/gtkmm/win64/gtkmm_release/lib -Ld:/Gtk+/lib -lgtkmm-2.4 -latkmm-1.6 -lgdkmm-2.4 -lgiomm-2.4 -lpangomm-1.4 -lgtk-win32-2.0 -lglibmm-2.4 -lcairomm-1.0 -lsigc-2.0 -lgdk-win32-2.0 -latk-1.0 -lgio-2.0 -lgdk_pixbuf-2.0 -lpangowin32-1.0 -lgdi32 -lpangocairo-1.0 -lpango-1.0 -lcairo -lgobject-2.0 -lgmodule-2.0 -lgthread-2.0 -lglib-2.0 -lintl  
-------------- Build: Debug in Gtkmm_tst ---------------

x86_64-w64-mingw32-g++.exe  -o bin\Debug\Gtkmm_tst.exe obj\Debug\main.o   -LD:/gtkmm/win64/gtkmm_release/lib -Ld:/Gtk+/lib -lgtkmm-2.4 -latkmm-1.6 -lgdkmm-2.4 -lgiomm-2.4 -lpangomm-1.4 -lgtk-win32-2.0 -lglibmm-2.4 -lcairomm-1.0 -lsigc-2.0 -lgdk-win32-2.0 -latk-1.0 -lgio-2.0 -lgdk_pixbuf-2.0 -lpangowin32-1.0 -lgdi32 -lpangocairo-1.0 -lpango-1.0 -lcairo -lgobject-2.0 -lgmodule-2.0 -lgthread-2.0 -lglib-2.0 -lintl  
d:/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/4.5.1/../../../../x86_64-w64-mingw32/bin/ld.exe: skipping incompatible d:/Gtk+/lib/libatk-1.0.dll.a when searching for -latk-1.0

d:/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/4.5.1/../../../../x86_64-w64-mingw32/bin/ld.exe: skipping incompatible d:/Gtk+/lib/atk-1.0.lib when searching for -latk-1.0
d:/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/4.5.1/../../../../x86_64-w64-mingw32/bin/ld.exe: skipping incompatible d:/Gtk+/lib/libatk-1.0.dll.a when searching for -latk-1.0
d:/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/4.5.1/../../../../x86_64-w64-mingw32/bin/ld.exe: skipping incompatible d:/Gtk+/lib/atk-1.0.lib when searching for -latk-1.0
d:/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/4.5.1/../../../../x86_64-w64-mingw32/bin/ld.exe: skipping incompatible d:/Gtk+/lib\atk-1.0.lib when searching for -latk-1.0
d:/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/4.5.1/../../../../x86_64-w64-mingw32/bin/ld.exe: cannot find -latk-1.0
d:/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/4.5.1/../../../../x86_64-w64-mingw32/bin/ld.exe: skipping incompatible d:/Gtk+/lib/libgio-2.0.dll.a when searching for -lgio-2.0
d:/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/4.5.1/../../../../x86_64-w64-mingw32/bin/ld.exe: skipping incompatible d:/Gtk+/lib/gio-2.0.lib when searching for -lgio-2.0
d:/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/4.5.1/../../../../x86_64-w64-mingw32/bin/ld.exe: skipping incompatible d:/Gtk+/lib/libgio-2.0.dll.a when searching for -lgio-2.0
d:/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/4.5.1/../../../../x86_64-w64-mingw32/bin/ld.exe: skipping incompatible d:/Gtk+/lib/gio-2.0.lib when searching for -lgio-2.0
d:/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/4.5.1/../../../../x86_64-w64-mingw32/bin/ld.exe: skipping incompatible d:/Gtk+/lib\gio-2.0.lib when searching for -lgio-2.0
d:/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/4.5.1/../../../../x86_64-w64-mingw32/bin/ld.exe: cannot find -lgio-2.0
d:/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/4.5.1/../../../../x86_64-w64-mingw32/bin/ld.exe: skipping incompatible d:/Gtk+/lib/libgdk_pixbuf-2.0.dll.a when searching for -lgdk_pixbuf-2.0
d:/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/4.5.1/../../../../x86_64-w64-mingw32/bin/ld.exe: skipping incompatible d:/Gtk+/lib/gdk_pixbuf-2.0.lib when searching for -lgdk_pixbuf-2.0
d:/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/4.5.1/../../../../x86_64-w64-mingw32/bin/ld.exe: skipping incompatible d:/Gtk+/lib/libgdk_pixbuf-2.0.dll.a when searching for -lgdk_pixbuf-2.0
d:/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/4.5.1/../../../../x86_64-w64-mingw32/bin/ld.exe: skipping incompatible d:/Gtk+/lib/gdk_pixbuf-2.0.lib when searching for -lgdk_pixbuf-2.0
d:/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/4.5.1/../../../../x86_64-w64-mingw32/bin/ld.exe: skipping incompatible d:/Gtk+/lib\gdk_pixbuf-2.0.lib when searching for -lgdk_pixbuf-2.0
d:/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/4.5.1/../../../../x86_64-w64-mingw32/bin/ld.exe: cannot find -lgdk_pixbuf-2.0
d:/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/4.5.1/../../../../x86_64-w64-mingw32/bin/ld.exe: skipping incompatible d:/Gtk+/lib/libpangowin32-1.0.dll.a when searching for -lpangowin32-1.0
d:/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/4.5.1/../../../../x86_64-w64-mingw32/bin/ld.exe: skipping incompatible d:/Gtk+/lib/pangowin32-1.0.lib when searching for -lpangowin32-1.0
d:/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/4.5.1/../../../../x86_64-w64-mingw32/bin/ld.exe: skipping incompatible d:/Gtk+/lib/libpangowin32-1.0.dll.a when searching for -lpangowin32-1.0
d:/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/4.5.1/../../../../x86_64-w64-mingw32/bin/ld.exe: skipping incompatible d:/Gtk+/lib/pangowin32-1.0.lib when searching for -lpangowin32-1.0
d:/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/4.5.1/../../../../x86_64-w64-mingw32/bin/ld.exe: skipping incompatible d:/Gtk+/lib\pangowin32-1.0.lib when searching for -lpangowin32-1.0
d:/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/4.5.1/../../../../x86_64-w64-mingw32/bin/ld.exe: cannot find -lpangowin32-1.0
d:/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/4.5.1/../../../../x86_64-w64-mingw32/bin/ld.exe: skipping incompatible d:/Gtk+/lib/libpangocairo-1.0.dll.a when searching for -lpangocairo-1.0
d:/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/4.5.1/../../../../x86_64-w64-mingw32/bin/ld.exe: skipping incompatible d:/Gtk+/lib/pangocairo-1.0.lib when searching for -lpangocairo-1.0
d:/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/4.5.1/../../../../x86_64-w64-mingw32/bin/ld.exe: skipping incompatible d:/Gtk+/lib/libpangocairo-1.0.dll.a when searching for -lpangocairo-1.0
d:/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/4.5.1/../../../../x86_64-w64-mingw32/bin/ld.exe: skipping incompatible d:/Gtk+/lib/pangocairo-1.0.lib when searching for -lpangocairo-1.0
d:/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/4.5.1/../../../../x86_64-w64-mingw32/bin/ld.exe: skipping incompatible d:/Gtk+/lib\pangocairo-1.0.lib when searching for -lpangocairo-1.0
d:/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/4.5.1/../../../../x86_64-w64-mingw32/bin/ld.exe: cannot find -lpangocairo-1.0
d:/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/4.5.1/../../../../x86_64-w64-mingw32/bin/ld.exe: skipping incompatible d:/Gtk+/lib/libpango-1.0.dll.a when searching for -lpango-1.0
d:/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/4.5.1/../../../../x86_64-w64-mingw32/bin/ld.exe: skipping incompatible d:/Gtk+/lib/pango-1.0.lib when searching for -lpango-1.0
d:/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/4.5.1/../../../../x86_64-w64-mingw32/bin/ld.exe: skipping incompatible d:/Gtk+/lib/libpango-1.0.dll.a when searching for -lpango-1.0
d:/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/4.5.1/../../../../x86_64-w64-mingw32/bin/ld.exe: skipping incompatible d:/Gtk+/lib/pango-1.0.lib when searching for -lpango-1.0
d:/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/4.5.1/../../../../x86_64-w64-mingw32/bin/ld.exe: skipping incompatible d:/Gtk+/lib\pango-1.0.lib when searching for -lpango-1.0
d:/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/4.5.1/../../../../x86_64-w64-mingw32/bin/ld.exe: cannot find -lpango-1.0
d:/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/4.5.1/../../../../x86_64-w64-mingw32/bin/ld.exe: skipping incompatible d:/Gtk+/lib/libcairo.dll.a when searching for -lcairo
d:/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/4.5.1/../../../../x86_64-w64-mingw32/bin/ld.exe: skipping incompatible d:/Gtk+/lib/cairo.lib when searching for -lcairo
d:/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/4.5.1/../../../../x86_64-w64-mingw32/bin/ld.exe: skipping incompatible d:/Gtk+/lib/libcairo.dll.a when searching for -lcairo
d:/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/4.5.1/../../../../x86_64-w64-mingw32/bin/ld.exe: skipping incompatible d:/Gtk+/lib/cairo.lib when searching for -lcairo
d:/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/4.5.1/../../../../x86_64-w64-mingw32/bin/ld.exe: skipping incompatible d:/Gtk+/lib\cairo.lib when searching for -lcairo
d:/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/4.5.1/../../../../x86_64-w64-mingw32/bin/ld.exe: cannot find -lcairo
d:/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/4.5.1/../../../../x86_64-w64-mingw32/bin/ld.exe: skipping incompatible d:/Gtk+/lib/libgobject-2.0.dll.a when searching for -lgobject-2.0
d:/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/4.5.1/../../../../x86_64-w64-mingw32/bin/ld.exe: skipping incompatible d:/Gtk+/lib/gobject-2.0.lib when searching for -lgobject-2.0
d:/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/4.5.1/../../../../x86_64-w64-mingw32/bin/ld.exe: skipping incompatible d:/Gtk+/lib/libgobject-2.0.dll.a when searching for -lgobject-2.0
d:/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/4.5.1/../../../../x86_64-w64-mingw32/bin/ld.exe: skipping incompatible d:/Gtk+/lib/gobject-2.0.lib when searching for -lgobject-2.0
d:/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/4.5.1/../../../../x86_64-w64-mingw32/bin/ld.exe: skipping incompatible d:/Gtk+/lib\gobject-2.0.lib when searching for -lgobject-2.0
d:/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/4.5.1/../../../../x86_64-w64-mingw32/bin/ld.exe: cannot find -lgobject-2.0
d:/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/4.5.1/../../../../x86_64-w64-mingw32/bin/ld.exe: skipping incompatible d:/Gtk+/lib/libgmodule-2.0.dll.a when searching for -lgmodule-2.0
d:/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/4.5.1/../../../../x86_64-w64-mingw32/bin/ld.exe: skipping incompatible d:/Gtk+/lib/gmodule-2.0.lib when searching for -lgmodule-2.0
d:/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/4.5.1/../../../../x86_64-w64-mingw32/bin/ld.exe: skipping incompatible d:/Gtk+/lib/libgmodule-2.0.dll.a when searching for -lgmodule-2.0
d:/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/4.5.1/../../../../x86_64-w64-mingw32/bin/ld.exe: skipping incompatible d:/Gtk+/lib/gmodule-2.0.lib when searching for -lgmodule-2.0
d:/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/4.5.1/../../../../x86_64-w64-mingw32/bin/ld.exe: skipping incompatible d:/Gtk+/lib\gmodule-2.0.lib when searching for -lgmodule-2.0
d:/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/4.5.1/../../../../x86_64-w64-mingw32/bin/ld.exe: cannot find -lgmodule-2.0
d:/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/4.5.1/../../../../x86_64-w64-mingw32/bin/ld.exe: skipping incompatible d:/Gtk+/lib/libgthread-2.0.dll.a when searching for -lgthread-2.0
d:/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/4.5.1/../../../../x86_64-w64-mingw32/bin/ld.exe: skipping incompatible d:/Gtk+/lib/gthread-2.0.lib when searching for -lgthread-2.0
d:/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/4.5.1/../../../../x86_64-w64-mingw32/bin/ld.exe: skipping incompatible d:/Gtk+/lib/libgthread-2.0.dll.a when searching for -lgthread-2.0
d:/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/4.5.1/../../../../x86_64-w64-mingw32/bin/ld.exe: skipping incompatible d:/Gtk+/lib/gthread-2.0.lib when searching for -lgthread-2.0
d:/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/4.5.1/../../../../x86_64-w64-mingw32/bin/ld.exe: skipping incompatible d:/Gtk+/lib\gthread-2.0.lib when searching for -lgthread-2.0
d:/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/4.5.1/../../../../x86_64-w64-mingw32/bin/ld.exe: cannot find -lgthread-2.0
d:/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/4.5.1/../../../../x86_64-w64-mingw32/bin/ld.exe: skipping incompatible d:/Gtk+/lib/libglib-2.0.dll.a when searching for -lglib-2.0
d:/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/4.5.1/../../../../x86_64-w64-mingw32/bin/ld.exe: skipping incompatible d:/Gtk+/lib/glib-2.0.lib when searching for -lglib-2.0
d:/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/4.5.1/../../../../x86_64-w64-mingw32/bin/ld.exe: skipping incompatible d:/Gtk+/lib/libglib-2.0.dll.a when searching for -lglib-2.0
d:/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/4.5.1/../../../../x86_64-w64-mingw32/bin/ld.exe: skipping incompatible d:/Gtk+/lib/glib-2.0.lib when searching for -lglib-2.0
d:/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/4.5.1/../../../../x86_64-w64-mingw32/bin/ld.exe: skipping incompatible d:/Gtk+/lib\glib-2.0.lib when searching for -lglib-2.0
d:/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/4.5.1/../../../../x86_64-w64-mingw32/bin/ld.exe: cannot find -lglib-2.0
d:/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/4.5.1/../../../../x86_64-w64-mingw32/bin/ld.exe: skipping incompatible d:/Gtk+/lib/libintl.dll.a when searching for -lintl
d:/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/4.5.1/../../../../x86_64-w64-mingw32/bin/ld.exe: skipping incompatible d:/Gtk+/lib/intl.lib when searching for -lintl
d:/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/4.5.1/../../../../x86_64-w64-mingw32/bin/ld.exe: skipping incompatible d:/Gtk+/lib/libintl.dll.a when searching for -lintl
d:/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/4.5.1/../../../../x86_64-w64-mingw32/bin/ld.exe: skipping incompatible d:/Gtk+/lib/intl.lib when searching for -lintl
d:/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/4.5.1/../../../../x86_64-w64-mingw32/bin/ld.exe: skipping incompatible d:/Gtk+/lib\intl.lib when searching for -lintl
d:/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/4.5.1/../../../../x86_64-w64-mingw32/bin/ld.exe: cannot find -lintl
collect2: ld returned 1 exit status
Process terminated with status 1 (0 minutes, 0 seconds)
12 errors, 0 warnings
 


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