我已经安装了KDE库。我正在尝试编译kcachegrind。但是会出现此错误消息:
CMake Error at C:/Program Files (x86)/CMake 2.8/share/cmake-2.8/Modules/FindPackageHandleStandardArgs.cmake:108 (message):
Did not find automoc4 (Automoc4Config.cmake, install
git://anongit.kde.org/automoc). (missing: AUTOMOC4_EXECUTABLE)
Call Stack (most recent call first):
C:/Program Files (x86)/CMake 2.8/share/cmake-2.8/Modules/FindPackageHandleStandardArgs.cmake:315 (_FPHSA_FAILURE_MESSAGE)
C:/ProgramData/KDE/share/apps/cmake/modules/FindAutomoc4.cmake:49 (find_package_handle_standard_args)
C:/ProgramData/KDE/share/apps/cmake/modules/FindKDE4Internal.cmake:423 (find_package)
C:/Program Files (x86)/CMake 2.8/share/cmake-2.8/Modules/FindKDE4.cmake:95 (find_package)
CMakeLists.txt:5 (find_package)
我发现了post。看来他有同样的问题。我从this link下载automoc4-0.9.88,用cmake生成make文件,并尝试用MinGW编译它。但是,我收到以下错误消息:
): undefined reference to `__imp__Z4endlR11QTextStream'
CMakeFiles\automoc4.dir/objects.a(kde4automoc.obj):kde4automoc.cpp:(.text+0x6b2d
): undefined reference to `__imp__ZN5QFile6removeERK7QString'
CMakeFiles\automoc4.dir/objects.a(kde4automoc.obj):kde4automoc.cpp:(.text+0x6b54
): undefined reference to `__imp__ZNK9QIODevice11errorStringEv'
CMakeFiles\automoc4.dir/objects.a(kde4automoc.obj):kde4automoc.cpp:(.text+0x6b79
): undefined reference to `__imp__ZN11QTextStreamlsEPKc'
CMakeFiles\automoc4.dir/objects.a(kde4automoc.obj):kde4automoc.cpp:(.text+0x6b90
): undefined reference to `__imp__ZN11QTextStreamlsERK7QString'
CMakeFiles\automoc4.dir/objects.a(kde4automoc.obj):kde4automoc.cpp:(.text+0x6ba3
): undefined reference to `__imp__ZN11QTextStreamlsEPKc'
这些是关于什么的?有人可以帮忙吗?
答案 0 :(得分:0)
看起来链接到您的程序的库列表中缺少一些Qt组件。尝试调用make VERBOSE=1
并在此处复制粘贴确切的链接器调用行。