Re: Some help to build a Win32 version of my framework.



In this latest technique, I have some problems with the shared libraries
building.

What is the best way to build this framework, MinGW or Cygwin ?
I have already add registry access to store important paths of plugins.
I do not need the Cygwin emulation path.


On both MinGW and Cygwin, shared libraries (including modules) must have
all symbols resolved at *link time*.  This means the following
conditions must be met in order to link:

1) "-no-undefined" must be passed to libtool via *_la_LDFLAGS (you could
simplify this somewhat by adding it to the *_PLUGIN_LDFLAGS in
configure.ac);
2) all necessary link libraries must be specified via *_la_LIBADD.

Your package involves a lot of components.  Please start by adding
these, then perhaps I could try building vle on Cygwin.

I have modified all the makefile.am and configure.ac of my project.

- For shared libraries, with -module libtool parameter, I Have this type of warning (error I presume):

libtool: link: warning: undefined symbols not allowed in i386-pc-mingw32 shared libraries



- For executable, I have this type of error:

autoreconf -fmi
...
g++ -O0 -g -o .libs/textobs.exe TextObs.o ../../../../../src/c++/utils/.libs/li butils.dll.a -Lc:/MinGW/lib ../../../../../src/c++/observer/net/net/.libs/libnet observer.dll.a /cygdrive/c/vle/vle/vle/src/c++/utils/.libs/libutils.dll.a -lxml+ +-2.6 -lglademm-2.4 -lgtkmm-2.4 -lglade-2.0 -lgdkmm-2.4 -latkmm-1.6 -lpangomm-1. 4 -lglibmm-2.4 -lsigc-2.0 -lgtk-win32-2.0 -lxml2 -lz -lws2_32 -lgdk-win32-2.0 -l atk-1.0 -lgdk_pixbuf-2.0 -lpangowin32-1.0 -lgdi32 -lpango-1.0 -lgobject-2.0 -lgm
odule-2.0 -lgthread-2.0 -lglib-2.0 -lintl -liconv -L/target/lib/vle
g++.exe: /cygdrive/c/vle/vle/vle/src/c++/utils/.libs/libutils.dll.a: No such file or directory

ls -l /cygdrive/c/vle/vle/vle/src/c++/utils/.libs/
...
-rwxr-xr-x  1 Goth Aucun 4800501 Oct  5 09:57 libutils-0.dll
-rwxr-xr-x  1 Goth Aucun  757866 Oct  5 09:57 libutils.dll.a
lrwxrwxrwx  1 Goth Aucun      14 Oct  5 09:57 libutils.la -> ../libutils.la
-rw-r--r--  1 Goth Aucun     880 Oct  5 09:57 libutils.lai



- For the shared libraries without -module option, all seem to be ok:

Info: resolving vtable for Doubleby linking to __imp___ZTV6Double (auto-import) Info: resolving vtable for Integerby linking to __imp___ZTV7Integer (auto-import
)
Info: resolving vtable for Booleanby linking to __imp___ZTV7Boolean (auto-import
)
Info: resolving vtable for Stringby linking to __imp___ZTV6String (auto-import) Info: resolving utils::Trace::_trace by linking to __imp___ZN5utils5Trace6_t
raceE (auto-import)
Info: resolving utils::Path::mPath by linking to __imp___ZN5utils4Path5mPath
E (auto-import)
Info: resolving vtable for Setby linking to __imp___ZTV3Set (auto-import)
Creating library file: .libs/libdevs.dll.a
creating libdevs.la
(cd .libs && rm -f libdevs.la && ln -s ../libdevs.la libdevs.la)

Can you help me ?

Yaakov
Cygwin Ports -- http://cygwinports.dotsrc.org/
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.1 (Cygwin)
Comment: Using GnuPG with Thunderbird - http://enigmail.mozdev.org

iD8DBQFDMwRHpiWmPGlmQSMRAgtkAKDrsi7cn2T2UuJm5PXrik24vWMi/gCeNAaJ
XrCfRMm2i+XVj54ZbksFnCo=
=WSY4
-----END PGP SIGNATURE-----

_______________________________________________
gtkmm-list mailing list
gtkmm-list gnome org
http://mail.gnome.org/mailman/listinfo/gtkmm-list



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