<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>&nbsp;# ------------------------------------------------------------------------------
<br>&nbsp; &nbsp;# &nbsp;Qt 4 Section
<br>&nbsp; &nbsp;# ------------------------------------------------------------------------------
<br>&nbsp; &nbsp;# by default only QtCore and QtGui modules are enabled
<br>&nbsp; &nbsp;# other modules must be enabled like this: &nbsp;
<br>&nbsp; &nbsp;IF (WIN32)
<br>&nbsp; &nbsp; &nbsp; &nbsp;SET (QT_USE_QTMAIN TRUE)
<br>&nbsp; &nbsp;ENDIF (WIN32)
<br><br>&nbsp; &nbsp;# this command finds Qt4 libraries and sets all required variables
<br>&nbsp; &nbsp;# note that it's Qt4, not QT4 or qt4
<br>&nbsp; &nbsp;FIND_PACKAGE( Qt4 REQUIRED )
<br>&nbsp; &nbsp;# add some useful macros and variables
<br>&nbsp; &nbsp;# (QT_USE_FILE is a variable defined by FIND_PACKAGE( Qt4 ) that 
<br>&nbsp; &nbsp;# contains a path to CMake script)
<br>&nbsp; &nbsp;INCLUDE( ${QT_USE_FILE} )
<br><br># Set some Win32 Specific Settings
<br>IF(WIN32)
<br>&nbsp;SET(GUI_TYPE WIN32)
<br>ENDIF(WIN32)
<br><br><br>add_executable (MyProgram ${GUI_TYPE} &nbsp;${SRCS})
<br>TARGET_LINK_LIBRARIES(MyProgram ${QT_LIBRARIES})
<br><br>Cheers
<br>___________________________________________________________
<br>Mike Jackson &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;www.bluequartz.net
<br>Principal Software Engineer &nbsp; &nbsp; &nbsp; <a href="http://vtk.1045678.n5.nabble.com/user/SendEmail.jtp?type=node&amp;node=4343649&amp;i=0&amp;by-user=t" target="_top" rel="nofollow">[hidden email]</a><br>BlueQuartz Software &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; 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>&gt; Date: Fri, 6 May 2011 12:41:15 +0200<br>&gt; Subject: Re: [Paraview] Building ParaView on Windows XP<br>&gt; From: mheuegger@gmail.com<br>&gt; To: nataliehapp@hotmail.com<br>&gt; CC: paraview@paraview.org<br>&gt; <br>&gt; Hello!<br>&gt; <br>&gt; On Fri, May 6, 2011 at 9:32 AM, Natalie Happenhofer<br>&gt; &lt;nataliehapp@hotmail.com&gt; wrote:<br>&gt; &gt;build ParaView 3.8.0-RC2 on Visual C++ Express 9 (2008).<br>&gt; &gt;<br>&gt; &gt; error LNK2019: Undefined symbol "_WinMain@16" in function<br>&gt; &gt; "___tmainCRTStartup".<br>&gt; &gt;<br>&gt; <br>&gt; There is a similar discussion on the vtk-list:<br>&gt; &lt;http://vtk.1045678.n5.nabble.com/QT-VKT-ITK-VS2008-td4343251.html&gt;<br>&gt; and  especially:<br>&gt; &lt;http://vtk.1045678.n5.nabble.com/QT-VKT-ITK-VS2008-td4343251.html#a4343497&gt;<br>&gt; <br>&gt; maybe this helps.<br>&gt; <br>&gt; kind regards<br>&gt; <br>&gt; mirko<br>&gt; <br>&gt; -- <br>&gt; Real programmers don't document; if it was<br>&gt; hard to write, it should be hard to understand.<br>                                               </body>
</html>