Re: [gtkmm] Back with libgnomecanvasmm on windows



At 09:25 PM 6/28/2003 +0530, Manjit Dua wrote:
Hi all,

i am back with but with different results and issues.

Well i was trying to built the libgnomecanvasmm on windows using cygwin.

i am libtool stable 1.5
autoconf 2.53
automake 1.6.3
gcc 3.2.3

./configure yielded no problems
but make bomabarded with error undefined reference
undefined reference to `Glib::ObjectBase::referenc
e() const'
..etc etc

and syntax error like
dlltool: Syntax error in def file .libs/cyggtkmm-2.0-1.dll-def:4919
and
dlltool: Syntax error in def file .libs/cyggdkmm-2.0-1.dll-def:740

than i met with bug report
http://bugzilla.gnome.org/show_bug.cgi?id=91033

stating the bug in libtool. as stated i replace the line
printf ("\t%s @ %ld ;\n", erva+name_rva, 1+ i);
with
printf ("\t\"%s\" @ %ld ;\n", erva+name_rva, 1+ i);

in genearated libtool file.

As I said in a previous message, you should try with the developement branch of the autotools, as provided by the cygwin distribution (located in /usr/autotool/devel/bin : modify your PATH accordingly). Currently, this is

automake 1.7.5
autoconf 2.57
libtool 1.5

This development branch does not use impgen anymore when building DLLs on win32 but instead relies on the -shared option of the gcc/g++ compiler (which is much faster !!!). Also, make sure that ' -no-undefined -Wl,--export-all-symbols' is among the LDFLAGS is the library Makefile.am, except if a .def file is provided with the library (I don't think so).

As an example, see the Makefile_build.am_fragment file in the build_shared directory of the latest stable gtkmm tarball.

Also, you should first try to build a static version of the library (./configure --disable-shared) and fix win32-related bugs before any attempt of making a DLL !!!

Cedric





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