[vtkusers] 32 bit compiling
James Labiak
jim at jslengineeringsoftware.com
Thu Mar 26 13:54:48 EDT 2015
Hi,
Based on the message below, I tried running CMake with all default
settings except that I use Java wrapper. Then tried to build in VS 2013
64 bit except that it is set for 32 bit in the configuration manager
since I need a 32 bit Java program at the end of the day. This also
caused a lot of errors in VS. Separately, would the VTK dlls be 32 or 64
bit? They are in the 64 bit Win7 Program Files folder (C:\Program
Files\VTK\natives-Windows-AMD64) when compiling the normal way of 64 bit.
Thanks,
Jim
------------------------------
Message: 2
Date: Thu, 26 Mar 2015 16:37:28 +0100
From: Karsten Tausche<karsten.tausche at student.hpi.de>
To:<vtkusers at vtk.org>
Subject: Re: [vtkusers] 32 bit compiling
Message-ID:<551427B8.20808 at student.hpi.de>
Content-Type: text/plain; charset="windows-1252"
Hi,
instead of changing the platform in Visual Studio, you need to setup
your CMake build with a generator for a 64bit compiler. You can see your
current generator next to the Configure and Generate buttons in the
CMake gui. To change it, you need to rebuild the whole project (delete
cache, configure, build; or use a second build tree instead).
When configuring a clean build tree, you should get a dialog like in the
attached image. Make sure to select a 64 compiler there.
Hope that helps,
Karsten
On 3/26/2015 11:02 AM, James Labiak wrote:
> Hello all,
> I have successfully been using VTK in 64 bit mode. Now, I need to
> compile a Java program in 32 bit. I started with changing options in
> CMake, but must be doing something wrong. Visual studio is set to 32
> bit release mode, but gives lots of errors. Does anyone have a a list
> of the CMake settings for 32 bit or suggestions? Attached are images
> of my current settings.
> Thanks in advance,
> Jim
>
>
>
>
>
>
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://public.kitware.com/pipermail/vtkusers/attachments/20150326/931ed6a6/attachment.html>
More information about the vtkusers
mailing list