wxWidgets Install

・ダウンロード
 wxWidgets本家サイト(http://www.wxwindows.org/)から
 インストールモジュールをダウンロードしてきます。
 例:wxMSW-2.8.7.zip というもの

・インストール
 ダウンロードしてきたモジュールを
 適当な場所に解凍します。例:C:\wxMSW-2.8.7
 ※注意:パスにはスペースがないこと※

・環境変数追加
 下記の環境変数を追加します
 変数: WXWIN  値: インストールしたパス
 例: WXWIN = "C:\wxMSW-2.8.7"

・コンパイル
 コマンドプロンプトを開きインストール場所に移動し、下記のコマンドでコンパイルします。
 しばらく時間がかかりますが、エラーを吐かずにコンメ[ルが戻ってくれば完了です。
 cd "C:\wxMSW-2.8.7\build\msw"
 make -f makefile.gcc BUILD=debug OR mingw32-make -f makefile.gcc BUILD=debug UNICODE=1
 cd "C:\wxMSW-2.8.7\samples\minimal"
 make -f makefile.gcc BUILD=debug OR mingw32-make -f makefile.gcc BUILD=debug UNICODE=1
 ※BUILD=releaseにすると、リリース版になります
 
 MSYSがインストールされた場合、下記のようにもコンパイルできます
  cd $WXWIN
  mkdir build-debug
  cd build-debug
  ../configure --with-msw --enable-debug --enable-debug_gdb --disable-shared
  ../configure --enable-optimise --enable-stl --enable-unicode
  make
  make install %%% This step is optional %%%
  cd samples/minimal
  make
  ./minimal.exe
  ※strip minimal.exeを実行すれば、EXEファイルサイズの縮小ができます

 ※詳しいことはファイル"INSTALL-MSW.txt"又は"docs\msw\install.txt"を参照のこと
 ※INSTALL detail infomation from: Cygwin/MinGW compilation

0 コメント: