devel:libblitzbioformats [2010/07/11 11:57] mario moved downloads to download page, updated properties and compile instructions |
devel:libblitzbioformats [2010/07/11 21:29] (current) mario added error report on MacOS |
| | * BioFormats C++ bindings: http://www.farsight-toolkit.org/wiki/FARSIGHT_Tutorials/Building_Software/Bio-Formats/Building_C%2B%2B_Bindings | | * BioFormats C++ bindings: http://www.farsight-toolkit.org/wiki/FARSIGHT_Tutorials/Building_Software/Bio-Formats/Building_C%2B%2B_Bindings |
| | | | |
| - | ==== Simple Compilation Instructions for Linux/Windows ==== | + | ==== Simple Compilation Instructions for Linux/Windows/MacOS ==== |
| | | | |
| | Compiling is rather easy. For starters, you should take a look at our environment setup for [[:devel:compile-unix-xuvbuild|Linux/Mac]] or [[:devel:compile-win-xuvbuild|Windows]]. If you have access to the build script "xuvbuild.sh", you can compile from your shell like this: | | Compiling is rather easy. For starters, you should take a look at our environment setup for [[:devel:compile-unix-xuvbuild|Linux/Mac]] or [[:devel:compile-win-xuvbuild|Windows]]. If you have access to the build script "xuvbuild.sh", you can compile from your shell like this: |
| | There is a page with (outdated) full build instructions for reference, in case you do not want to use qmake: [[:devel:libblitzbioformats_compilation_pre20100524]]. | | There is a page with (outdated) full build instructions for reference, in case you do not want to use qmake: [[:devel:libblitzbioformats_compilation_pre20100524]]. |
| | | | |
| - | | + | \\ |
| - | ==== Compile Instructions MacOS ==== | + | |
| - | | + | |
| - | Currently, MacOS is not officially supported. Compilation might require some manual interaction, and the resulting executable might not work. You should be able to use the build instructions from above, but might need to add "x86_64" to set the target architecture: | + | |
| - | <code> | + | |
| - | cd libBlitzBioFormats/project/ | + | |
| - | qmake -r CONFIG+="x86_64 test tools" project.pro && make clean && make -j2 | + | |
| - | </code> | + | |
| - | | + | |
| - | Then you need to adjust library paths, which are hardcoded on MacOS. You can use something like this as an example: | + | |
| - | <code> | + | |
| - | install_name_tool -change \ | + | |
| - | "$LMBSOFTDEST/thirdparty_mac-all-gcc4.2.1/ome/components/native/bf-cpp/build/jace/libjace.jnilib" \ | + | |
| - | "$LMBSOFTDEST/thirdparty_mac-all-gcc4.2.1/ome/lib/libjace.dylib" \ | + | |
| - | "$LMBSOFTDEST/release_mac-all-gcc4.2.1/bin/BlitzBioFormatsViewer" | + | |
| - | install_name_tool -change \ | + | |
| - | "$LMBSOFTDEST/thirdparty_mac-all-gcc4.2.1/ome/components/native/bf-cpp/build/libbfcpp.dylib" \ | + | |
| - | "$LMBSOFTDEST/thirdparty_mac-all-gcc4.2.1/ome/lib/libbfcpp.dylib" \ | + | |
| - | "$LMBSOFTDEST/release_mac-all-gcc4.2.1/bin/BlitzBioFormatsViewer" | + | |
| - | install_name_tool -change \ | + | |
| - | "@rpath/libclient.dylib" \ | + | |
| - | "/System/Library/Frameworks/JavaVM.framework/Versions/1.6.0/Libraries/libclient.dylib" \ | + | |
| - | "$LMBSOFTDEST/release_mac-all-gcc4.2.1/bin/BlitzBioFormatsViewer" | + | |
| - | install_name_tool -change \ | + | |
| - | "$LMBSOFTDEST/thirdparty_mac-all-gcc4.2.1/ome/components/native/bf-cpp/build/jace/libjace.jnilib" \ | + | |
| - | "$LMBSOFTDEST/thirdparty_mac-all-gcc4.2.1/ome/lib/libjace.dylib" \ | + | |
| - | "$LMBSOFTDEST/thirdparty_mac-all-gcc4.2.1/ome/lib/libbfcpp.dylib" | + | |
| - | otool -L "$LMBSOFTDEST/release_mac-all-gcc4.2.1/bin/BlitzBioFormatsViewer" | + | |
| - | </code> | + | |
| | ---- | | ---- |
| | + | \\ |
| | | | |
| | ==== Reports of Success / Failure ==== | | ==== Reports of Success / Failure ==== |
| | | | |
| | + | * **2010.07.11** Mario Emmenlauer: libBlitzBioFormats and BlitzBioFormatsViewer (r3881) Compile on MacOS (64bit) but do not initialize Java VM correctly |
| | * **2010.05.24** Mario Emmenlauer: libBlitzBioFormats and BlitzBioFormatsViewer (r3728) Compile and Run on Windows "7" (64bit) w/ MSVC-2008 | | * **2010.05.24** Mario Emmenlauer: libBlitzBioFormats and BlitzBioFormatsViewer (r3728) Compile and Run on Windows "7" (64bit) w/ MSVC-2008 |
| | * **2010.05.24** Mario Emmenlauer: libBlitzBioFormats and BlitzBioFormatsViewer (r3728) Compile and Run on Ubuntu "Lucid" w/ gcc-4.4 | | * **2010.05.24** Mario Emmenlauer: libBlitzBioFormats and BlitzBioFormatsViewer (r3728) Compile and Run on Ubuntu "Lucid" w/ gcc-4.4 |