[vtkusers] Error building VTK 64-bit

Gib Bogle g.bogle at auckland.ac.nz
Fri Apr 22 19:28:55 EDT 2011


Hi David,

That change (just one occurrence) fixed that compile, but later I get:

[ 67%] Building CXX object Rendering/CMakeFiles/vtkRendering.dir/vtkWin32OpenGLR
enderWindow.cxx.obj
C:\VTK-src\Rendering\vtkWin32OpenGLRenderWindow.cxx: In member function 'void vt
kWin32OpenGLRenderWindow::InitializeApplication()':
C:\VTK-src\Rendering\vtkWin32OpenGLRenderWindow.cxx:719:78: error: 'GWL_HINSTANC
E' was not declared in this scope
C:\VTK-src\Rendering\vtkWin32OpenGLRenderWindow.cxx: In member function 'virtual
  void vtkWin32OpenGLRenderWindow::CreateAWindow()':
C:\VTK-src\Rendering\vtkWin32OpenGLRenderWindow.cxx:846:64: error: cast from 'vt
kWin32OpenGLRenderWindow*' to 'LONG' loses precision
mingw32-make[2]: *** [Rendering/CMakeFiles/vtkRendering.dir/vtkWin32OpenGLRender
Window.cxx.obj] Error 1
mingw32-make[1]: *** [Rendering/CMakeFiles/vtkRendering.dir/all] Error 2
mingw32-make: *** [all] Error 2

What are the common ways to build 64-bit VTK?

Gib

On 23/04/2011 10:51 a.m., David Gobbi wrote:
> Hi Gib,
>
> You can probably do a quick fix as follows.  In the file
> Rendering/vtkFreeTypeUtilities.cxx, every time you see
> reinterpret_cast<unsigned long>  replace it with
> reinterpret_cast<size_t>.
>
> People do 64-bit builds of VTK all the time, just not with
> MinGW-64.  You are charting new territory.
>
>   - David
>
>
> On Fri, Apr 22, 2011 at 3:58 PM, Gib Bogle<g.bogle at auckland.ac.nz>  wrote:
>> I don't know what git master is.  What is the recommended way to build
>> 64-bit VTK?
>>
>> On 22/04/2011 11:56 p.m., David Partyka wrote:
>>>
>>> Have you tried using git master with that version of MinGW? We only
>>> actively
>>> test 32 bit MinGW currently.
>>>
>>> On Fri, Apr 22, 2011 at 4:14 AM, wayne5ning<wayne5ning at gmail.com
>>> <mailto:wayne5ning at gmail.com>>  wrote:
>>>
>>>     It's OK for me to build VTK 64-bit on my machine "Windows 7 64-bit
>>> Ultimate".
>>>     I don't know if it works for MinGW. Maybe VTK 5.6.0 doesn't support the
>>>     version of MinGW64-4.5. You may try an older version of MingGW.
>>>     Hope it works.



More information about the vtkusers mailing list