Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我正在尝试为 qgis 构建草插件 ..
当我尝试使用 cmake .. 配置后出现以下错误..
CMake Error at CMakeLists.txt:78 (QT4_WRAP_UI): Unknown CMake command "QT4_WRAP_UI".
我已经安装了 Qt4、PyQt 和 python2.6 ..
谁能帮我弄清楚这里出了什么问题?
谢谢。
您需要从 CMake 导入 Qt4 宏。像这样的一行应该做到这一点:
find_package(Qt4)
除了定位包之外,您还应该包含 ${QT_USE_FILE},即:
find_package(Qt4) include(${QT_USE_FILE})