[vtkusers] 64 Bit Projects
Dominik Szczerba
dominik at itis.ethz.ch
Mon May 30 07:39:00 EDT 2011
You captured it perfectly.
On Mon, May 30, 2011 at 1:36 PM, Alex Southern <mrapsouthern at gmail.com> wrote:
> Ok thanks for your quick replies.
>
> So to summarize.
>
> VS should be installed with 64bit compilers
> VTK should be compiled specifically for 64-bit using Cmake
> QT should also be built for 64-bit, if using.
> The individual project should then be built to target 64-bit systems using
> Cmake
>
> Have I missed anything?
>
> A.
>
>
> On 30.5.2011 14:30, Dominik Szczerba wrote:
>>
>> You should configure and build your own project using the same
>> settings as you configured and built VTK. Specifically, yes, you
>> should build your project for 64 bits using 64 bit build of VTK.
>> If you use FIND_PACKAGE from CMake that should be hopefully handled
>> automatically.
>>
>> On Mon, May 30, 2011 at 1:25 PM, Alex Southern<mrapsouthern at gmail.com>
>> wrote:
>>>
>>> Dominik,
>>>
>>> I just replied on list, but I had a second thought...
>>>
>>> when you say, "configuring your project with CMake"
>>>
>>> You are referring to the individual application I am intending to write
>>> and
>>> not the VTK installation?
>>>
>>> Should there be any change to the VTK installation? (I installed the
>>> 64-bit
>>> compiler AFTER installing VTK) .
>>>
>>> Also my CMAKE code for the project is below... if you could give me some
>>> pointers that would be appreciated.
>>>
>>> A.
>>> --------------------
>>> cmake_minimum_required(VERSION 2.8)
>>>
>>> PROJECT(WaveModellerVTK)
>>>
>>> FIND_PACKAGE(VTK)
>>> INCLUDE(${VTK_USE_FILE}) # include UseVTK.cmake
>>>
>>> FIND_PACKAGE(Qt4 REQUIRED)
>>> INCLUDE(${QT_USE_FILE}) # include UseQt4.cmake
>>>
>>> # support for out-of-source build
>>> INCLUDE_DIRECTORIES(
>>> ${CMAKE_CURRENT_BINARY_DIR}
>>> ${CMAKE_CURRENT_SOURCE_DIR}
>>> )
>>>
>>> # Set your files and resources here
>>> SET(WMSrcs main.cpp wavemodeller.cpp nodfile.cpp newproject.cpp
>>> mesher.cpp
>>> meshNode.cpp srcrecLoad.cpp nodetablemodel.cpp)
>>> SET(WMUI wavemodeller.ui newproject.ui)
>>> SET(WMqrc wavemodellericons.qrc)
>>> SET(WMHeaders wavemodeller.h nodFile.h newproject.h mesher.h meshNode.h
>>> srcrecLoad.h nodetablemodel.h)
>>>
>>> QT4_WRAP_UI(UISrcs ${WMUI})
>>> QT4_ADD_RESOURCES(UIico ${WMqrc})
>>> QT4_WRAP_CPP(MOCSrcs ${WMHeaders} )
>>>
>>>
>>> SOURCE_GROUP("Resources" FILES
>>> ${WMUI}
>>>
>>> )
>>>
>>> SOURCE_GROUP("Generated" FILES
>>> ${UISrcs}
>>> ${MOCSrcs}
>>> # ${RCS_SOURCES}
>>> )
>>>
>>>
>>> SET(GUI_TYPE WIN32)
>>>
>>> ADD_EXECUTABLE( WaveModellerVTK ${GUI_TYPE} ${WMSrcs} ${UIico} ${WMUI}
>>> ${MOCSrcs})
>>> TARGET_LINK_LIBRARIES( WaveModellerVTK QVTK )
>>>
>>>
>>>
>>> On 30.5.2011 14:14, Dominik Szczerba wrote:
>>>>
>>>> You need to chose the right (64 bit version in your case) of your
>>>> compiler when first configuring your project with CMake. You should
>>>> have installed 64 bit compiler support from your VS distribution.
>>>>
>>>> On Mon, May 30, 2011 at 1:11 PM, Alex Southern<mrapsouthern at gmail.com>
>>>> wrote:
>>>>>
>>>>> Hi,
>>>>>
>>>>> If I want to make a 64 bit project (on Win7 64 bit, VS 2008 Pro, with
>>>>> 64
>>>>> bit
>>>>> compiler installed) with VTK do I need to specifically compile the VTK
>>>>> libraries for this?
>>>>>
>>>>> If so how is this specified? in Cmake?
>>>>>
>>>>> Thanks
>>>>> Alex
>>>>> _______________________________________________
>>>>> Powered by www.kitware.com
>>>>>
>>>>> Visit other Kitware open-source projects at
>>>>> http://www.kitware.com/opensource/opensource.html
>>>>>
>>>>> Please keep messages on-topic and check the VTK FAQ at:
>>>>> http://www.vtk.org/Wiki/VTK_FAQ
>>>>>
>>>>> Follow this link to subscribe/unsubscribe:
>>>>> http://www.vtk.org/mailman/listinfo/vtkusers
>>>>>
>>>>>
>>>
>
>
More information about the vtkusers
mailing list