Re: [gtkmm] Help! compile gtkmm2.2.5 with mingw under Windows.



On Thu, 2003-07-24 at 15:49, Frank Naumann wrote:
> Hello!
> 
> > >libtool: link: warning: library
> > >`d:/Applications/sigc++/lib/libsigc-1.2.la' was moved.
> > >libtool: link: warning: library
> > >`d:/Applications/sigc++/lib/libsigc-1.2.la' was moved.
> > >../../../gtk/gtkmm/.libs/libgtkmm-2.0.a(object.o)(.text+0x848): In
> > >function `ZN3Gtk6Object22disconnect_cpp_wrapperEv':
> > >e:/sourceCode/gtkmm-2.2.5/gtk/gtkmm/../../gtk/gtkmm/object.h:81: undefined
> > >reference to `_imp___ZN4Glib6quark_E'
> > >../../../gtk/gtkmm/.libs/libgtkmm-2.0.a(object.o)(.text+0x85e):e:/sourceCode/gtkmm-2.2.5/gtk/gtkmm/../../gtk/gtkmm/object.h:81:
> > >undefined reference to `_imp___ZN4Glib26quark_cpp_wrapper_deleted_E'
> > >../../../gtk/gtkmm/.libs/libgtkmm-2.0.a(box.o)(.text+0x220): In function
> > >`ZN3Gtk11Box_Helpers7BoxList7reorderEN4Glib13List_IteratorINS0_5ChildEEES5_':
> > >e:/sourceCode/gtkmm-2.2.5/gtk/gtkmm/../../glib/glibmm/containers.h:129:
> > >undefined reference to `_imp___ZN4Glib19glibmm_null_pointerE'
> >
> > Did you use the --disable-static configure flag ?
> >
> > I strongly recommend you to have a look at my binaries. I have just
> > released gtkmm-2.2.5 for mingw32 on my site
> > (http://www.pcpm.ucl.ac.be/~gustin/win32_ports/).
> 
> As background, I want to spent some time on getting gtkmm compiled and
> running with VisualStudio NET 2003. I'm bounded to this compiler for my
> work :-(
> 
> The things I done until now:
> 
> I downloaded and installed mingw and msys (all most updtodate packages I
> found), both work fine.
> 
> I downloaded and installed all things for gtk+ from the gtk+ for Win32
> page. I compiled sucessfully a simple 'Hello World' from mingw and MSVC
> (btw. the the WindowsInstaller for gtk+ install outdated packages of atk,
> pango etc.; this is for sure a problem if someone try to compile gtkmm
> itself with these environment as gtkmm require newer libs; maybe you add
> a notice to gtkmm README.win32).

I'm aware of this : A newer version of gtk+ is already available on
http://www.gimp.org/win32/ but is not yet available as an installer on
dropline. This is a temporary situation. I will update gtkmm as soon as
a new gtk+ installer is released. 

> 
> I downloaded libsigc++ 1.2.5, compiled it with mingw, compiled it with
> MSVC, compiled and run all tests under mingw and MSVC.

Is libsigc++ built as a DLL ?

> 
> So far so good. Now I tried to compile gtkmm with mingw. configure worked
> perfectly fine, on linking I encountered the same problem as quoted above.

Let me repeat my question : did you use
libtoolize/aclocal/automake/autoconf to recreate libtool and the
configure script or do you use the ones provided in the official source
tarball ? 

It seems you're trying to build static libs (see for example the lines
../../../gtk/gtkmm/.libs/libgtkmm-2.0.a(box.o)(.text+0x220) ... in your
log).

gtkmm will not build as a static library on win32 (there are a bunch of
dllimport directives in the code). So make sure that DLLs are created at
every step (once again the --disable-static configure flag is your
friend) !

> So my question, what environment do you used to compile gtkmm under mingw?

cygwin + the latest mingw distribution (currently with gcc-3.2.3).

> I will for now ignore this and go forward to MSVC. Do you have any
> additional informations for me that might be helpful?

See http://bugzilla.gnome.org/show_bug.cgi?id=112809

As a general hint, building gtkmm on win32 is not easy at all. That's
why I provide the binaries in the first place. You'd better be
proficient in autotools magic. But keep the pressure ! I'm sure many
people will be interested in a port to Visual C++.

Cedric

P.S. : Don't forget to CC: all those messages to the gtkmm mailinglist. 




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