請問如何編譯這個C++專案?
http://panthema.net/2013/sound-of-sorting/sound-of-sorting-0.6.3/
http://panthema.net/2013/sound-of-sorting/
https://github.com/bingmann/sound-of-sorting
該網站有提供已經編譯好的檔案
但我想用他提供的原始碼加幾個功能再重新編譯
但現在連原封不動的原始碼都無法編譯
我嘗試使用visual c++失敗
Dev c++ 失敗
載入了SDL-1.2.15和wxWidgets-3.0.2程式庫、標頭檔 也失敗
也上網爬文過了
各種教學、設定都試過了
但還是708 errors
請求協助。
更新: 以下次失敗的專案檔
希望有經驗的人幫我看一下問題出在哪
https://drive.google.com/folderview?id=0B8KK3dW6mX0Mb2hnb3czdlIwZVE&usp=sharing
感謝!
=================================================================
我用三種方式嘗試要編譯
sound-of-sorting-0.6.5
1. 在Linux上
2. 使用Visual Studio 2008
3. 使用MingW
最後,第3個所費的功夫最小
第2個會有c/c++支援的問題
第1個光是要備齊套件就很困難
要成功編譯這個專案
需要下列三個項目
1. MingW
2. SDL-devel-1.2.15-mingw32.tar.gz (source
3. wxMSW-2.8.12-Setup.exe (source
你可以先在網路上找資料
安裝好MingW的環境
先試著編譯SDL
如果成功的話
就接著編譯wxWidget
通常SDL可以成功編譯的話
應該就沒甚麼問題
編譯的方式都是unix固定的三部曲
configure; make; make install
SDL跟wxWidget都編譯好後
使用下列參數進行sound-of-sorting設定
configure --with-sdl-prefix=/usr/local --with-sdl-exec-prefix=/usr/local --with-wxdir=/usr/local/wxWidgets-2.8.12