[vtkusers] vtk 5.1 building with mingw
David Cole
david.cole at kitware.com
Thu Oct 27 09:52:30 EDT 2005
The pre-built CMake binary for Windows will allow you to compile and
test using mingw. The trick is to run cmake from an MSYS prompt (a
"mingw environment") and specify -G"Unix Makefiles".
So....
If I'm in a VTK source directory, running this from an MSYS prompt
should work to produce a binary tree in a subdir called "bin-mingw":
mkdir bin-mingw
cd bin-mingw
cmake -G"Unix Makefiles" ..
Alternatively, you can launch CMakeSetup from that environment and
choose "Unix Makefiles" as your generator in there and point it to your
desired source and binary directories. The trick is simply launching
CMake or CMakeSetup from the correct environment.
How are you trying to build CMake when you get the following errors?
With "./bootstrap"?
(Also, search the VTK archives for mingw and my name... I remember
posting other messages with more details back in the March to May sort
of time frame this year.)
Hope this helps,
David
Srinivasan, Rajagopalan (GE Healthcare) wrote:
>can someone give me some hints on how get a mingw build of vtk. i cannot get cmake built because of
>
>cmSystemTools.o(.text+0x2cdb):cmSystemTools.cxx: undefined reference to `cmWin32ProcessExecution::~cmWin32ProcessExecution()'
>cmSystemTools.o(.text+0x2d08):cmSystemTools.cxx: undefined reference to `cmWin32ProcessExecution::~cmWin32ProcessExecution()'
>ProcessUNIX.o(.text+0x1f2):ProcessUNIX.c: undefined reference to `cmsysEncodedWriteArrayProcessFwd9x'
>collect2: ld returned 1 exit status
>make: *** [cmake] Error 1
>
>of course, if i can have a prebuilt binary that might allow me to compile and test using mingw that will be wonderful as well.
>
>regards
>srini
>
>
>
>DISCLAIMER:
>This e-mail and any attachment is intended only for the exclusive and confidential use of the addressee(s). If you are not the intended recipient, any use, interference with, disclosure or copying of this material is unauthorised and prohibited. If you have received this message in error, please notify the sender by return e-mail immediately and delete the message from your computer without making any copies. Please see http://www.ge.com.au/help/email_privacy_policy.html for information about our privacy practices.
>_______________________________________________
>This is the private VTK discussion list.
>Please keep messages on-topic. Check the 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