[sigc] Compiling libsigc++ on Linux using mingw



Hi list,

I am attempting to compile libsigc++ on Linux using mingw, as it is a
prerequisite of libgtkmm.

I grabbed the mingw cross compiling environment with "wget
http://download.savannah.nongnu.org/releases/mingw-cross-env/mingw-cross-env-2.15.tar.gz";,
from http://www.nongnu.org/mingw-cross-env, and ran "make gcc boost gtk".
This operation completed successfully.

I then downloaded libgtkmm-2.22.2 from the GNOME ftp site, and ran a
"./autogen.sh --host=i686-pc-mingw32", which yielded "configure: error:
Package requirements (sigc++-2.0 >= 2.0 glib-2.0 >= 2.21.1
gobject-2.0 >= 2.21.1 gmodule-2.0 >= 2.21.1) were not met:

No package 'sigc++-2.0' found"

So, I got libsigc++-2.2.8 also from the GNOME ftp site, and ran the same
autogen command, which completed successfully.  However, when I tried to
"make", it gives the following:

"make  all-recursive
make[1]: Entering directory `/home/tim/projects/libsigc++-2.2.8'
Making all in sigc++
make[2]: Entering directory `/home/tim/projects/libsigc++-2.2.8/sigc++'
make  all-am
make[3]: Entering directory `/home/tim/projects/libsigc++-2.2.8/sigc++'
make[3]: Nothing to be done for `all-am'.
make[3]: Leaving directory `/home/tim/projects/libsigc++-2.2.8/sigc++'
make[2]: Leaving directory `/home/tim/projects/libsigc++-2.2.8/sigc++'
Making all in tests
make[2]: Entering directory `/home/tim/projects/libsigc++-2.2.8/tests'
make[2]: Nothing to be done for `all'.
make[2]: Leaving directory `/home/tim/projects/libsigc++-2.2.8/tests'
Making all in examples
make[2]: Entering directory `/home/tim/projects/libsigc++-2.2.8/examples'
/bin/sh ../libtool  --tag=CXX   --mode=link i686-pc-mingw32-g++ -Wall -g
-O2   -o hello_world.exe hello_world.o ../sigc++/libsigc-2.0.la 
libtool: link: i686-pc-mingw32-g++ -Wall -g -O2 -o .libs/hello_world.exe
hello_world.o  ../sigc++/.libs/libsigc-2.0.a
hello_world.o: file not recognized: File format not recognized
collect2: ld returned 1 exit status
make[2]: *** [hello_world.exe] Error 1
make[2]: Leaving directory `/home/tim/projects/libsigc++-2.2.8/examples'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/home/tim/projects/libsigc++-2.2.8'
make: *** [all] Error 2"

Apologies if I seem grumpy or frank, but I've been trying to set up an adequate
cross compiling environment for almost a fortnight now, and haven't gotten
very far yet.

Regards,
Tim Mazid.
 		 	   		  


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