无法编译AC的最后一个版本



我无法在Debian上编译AzerothCore的最后一个版本。

CMake失败,出现以下错误(来自CMakeError.log):

确定pthread_create是否存在失败,原因如下输出:更改目录:/wow/azerothcore wotlk/build/CMakeFiles/CMakeTmp
运行构建命令:"/usr/bin/make"cmTC_49bb8/fast"/usr/bin/make-fCMakeFiles/cmTC_49bb8.dir/build.make CMakeFiles/cmTC_49b8.dir/bbuildmake[1]:正在进入目录'/wow/azerothcore wotlk/build/CMakeFiles/CMakeTmp'正在构建C对象CMakeFiles/cmTC_49bb8.dir/CheckSymbolExists.co/usr/bin/cc
-std=gnu99-o CMakeFiles/cmTC_49b8.dir/CCheckSymbolExistis.co-c/wow/azerothcore wotlk/build/CMakeFiles/CMakeTmp/CheckSymbol Exist.c链接C可执行文件cmTC_49bb8/usr/bin/cmake-E cmake_link_scriptCMakeFiles/cmTC_49bb8.dir/link.txt--verbose=1/usr/bin/cc
-std=gnu99 CMakeFiles/cmTC_49b8.dir/CheckSymbolExists.co-o cmTC_49db8-rdynamic CMakeFiles/cmTC_49 b8.dir-CheckSymbolExtists.co:在函数main': CheckSymbolExists.c:(.text+0x1b): undefined reference topthread_create'collect2:error:ld返回1个出口status CMakeFiles/cmTC_49bb8.dir/build.make:97:目标配方"cmTC_49bb8"make[1]失败:*[cmTC_49b8]错误1 make[1]:正在离开目录'/wow/azerothcore wotlk/build/CMakeFiles/CMakeTmp'生成文件:126:目标"cmTC_49bb8/fast"的配方失败生成:[cmTC_49b8/fast]错误2文件/wow/azerothcore wotlk/build/CMakeFiles/CMakeTmp/CheckSymbolExists.c:/*/包括int main(int argc,char**argv){(void)argv;ifndef pthread_create return((int*)(&pthread_create))[argc];else(void)argc;返回0;endif}确定pthread_create函数是否存在于pthreads中失败,输出如下:更改目录:/wow/azerothcore wotlk/build/CMakeFiles/CMakeTmp运行build命令:"/usr/bin/make"cmTC_367c4/fast"/usr/bin/make-fCMakeFiles/cmTC_367c4.dir/build.make CMakeFiles/cmTC_367c4.dir/bbuildmake[1]:正在进入目录'/wow/azerothcore wotlk/build/CMakeFiles/CMakeTmp'正在构建C对象CMakeFiles/cmTC_367c4.dir/CheckFunctionExists.c.o/usr/bin/cc
-std=gnu99-DCHECK_FUNCTION_EXIST=pthread_create-o CMakeFiles/cmTC_367c4.dir/CCheckFunctionExists.co-c/usr/share/cmake-3.7/Modules/CheckFunctionExists.c链接c可执行文件cmTC_367c4/usr/bin/cmake-E cmake_link_scriptCMakeFiles/cmTC_367c4.dir/link.txt--verbose=1/usr/bin/cc
-std=gnu99-DCCHECK_FUNCTION_EXIST=pthread_create CMakeFiles/cmTC_367c4.dir/CheckFunctionExists.co-o cmTC_367c4-rddynamic-lpthreads/usr/bin/ld:找不到-lpthreads collect2:错误:ld返回1退出状态CMakeFiles/cmTC_367c4.dir/build.make:97:目标配方"cmTC_367c4"make[1]失败:*[cmTC_367c4]错误1 make[1]:正在离开目录'/wow/azerothcore wotlk/build/CMakeFiles/CMakeTmp'生成文件:126:目标"cmTC_367c4/fast"的配方生成失败:*[cmTC_367c4/fast]错误2

这是我的CMakeOutput.log

有人能解释一下吗,哪里有问题?

您使用的是什么版本的gcc(或clang)和Cmake?你能发布你运行的命令吗。因为你的输出看起来像你在跑步/配置和制作而不是cmake O_O

最新更新