ClearVolume / clearvolume

ClearVolume is a real-time live 3D visualization library designed for high-end volumetric microscopes such as SPIM and DLSM microscopes. With ClearVolume you can see live on your screen the stacks acquired by your microscope instead of waiting for offline post-processing to give you an intuitive and comprehensive view on your data.
http://clearvolume.github.io
GNU Lesser General Public License v3.0
44 stars 11 forks source link

ClearVolume build failing on Mac OS X with Gradle 7.1.1 for two reasons (one fixed) #81

Open apacker83 opened 3 years ago

apacker83 commented 3 years ago

I downloaded the github repository and ran build.sh. At first, I got the following error message: Using insecure protocols with repositories, without explicit opt-in, is unsupported. Switch Maven repository 'maven(http://maven.imagej.net/content/repositories/releases)' to redirect to a secure protocol (like HTTPS) or allow insecure protocols. I think I fixed this by following the instructions here: https://github.com/gradle/gradle/issues/11905#issuecomment-863714222

Upon rerunning build.sh, I got the following new error message: > Plugin with id 'maven' not found.

Googling this led me here: https://discuss.gradle.org/t/plugin-with-id-maven-not-found/39621 and ultimately to here: https://docs.gradle.org/7.0/userguide/upgrading_version_6.html?_ga=2.5147891.1588493751.1626965925-1126331740.1626965925#removal_of_the_legacy_maven_plugin

Implying that perhaps the build needs to reference maven-publish instead of maven. But it already does, or at least build.gradle mentions maven-publish on line 23. So I commented out line 22, which mentions maven, and got another error message:

> Failed to apply plugin 'javafx-gradle-plugin'.
   > Could not create task ':jfxJar'.
      > Cannot create task ':jfxJar' of type 'JfxJarTask' as directly extending AbstractTask is not supported.

It seems this also might be related to Gradle 7? This is as far as I got... Sorry if this is not helpful, I'm really dying to run ClearVolume!

apacker83 commented 3 years ago

So... if anyone runs into this issue note that the documentation explicitly says use Gradle 2.1 (even though the link takes you to the top-level Gradle installation website, which is where I got led astray).

Now that I've got Gradle 2.1 working on my machine, I got past this error and am on to other ones... e.g. Couldn't find Ant-JavaFX-library, please make sure you've installed some JDK which includes JavaFX

will update in another thread if I solve it!