Very nasty problem with cmake

I have a problem with cmake on windows. I have kde libs installed.

when i try to compile my project with cmake. it rises again and again.

Found Qt-Version 4.7.0 (using C:/Qt/2010.05/qt/bin/qmake.exe) CMake Error at c:/Program Files/KDE/share/apps/cmake/modules/FindPackageHandleStandardArgs.cmake:198 (MESSAGE): Did not find automoc4 (Automoc4Config.cmake, part of kdesupport). (missing: AUTOMOC4_EXECUTABLE) Call Stack (most recent call first): c:/Program Files/KDE/share/apps/cmake/modules/FindAutomoc4.cmake:56 (find_package_handle_standard_args) c:/Program Files/KDE/share/apps/cmake/modules/FindKDE4Internal.cmake:402 (find_package) C:/Program Files/CMake 2.8/share/cmake-2.8/Modules/FindKDE4.cmake:95 (FIND_PACKAGE) CMakeLists.txt:96 (find_package) Configuring incomplete, errors occurred! 

Well, I searched for this problem on the net. and I got the automoc4 file that was missing using kde-win-installer by default. So I downloaded the files and ran cmake for automoc4 and got the automoc4.exe file, which I placed in the% KDE_INSTALL% / bin folder. But good luck was not with me. And again, my favorite mistake is triggered.

Help me with this!

+4
source share
2 answers

The problem is resolved thanks to the patrick command and kde-windows

download the following files from this url

then open cmake-gui, select the view source in the downloaded folder and create the source in some folder.

create cmake, open cmd and go to the build folder and type mingw-make.

U, then get automoc4.exe. 1. put it in% KDE_INSTALL% \ bin. 2. Then put Automoc4Config.cmake, Automoc4.files.in and Automoc4Version.cmake in% KDE_INSTALL% \ lib \ automoc4.

Now try it now.

+2
source

From what I see, it seems that CMake cannot find automoc4.

To make CMake find excecutable, add the% KDE_INSTALL% / bin folder to the PATH environment variable. There may be a better way to fix this.

Maybe you should take a look at Automoc4Confid.cmake to see where it is looking for a thing. You should find this in the modules folder under the CMake folder

0
source

Source: https://habr.com/ru/post/1344548/


All Articles