Re: [gtkmm] gtkmm2 win32 compile errors
- From: Naofumi Yasufuku <naofumi yasufuku net>
- To: "DANIELS, NATHANIEL E" <nate daniels cingular com>
- Cc: "'gtkmm-list gnome org'" <gtkmm-list gnome org>
- Subject: Re: [gtkmm] gtkmm2 win32 compile errors
- Date: Sat, 17 Aug 2002 07:09:37 +0900
Hi,
At Thu, 15 Aug 2002 12:30:23 -0500,
DANIELS, NATHANIEL E <nate daniels cingular com> wrote:
>
> Hello all,
>
> I've been trying for a little while now to compile gtkmm2 on a win32
> system. I have been able to compile gtk+-2.0.6, glib-2.0.6, and the latest
> versions of atk and pango using the MSVC build files, and have been able to
> compile the tests and examples using msys (mingw32). libsigc++ also
> compiles fine with msys, but when I try and compile gtkmm2 I always get this
> error:
>
> gcc -mpentium -fnative-struct
> -Wl,--base-file,.libs/libpangomm-0.0-14.dll-base -mdll
> -Wl,-e,_DllMainCRTStartup 12 -o .libs/libpangomm-0.0-14.dll attrlist.lo
> context.lo coverage.lo font.lo fontdescription.lo fontface.lo fontfamily.lo
> fontmap.lo fontmetrics.lo fontset.lo glyphstring.lo layout.lo layoutiter.lo
> layoutline.lo tabarray.lo wrap_init.lo -Lc:/mingw/lib -lstdc++
> .libs/libimp-glibmm-1.3-14.a .libs/libimp-sigc-1.1-5.a -lpango-1.0
> -lgobject-2.0 -lgmodule-2.0 -lglib-2.0 -lintl -liconv
> attrlist.lo: In function `_Q25Pango8AttrListRCQ24Glib7ustringUi':
> //C/mingw/1.0/home/n723273/gtkmm-1.3.20/pango/pangomm/attrlist.cc:35:
> undefined reference to `Glib::ustring::c_str(void) const'
> attrlist.lo: In function
> `_Q25Pango8AttrListRCQ24Glib7ustringUiRQ24Glib7ustringRUi':
>
> I don't think that this is a problem with gtkmm2, because I get the same
> error with version 1.3.18,1.3.19, and 1.3.20. Does anyone have any
> sugesstions as to what I might be missing ? Thanks for your time.
>
I get the same errors too.
The cause is a limitation of the impgen utility of libtool 1.4.2.
impgen cannot treat the special symbol names in libglibmm (and libatkmm).
I always do the following instructions to complete the gtkmm2 compilation.
1. Copy libglibmm def file generated by dlltool.
$ cd pango/pangomm
$ cp ../../glib/glibmm/.libs/libglibmm-1.3-14.dll-def .libs/libglibmm-1.3-14.dll-def
2. Delete the import libraries already generated.
$ rm .libs/*.a
3 Make libpangomm again.
$ make
I think it is a libtool's problem, and it can be solved by using
the collect def files generated by dlltool.
I would suggest that gtkmm2 should provide the coloect def files and
use it to build DLLs.
Regards,
--Naofumi
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]