[gtkmm] Re: [sigc] Building libsigc++ under Win32 for use with Intel C++ Compiler 6.0
- From: Dirk Gerrits <dirk gerrits homeip net>
- To: Cedric Gustin <gustin pcpm ucl ac be>
- Cc: libsigc-mlist lists sourceforge net, gtkmm-list gnome org
- Subject: [gtkmm] Re: [sigc] Building libsigc++ under Win32 for use with Intel C++ Compiler 6.0
- Date: Tue, 05 Nov 2002 21:51:08 +0100
Hi Cedric,
Cedric Gustin wrote:
Hi Dirk
At 07:59 PM 11/4/2002 +0100, Dirk Gerrits wrote:
> I'd like to use gtkmm2 with Intel's C++ Compiler version 6.0 under
> Windows. I understand that libsigc++ is a dependency for gtkmm2, so I
> downloaded libsigc++-1.2.1 and tried to build it. However, I've had no
> success so far.
>
> With mingw using cygwin I get strange linker errors about undefined
> reference to `vtable for ... (see below). And the Visual Studio
> project file contains non-existant files in the list of files to build.
>
> What am I doing wrong? If more information is needed to be able to
> help me, just ask.
If your goal is to build gtkmm-2.0.0, I strongly recommend you to use
mingw (www.mingw.org). Gtk+-2.0.0 uses the msvcrt runtime environment.
You should avoid mixing msvcrt and cygwin as much as you can.
My goal is to be able to create Windows apps using gtkmm2. I'd like to
be able to use Intel6 for this which is a pretty nice compiler and
integrates seamlessly into Visual Studio .Net.
[snipped explanation of current win32 build difficulties]
In the meantime, you can use the binaries I just built :
http://www.pcpm.ucl.ac.be/~gustin/win32_ports/libsigc++-1.2.1-win32.tar.gz
and
http://www.pcpm.ucl.ac.be/~gustin/win32_ports/gtkmm-2.0.0-win32.tar.gz
gtk+-2.0 is not included in those tarballs. You should download the
latest release from http://www.gimp.org/win32/ (both runtime and
developper packages).
Binaries! Thank you soo much! I have nothing against compiling, but
trying to get gtkmm2 and it's dependencies to build on win32 was NOT an
enjoyable experience. And that's putting it very, very mildly.
Once again, those DLLs were built and should be used only with the
latest mingw distribution (2.0). MSVC++ will not work with them,
because of the different C++ name mangling scheme. I don't know about
cygwin-gcc-3.2.
I'll will release those binaries in the next few days (once the gcc-3.2
patches are reasy for both libsigc++ and gtkmm).
Someone replied to my gtkmm-list post privately (not sure if he wants to
remain anonymous) saying that the libraries should be compatible with
MSVC and Intel if they are compiled using -mms-bitfields with GCC/MinGW.
Anyway, at this point I'm so frustrated that settling to use MinGW for
my app doesn't seem like much of a problem. Besides, it's probably a lot
more standard compliant than Intel anyway. ;)
So, armed with all the information I gathered from your helpful email
and some Googling, I did the following:
1) Installed MinGW-2.0.0-3 to C:\MinGW.
2) Ran Cygwin's setup.exe and made it download and install ALL available
packages
from the ftp://ftp.sunsite.dk/ mirror to C:\cygwin. (I figured that this
would
give me the least dependency problems, and I've got the harddisk space. ;)
3) Edited C:\cygwin\etc\profile for MinGW:
PATH="/cygdrive/c/MinGW/bin:/usr/local/bin:/usr/bin:/bin:$PATH"
4) Changed line 5363 of
C:\cygwin\usr\autotool\devel\share\aclocal\libtool.m4
and line 2956 of C:\cygwin\usr\autotool\stable\share\aclocal\libtool.m4
from:
# printf ("\t%s @ %ld ;\n", erva+name_rva, 1+ i);
to:
# printf ("\t\"%s\" @ %ld ;\n", erva+name_rva, 1+ i);
As described in http://bugzilla.gnome.org/show_bug.cgi?id=91033
(Did I do this right? I thought # indicated a comment?)
5) Downloaded and unzipped all of the following files (with use folder
names and overwrite all)
5a) From http://www.gimp.org/win32:
atk-1.0.3-20020821.zip
atk-dev-1.0.3-20020821.zip
freetype-2.1.2-1-lib.zip
freetype-2.1.2-bin.zip
gettext-0.11.2-w32.bin.zip
gettext-dev-0.10.40-20020904.zip
glib-2.0.6-20020802.zip
glib-2.0.6.tar.gz
glib-dev-2.0.6-20020802.zip
gtk+-1.3.0-20020922.zip
gtk+-2.0.6-20020921.zip
gtk+-dev-1.3.0-20020912.zip
gtk+-dev-2.0.6-20020921.zip
libiconv-1.7-w32.bin.zip
libintl-0.10.40-tml-20020904.zip
libjpeg-6b-lib.zip
libpng-1.2.4-1-lib.zip
pango-1.0.4-20020928.zip
pango-dev-1.0.4-20020928.zip
pkgconfig-0.13.zip
tiff-3.5.7-bin.zip
tiff-3.5.7-lib.zip
zlib-1.1.4-bin.zip
zlib-1.1.4-lib.zip
5b) From http://www.pcpm.ucl.ac.be/~gustin/win32_ports:
libsigc++-1.2.1-win32.tar.gz
gtkmm-2.0.0-win32.tar.gz
(Maybe this is overkill? And perhaps I downgraded some of the cygwin
packages? But trying to build this stuff myself has invoked a bad case
of dependency-paranoia. After all this my cygwin dir is 883 MB though.)
So where do I go from here? Am I setup to build my first test app? Any
"hello world"s I can try to build? Ideally, I'd like to be able to build
from a Visual Studio .Net solution/project file. But I doubt there are
any add-ins/tools that'd help me do that. :|
Thanks for the help so far, but I need more. ;)
Dirk Gerrits
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]