[vtkusers] message from a friend of mine

Michael Jackson mike.jackson at bluequartz.net
Fri Sep 3 07:45:00 EDT 2010


Someone should sum this up into a wiki entry.
_________________________________________________________
Mike Jackson                  mike.jackson at bluequartz.net
BlueQuartz Software                    www.bluequartz.net
Principal Software Engineer                  Dayton, Ohio



On Thu, Sep 2, 2010 at 10:14 PM, Jonathan Morra <jonmorra at gmail.com> wrote:
> Thanks so much for your help, editing my path did indeed fix the
> dependencies not found issue.  After some experimenting, I only need to add
> the ${CTEST_BINARY_DIRECTORY}/bin/Debug section to my PATH.
> Thanks again
>
> On Thu, Sep 2, 2010 at 7:02 PM, Dave Partyka <dave.partyka at kitware.com>
> wrote:
>>
>> I set my PATH as such for the VTK Visual Studio dashboards to get them to
>> compile and run the tests.
>>
>> ${CTEST_BINARY_DIRECTORY}/bin/Debug;C:/Program
>> Files/Java/jdk1.6.0_14/jre/bin;C:/Program
>> Files/Java/jdk1.6.0_14/jre/bin/server
>>
>> Where CTEST_BINARY_DIRECTORY/bin/Debug is in my build tree.
>>
>> On Thu, Sep 2, 2010 at 9:36 PM, Jonathan Morra <jonmorra at gmail.com> wrote:
>>>
>>> So after reading the problems other people have had with mt.exe, I
>>> disabled my virus scanning and built all projects successfully.  I also
>>> built the install project (for both 32 and 64 bit versions of VS2008) and
>>> the same error still appears the same on both 32 and 64 versions of VS2008
>>> and Java.  I'm not sure what to do next.  I know that I'm correctly setting
>>> the java path because if I remove the java path information the error
>>> changes to say
>>> java.lang.UnsatisfiedLinkError: no vtkCommonJava in java.library.path
>>> Instead of
>>> java.lang.UnsatisfiedLinkError: vtkCommonJava.dll: Can't find dependent
>>> libraries
>>>
>>> Any ideas?
>>> On Thu, Sep 2, 2010 at 2:36 PM, Jim Peterson <jimcp at cox.net> wrote:
>>>>
>>>> Mike,
>>>> Correction, my Visual Studio build did create a vtkproj4.dll. My build
>>>> was on a Windows XP Pro SP3 system. I did not get any errors from any of the
>>>> projects. The executable location for the mt.exe is the same as yours.
>>>> Jim
>>>>
>>>> jimcp at cox.net wrote:
>>>>>
>>>>> I have never seen that before. Google of MT.exe has some hits that may
>>>>> be of interest.
>>>>> I used visual studio express, and  the Cmakegui to generate a
>>>>> VisualStudio 9 2008 project. I opened and built the project in visual
>>>>> studio, not via the command line. In my case I selected Shared Libraries,
>>>>> Examples, Tests, and Java Wrappers.
>>>>> I am afraid I am outside my answer zone at this point. I don't believe
>>>>> my build had a vtkProj4.dll. I am at work right now, I will check the
>>>>> outputs at home.
>>>>> My only suggestion is try the minimum first, then add on.
>>>>> Ho[e that helps, Jim
>>>>>
>>>>> ---- Michael Jackson <mike.jackson at bluequartz.net> wrote:
>>>>>>
>>>>>> I think the thread I am remembering has a subject line of "Re:
>>>>>>  [vtkusers] MinGW visibility attribute not supported warning" dated  Aug. 27
>>>>>> 2010. Take a look at the vtk users mailing list archives for  more details"
>>>>>>
>>>>>> ___________________________________________________________
>>>>>> Mike Jackson                      www.bluequartz.net
>>>>>>
>>>>>> On Sep 2, 2010, at 11:16 AM, Jonathan Morra wrote:
>>>>>>
>>>>>>
>>>>>>>
>>>>>>> I get errors when I compile on a 32 bit architecture as well.  I've
>>>>>>>  went through the logs for both builds and found that the errors are  the
>>>>>>> same and that there are 2 types of errors.
>>>>>>>
>>>>>>> Error 1
>>>>>>> Project : error PRJ0002 : Error result 31 returned from 'C:\Program
>>>>>>>  Files\Microsoft SDKs\Windows\v6.0A\bin\mt.exe'.
>>>>>>>
>>>>>>> Error 2
>>>>>>> mt.exe : general error c101008d: Failed to write the updated
>>>>>>>  manifest to the resource of file "..\..\bin\Release\vtkproj4.dll".  Access
>>>>>>> is denied.
>>>>>>>
>>>>>>> For error 2 this occurs with a few .dll files, not just the example
>>>>>>>  that I copied and pasted.
>>>>>>>
>>>>>>> Any ideas how these might be caused?  It looks like they're both
>>>>>>>  related to some mt.exe file, but I have no idea what that is.
>>>>>>>
>>>>>>> Thanks
>>>>>>>
>>>>>>>
>>>>>>> On Thu, Sep 2, 2010 at 4:50 AM, Jim Peterson <jimcp at cox.net> wrote:
>>>>>>> Jonathan,
>>>>>>> Good Question,
>>>>>>> Reviewing the cmake "advanced" options again I see one
>>>>>>>  VTK_USE_64BIT_IDS that defaults to unchecked. I have not researched  the
>>>>>>> source to see if that affects the Java object code, but one  would think it
>>>>>>> is necessary for a 64bit application.
>>>>>>> Unfortunately I only have 2G memory on my machine, so I don't have
>>>>>>>  the 64bit platform to test on.
>>>>>>> I think I would start with a survey of the vtk dashboard for
>>>>>>>  existing 64bit windows test cases and see of any of them also  configure
>>>>>>> Java wrappers.
>>>>>>>
>>>>>>> Hope that helps,
>>>>>>> Jim
>>>>>>>
>>>>>>> Jonathan Morra wrote:
>>>>>>> Thanks for the response, I guess I'll try compiling everything under
>>>>>>>  32 bit Visual Studios and see how that goes.  Should I turn on/off  any
>>>>>>> other CMake flags?
>>>>>>>
>>>>>>> On Wed, Sep 1, 2010 at 6:17 PM, Jim Peterson <jimcp at cox.net
>>>>>>> <mailto:jimcp at cox.net
>>>>>>>>>
>>>>>>>>> wrote:
>>>>>>>>>
>>>>>>>
>>>>>>>   Mark Roden wrote:
>>>>>>>
>>>>>>>       A friend of mine is attempting to build vtk from source with
>>>>>>>       Java wrappers on win64, and encountered some pretty horrendous
>>>>>>>       failures right out of the box.
>>>>>>>       Any ideas on what to fix here?  For some reason, he's being
>>>>>>>       blocked from posting on the list.
>>>>>>>
>>>>>>>
>>>>>>>
>>>>>>>       ---------- Forwarded message ----------
>>>>>>>       From: *Jonathan Morra* <jonmorra at gmail.com
>>>>>>>       <mailto:jonmorra at gmail.com> <mailto:jonmorra at gmail.com
>>>>>>>       <mailto:jonmorra at gmail.com>>>
>>>>>>>       Date: Wed, Sep 1, 2010 at 9:33 AM
>>>>>>>       Subject: VTK Compiling with errors
>>>>>>>       To: vtkusers at vtk.org <mailto:vtkusers at vtk.org>
>>>>>>>       <mailto:vtkusers at vtk.org <mailto:vtkusers at vtk.org>>
>>>>>>>
>>>>>>>
>>>>>>>       I'm attempting to compile VTK from source with the Java
>>>>>>>       wrappers on in 64bit Visual Studios 2008.  I've downloaded
>>>>>>>       version 5.6.0 and ran CMake with the following parameters:
>>>>>>>
>>>>>>>       BUILD_SHARED_LIBS
>>>>>>>       VTK_USE_N_WAY_ARRAYS
>>>>>>>       VTK_USE_RENDERING
>>>>>>>       VTK_WRAP_JAVA
>>>>>>>       I set all other flags off, also I changed the
>>>>>>>       CMAKE_INSTALL_PREFIX to a directory in My Documents.
>>>>>>>
>>>>>>>       The compilation did result in creating vtk.jar and some dlls,
>>>>>>>       however 67 projects compiled successfully and 7 failed.  I
>>>>>>>       tried to make a very simple project in NetBeans 6.9.1 where I
>>>>>>>       added the vtk.jar library and then set the java path with
>>>>>>>       -Djava.library.path="path/to/vtk/dlls" and then had the
>>>>>>>       following Java
>>>>>>>
>>>>>>>       import vtk.vtkSphereSource;
>>>>>>>       import vtk.vtkPolyDataMapper;
>>>>>>>       import vtk.vtkActor;
>>>>>>>       import vtk.vtkRenderer;
>>>>>>>       import vtk.vtkRenderWindow;
>>>>>>>       import vtk.vtkRenderWindowInteractor;
>>>>>>>
>>>>>>>       /**
>>>>>>>        *
>>>>>>>        * @author jmorra
>>>>>>>        */
>>>>>>>       public class Application {
>>>>>>>
>>>>>>>          static {
>>>>>>>              System.loadLibrary("vtkCommonJava");
>>>>>>>              System.loadLibrary("vtkFilteringJava");
>>>>>>>              System.loadLibrary("vtkIOJava");
>>>>>>>              System.loadLibrary("vtkImagingJava");
>>>>>>>              System.loadLibrary("vtkGraphicsJava");
>>>>>>>              System.loadLibrary("vtkRenderingJava.");
>>>>>>>          }
>>>>>>>
>>>>>>>          public static void main(String[] args) {
>>>>>>>               // create sphere geometry
>>>>>>>              vtkSphereSource sphere = new vtkSphereSource();
>>>>>>>          }
>>>>>>>       }
>>>>>>>
>>>>>>>       The program threw the following exception on the first
>>>>>>>       System.loadLibrary call
>>>>>>>
>>>>>>>       java.lang.UnsatisfiedLinkError:
>>>>>>>       C:\Users\jmorra\Documents\vtk-binaries\bin\Release
>>>>>>> \vtkCommonJava.dll:
>>>>>>>       Can't find dependent libraries
>>>>>>>
>>>>>>>       I ran dependency walker on vtkCommonJava.dll and it didn't
>>>>>>>       look like anything was missing.   This leads me to assume the
>>>>>>>       error is somewhere the projects that failed to compile under
>>>>>>>       VS 2008.
>>>>>>>
>>>>>>>       Please let me know what I'm doing wrong or if this is a VTK
>>>>>>>  error.
>>>>>>>
>>>>>>>       Thanks,
>>>>>>>       Jon
>>>>>>>
>>>>>>>
>>>>>>>  ------------------------------------------------------------------------
>>>>>>>
>>>>>>>
>>>>>>>
>>>>>>>       _______________________________________________
>>>>>>>       Powered by www.kitware.com <http://www.kitware.com>
>>>>>>>
>>>>>>>
>>>>>>>       Visit other Kitware open-source projects at
>>>>>>>       http://www.kitware.com/opensource/opensource.html
>>>>>>>
>>>>>>>       Please keep messages on-topic and check the VTK FAQ at:
>>>>>>>       http://www.vtk.org/Wiki/VTK_FAQ
>>>>>>>
>>>>>>>       Follow this link to subscribe/unsubscribe:
>>>>>>>       http://www.vtk.org/mailman/listinfo/vtkusers
>>>>>>>
>>>>>>>   I built and used vtk 5.6.0 on 32bit windows with shared libraries
>>>>>>>   and Java wrappers using Visual Studio 2008. taking a quick look at
>>>>>>>   the vtk Java wrappers, I am not sure the mechanism for
>>>>>>>   dereferencing object pointers between the java wrappers and the
>>>>>>>   shared libraries is 64bit capable, the Java wrappers appear to
>>>>>>>   pass a long as a vtk object pointer.  The specific error actually
>>>>>>>   looks like the vtk java wrapper dll was found, but the
>>>>>>>   corresponding  vtk shared libraries are not in the library path.
>>>>>>>
>>>>>>>   Hope that helps,
>>>>>>>
>>>>>>>   Jim
>>>>>>>
>>>>>>>   _______________________________________________
>>>>>>>   Powered by www.kitware.com <http://www.kitware.com>
>>>>>>>
>>>>>>>
>>>>>>>   Visit other Kitware open-source projects at
>>>>>>>   http://www.kitware.com/opensource/opensource.html
>>>>>>>
>>>>>>>   Please keep messages on-topic and check the VTK FAQ at:
>>>>>>>   http://www.vtk.org/Wiki/VTK_FAQ
>>>>>>>
>>>>>>>   Follow this link to subscribe/unsubscribe:
>>>>>>>   http://www.vtk.org/mailman/listinfo/vtkusers
>>>>>>>
>>>>>>>
>>>>>>>
>>>>>>>
>>>>>>> _______________________________________________
>>>>>>> Powered by www.kitware.com
>>>>>>>
>>>>>>> Visit other Kitware open-source projects at
>>>>>>> http://www.kitware.com/opensource/opensource.html
>>>>>>>
>>>>>>> Please keep messages on-topic and check the VTK FAQ at:
>>>>>>> http://www.vtk.org/Wiki/VTK_FAQ
>>>>>>>
>>>>>>> Follow this link to subscribe/unsubscribe:
>>>>>>> http://www.vtk.org/mailman/listinfo/vtkusers
>>>>>>>
>>>>>>
>>>>>> _______________________________________________
>>>>>> Powered by www.kitware.com
>>>>>>
>>>>>> Visit other Kitware open-source projects at
>>>>>> http://www.kitware.com/opensource/opensource.html
>>>>>>
>>>>>> Please keep messages on-topic and check the VTK FAQ at:
>>>>>> http://www.vtk.org/Wiki/VTK_FAQ
>>>>>>
>>>>>> Follow this link to subscribe/unsubscribe:
>>>>>> http://www.vtk.org/mailman/listinfo/vtkusers
>>>>>>
>>>>>
>>>>> _______________________________________________
>>>>> Powered by www.kitware.com
>>>>>
>>>>> Visit other Kitware open-source projects at
>>>>> http://www.kitware.com/opensource/opensource.html
>>>>>
>>>>> Please keep messages on-topic and check the VTK FAQ at:
>>>>> http://www.vtk.org/Wiki/VTK_FAQ
>>>>>
>>>>> Follow this link to subscribe/unsubscribe:
>>>>> http://www.vtk.org/mailman/listinfo/vtkusers
>>>>>
>>>>>
>>>>
>>>
>>>
>>> _______________________________________________
>>> Powered by www.kitware.com
>>>
>>> Visit other Kitware open-source projects at
>>> http://www.kitware.com/opensource/opensource.html
>>>
>>> Please keep messages on-topic and check the VTK FAQ at:
>>> http://www.vtk.org/Wiki/VTK_FAQ
>>>
>>> Follow this link to subscribe/unsubscribe:
>>> http://www.vtk.org/mailman/listinfo/vtkusers
>>>
>>
>
>
> _______________________________________________
> Powered by www.kitware.com
>
> Visit other Kitware open-source projects at
> http://www.kitware.com/opensource/opensource.html
>
> Please keep messages on-topic and check the VTK FAQ at:
> http://www.vtk.org/Wiki/VTK_FAQ
>
> Follow this link to subscribe/unsubscribe:
> http://www.vtk.org/mailman/listinfo/vtkusers
>
>



More information about the vtkusers mailing list