Boost を cross compile

| No Comments | No TrackBacks

bjam は、build する環境に入っているもので OK.
使う cross g++ なところにはパスを通しておく。

で、boost を展開したディレクトリの下の、tools/build/v2/user-config.jam に
using gcc : 4.2 : i386-pc-mingw32-g++-4.2.1 ;

と書いてみた。んでもって、
% bjam -sTOOLS="gcc" --prefix="/Users/yasu/mingw" --sGXX="i386-pc-mingw32-g++-4.2.1" install

でとりあえずコンパイルできた。

% file ~/mingw/lib/libboost_graph-mgw42-mt-1_35.dylib
/Users/yasu/mingw/lib/libboost_graph-mgw42-mt-1_35.dylib: MS-DOS executable PE for MS Windows (DLL) (console) Intel 80386 32-bit

とかなっており、Windows の DLL の拡張子が .dylib になっていたりして、なかなか不思議な感じだが、ま、そういうものでしょう。

作ったバイナリが動くかは、まだ試してない。

No TrackBacks

TrackBack URL: http://yasu2.prosou.nu/mt/mt-tb.cgi/1701

Leave a comment

OpenID accepted here Learn more about OpenID
Powered by Movable Type 5.02

August 2010

Sun Mon Tue Wed Thu Fri Sat
1 2 3 4 5 6 7
8 9 10 11 12 13 14
15 16 17 18 19 20 21
22 23 24 25 26 27 28
29 30 31        

About this Entry

This page contains a single entry by Yasunori Osana published on April 28, 2008 5:29 PM.

チャリ整備 was the previous entry in this blog.

水泳 is the next entry in this blog.

Find recent content on the main index or look in the archives to find all content.