CMake Error at sim/CMakeLists.txt:45 (find_package):
By not providing "FindQt5Gamepad.cmake" in CMAKE_MODULE_PATH this project
has asked CMake to find a package configuration file provided by
"Qt5Gamepad", but CMake did not find one.
Could not find a package configuration file provided by "Qt5Gamepad" with
any of the following names:
Qt5GamepadConfig.cmake
qt5gamepad-config.cmake
Add the installation prefix of "Qt5Gamepad" to CMAKE_PREFIX_PATH or set
"Qt5Gamepad_DIR" to a directory containing one of the above files. If
"Qt5Gamepad" provides a separate development package or SDK, be sure it has
been installed.
-- Configuring incomplete, errors occurred!
如上问题,解决方法是:
进入Cheetah-software-master/srcipts,打开find_qt_path.sh,改为:
#/bin/bash
#QT_VER="$(ls ~/Qt/ | grep 5 -m1)"
printf "/opt/Qt5.12.10/5.12.10/gcc_64/"//这个是你的Qt路径
这篇博客介绍了在CMake构建过程中遇到找不到Qt5Gamepad包的错误,原因是缺少相应的配置文件。解决方案是在项目的scripts目录下修改find_qt_path.sh脚本,指定Qt的正确安装路径。通过提供Qt5Gamepad的安装位置,可以解决CMake配置不完整的问题。

3331

被折叠的 条评论
为什么被折叠?



