<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<meta content="text/html; charset=ISO-8859-1"
http-equiv="Content-Type">
</head>
<body text="#000000" bgcolor="#ffffff">
Don't use * (filename globs) - write out each individual filename for
MOC_HEADERS<br>
(although it looks like you're not using that variable? not sure what
exactly is going on here)<br>
<br>
If that doesn't help, let us know.<br>
<br>
Ryan<br>
<br>
On 05/17/2010 03:20 PM, n0p n0p wrote:
<blockquote
cite="mid:AANLkTim_yLpSPrsWBGgB8QRr7Vf1gSJ0hhK0qAeZQp3T@mail.gmail.com"
type="cite">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'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's the problem ?? I use CMake 2.8 and Qt 4.6.1
with MinGW.<br>
<br>
Thanks<br>
<pre wrap="">
<fieldset class="mimeAttachmentHeader"></fieldset>
_______________________________________________
Powered by <a class="moz-txt-link-abbreviated" href="http://www.kitware.com">www.kitware.com</a>
Visit other Kitware open-source projects at <a class="moz-txt-link-freetext" href="http://www.kitware.com/opensource/opensource.html">http://www.kitware.com/opensource/opensource.html</a>
Please keep messages on-topic and check the CMake FAQ at: <a class="moz-txt-link-freetext" href="http://www.cmake.org/Wiki/CMake_FAQ">http://www.cmake.org/Wiki/CMake_FAQ</a>
Follow this link to subscribe/unsubscribe:
<a class="moz-txt-link-freetext" href="http://www.cmake.org/mailman/listinfo/cmake">http://www.cmake.org/mailman/listinfo/cmake</a></pre>
</blockquote>
<br>
<pre class="moz-signature" cols="72">--
Ryan Pavlik
HCI Graduate Student
Virtual Reality Applications Center
Iowa State University
<a class="moz-txt-link-abbreviated" href="mailto:rpavlik@iastate.edu">rpavlik@iastate.edu</a>
<a class="moz-txt-link-freetext" href="http://academic.cleardefinition.com">http://academic.cleardefinition.com</a>
Internal VRAC/HCI Site: <a class="moz-txt-link-freetext" href="http://tinyurl.com/rpavlik">http://tinyurl.com/rpavlik</a></pre>
</body>
</html>