Re: [gtkmm] building dll for windows using cygwin
- From: Cedric Gustin <cedric gustin swing be>
- To: "Manjit Dua" <manjit_dua indiainfo com>, gtkmm-list gnome org
- Subject: Re: [gtkmm] building dll for windows using cygwin
- Date: Fri, 04 Jul 2003 08:24:29 +0200
At 09:18 PM 7/3/2003 +0530, Manjit Dua wrote:
what i tried is trying to make dll to have work on windows by using the
src code files in src folder in libgnomecanvas folder there are .lo and .o
files and i used these command
$ gcc -shared -o cyglibgnomecanvasmm-2.dll
-Wl,--out-implib=libgnomecanvasmm-2.
dll.a -Wl,--export-all-symbols -Wl,--enable-auto-import
-Wl,--whole-archive can
vas.o ellipse.o rect.o group.o item.o line.o polygon.o rect-ellipse.o
shape.o p
ixbuf.o rich-text.o text.o widget.o path-def.o bpath.o -Wl,--no-whole-archive
-L/d/Manjit/Cygwin/usr/lib -lgtkmm-2.0 -lgnomecanvas-2 -lgdkmm-2.0 -latkmm-1.0
-lpangomm-1.0 -lglibmm-2.0 -lsigc-1.2 -lart_lgpl_2 -lpangoft2-1.0
-lgtk-win32-2
.0 -lgdk-win32-2.0 -latk-1.0 -lgdk_pixbuf-2.0 -lpangowin32-1.0 -lgdi32
-lpango-
1.0 -lgobject-2.0 -lgmodule-2.0 -lglib-2.0 -lintl -liconv -lm
it bombarded with many undefined refernces. i have downloaded the the
binaries from
http://web.sfc.keio.ac.jp/~s01397ms/cygwin/index.html.en
CAN ANY 1 WOULD SUGGEST WHAT TO DO FOR HAVING DLL FILE FOR WINDOWS.
1. Stop shouting (caps letters).
2. Make sure your cygwin distribution is working as expected. You should
try, for example to build a C++ library that has no external
dependencies, the latest libsigc++-1.2 for example. In the libsigc++-1.2.5, do
export PATH=/usr/autotools/devel/bin:$PATH % Using the development
branch of the autotools
gcc -v % Making sure we use cygwin gcc
libtoolize --force
aclocal -I scripts
automake -a
autoconf
./configure --disable-static
make
If the libsigc++ DLL (along with its .dll.a import library) is not created
in sigc++/.libs, you really have a problem with your cygwin distribution.
If it works, try to build a more complex library, gtkmm for example !
3. Try to remove all .la file in the binary distribution you downloaded
from http://web.sfc.keio.ac.jp/~s01397ms/cygwin. Libtool might sometimes
get lost if these .la were created for a different directory structure.
4. Did you run configure with --disable-static ?
5. Did you try to compile a small gnome application with the binaries from
http://web.sfc.keio.ac.jp/~s01397ms/cygwin, just to test your installation.
6. Did you contact Masahiro Sakai ?
7. You should realize that you're first who tries to compile
libgnomecanvasmm on cygwin (with Sagar Shah who also posted on the
mailinglist). This is not like building helloworld.c ! So please, be
patient. I'm sure there is a solution.
Cedric
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]