[CMake] Win32 shared lib names incorrect for Java Wrapper using Mingw32
Jim Peterson
jimcp at cox.net
Wed Jul 28 19:44:06 EDT 2010
All,
I am having a problem generating the Java wrappers for VTK 5.6.0 using
CMAKE 2.8.2. The problem is the shared libraries are all prefixed with
"lib" (the unix style specification), even though I am using WinXP. the
System.loadLibrary("vtkCommonJava") which should be portable between
JVM's running on unix and windows machines generates a name of
"vtkCommonJava.dll" on windows platforms and no such library is created
by the Java wrapper build. the names for both the java wrappers and the
required shared libraries are all prefixed with "lib".
I found a bool flag in cmLocalGenerator.h called IgnoreLibPrefix which
sounds like it might be the required indicator, and I can see where when
the cmGlobalMingWMakefileGenerator.CXX is used it is set to True, but I
cannot find any test for the value, nor exactly where the target library
name is actually set.
Does anyone have a workaround or correction to correctly generate the
windows DLL names in VTK?
thanks in advance,
Jim Peterson
More information about the CMake
mailing list