我一直在使用用 Qt 编译和链接的 OpenCV 和 Marble 库。每次我这样做时,我都会在运行 cmake 来制作这些库时遇到问题。qt cmake 文件中到其他 qt cmake 文件的路径似乎不正确。我收到如下错误:
CMake Error at CMakeLists.txt:67 (find_package):
By not providing "FindQt5DBus.cmake" in CMAKE_MODULE_PATH this project has
asked CMake to find a package configuration file provided by "Qt5DBus", but
CMake did not find one.
Could not find a package configuration file provided by "Qt5DBus" with any
of the following names:
Qt5DBusConfig.cmake
qt5dbus-config.cmake
Add the installation prefix of "Qt5DBus" to CMAKE_PREFIX_PATH or set
"Qt5DBus_DIR" to a directory containing one of the above files. If
"Qt5DBus" provides a separate development package or SDK, be sure it has
been installed.
我可以通过运行在 Ubuntu 中解决这个问题
sudo apt-get install qt5-default
这在 Ubuntu 中很好,但现在我正在尝试在 mac 和 windows 上编译这些库。任何人都知道获得所有这些路径都正确的Qt的方法吗?在 windows 和 mac 上尝试了安装程序,在 mac 上尝试了 brew。我真的没有时间一一修复这些错误