[英]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.