|
Boost Users : |
From: sfinks (sfinks2_at_[hidden])
Date: 2006-11-24 04:18:12
Hi.
Has anyone compiled boost on linux+mingw ?
I have Debian Etch,
mingw32
mingw32-binutils
mingw32-runtime
installed.
mingw binaries linked as so:
(CHROOT-wine-386)root_at_kroko386:~/boost_1_33_1# find /usr/bin/ -type l
-ls|grep 586
9601281 0 lrwxrwxrwx 1 root root 26 Nov 24 08:16
/usr/bin/gcc-3.4.5 -> i586-mingw32msvc-gcc-3.4.5
9601293 0 lrwxrwxrwx 1 root root 24 Nov 24 08:16
/usr/bin/windres -> i586-mingw32msvc-windres
9601260 0 lrwxrwxrwx 1 root root 19 Nov 24 08:16
/usr/bin/cc -> i586-mingw32msvc-cc
9601282 0 lrwxrwxrwx 1 root root 23 Nov 24 08:16
/usr/bin/gccbug -> i586-mingw32msvc-gccbug
9601259 0 lrwxrwxrwx 1 root root 20 Nov 24 08:16
/usr/bin/c++ -> i586-mingw32msvc-c++
9601275 0 lrwxrwxrwx 1 root root 20 Nov 24 08:14
/usr/bin/i586-mingw32msvc-cc -> i586-mingw32msvc-gcc
9601264 0 lrwxrwxrwx 1 root root 24 Nov 24 08:16
/usr/bin/c++filt -> i586-mingw32msvc-c++filt
9601284 0 lrwxrwxrwx 1 root root 19 Nov 24 08:16
/usr/bin/ld -> i586-mingw32msvc-ld
9601290 0 lrwxrwxrwx 1 root root 21 Nov 24 08:16
/usr/bin/size -> i586-mingw32msvc-size
9601278 0 lrwxrwxrwx 1 root root 20 Nov 24 08:16
/usr/bin/gcc -> i586-mingw32msvc-gcc
9601292 0 lrwxrwxrwx 1 root root 22 Nov 24 08:16
/usr/bin/strip -> i586-mingw32msvc-strip
9601285 0 lrwxrwxrwx 1 root root 19 Nov 24 08:16
/usr/bin/nm -> i586-mingw32msvc-nm
9601286 0 lrwxrwxrwx 1 root root 24 Nov 24 08:16
/usr/bin/objcopy -> i586-mingw32msvc-objcopy
9601283 0 lrwxrwxrwx 1 root root 21 Nov 24 08:16
/usr/bin/gcov -> i586-mingw32msvc-gcov
9601291 0 lrwxrwxrwx 1 root root 24 Nov 24 08:16
/usr/bin/strings -> i586-mingw32msvc-strings
9601271 0 lrwxrwxrwx 1 root root 24 Nov 24 08:16
/usr/bin/dllwrap -> i586-mingw32msvc-dllwrap
9601277 0 lrwxrwxrwx 1 root root 20 Nov 24 08:16
/usr/bin/g++ -> i586-mingw32msvc-g++
9601287 0 lrwxrwxrwx 1 root root 24 Nov 24 08:16
/usr/bin/objdump -> i586-mingw32msvc-objdump
9601258 0 lrwxrwxrwx 1 root root 19 Nov 24 08:16
/usr/bin/as -> i586-mingw32msvc-as
9601027 0 lrwxrwxrwx 1 root root 26 Nov 24 08:16
/usr/bin/addr2line -> i586-mingw32msvc-addr2line
9601265 0 lrwxrwxrwx 1 root root 20 Nov 24 08:16
/usr/bin/cpp -> i586-mingw32msvc-cpp
9601289 0 lrwxrwxrwx 1 root root 24 Nov 24 08:16
/usr/bin/readelf -> i586-mingw32msvc-readelf
9601223 0 lrwxrwxrwx 1 root root 19 Nov 24 08:16
/usr/bin/ar -> i586-mingw32msvc-ar
9601266 0 lrwxrwxrwx 1 root root 24 Nov 24 08:16
/usr/bin/dlltool -> i586-mingw32msvc-dlltool
9601288 0 lrwxrwxrwx 1 root root 23 Nov 24 08:16
/usr/bin/ranlib -> i586-mingw32msvc-ranlib
(CHROOT-wine-386)root_at_kroko386:~/boost_1_33_1#
now I try to build with command:
~/bjam -sTOOLS=mingw
-sGCC_INCLUDE_DIRECTORY=/usr/i586-mingw32msvc/include/
-sGCC_STDLIB_DIRECTORY=/usr/i586-mingw32msvc/lib/ --prefix=/opt/
gcc-C++-action
bin/boost/libs/date_time/build/libboost_date_time.so/mingw/debug/shared-linkable-true/threading-multi/greg_month.o
g++: unrecognized option `-pthread'
/root/boost_1_33_1/libs/date_time/build/../src/gregorian/greg_month.cpp:1:
warning: -fPIC ignored for target (all code is position independent)
gcc-C++-action
bin/boost/libs/date_time/build/libboost_date_time.so/mingw/debug/shared-linkable-true/threading-multi/greg_weekday.o
g++: unrecognized option `-pthread'
/root/boost_1_33_1/libs/date_time/build/../src/gregorian/greg_weekday.cpp:1:
warning: -fPIC ignored for target (all code is position independent)
gcc-C++-action
bin/boost/libs/date_time/build/libboost_date_time.so/mingw/debug/shared-linkable-true/threading-multi/date_generators.o
g++: unrecognized option `-pthread'
/root/boost_1_33_1/libs/date_time/build/../src/gregorian/date_generators.cpp:1:
warning: -fPIC ignored for target (all code is position independent)
gcc-Link-action
bin/boost/libs/date_time/build/libboost_date_time.so/mingw/debug/shared-linkable-true/threading-multi/libboost_date_time-mgw-mt-d-1_33_1.so
g++: unrecognized option `-pthread'
/usr/lib/gcc/i586-mingw32msvc/3.4.5/../../../../i586-mingw32msvc/bin/ld:
cannot find -lrt
collect2: ld returned 1 exit status
What about those:
1) g++: unrecognized option `-pthread'
2)
/usr/lib/gcc/i586-mingw32msvc/3.4.5/../../../../i586-mingw32msvc/bin/ld:
cannot find -lrt
collect2: ld returned 1 exit status
Thanks..
Boost-users list run by williamkempf at hotmail.com, kalb at libertysoft.com, bjorn.karlsson at readsoft.com, gregod at cs.rpi.edu, wekempf at cox.net