<html>
<head>
<meta content="text/html; charset=windows-1252"
http-equiv="Content-Type">
</head>
<body 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><br>
<div class="moz-cite-prefix">On 3/16/2015 3:53 PM, David Gobbi
wrote:<br>
</div>
<blockquote
cite="mid:CANwS1=GnF6-xRON0sZcuiuSpX9t1RmBphDZgaZEvBuT4nO-pMQ@mail.gmail.com"
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>
<pre class="moz-signature" cols="72">
</pre>
</body>
</html>