Hi all again,
following yesterday’s smart advice, I am trying to add StarDist directly to QuPath, which requires building QuPath rather than using the ready-made app.
After cloning the repo (commit 901911fa7e2afece6c7732459027fa6fc6e5dea5 for sake of future reproducibility), I run
./gradlew clean build createPackage -Ptensorflow-cpu=true -Ppackager=/Library/Java/JavaVirtualMachines/adoptopenjdk-15.jdk/Contents/Home/bin/jpackage (the build would previously stop because I wasn’t passing the
The process stops at
> Task :createPackage FAILED /Library/Java/JavaVirtualMachines/adoptopenjdk-15.jdk/Contents/Home/bin/jpackage --input /Users/stefano/qupath/build/qupath --dest /Users/stefano/qupath/build/dist --main-jar qupath-0.2.3.jar --name QuPath-0.2.3 --java-options -XX:MaxRAMPercentage=50 --mac-package-name QuPath --mac-package-identifier QuPath --type app-image --app-version 0.2.3 --icon /Users/stefano/qupath/build/resources/main/package/macosx/qupath.icns --file-associations /Users/stefano/qupath/build/resources/main/package/associations/project.properties --runtime-image /Users/stefano/qupath/build/jre WARNING: Using incubator modules: jdk.incubator.jpackage Bundler Mac Application Image skipped because of a configuration problem: The first number in a CFBundleVersion cannot be zero or negative. Advice to fix: Set a compatible 'appVersion' or set a 'mac.CFBundleVersion'. Valid versions are one to three integers separated by dots.
It’s a problem I haven’t seen happening to others, although it seems related to xcode? and I unfortunately didn’t manage to figure out how to follow the “Advice to fix”… I actually tried to cheat my way through this by changing the content of
qupath/VERSION from 0.2.3 to 1.2.3 to satisfy the “no 0 as first number” and, while the build successfully got to a conclusion, the resulting app would refuse to open.
Thanks again in advance!