added install of ij-opencv-plugins in fiji, as lipase uses them

the test of lipase can't currently succeed (it actually fails but the error is not currently detected) because lipase requires opencv.
This commit is contained in:
Guillaume Raffy 2019-09-30 15:39:38 +02:00
parent e8f23bb445
commit 3f534229fd
2 changed files with 87 additions and 1 deletions

1
Jenkinsfile vendored
View File

@ -5,6 +5,7 @@ pipeline {
steps {
echo 'Initial setup...'
sh './scripts/install_fiji.bash'
sh 'export FIJI_ROOT_PATH=$(pwd); ./scripts/install_lipase_in_fiji.bash'
// echo 'Create or update the virtual Python environment'
// sh '/bin/bash ./src/CI/CI.bash -i ci_venv'
}

View File

@ -1,5 +1,38 @@
#!/bin/bash
FIJI_ROOT_PATH='/Applications/Fiji.app'
if [ $FIJI_ROOT_PATH = '' ]
then
echo "please define the location of Fiji via the FIJI_ROOT_PATH environment variable"
return 1
fi
# function get_fiji_root_path()
# {
# if [ $FIJI_ROOT_PATH != '' ]
# then
# echo $FIJI_ROOT_PATH
# return
# fi
# local fiji_root_path=''
# case $(hostname) in
# 'pr079234.spm.univ-rennes1.fr') # simpa-macbook2
# fiji_root_path='/Applications/Fiji.app'
# ;;
# 'pr079180.spm.univ-rennes1.fr') # graffy-ws2
# fiji_root_path='~/soft/Fiji.app'
# ;;
# *)
# case $(whoami) in
# 'jenkins-agent')
# fiji_root_path="$(pwd)"
# ;;
# esac
# ;;
# esac
# echo "$fiji_root_path"
# }
@ -200,9 +233,58 @@ function create_test_jar()
accept_maven_scijava_org_certificate
mvn -Dimagej.app.directory=/Applications/Fiji.app
# on ubuntu :
# [WARNING] Rule 2: org.apache.maven.plugins.enforcer.RequireJavaVersion failed with message:
# Detected JDK Version: 11.0.4 is not in the allowed range [1.8.0-101,1.8.9999].
# [INFO] ------------------------------------------------------------------------
# [INFO] BUILD FAILURE
# [INFO] ------------------------------------------------------------------------
# [INFO] Total time: 06:03 min
# [INFO] Finished at: 2019-09-23T16:57:17+02:00
# [INFO] ------------------------------------------------------------------------
# [ERROR] Failed to execute goal org.apache.maven.plugins:maven-enforcer-plugin:1.4.1:enforce (enforce-rules) on project example-script-collection: Some Enforcer rules have failed. Look above for specific messages explaining why the rule failed. -> [Help 1]
popd
}
function ensure_ij_opencv_plugin_is_installed()
{
# enable IJ-OpenCV-plugins site because it's disabled by default
# graffy@graffy-ws2:~$ zcat /home/graffy/soft/Fiji.app/db.xml.gz | grep IJ-Op | grep -v "jar" | grep -v "<plu"
# <disabled-update-site name="IJ-OpenCV-plugins" url="https://sites.imagej.net/IJ-OpenCV/" official="true" description="Collection of plugins created using the IJ-OpenCV library -- a library that allows the connection of ImageJ and OpenCV." timestamp="20190819101544"/>
# graffy@graffy-ws2:~$ history | less
# graffy@graffy-ws2:~$ ~/soft/Fiji.app/ImageJ-linux64 --update edit-update-site IJ-OpenCV-plugins https://sites.imagej.net/IJ-OpenCV/
# Java HotSpot(TM) 64-Bit Server VM warning: ignoring option PermSize=128m; support was removed in 8.0
# Java HotSpot(TM) 64-Bit Server VM warning: Using incremental CMS is deprecated and will likely be removed in a future release
# Done: Checksummer
# graffy@graffy-ws2:~$ zcat /home/graffy/soft/Fiji.app/db.xml.gz | grep IJ-Op | grep -v "jar" | grep -v "<plu"
# <update-site name="IJ-OpenCV-plugins" url="https://sites.imagej.net/IJ-OpenCV/" official="true" description="Collection of plugins created using the IJ-OpenCV library -- a library that allows the connection of ImageJ and OpenCV." timestamp="20190819101544"/>
$FIJI_ROOT_PATH/ImageJ-linux64 --update edit-update-site IJ-OpenCV-plugins https://sites.imagej.net/IJ-OpenCV/
# then apply an update to download and install IJ-OpenCV-plugins :
# jars/IJ-OpenCV.jar
# jars/javacv.far
# jars/opencv-linux-x86.jar
# jars/opencv-linux-x86_64.jar
# jars/opencv-macosx-x86_64.jar
# jars/opencv-windows-x86.jar
# jars/opencv-windows-x86_64.jar
# jars/opencv.jar
# lib/haarcascade_frontalface_alt.xml
# graffy@graffy-ws2:~$ ~/soft/Fiji.app/ImageJ-linux64 --update update
# Java HotSpot(TM) 64-Bit Server VM warning: ignoring option PermSize=128m; support was removed in 8.0
# Java HotSpot(TM) 64-Bit Server VM warning: Using incremental CMS is deprecated and will likely be removed in a future release
# Done: Checksummer
# Done: Downloading...
# Done: Downloading...
$FIJI_ROOT_PATH/ImageJ-linux64 --update update
}
function install_lipase_libs_in_fiji()
{
# https://imagej.net/Jython_Scripting
@ -217,6 +299,9 @@ function install_lipase_libs_in_fiji()
function install_lipase_in_fiji()
{
# lipase plugins require IJ-OpenCV-plugins
ensure_ij_opencv_plugin_is_installed
install_lipase_libs_in_fiji
mkdir -p $FIJI_ROOT_PATH/plugins/Ipr