Building Tests requested, but Catch2 library not found. CMake Error at components/pango_core/CMakeLists.txt:38 (target_compile_features): target_compile_features The compiler feature "cxx_decltype_auto" is not known to CXX compiler "GNU" version 4.8.4. Call Stack (most recent call first): CMakeLists.txt:93 (include) CMake Error at components/pango_geometry/CMakeLists.txt:3 (find_package): Could not find a package configuration file provided by "Eigen3" with any of the following names: Eigen3Config.cmake eigen3-config.cmake Add the installation prefix of "Eigen3" to CMAKE_PREFIX_PATH or set "Eigen3_DIR" to a directory containing one of the above files. If "Eigen3" provides a separate development package or SDK, be sure it has been installed. Call Stack (most recent call first): CMakeLists.txt:93 (include) -- Configuring incomplete, errors occurred! See also "/home/slam-learn/projects/pangolin/build/CMakeFiles/CMakeOutput.log". See also "/home/slam-learn/projects/pangolin/build/CMakeFiles/CMakeError.log".
时间: 2024-04-04 15:30:35 浏览: 230
这是一个CMake构建时出现的错误,可能是由于缺少Catch2库和Eigen3库导致的。缺少Catch2库可能是因为您没有正确配置项目依赖项或没有正确安装该库。如果确实缺少Catch2库,您可以从官方网站上下载并安装它。缺少Eigen3库可能是因为CMake无法找到该库的配置文件,您可以将其安装到系统中或将其安装路径添加到CMAKE_PREFIX_PATH环境变量中。如果您已经安装了Eigen3库,您可以通过设置Eigen3_DIR变量来告诉CMake库的位置。
相关问题
CMake Warning at CMakeLists.txt:75 (message): Building Tests requested, but Catch2 library not found.
这个警告意味着在你的 CMakeLists.txt 文件中,你请求构建测试程序,但是你没有找到 Catch2 库。Catch2 是一个流行的 C++ 单元测试框架,你需要在你的项目中安装这个库,或者在 CMakeLists.txt 文件中添加适当的查找和链接命令来使用该库。你可以在 Catch2 的官方网站上找到安装和使用指南。
-- Detected 64-bit platform -- UNIX: Configuring uninstall target -- UNIX: Created uninstall target -- UNIX: Using default system linker -- UNIX: Detected compiler: /usr/bin/cc -- Clang: Minimum version required is 7.0.0, found 14.0.0 - ok! -- Using mysql-config: /usr/bin/mysql_config -- Found MySQL library: /usr/lib/x86_64-linux-gnu/libmysqlclient.so -- Found MySQL headers: /usr/include/mysql -- Found MySQL executable: /usr/bin/mysql fatal: 不是 git 仓库(或者任何父目录):.git CMake Error at cmake/genrev.cmake:116 (string): string sub-command REGEX, mode MATCH needs at least 5 arguments total to command. Call Stack (most recent call first): CMakeLists.txt:83 (include) * TrinityCore revision : + (+ branch) * TrinityCore buildtype : RelWithDebInfo * Install core to : /home/wow/server3.5.5 * Install configs to : /home/wow/server/etc * Build world/auth : Yes (default) * Build with scripts : Yes (static) * Build map/vmap tools : Yes (default) * Build unit tests : No (default) * Build core w/PCH : Yes (default) * Build scripts w/PCH : Yes (default) * Show compile-warnings : No (default) * Use coreside debug : No (default) * Show source tree : Yes (hierarchical) * Use GIT revision hash : Yes (default) -- Found OpenSSL library: /usr/lib/x86_64-linux-gnu/libssl.so;/usr/lib/x86_64-linux-gnu/libcrypto.so -- Found OpenSSL headers: /usr/include CMake Error at cmake/macros/FindOpenSSL.cmake:579 (message): TrinityCore needs OpenSSL version 1.0 but found too new version 3.0.2. TrinityCore needs OpenSSL 1.0.x or 1.1.x to work properly. If you still have problems please install OpenSSL 1.0.x if you still have problems search on forum for TCE00022 Call Stack (most recent call first): dep/openssl/CMakeLists.txt:16 (find_package) -- Configuring incomplete, errors occurred! See also "/home/wow/TrinityCore/TrinityCore-TDB335.22061/build/CMakeFiles/CMakeOutput.log". See also "/home/wow/TrinityCore/TrinityCore-TDB335.22061/build/CMakeFiles/CMakeError.log".
这是一个 CMake 构建过程中的错误,可能是因为 OpenSSL 的版本太新了,而 TrinityCore 需要的是 OpenSSL 1.0.x 或 1.1.x 版本。你可以尝试安装 OpenSSL 1.0.x,或者在论坛上搜索 TCE00022 这个错误码,看看有没有其他解决方案。另外,也可以查看 CMake 的输出日志文件以获取更详细的错误信息。
阅读全文