[Insight-users] SimpleITK / jar wrapper?
aptea at mskcc.org
aptea at mskcc.org
Wed Apr 18 16:08:36 EDT 2012
Hello Brad,
Thanks for your reply. I tried to build SimpleITK using the following procedure:
git clone --recursive http://itk.org/SimpleITK.git
mkdir SimpleITK-build
cd SimpleITK-build
Then, I used “make” to build SimpleITK. It ran until 32% completion, and gave the following message:
Linking CXX shared module ../lib/simpleitk.bundle
ld: framework not found ruby
collect2: ld returned 1 exit status
make[5]: *** [lib/simpleitk.bundle] Error 1
make[4]: *** [Wrapping/CMakeFiles/simpleitk.dir/all] Error 2
make[3]: *** [all] Error 2
make[2]: *** [SimpleITK-prefix/src/SimpleITK-stamp/SimpleITK-build] Error 2
make[1]: *** [CMakeFiles/SimpleITK.dir/all] Error 2
make: *** [all] Error 2
It did create simpleitk-0.4.0.jar file under SimpleITK-build/Wrapper directory. Then, I tried to use this .jar file within Matlab. For this, I added the file to classpath, but I am not able to load the classes within this file as described in the examples. For example, org.itk.simple.ImageFileReader could not be accessed and so on. The documentation under http://www.itk.org/SimpleITKDoxygen/html/Wrapping.html mentions that I should get org.itk.simple.jar file that contains the required classes. But I did not get this file when I built SimpleITK. So I am confused about where to find the java classes that wrap ITK functions.
Thanks,
Aditya
On 4/18/12 3:49 PM, "Bradley Lowekamp" <blowekamp at mail.nih.gov> wrote:
Hello,
The SimpleITK Getting Started wiki page a a section for Binaries:
http://www.itk.org/Wiki/ITK_Release_4/SimpleITK/GettingStarted#Binaries
Which points to SourceForge for the Java Binaries:
http://sourceforge.net/projects/simpleitk/files/SimpleITK/0.4.0/Java/
Where there is a download for Java for MacOSX 10.6:
SimpleITK-0.4.0-Java-maxosx-10.6-intel.zip <http://sourceforge.net/projects/simpleitk/files/SimpleITK/0.4.0/Java/SimpleITK-0.4.0-Java-maxosx-10.6-intel.zip/download>
This would likely also work for macOSX 10.7 as well.
I also would like to know what was the issue when you tried to compile SimpleITK on OSX.
Thanks,
Brad
On Apr 18, 2012, at 3:32 PM, aptea at mskcc.org wrote:
SimpleITK / jar wrapper?
Are SimpleITK Wrapper .jar files available for download?
I failed to build SimpleITK for Mac OS X, so was wondering if I could use the binaries directly?
Many thanks!
=====================================================================
Please note that this e-mail and any files transmitted from
Memorial Sloan-Kettering Cancer Center may be privileged, confidential,
and protected from disclosure under applicable law. If the reader of
this message is not the intended recipient, or an employee or agent
responsible for delivering this message to the intended recipient,
you are hereby notified that any reading, dissemination, distribution,
copying, or other use of this communication or any of its attachments
is strictly prohibited. If you have received this communication in
error, please notify the sender immediately by replying to this message
and deleting this message, any attachments, and all copies and backups
from your computer.
_____________________________________
Powered by www.kitware.com <http://www.kitware.com>
Visit other Kitware open-source projects at
http://www.kitware.com/opensource/opensource.html
Kitware offers ITK Training Courses, for more information visit:
http://www.kitware.com/products/protraining.php
Please keep messages on-topic and check the ITK FAQ at:
http://www.itk.org/Wiki/ITK_FAQ
Follow this link to subscribe/unsubscribe:
http://www.itk.org/mailman/listinfo/insight-users
========================================================
Bradley Lowekamp
Medical Science and Computing for
Office of High Performance Computing and Communications
National Library of Medicine
blowekamp at mail.nih.gov
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.itk.org/pipermail/insight-users/attachments/20120418/26e02d9d/attachment.htm>
More information about the Insight-users
mailing list