編譯boost python模塊遇到的錯誤:../../libraries/boost_1_44_0/boost/python/detail/wrap_python.hpp:75:24: fatal error: patchlevel.h: No such file or directory


 

就是遇到類似標題上面的錯誤。

 

原因是沒有安裝對應python的python-dev依賴,不然編譯到boost python模塊的時候就會出錯。

 

所以解決方案是sudo apt-get install python-dev就行了

 

然后用boost自帶的b2工具編譯boost python模塊的時候就不會出錯了

 

注意好好看以下文檔,官方文檔很重要。

 

 

 

references:

http://stackoverflow.com/questions/6782071/boostbuild-patchlevel-h-does-not-exist

http://stackoverflow.com/questions/15136671/unable-to-build-boost-python

http://stackoverflow.com/questions/1771063/no-such-file-or-directory-error-with-boost-python

http://www.boost.org/doc/libs/1_56_0/libs/python/doc/building.html

http://www.boost.org/doc/libs/1_56_0/more/getting_started/unix-variants.html


免責聲明!

本站轉載的文章為個人學習借鑒使用,本站對版權不負任何法律責任。如果侵犯了您的隱私權益,請聯系本站郵箱yoyou2525@163.com刪除。



 
粵ICP備18138465號   © 2018-2025 CODEPRJ.COM