- 開発環境を整える
- Diff of 開発環境を整える
*開発環境を整える [#j7b48407]
**必要なライブラリ [#nad28a11]
-[[SDL>http://www.libsdl.org]]
-[[SDL_image>http://www.libsdl.org/projects/SDL_image/]]
--[[jpeg_v8>http://www.ijg.org/files/]]
--[[libpng>http://www.libpng.org/pub/png/libpng.html]]
---[[ZLib>http://www.gzip.org/zlib/]]
--[[libtiff>ftp://ftp.sgi.com/graphics/tiff/]]
-[[SDL_sound>http://icculus.org/SDL_sound/]]
--[[libogg>http://xiph.org/ogg/]]
--[[libvorbis>http://xiph.org.vorbis]]
**mingwを使う場合 [#ha143ce7]
[[mingw>http://sourceforge.net/projects/mingw/files/]]からMingwとMSYSをダウンロードしてインストール
[[DirectX SDK>http://www.libsdl.org/extras/win32/common/]]をダウンロードする(MS公式からのバージョンはダメ)
[[nasm>http://www.nasm.us/pub/nasm/releasebuilds/?C=M;O=D]]もダウンロードする
ライブラリを展開する
+*mingwでUNIX上でクロスビルド [#jPU8Ox1]
+(debian/linuxの例)
+必要なパッケージをインストール
+@@ # apt-get install autoconf automake autopoint bash bison bzip2 cmake flex gettext git g++ gperf intltool libffi-dev libtool libltdl-dev libssl-dev libxml-parser-perl make openssl p7zip-full patch perl pkg-config python ruby scons sed unzip wget xz-utils libtool-bin@@
+64bit環境の場合はこれも
+@@ # apt-get install g++-multilib libc6-dev-i386 @@
+MXEのインストール
+@@ git clone https://github.com/mxe/mxe.git @@
+必要なライブラリのビルド
+@@ make boost @@
+@@ make sdl @@
+@@ make sdl_net @@
+@@ make sdl_image @@
+@@ make sdl_ttf @@
+@@ make sdl_sound @@
+@@ make zzliblib @@
+@@ make smpeg @@
+@@ make speex @@
+@@ make libsndfile @@
+ビルド実行
+@@ ./mxe-build.sh @@
+@@ ./mxe-make.sh @@
+// TODO これで全部?
*gccの場合(UNIX) [#yd905534]
SDL,SDL_image,SDL_net,SDL_sound,smpegをVisualStudio2005の項目と同様にして導入。
ソースを展開して./configure;make;make installで結構すんなりいくはず
行かない場合はライブラリが入っていないか、ライブラリが入っていないかです。
BSDの場合はLINUXエミュレーションライブラリのバージョンに注意。
*コメント [#ad33c077]