Hello,<br><br>I have a little application which uses Qt 4. It compiles without problem on linux but the CMakeLists.txt file<br>i use under linux seems to not work on windows and i don&#39;t understand why. The CMakeLists.txt file I use<br>
is the following:<br><br><br>cmake_minimum_required(VERSION 2.6)<br> <br>project(iBusHelper)<br> <br>set(EXECUTABLE_OUTPUT_PATH bin/)<br> <br>set(MOC_HEADERS ./include/*.h)<br> <br>find_package(Qt4 REQUIRED)<br> <br>include(${QT_USE_FILE})<br>
 <br>include_directories(<br>  include<br>./<br>)<br><br>set(IBUSHELPER_MOC_SRC<br>  ./include/animationlawdockmainwindow.h<br>  ./include/errorsdockmainwindow.h<br>  ./include/errorsdock.h<br>  ./include/mainwindow.h<br>
  ./include/parametersdockmainwindow.h<br>)<br><br>set(IBUSHELPER_UI_FILES<br>  ./forms/animationlawdockmainwindow.ui<br>  ./forms/errorsdockmainwindow.ui<br>  ./forms/errorsdock.ui<br>  ./forms/mainwindow.ui<br>  ./forms/parametersdockmainwindow.ui<br>
)<br><br>set(IBUSHELPER_SRCS_CXX<br>  ./src/animationlawdockmainwindow.cpp<br>  ./src/errorsdockmainwindow.cpp<br>  ./src/errorsdock.cpp<br>  ./src/mainwindow.cpp<br>  ./src/parametersdockmainwindow.cpp<br>)<br><br>set(IBUSHELPER_RC <br>
  icons/resource.qrc<br>)<br><br>QT4_ADD_RESOURCES(IBUSHELPER_RC_SRCS ${IBUSHELPER_RC})<br>QT4_WRAP_UI(IBUSHELPER_SRCS_CXX ${IBUSHELPER_UI_FILES})<br>QT4_WRAP_CPP(IBUSHELPER_SRCS_CXX ${IBUSHELPER_MOC_SRC})<br><br><br>ADD_EXECUTABLE(iBusHelper ${IBUSHELPER_SRCS_CXX} ${IBUSHELPER_RC_SRCS} ./src/main.cpp)<br>
<br>TARGET_LINK_LIBRARIES(iBusHelper QtGui ${QT_LIBRARY})<br><br><br>The errors I get are this ones:<br><br>CMake Error at C:/CMake2.8/share/cmake-2.8/Modules/Qt4Macros.cmake:112 (FILE):<br>  file Internal CMake error when trying to open file:<br>
  C:/testQtCmake/include/moc_*.cxx_parameters for writing.<br>Call Stack (most recent call first):<br>  C:/CMake2.8/share/cmake-2.8/Modules/Qt4Macros.cmake:147 (QT4_CREATE_MOC_COMMAND)<br>  CMakeLists.txt:23 (QT4_WRAP_CPP)<br>
<br><br>CMake Error at C:/CMake2.8/share/cmake-2.8/Modules/Qt4Macros.cmake:112 (FILE):<br>  file Internal CMake error when trying to open file:<br>  C:/testQtCmake/include/moc_*.cxx_parameters for writing.<br>Call Stack (most recent call first):<br>
  C:/CMake2.8/share/cmake-2.8/Modules/Qt4Macros.cmake:147 (QT4_CREATE_MOC_COMMAND)<br>  CMakeLists.txt:23 (QT4_WRAP_CPP)<br><br><br>CMake Error at C:/CMake2.8/share/cmake-2.8/Modules/Qt4Macros.cmake:112 (FILE):<br>  file Internal CMake error when trying to open file:<br>
  C:/testQtCmake/include/moc_*.cxx_parameters for writing.<br>Call Stack (most recent call first):<br>  C:/CMake2.8/share/cmake-2.8/Modules/Qt4Macros.cmake:147 (QT4_CREATE_MOC_COMMAND)<br>  CMakeLists.txt:23 (QT4_WRAP_CPP)<br>
<br><br>CMake Error at C:/CMake2.8/share/cmake-2.8/Modules/Qt4Macros.cmake:112 (FILE):<br>  file Internal CMake error when trying to open file:<br>  C:/testQtCmake/include/moc_*.cxx_parameters for writing.<br>Call Stack (most recent call first):<br>
  C:/CMake2.8/share/cmake-2.8/Modules/Qt4Macros.cmake:147 (QT4_CREATE_MOC_COMMAND)<br>  CMakeLists.txt:23 (QT4_WRAP_CPP)<br><br><br>-- Configuring incomplete, errors occurred!<br><br>Does anyone know what&#39;s the problem ?? I use CMake 2.8 and Qt 4.6.1 with MinGW.<br>
<br>Thanks<br>