<html>
<head>
<style><!--
.hmmessage P
{
margin:0px;
padding:0px
}
body.hmmessage
{
font-size: 10pt;
font-family:Tahoma
}
--></style>
</head>
<body class='hmmessage'>
This really seems to solve my problem if I would find the part in the CMakeList.txt where this reply points to:<br><br>I<i>n your CMakeLists.txt file you need the following set of commands to properly find Qt4 and set it up for use:
<br><br> # ------------------------------------------------------------------------------
<br> # Qt 4 Section
<br> # ------------------------------------------------------------------------------
<br> # by default only QtCore and QtGui modules are enabled
<br> # other modules must be enabled like this:
<br> IF (WIN32)
<br> SET (QT_USE_QTMAIN TRUE)
<br> ENDIF (WIN32)
<br><br> # this command finds Qt4 libraries and sets all required variables
<br> # note that it's Qt4, not QT4 or qt4
<br> FIND_PACKAGE( Qt4 REQUIRED )
<br> # add some useful macros and variables
<br> # (QT_USE_FILE is a variable defined by FIND_PACKAGE( Qt4 ) that
<br> # contains a path to CMake script)
<br> INCLUDE( ${QT_USE_FILE} )
<br><br># Set some Win32 Specific Settings
<br>IF(WIN32)
<br> SET(GUI_TYPE WIN32)
<br>ENDIF(WIN32)
<br><br><br>add_executable (MyProgram ${GUI_TYPE} ${SRCS})
<br>TARGET_LINK_LIBRARIES(MyProgram ${QT_LIBRARIES})
<br><br>Cheers
<br>___________________________________________________________
<br>Mike Jackson www.bluequartz.net
<br>Principal Software Engineer <a href="http://vtk.1045678.n5.nabble.com/user/SendEmail.jtp?type=node&node=4343649&i=0&by-user=t" target="_top" rel="nofollow">[hidden email]</a><br>BlueQuartz Software Dayton, Ohio
<br><br></i><br>There are so many CMakeList.txt files in the source-code. I would have thought that somethin like this would be in the top CMakeList.txt (in ../ParaView-3.8.0-RC2) but in this file I do not find a call "Target_link_libraries" or "add_executable" - somewhere those calls must be?!<br><br>Thx,<br>Natalie<br><i><br></i>
<br><br>> Date: Fri, 6 May 2011 12:41:15 +0200<br>> Subject: Re: [Paraview] Building ParaView on Windows XP<br>> From: mheuegger@gmail.com<br>> To: nataliehapp@hotmail.com<br>> CC: paraview@paraview.org<br>> <br>> Hello!<br>> <br>> On Fri, May 6, 2011 at 9:32 AM, Natalie Happenhofer<br>> <nataliehapp@hotmail.com> wrote:<br>> >build ParaView 3.8.0-RC2 on Visual C++ Express 9 (2008).<br>> ><br>> > error LNK2019: Undefined symbol "_WinMain@16" in function<br>> > "___tmainCRTStartup".<br>> ><br>> <br>> There is a similar discussion on the vtk-list:<br>> <http://vtk.1045678.n5.nabble.com/QT-VKT-ITK-VS2008-td4343251.html><br>> and especially:<br>> <http://vtk.1045678.n5.nabble.com/QT-VKT-ITK-VS2008-td4343251.html#a4343497><br>> <br>> maybe this helps.<br>> <br>> kind regards<br>> <br>> mirko<br>> <br>> -- <br>> Real programmers don't document; if it was<br>> hard to write, it should be hard to understand.<br> </body>
</html>