Re: [gtkmm] Windows compilation/utilisation problems




Hi Christophe,

At 03:08 PM 5/24/2004, Christophe Pijcke wrote:

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).

I use mingw-gcc 3.2.3 (and cygwin for the autotools, perl, sed, ...)

* 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.

I did not change anything to the configure script.


* 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

Oh yes, I forgot about this one ! Will commit to CVS.

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.

Are you sure you link against the import libraries (.dll.a files) ? What does `pkg-config --libs --cflags gtkmm-2.4` return ? Does it match your gtkmm installation directory ?

Cedric



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