[vtkusers] Compiling VTK in Cygwin with -mno-cygwin

William A. Hoffman billlist at nycap.rr.com
Fri Aug 6 09:23:23 EDT 2004


The problem is that cmake is reporting cygwin unix as the build environment.
One thing you could try is to run the WINDOWS CMakeSetup and put the cygwin
compilers in your PATH when you run it.   Then select Unix Makefiles as the
generator.   Then add the -mno-cygwin flags.   Then it would be closer to 
the mingw compiler, and stuff should work. 

-Bill


At 08:21 AM 8/6/2004, Matt Valerio wrote:
>Hello all,
>
>I'm trying to get a mingw32 version of VTK compiled in Cygwin using the -wno-cygwin option.  I can get both static and shared library files from the VTK-4.2-LatestRelease sources under normal Cygwin operations, but when I add the -wno-cygwin option to get mingw32 libraries, the build breaks.
>
>In ccmake I've changed the following options:
>BUILD_SHARED_LIBS=ON
>CMAKE_CXX_FLAGS=-mno-cygwin
>CMAKE_C_FLAGS=-mno-cygwin
>CMAKE_SHARED_LINKER_FLAGS=-mno-cygwin
>CMAKE_USE_PTHREADS=OFF
>CMAKE_USE_WIN32_THREADS=ON
>
>Any suggestions?  If I turn off pthread usage and turn on win32 threads, should I still keep CMAKE_THREAD_LIBS=-lpthread?
>
>After I type make, it gets partway through the build and then gives me this, along with a lot of other errors:
>Building object file builds/unix/ftsystem.o...
>/home/cavale/VTK/Utilities/freetype/builds/unix/ftsystem.c:33:22: sys/mman.h: No such file or directory
>
>Any help would be greatly appreciated!
>Matt
>
>
>_______________________________________________
>This is the private VTK discussion list. Please keep messages on-topic. Check the FAQ at: <http://public.kitware.com/cgi-bin/vtkfaq>
>Follow this link to subscribe/unsubscribe:
>http://www.vtk.org/mailman/listinfo/vtkusers




More information about the vtkusers mailing list