[vtkusers] Compiling VTK in Cygwin with -mno-cygwin
Matt Valerio
m-valerio at onu.edu
Fri Aug 6 08:21:18 EDT 2004
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
More information about the vtkusers
mailing list