2015-12-17 193 views
2

我想在Ubuntu上運行cocos2d-x。它顯示此錯誤:pthread_create在Ubuntu中找不到

-- Looking for IceConnectionNumber in ICE 
-- Looking for IceConnectionNumber in ICE - found 
-- Found X11: /usr/lib/x86_64-linux-gnu/libX11.so 
-- Found OpenGL: /usr/lib/x86_64-linux-gnu/libGL.so 
-- Looking for include file pthread.h 
-- Looking for include file pthread.h - found 
-- Looking for pthread_create 
-- Looking for pthread_create - not found 
-- Looking for pthread_create in pthreads 
-- Looking for pthread_create in pthreads - not found 
-- Looking for pthread_create in pthread 
-- Looking for pthread_create in pthread - found 
-- Found Threads: TRUE 
-- Could NOT find Doxygen (missing: DOXYGEN_EXECUTABLE) 

這是什麼意思?

+2

它似乎最終會找到'pthread_create',但它缺少'Doxygen'。你有沒有試過'sudo apt-get install doxygen'? – cat

+1

你會看到:'Found Threads:TRUE'。這意味着他實際上找到了「線程」,但缺少了氧氣。 – ForceBru

+0

僅供參考,'doxygen'是CPP的文檔生成器。我覺得如果安裝不能找到這樣的dep,但是無論如何都會導致安裝失敗。安裝它應該解決這個問題。 – cat

回答

2

它似乎最終發現pthread_create但它缺少Doxygen。運行sudo apt-get install doxygen,然後重試。

1

pthread_create可能出現在幾個不同的地方。腳本檢查了它們全部,並在pthread中找到該函數。然後它尋找Doxygen並且無法找到它。安裝它並重試,腳本應該能夠繼續。