![](/img/trans.png)
[英]CMake undefined reference to `pthread_create` in Github Action Ubuntu image
[英]pthread_create not found in ubuntu
我想在Ubuntu上運行cocos2d-x。 它顯示了這個錯誤:
-- 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)
這是什么意思?
它似乎最終找到了pthread_create,但卻缺少Doxygen。 運行sudo apt-get install doxygen
,然后重試。
pthread_create
可能出現在幾個不同的地方。 腳本檢查了所有內容,並在pthread
找到了此函數。 然后它尋找Doxygen並且無法找到它。 安裝它並重試,腳本應該能夠繼續。
聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.