[gtkmm] Windows compilation/utilisation problems



Hello everyone,

I have several problem when compiling gtkmm 2.4.1 on windows.
I use for that mingw and msys under Windows XP familial Edition.
 (gcc updated to 3.3.1 and 3.3.3 give me the same result for error explained
below).

* libglibmm: I need to change the script configure and remove the line:
  GTKMM_ARG_ENABLE_DEBUG_REFCOUNTING()
  with this, I can compile It on Windows.

* gtkmm: An error (I think) is present on the file
gtkmm-2.4.1/gdk/gdkmm/Makefile.am
 < sublib_win32_dlls_libs	= $(top_builddir)/pango/pangomm/libpangomm-1.6.la
 > sublib_win32_dlls_libs	= $(top_builddir)/pango/pangomm/libpangomm-1.4.la

But even with these change I was unable (for now) to use my own gtkmm-2.4.1
librairies on windows.
So, I have decided to use the cedric gustin binaries of gtkmm.

But with this gtkmm binaries librarie, I have the following problems when
compiling an application:

ie: > cd {gtkmm_src}/examples/treemodelcustom/
    > g++ -o main exampletreemodel.cc examplewindow.cc main.cc
`pkg-config --libs --cflags gtkmm-2.4`

the result is:

    > Info: resolving __ZTTN3Gtk14TreeViewColumnE by linking to
__imp___ZTTN3Gtk14TreeViewColumnE (auto-import)
    > Info: resolving __ZTVN3Gtk14TreeViewColumnE by linking to
__imp___ZTVN3Gtk14TreeViewColumnE (auto-import)
    >
C:/DOCUME~1/avery/LOCALS~1/Temp/ccuybaaa.o(.text$_ZN3Gtk14TreeViewColumnC1IN
4Glib7ustringEEERKS3_RKNS_15TreeModelColumnIT_EE+0x116):examplewindow.cc:
variable 'vtable for Gtk::TreeViewColumn' can't be auto-imported. Please
read     the documentation for ld's --enable-auto-import for details.
    >
C:/DOCUME~1/avery/LOCALS~1/Temp/ccuybaaa.o(.text$_ZN3Gtk14TreeViewColumnC1IN
4Glib7ustringEEERKS3_RKNS_15TreeModelColumnIT_EE+0x125):examplewindow.cc:
variable 'vtable for Gtk::TreeViewColumn' can't be auto-imported. Please
read the documentation for ld's --enable-auto-import for details.

On this link, I find the gnu ld documentation:
http://sources.redhat.com/binutils/docs-2.12/ld.info/Options.html ,
option --enable-auto-import

With this in mind, and at a first glance, I suscpect the
TreeViewColumn::CppClassType TreeViewColumn::treeviewcolumn_class_ static
member.
But I don't know very well the gtkmm design nor the ld invocation.

Is someone being able to use gtkmm-2.4.1 TreeView on Windows ?


Best regards,
  Christophe Pijcke.





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