[prev in list] [next in list] [prev in thread] [next in thread]
List: kde-devel
Subject: Res: [OT] Error in cmake use
From: dantti85-dev () yahoo ! com ! br
Date: 2008-07-04 21:27:06
Message-ID: 212755.64890.qm () web32108 ! mail ! mud ! yahoo ! com
[Download RAW message or body]
[Attachment #2 (multipart/alternative)]
i'm pretty sure that you can fix that by adding this to the beginning of the \
cmakelists find_package(Qt4 REQUIRED)
include_directories( ${QT_INCLUDES} )
Daniel.
----- Mensagem original ----
De: Wagner Sales <wsales@gmail.com>
Para: kde-devel@kde.org
Enviadas: Sexta-feira, 4 de Julho de 2008 18:17:17
Assunto: [OT] Error in cmake use
Hi all,
Sorry, I know that's aren't the correct place to post this question. But I think here \
are the most experts users in this field :) I'm using CMake to configure my project \
with Qt4. The problem are if I don't use Qt XML module in project ( QDomElement, etc \
) all works fine. But, if I use, the following problem occurs:
.
.
.
/data/head/rc1/App/src/Entity.h:11:23: error: QDomElement: No such file or directory
.
.
.
Appears that's CMake ( 2.6 ) are not found the Qt XML includes.
My portion of CMakeLists.txt:
SET(rccs forms.qrc icons.qrc wizard.qrc)
QT4_ADD_RESOURCES(rccsrcs ${rccs})
QT4_WRAP_UI(uiheaders ${uis})
QT4_WRAP_CPP(mocsrcs ${qtheaders})
ADD_DEFINITIONS(-DQT_GUI_LIBS -DQT_CORE_LIB -DQT3_SUPPORT -DQT_XML_LIB -DQT_SHARED)
SET_SOURCE_FILES_PROPERTIES(${cpps} PROPERTIES
OBJECT_DEPENDS "${uiheaders}")
ADD_EXECUTABLE(app ${cpps} ${mocsrcs} ${rccsrcs})
TARGET_LINK_LIBRARIES( app
${QT_LIBRARIES}
)
Any help?
I'm searching to CMakeLists.txt in kde websvn to find some example, but yet without \
success.
Thks in advance,
Wagner Sales
Novos endereços, o Yahoo! que você conhece. Crie um email novo com a sua cara \
@ymail.com ou @rocketmail.com. http://br.new.mail.yahoo.com/addresses
[Attachment #5 (text/html)]
<html><head><style type="text/css"><!-- DIV {margin:0px;} \
--></style></head><body><div style="font-family:times new roman,new \
york,times,serif;font-size:12pt"><div>i'm pretty sure that you can fix that by adding \
this to the beginning of the cmakelists<br>find_package(Qt4 \
REQUIRED)<br><br></div><div style="font-family: times new roman,new york,times,serif; \
font-size: 12pt;">include_directories( ${QT_INCLUDES} \
)<br><br>Daniel.<br><br><div style="font-family: times new roman,new \
york,times,serif; font-size: 12pt;">----- Mensagem original ----<br>De: Wagner Sales \
<wsales@gmail.com><br>Para: kde-devel@kde.org<br>Enviadas: Sexta-feira, 4 de \
Julho de 2008 18:17:17<br>Assunto: [OT] Error in cmake use<br><br>Hi \
all,<br><br>Sorry, I know that's aren't the correct place to post this question. But \
I think here are the most experts users in this field :)<br>I'm using CMake to \
configure my project with Qt4. The problem are if I don't use Qt XML module in \
project ( QDomElement, etc ) all works fine.<br> But, if I use, the following problem \
occurs:<br>.<br>.<br>.<br>/data/head/rc1/App/src/Entity.h:11:23: error: QDomElement: \
No such file or directory<br>.<br>.<br>.<br>Appears that's CMake ( 2.6 ) are not \
found the Qt XML includes.<br> My portion of CMakeLists.txt:<br><br>SET(rccs \
forms.qrc icons.qrc wizard.qrc)<br>QT4_ADD_RESOURCES(rccsrcs \
${rccs})<br>QT4_WRAP_UI(uiheaders ${uis})<br>QT4_WRAP_CPP(mocsrcs \
${qtheaders})<br>ADD_DEFINITIONS(-DQT_GUI_LIBS -DQT_CORE_LIB -DQT3_SUPPORT \
-DQT_XML_LIB -DQT_SHARED)<br> SET_SOURCE_FILES_PROPERTIES(${cpps} \
PROPERTIES<br> \
\
OBJECT_DEPENDS "${uiheaders}")<br>ADD_EXECUTABLE(app ${cpps} ${mocsrcs} \
${rccsrcs})<br><br><br><br>TARGET_LINK_LIBRARIES( app<br> ${QT_LIBRARIES}<br> \
)<br><br>Any help?<br><br>I'm searching to CMakeLists.txt in kde websvn to find some \
example, but yet without success.<br><br>Thks in advance,<br><br>Wagner \
Sales<br><br><br><br> </div></div></div><br>
<hr size=1>Novos endereços, o Yahoo! que você conhece. <a \
href="http://br.rd.yahoo.com/mail/taglines/mail/*http://br.new.mail.yahoo.com/addresses">Crie \
um email novo</a> com a sua cara @ymail.com ou @rocketmail.com.</body></html>
>> Visit http://mail.kde.org/mailman/listinfo/kde-devel#unsub to unsubscribe <<
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic