wxWidgets在wince上的編譯方法

最近準備折騰折騰wxWidgets,順便在wince上也跑一下看看效果。google中發現很多網友都在問如何能夠在wince下編譯(新下載的2.8.7版本里的wince工程無法使用),後來仔細看了一下wxwidgets的官方wiki,其實裏面早有說明,參考http://wiki.wxwidgets.org/Developers_Notebook-WxWinCECompiling裏面最後一部分。這裏簡單整理一下:

1、下載bakefile,wxwidgets使用bakefile創建wince的工程。可以去http://bakefile.sourceforge.net/download.php,這裏給出bakefile-0.2.3-setup.exe鏈接(以後可能會失效)。

2、把bakefile安裝目錄添加到path環境變量(bakefile-0.2.3-setup.exe安裝時可以自動設置),或者以後使用絕對路徑。

3、編輯build/bakefiles/Bakefiles.bkgen 文件,找到disable-formats裏的msevc4prj,刪掉msevc4prj

4、創建wince工程文件

  • md %WXWIN%/build/wince
  • cd %WXWIN%/build/bakefiles
  • C:/Programmi/Bakefile/src/bakefile_gen -f msevc4prj

%WXWIN%是wxwidgets的根目錄,如E:/wxMSW-2.8.7。

這樣就創建了evc4可以使用的vcw及vcp文件了。

5. Build using eVC++4 (偷懶不翻譯了^_^)

  • open workspace %WXWIN%/build/wince/wx.vcw (Marco and Julian tried with eVC4, ABX tried with eVC3)
  • (VC8 works but the project import doesn't preserve output libary names or paths so you'll have to massage sample project files a bit)
  • select type of build (debug/unicode)
  • select target
  • In sequence build
    • wxzlib
    • wxjpeg
    • wxexpat
    • gl
    • mono
  • open workspace in one of samples folder
  • select the same settings for type of build and target
  • build (and run if targeted to emulator)

(轉自:http://blog.csdn.net/Delores/archive/2008/04/13/2288484.aspx)

發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章