編譯frepple-0.6.1

1.Xerces找不到,經高人在Google指點,原來是g++沒裝!
2.configure:18531: error:
Can’t link with the python library.
This package requires the python development libraries.

後來Johan De Taeye給我一個提示,就是『Altneratively, you can copy the file libpython25.dll.a from the
cywgin/lib/python25 folder to the cygwin/lib folder.』,我才注意到 libpython25.dll.a這個位置有點詭異!

後來用cygwin編譯證實是沒問題的,不過在編譯frepple.nsi上時發現找不到檔案的問題:

File: “..contribinstallerdist*.*” -> no files found.
Usage: File [/nonfatal] [/a] ([/r] [/x filespec […]] filespec […] |
/oname=outfile one_file_only)
Error in script “C:frepple-0.6.1contribinstallerfrepple.nsi” on line 161 — aborting creation process

追溯到161行:

; Copy the django and python redistributables created by py2exe
SetOutPath “$INSTDIRbin”
File /r “..contribinstallerdist*.*”

發現怎沒有檔案?有點不懂Copy the django and python redistributables created by py2exe,只好再請教Johan De Taeye,原來需要python setup.py喔!看來自己真是有點耍白癡了!

不過超有成就感的,終於可以自行編譯建置程式了,而且這個程式還是python跨C++使用的,感覺功力大升了!哈!

感謝你看到這裡,很快就可以離開了,但最好的獎勵行動就是按一下幫我分享或留言,感恩喔~

點我分享到Facebook

發佈留言

發佈留言必須填寫的電子郵件地址不會公開。 必填欄位標示為 *