<html>
<head>
<meta content="text/html; charset=utf-8" http-equiv="Content-Type">
</head>
<body bgcolor="#FFFFFF" text="#000000">
I used dependency walker and couldn't find any missing MS dlls on
the test machine. Finally I remembered that I already had multiple
versions of MSVC redistributable packages installed on the test
machine. The original errors were that VTK dlls couldn't be found,
so I changed my installer program program to copy the VTK dlls from
the C:\vtk_build\bin\Release directory to the Java application
directory, and now everything works on the test machine (MSVC
compiling is set to "release", and BUILD_SHARED_LIBS is ON). I think
that this isn't violating any license terms, as I will just require
that an MSVC redistributable package be installed prior to my Java
program. Then I don't have to worry about individual MS dlls.<br>
Thanks again for the help,<br>
Jim<br>
<br>
<div class="moz-cite-prefix">On 3/17/2015 11:25 AM, Sebastien
Jourdain wrote:<br>
</div>
<blockquote
cite="mid:CABObKxchifVYqSGYZioHA=9h_LN9Z=ncJvsdzJuq9dxLwHy=UA@mail.gmail.com"
type="cite">
<div dir="ltr"> BUILD_SHARED_LIBS must be ON.<br>
<div><br>
</div>
<div>But I think the missing part is providing the MSVC runtime
dll. </div>
<div>If you use dependency walker, you will notice which dll is
missing and should be provided.</div>
<div><br>
</div>
<div>Hope that bring some light,</div>
<div><br>
</div>
<div>Seb</div>
</div>
<div class="gmail_extra"><br>
<div class="gmail_quote">On Tue, Mar 17, 2015 at 9:18 AM, James
Labiak <span dir="ltr"><<a moz-do-not-send="true"
href="mailto:jim@jslengineeringsoftware.com"
target="_blank">jim@jslengineeringsoftware.com</a>></span>
wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0
.8ex;border-left:1px #ccc solid;padding-left:1ex">
<div bgcolor="#FFFFFF" text="#000000"> <font size="-1">Hi
David,<br>
I cut the VTK dlls out of my Java program. <br>
First I tried just recompiling VTK with MSVC in release
mode; it was in debug mode. This caused the Java program
to not display errors about not finding the VTK dlls,
but the VTK portion of the program just got stuck.
Second, I tried changing CMake BUILD_SHARED_LIBS to OFF
(it was ON), then recompiled MSVC in release mode. MSVC
then gave a bunch of errors like below. I'd like to go
through the compile process instead of using the
dashboard if possible, unless I'm misunderstanding
something.<br>
Thanks,<br>
Jim<br>
<br>
Error 26 error C2375:
'vtkJavaGetPointerFromObject' : redefinition; different
linkage
C:\vtk\vtk-source\Wrapping\Java\vtkJavaUtil.cxx 48
1 vtkWrappingJava<br>
Error 27 error C2375:
'vtkJavaMakeJArrayOfDoubleFromDouble' : redefinition;
different linkage
C:\vtk\vtk-source\Wrapping\Java\vtkJavaUtil.cxx 53
1 vtkWrappingJava<br>
Error 28 error C2375:
'vtkJavaMakeJArrayOfDoubleFromFloat' : redefinition;
different linkage
C:\vtk\vtk-source\Wrapping\Java\vtkJavaUtil.cxx 78
1 vtkWrappingJava<br>
Error 29 error C2375:
'vtkJavaMakeJArrayOfIntFromInt' : redefinition;
different linkage
C:\vtk\vtk-source\Wrapping\Java\vtkJavaUtil.cxx
103 1 vtkWrappingJava<br>
Error 30 error C2375:
'vtkJavaMakeJArrayOfIntFromIdType' : redefinition;
different linkage
C:\vtk\vtk-source\Wrapping\Java\vtkJavaUtil.cxx
128 1 vtkWrappingJava<br>
Error 31 error C2375:
'vtkJavaMakeJArrayOfIntFromLongLong' : redefinition;
different linkage
C:\vtk\vtk-source\Wrapping\Java\vtkJavaUtil.cxx
154 1 vtkWrappingJava<br>
Error 32 error C2375:
'vtkJavaMakeJArrayOfIntFromSignedChar' : redefinition;
different linkage
C:\vtk\vtk-source\Wrapping\Java\vtkJavaUtil.cxx
207 1 vtkWrappingJava<br>
Error 33 error C2375:
'vtkJavaMakeJArrayOfFloatFromFloat' : redefinition;
different linkage
C:\vtk\vtk-source\Wrapping\Java\vtkJavaUtil.cxx
232 1 vtkWrappingJava<br>
Error 34 error C2375:
'vtkJavaMakeJArrayOfShortFromShort' : redefinition;
different linkage
C:\vtk\vtk-source\Wrapping\Java\vtkJavaUtil.cxx
257 1 vtkWrappingJava<br>
Error 35 error C2375:
'vtkJavaMakeJArrayOfByteFromUnsignedChar' :
redefinition; different linkage
C:\vtk\vtk-source\Wrapping\Java\vtkJavaUtil.cxx
282 1 vtkWrappingJava<br>
Error 36 error C2375:
'vtkJavaMakeJArrayOfLongFromLong' : redefinition;
different linkage
C:\vtk\vtk-source\Wrapping\Java\vtkJavaUtil.cxx
307 1 vtkWrappingJava<br>
Error 37 error C2375:
'vtkJavaMakeJArrayOfUnsignedLongFromUnsignedLong' :
redefinition; different linkage
C:\vtk\vtk-source\Wrapping\Java\vtkJavaUtil.cxx
333 1 vtkWrappingJava<br>
Error 38 error C2375:
'vtkJavaMakeJArrayOfUnsignedShortFromUnsignedShort' :
redefinition; different linkage
C:\vtk\vtk-source\Wrapping\Java\vtkJavaUtil.cxx
359 1 vtkWrappingJava<br>
Error 39 error C2375:
'vtkJavaMakeJArrayOfUnsignedCharFromUnsignedChar' :
redefinition; different linkage
C:\vtk\vtk-source\Wrapping\Java\vtkJavaUtil.cxx
385 1 vtkWrappingJava<br>
Error 40 error C2375:
'vtkJavaMakeJArrayOfUnsignedIntFromUnsignedInt' :
redefinition; different linkage
C:\vtk\vtk-source\Wrapping\Java\vtkJavaUtil.cxx
411 1 vtkWrappingJava<br>
Error 41 error C2375:
'vtkJavaMakeJArrayOfCharFromChar' : redefinition;
different linkage
C:\vtk\vtk-source\Wrapping\Java\vtkJavaUtil.cxx
437 1 vtkWrappingJava<br>
Error 42 error C2375: 'vtkJavaUTFToChar' :
redefinition; different linkage
C:\vtk\vtk-source\Wrapping\Java\vtkJavaUtil.cxx
538 1 vtkWrappingJava<br>
Error 43 error C2375: 'vtkJavaUTFToString' :
redefinition; different linkage
C:\vtk\vtk-source\Wrapping\Java\vtkJavaUtil.cxx
543 1 vtkWrappingJava<br>
Error 44 error C2375: 'vtkJavaMakeJavaString' :
redefinition; different linkage
C:\vtk\vtk-source\Wrapping\Java\vtkJavaUtil.cxx
556 1 vtkWrappingJava<br>
Error 45 error C2375: 'vtkJavaVoidFunc' :
redefinition; different linkage
C:\vtk\vtk-source\Wrapping\Java\vtkJavaUtil.cxx
569 1 vtkWrappingJava<br>
Error 46 error C2375: 'vtkJavaVoidFuncArgDelete' :
redefinition; different linkage
C:\vtk\vtk-source\Wrapping\Java\vtkJavaUtil.cxx
586 1 vtkWrappingJava<br>
Error 59 error LNK1181: cannot open input file
'..\..\lib\Release\vtkWrappingJava.lib'
C:\vtk_build\Common\Core\LINK vtkCommonCoreJava<br>
Error 60 error LNK1181: cannot open input file
'..\..\lib\Release\vtkWrappingJava.lib'
C:\vtk_build\Common\System\LINK vtkCommonSystemJava<br>
Error 61 error LNK1181: cannot open input file
'..\..\lib\Release\vtkWrappingJava.lib'
C:\vtk_build\Common\Math\LINK vtkCommonMathJava<br>
Error 62 error LNK1181: cannot open input file
'..\..\lib\Release\vtkWrappingJava.lib'
C:\vtk_build\Common\Misc\LINK vtkCommonMiscJava<br>
Error 63 error LNK1181: cannot open input file
'..\..\lib\Release\vtkWrappingJava.lib'
C:\vtk_build\Common\Transforms\LINK
vtkCommonTransformsJava<br>
Error 64 error LNK1181: cannot open input file
'..\..\lib\Release\vtkWrappingJava.lib'
C:\vtk_build\Common\DataModel\LINK
vtkCommonDataModelJava<br>
Error 65 error LNK1181: cannot open input file
'..\..\lib\Release\vtkWrappingJava.lib'
C:\vtk_build\Common\Color\LINK vtkCommonColorJava<br>
Error 66 error LNK1181: cannot open input file
'..\..\lib\Release\vtkWrappingJava.lib'
C:\vtk_build\Common\ComputationalGeometry\LINK
vtkCommonComputationalGeometryJava<br>
Error 67 error LNK1181: cannot open input file
'..\..\lib\Release\vtkWrappingJava.lib'
C:\vtk_build\Common\ExecutionModel\LINK
vtkCommonExecutionModelJava<br>
Error 68 error LNK1181: cannot open input file
'..\..\lib\Release\vtkWrappingJava.lib'
C:\vtk_build\Filters\Programmable\LINK
vtkFiltersProgrammableJava<br>
Error 69 error LNK1181: cannot open input file
'..\..\lib\Release\vtkWrappingJava.lib'
C:\vtk_build\IO\Video\LINK vtkIOVideoJava<br>
Error 70 error LNK1181: cannot open input file
'..\..\lib\Release\vtkWrappingJava.lib'
C:\vtk_build\Filters\Verdict\LINK
vtkFiltersVerdictJava<br>
Error 71 error LNK1181: cannot open input file
'..\..\lib\Release\vtkWrappingJava.lib'
C:\vtk_build\IO\EnSight\LINK vtkIOEnSightJava<br>
Error 72 error LNK1181: cannot open input file
'..\..\lib\Release\vtkWrappingJava.lib'
C:\vtk_build\Imaging\Math\LINK vtkImagingMathJava<br>
Error 73 error LNK1181: cannot open input file
'..\..\lib\Release\vtkWrappingJava.lib'
C:\vtk_build\IO\Core\LINK vtkIOCoreJava<br>
Error 74 error LNK1181: cannot open input file
'..\..\lib\Release\vtkWrappingJava.lib'
C:\vtk_build\IO\XMLParser\LINK vtkIOXMLParserJava<br>
Error 75 error LNK1181: cannot open input file
'..\..\lib\Release\vtkWrappingJava.lib'
C:\vtk_build\IO\NetCDF\LINK vtkIONetCDFJava<br>
Error 76 error LNK1181: cannot open input file
'..\..\lib\Release\vtkWrappingJava.lib'
C:\vtk_build\IO\Movie\LINK vtkIOMovieJava<br>
Error 77 error LNK1181: cannot open input file
'..\..\lib\Release\vtkWrappingJava.lib'
C:\vtk_build\IO\Legacy\LINK vtkIOLegacyJava<br>
Error 78 error LNK1181: cannot open input file
'..\..\lib\Release\vtkWrappingJava.lib'
C:\vtk_build\IO\Image\LINK vtkIOImageJava<br>
Error 79 error LNK1181: cannot open input file
'..\..\lib\Release\vtkWrappingJava.lib'
C:\vtk_build\Imaging\Core\LINK vtkImagingCoreJava<br>
Error 80 error LNK1181: cannot open input file
'..\..\lib\Release\vtkWrappingJava.lib'
C:\vtk_build\IO\Geometry\LINK vtkIOGeometryJava<br>
Error 81 error LNK1181: cannot open input file
'..\..\lib\Release\vtkWrappingJava.lib'
C:\vtk_build\IO\SQL\LINK vtkIOSQLJava<br>
Error 82 error LNK1181: cannot open input file
'..\..\lib\Release\vtkWrappingJava.lib'
C:\vtk_build\Imaging\Sources\LINK
vtkImagingSourcesJava<br>
Error 83 error LNK1181: cannot open input file
'..\..\lib\Release\vtkWrappingJava.lib'
C:\vtk_build\Parallel\Core\LINK vtkParallelCoreJava<br>
Error 84 error LNK1181: cannot open input file
'..\..\lib\Release\vtkWrappingJava.lib'
C:\vtk_build\Imaging\Fourier\LINK
vtkImagingFourierJava<br>
Error 85 error LNK1181: cannot open input file
'..\..\lib\Release\vtkWrappingJava.lib'
C:\vtk_build\Filters\Statistics\LINK
vtkFiltersStatisticsJava<br>
Error 86 error LNK1181: cannot open input file
'..\..\lib\Release\vtkWrappingJava.lib'
C:\vtk_build\Imaging\Statistics\LINK
vtkImagingStatisticsJava<br>
Error 87 error LNK1181: cannot open input file
'..\..\lib\Release\vtkWrappingJava.lib'
C:\vtk_build\Imaging\Color\LINK vtkImagingColorJava<br>
Error 88 error LNK1181: cannot open input file
'..\..\lib\Release\vtkWrappingJava.lib'
C:\vtk_build\Imaging\General\LINK
vtkImagingGeneralJava<br>
Error 89 error LNK1181: cannot open input file
'..\..\lib\Release\vtkWrappingJava.lib'
C:\vtk_build\IO\PLY\LINK vtkIOPLYJava<br>
Error 90 error LNK1181: cannot open input file
'..\..\lib\Release\vtkWrappingJava.lib'
C:\vtk_build\Imaging\Hybrid\LINK vtkImagingHybridJava<br>
Error 91 error LNK1181: cannot open input file
'..\..\lib\Release\vtkWrappingJava.lib'
C:\vtk_build\Filters\Imaging\LINK
vtkFiltersImagingJava<br>
Error 92 error LNK1181: cannot open input file
'..\..\lib\Release\vtkWrappingJava.lib'
C:\vtk_build\Imaging\Morphological\LINK
vtkImagingMorphologicalJava<br>
Error 93 error LNK1181: cannot open input file
'..\..\lib\Release\vtkWrappingJava.lib'
C:\vtk_build\Filters\Core\LINK vtkFiltersCoreJava<br>
Error 94 error LNK1181: cannot open input file
'..\..\lib\Release\vtkWrappingJava.lib'
C:\vtk_build\Imaging\Stencil\LINK
vtkImagingStencilJava<br>
Error 95 error LNK1181: cannot open input file
'..\..\lib\Release\vtkWrappingJava.lib'
C:\vtk_build\IO\XML\LINK vtkIOXMLJava<br>
Error 96 error LNK1181: cannot open input file
'..\..\lib\Release\vtkWrappingJava.lib'
C:\vtk_build\Filters\Selection\LINK
vtkFiltersSelectionJava<br>
Error 97 error LNK1181: cannot open input file
'..\..\lib\Release\vtkWrappingJava.lib'
C:\vtk_build\IO\LSDyna\LINK vtkIOLSDynaJava<br>
Error 98 error LNK1181: cannot open input file
'..\..\lib\Release\vtkWrappingJava.lib'
C:\vtk_build\Filters\Geometry\LINK
vtkFiltersGeometryJava<br>
Error 99 error LNK1181: cannot open input file
'..\..\lib\Release\vtkWrappingJava.lib'
C:\vtk_build\Filters\General\LINK
vtkFiltersGeneralJava<br>
Error 100 error LNK1181: cannot open input file
'..\..\lib\Release\vtkWrappingJava.lib'
C:\vtk_build\Filters\SMP\LINK vtkFiltersSMPJava<br>
Error 101 error LNK1181: cannot open input file
'..\..\lib\Release\vtkWrappingJava.lib'
C:\vtk_build\Filters\AMR\LINK vtkFiltersAMRJava<br>
Error 102 error LNK1181: cannot open input file
'..\..\lib\Release\vtkWrappingJava.lib'
C:\vtk_build\Filters\Texture\LINK
vtkFiltersTextureJava<br>
Error 103 error LNK1181: cannot open input file
'..\..\lib\Release\vtkWrappingJava.lib'
C:\vtk_build\IO\Exodus\LINK vtkIOExodusJava<br>
Error 104 error LNK1181: cannot open input file
'..\..\lib\Release\vtkWrappingJava.lib'
C:\vtk_build\Filters\HyperTree\LINK
vtkFiltersHyperTreeJava<br>
Error 105 error LNK1181: cannot open input file
'..\..\lib\Release\vtkWrappingJava.lib'
C:\vtk_build\Filters\Sources\LINK
vtkFiltersSourcesJava<br>
Error 106 error LNK1181: cannot open input file
'..\..\lib\Release\vtkWrappingJava.lib'
C:\vtk_build\Filters\Modeling\LINK
vtkFiltersModelingJava<br>
<br>
</font>
<div>
<div class="h5"><br>
<div>On 3/16/2015 3:53 PM, David Gobbi wrote:<br>
</div>
<blockquote type="cite">
<div dir="ltr">Hi Jim,
<div><br>
</div>
<div>The windows debug DLLs are not
redistributable. This is due to their
dependencies (they require the target computer
to have MSVC installed) and also due to
Microsoft policy/licensing. For redistribution,
you should compile in release mode.</div>
<div><br>
</div>
<div> - David<br>
<div class="gmail_extra"><br>
<div class="gmail_quote">On Mon, Mar 16, 2015
at 1:43 PM, James Labiak <span dir="ltr"><<a
moz-do-not-send="true"
href="mailto:jim@jslengineeringsoftware.com"
target="_blank">jim@jslengineeringsoftware.com</a>></span>
wrote:<br>
<blockquote class="gmail_quote"
style="margin:0 0 0 .8ex;border-left:1px
#ccc solid;padding-left:1ex">Hello all,<br>
What is the simplest way to include VTK
dlls with a Java program for distribution
to Win 7 PCs that don't have VTK
installed? Java program uses a .bat file
to start. Tried copying the dlls from
C:\vtk_build\bin\Debug to the dir
...vtk-libs in the Java program files and
including that dir when I set the path in
the batch file, but that didn't seem to
work.<br>
Thanks,<br>
Jim<br>
</blockquote>
</div>
</div>
</div>
</div>
</blockquote>
<br>
</div>
</div>
</div>
<br>
_______________________________________________<br>
Powered by <a moz-do-not-send="true"
href="http://www.kitware.com" target="_blank">www.kitware.com</a><br>
<br>
Visit other Kitware open-source projects at <a
moz-do-not-send="true"
href="http://www.kitware.com/opensource/opensource.html"
target="_blank">http://www.kitware.com/opensource/opensource.html</a><br>
<br>
Please keep messages on-topic and check the VTK FAQ at: <a
moz-do-not-send="true"
href="http://www.vtk.org/Wiki/VTK_FAQ" target="_blank">http://www.vtk.org/Wiki/VTK_FAQ</a><br>
<br>
Search the list archives at: <a moz-do-not-send="true"
href="http://markmail.org/search/?q=vtkusers"
target="_blank">http://markmail.org/search/?q=vtkusers</a><br>
<br>
Follow this link to subscribe/unsubscribe:<br>
<a moz-do-not-send="true"
href="http://public.kitware.com/mailman/listinfo/vtkusers"
target="_blank">http://public.kitware.com/mailman/listinfo/vtkusers</a><br>
<br>
</blockquote>
</div>
<br>
</div>
</blockquote>
<br>
</body>
</html>