What is the primary user of a mingw compiler system trying to achieve?<br><br>Somebody trying to build unix-y stuff for Windows?<br>Or somebody trying to build unix-y stuff to still be unix-y in an MSYS shell environment?<br>
<br>Because the answer is ambiguous, there is no right answer. Therefore, we&#39;ve chosen one... which in this particular case is not yielding the correct result.<br><br>Hopefully, the CMAKE_SHARED_LIBRARY_PREFIX can be set for VTK, and you can get the result you&#39;re looking for.<br>
<br><br>HTH,<br>David<br><br><br><div class="gmail_quote">On Fri, Jul 30, 2010 at 2:19 PM, David Cole <span dir="ltr">&lt;<a href="mailto:david.cole@kitware.com">david.cole@kitware.com</a>&gt;</span> wrote:<br><blockquote class="gmail_quote" style="margin: 0pt 0pt 0pt 0.8ex; border-left: 1px solid rgb(204, 204, 204); padding-left: 1ex;">
Start here:<br><a href="http://cmake.org/cmake/help/cmake-2-8-docs.html#variable:CMAKE_SHARED_LIBRARY_PREFIX" target="_blank">http://cmake.org/cmake/help/cmake-2-8-docs.html#variable:CMAKE_SHARED_LIBRARY_PREFIX</a><div><div>
</div><div class="h5"><br><br><br><div class="gmail_quote">
On Fri, Jul 30, 2010 at 1:54 PM, Jim Peterson <span dir="ltr">&lt;<a href="mailto:jimcp@cox.net" target="_blank">jimcp@cox.net</a>&gt;</span> wrote:<br><blockquote class="gmail_quote" style="margin: 0pt 0pt 0pt 0.8ex; border-left: 1px solid rgb(204, 204, 204); padding-left: 1ex;">

David,<br>
IMHOP, the naming of the java DLL is dictated by the java behavior on the platform, not the compiler in use. Static libraries can be named with the lib prefix according to the compiler requirements, but runtime libraries (on windows DLLs) need to be named according to the runtime users requirements. also, it appears that the internal logic within the VTK Java wrappers expects to load the shared implementation libraries without the lib prefix.<br>


<br>
I will see if I can get the visual studio compile put together, but my strong suspicion is the output from the VS shared libraries and wrappers is a suite of DLL&#39;s without the lib prefix, and therefore compatible with the Java runtime expectations.<br>


<br>
meanwhile, can you let me know which modules establish target library names used in the link.txt and build.make outputs? or some point of reference to get familiar with the cmake structure that results in the generation of the sets of make files? I will see if I can get the files generated with my impression of correct DLL names.   <br>


Thanks,<br>
Jim<br>
<br>
David Cole wrote:<br>
<blockquote class="gmail_quote" style="margin: 0pt 0pt 0pt 0.8ex; border-left: 1px solid rgb(204, 204, 204); padding-left: 1ex;"><div>
I could be wrong... I&#39;m not a huge mingw user, but I think this is the expected library naming for a mingw build.<br>
<br>
If so, then the VTK java wrapping code is just not going to work on mingw as it stands now. I suspect there are few, if any, users of java wrappers using a mingw build of VTK. If there are, they must be patching it somehow...<br>


<br>
The java wrappers in VTK are the least used (of python, tcl and java), but I do know that they work with Visual Studio builds of VTK. Maybe you could try with a Visual Studio Express build of java-wrapped VTK?<br>
<br>
Or perhaps other VTK-on-mingw users could chime in here with their own advice.<br>
<br>
Either way, I do not think 10969 is a CMake bug. I&#39;m going to move it to the VTK project. If I am wrong, and somebody else convinces me otherwise, I&#39;ll be happy to move it back later.<br>
<br>
<br>
Hope this helps,<br>
David<br>
<br>
<br>
Are there any others<br></div><div><div></div><div>
On Fri, Jul 30, 2010 at 9:23 AM, Jim Peterson &lt;<a href="mailto:jimcp@cox.net" target="_blank">jimcp@cox.net</a> &lt;mailto:<a href="mailto:jimcp@cox.net" target="_blank">jimcp@cox.net</a>&gt;&gt; wrote:<br>
<br>
    David,<br>
<br>
    I am new to this list and vtk, One point I have noticed is that I<br>
    have been unable to correctly generate the Java wrappers for VTK<br>
    using cmake and cmake-gui for the windows hosted jvm. I have<br>
    opened a bug tracker incident<br>
    <a href="http://public.kitware.com/Bug/view.php?id=10969" target="_blank">http://public.kitware.com/Bug/view.php?id=10969</a> which is currently<br>
    unassigned. The nature of the problem is the java test programs<br>
    that use the java statement:<br>
    System.loadLibrary(&quot;vtkCommonJava&quot;);<br>
    fails on my Windows machine with unable to load vtkCommonJava.dll.<br>
    the superficial reason for this appears to be that the generated<br>
    make file is creating a dll named libvtkCommonJava.dll. The<br>
    windows system specific behavior when processing the loadLibrary<br>
    command only appends dll, it does not prepend lib to the name<br>
    specified.<br>
    This naming behavior appears to be true for all shared libraries,<br>
    so simply renaming libvtkCommonJava.dll to vtkCommonJava.dll<br>
    results in a failure to load vtkCommon.dll during the vtk Java dll<br>
    initialization.<br>
<br>
    I am not completely versed in the specifications for cmake, if<br>
    there is some option that can effect this behavior and correct the<br>
    shared library naming rules I would be happy to use it<br>
<br>
    Thanks for your patience with me as I learn this tool,<br>
    Jim Peterson<br>
<br>
<br>
</div></div></blockquote>
<br>
</blockquote></div><br>
</div></div></blockquote></div><br>