Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

cvFatJar dependencies URLs not found. #66

Open
vigo332 opened this issue Sep 19, 2017 · 8 comments
Open

cvFatJar dependencies URLs not found. #66

vigo332 opened this issue Sep 19, 2017 · 8 comments

Comments

@vigo332
Copy link

vigo332 commented Sep 19, 2017

Dear Developpers,

I ran into this error showing cvFatJar dependencies URLs are not found when I ran the build of the stable master.
I checked using wget URLs by hand and they do not exist.

Could you please check?
Thanks

sh build.sh
Picked up _JAVA_OPTIONS: -Dhttp.proxyHost=proxy.myuniv.edu -Dhttp.proxyPort=3128 -Dhttps.proxyHost=proxy.myuniv.edu -Dhttps.proxyPort=3128

Configure project :
[cmake]
[make]

FAILURE: Build failed with an exception.

  • Where:
    Build file '/home2/myaccount/installs/clearvolume/clearvolume/build.gradle' line: 242

  • What went wrong:
    Could not determine the dependencies of task ':cvFatJar'.

Could not resolve all files for configuration ':compile'.
Could not resolve net.clearcontrol:badtrack:0.1.4.
Required by:
project :
> Could not resolve net.clearcontrol:badtrack:0.1.4.
> Could not get resource 'http://dl.bintray.com/clearvolume/ClearVolume/net/clearcontrol/badtrack/0.1.4/badtrack-0.1.4.pom'.
> Could not GET 'http://dl.bintray.com/clearvolume/ClearVolume/net/clearcontrol/badtrack/0.1.4/badtrack-0.1.4.pom'. Received status code 403 from server: LoginPagePost
> Could not resolve net.clearcontrol:badtrack:0.1.4.
> Could not get resource 'http://oss.sonatype.org/content/groups/public/net/clearcontrol/badtrack/0.1.4/badtrack-0.1.4.pom'.
> Could not GET 'http://oss.sonatype.org/content/groups/public/net/clearcontrol/badtrack/0.1.4/badtrack-0.1.4.pom'. Received status code 403 from server: LoginPagePost
> Could not resolve net.clearcontrol:badtrack:0.1.4.
> Could not get resource 'http://dl.bintray.com/clearcontrol/ClearControl/net/clearcontrol/badtrack/0.1.4/badtrack-0.1.4.pom'.
> Could not GET 'http://dl.bintray.com/clearcontrol/ClearControl/net/clearcontrol/badtrack/0.1.4/badtrack-0.1.4.pom'. Received status code 403 from server: LoginPagePost
> Could not resolve net.clearcontrol:badtrack:0.1.4.
> Could not get resource 'http://maven.imagej.net/content/repositories/snapshots/net/clearcontrol/badtrack/0.1.4/badtrack-0.1.4.pom'.
> Could not GET 'http://maven.imagej.net/content/repositories/snapshots/net/clearcontrol/badtrack/0.1.4/badtrack-0.1.4.pom'. Received status code 403 from server: LoginPagePost
> Could not resolve net.clearcontrol:badtrack:0.1.4.
> Could not get resource 'http://artifacts.openmicroscopy.org/artifactory/maven/net/clearcontrol/badtrack/0.1.4/badtrack-0.1.4.pom'.
> Could not GET 'http://artifacts.openmicroscopy.org/artifactory/maven/net/clearcontrol/badtrack/0.1.4/badtrack-0.1.4.pom'. Received status code 403 from server: LoginPagePost
Could not resolve net.clearvolume:clearcl:0.5.2.
Required by:
project :
> Could not resolve net.clearvolume:clearcl:0.5.2.
> Could not get resource 'http://dl.bintray.com/clearvolume/ClearVolume/net/clearvolume/clearcl/0.5.2/clearcl-0.5.2.pom'.
> Could not GET 'http://dl.bintray.com/clearvolume/ClearVolume/net/clearvolume/clearcl/0.5.2/clearcl-0.5.2.pom'. Received status code 403 from server: LoginPagePost
> Could not resolve net.clearvolume:clearcl:0.5.2.
> Could not get resource 'http://oss.sonatype.org/content/groups/public/net/clearvolume/clearcl/0.5.2/clearcl-0.5.2.pom'.
> Could not GET 'http://oss.sonatype.org/content/groups/public/net/clearvolume/clearcl/0.5.2/clearcl-0.5.2.pom'. Received status code 403 from server: LoginPagePost
> Could not resolve net.clearvolume:clearcl:0.5.2.
> Could not get resource 'http://dl.bintray.com/clearcontrol/ClearControl/net/clearvolume/clearcl/0.5.2/clearcl-0.5.2.pom'.
> Could not GET 'http://dl.bintray.com/clearcontrol/ClearControl/net/clearvolume/clearcl/0.5.2/clearcl-0.5.2.pom'. Received status code 403 from server: LoginPagePost
> Could not resolve net.clearvolume:clearcl:0.5.2.
> Could not get resource 'http://maven.imagej.net/content/repositories/snapshots/net/clearvolume/clearcl/0.5.2/clearcl-0.5.2.pom'.
> Could not GET 'http://maven.imagej.net/content/repositories/snapshots/net/clearvolume/clearcl/0.5.2/clearcl-0.5.2.pom'. Received status code 403 from server: LoginPagePost
> Could not resolve net.clearvolume:clearcl:0.5.2.
> Could not get resource 'http://artifacts.openmicroscopy.org/artifactory/maven/net/clearvolume/clearcl/0.5.2/clearcl-0.5.2.pom'.
> Could not GET 'http://artifacts.openmicroscopy.org/artifactory/maven/net/clearvolume/clearcl/0.5.2/clearcl-0.5.2.pom'. Received status code 403 from server: LoginPagePost
Could not resolve net.clearvolume:clearaudio:1.0.2.
Required by:
project :
> Could not resolve net.clearvolume:clearaudio:1.0.2.
> Could not get resource 'http://dl.bintray.com/clearvolume/ClearVolume/net/clearvolume/clearaudio/1.0.2/clearaudio-1.0.2.pom'.
> Could not GET 'http://dl.bintray.com/clearvolume/ClearVolume/net/clearvolume/clearaudio/1.0.2/clearaudio-1.0.2.pom'. Received status code 403 from server: LoginPagePost
> Could not resolve net.clearvolume:clearaudio:1.0.2.
> Could not get resource 'http://oss.sonatype.org/content/groups/public/net/clearvolume/clearaudio/1.0.2/clearaudio-1.0.2.pom'.
> Could not GET 'http://oss.sonatype.org/content/groups/public/net/clearvolume/clearaudio/1.0.2/clearaudio-1.0.2.pom'. Received status code 403 from server: LoginPagePost
> Could not resolve net.clearvolume:clearaudio:1.0.2.
> Could not get resource 'http://dl.bintray.com/clearcontrol/ClearControl/net/clearvolume/clearaudio/1.0.2/clearaudio-1.0.2.pom'.
> Could not GET 'http://dl.bintray.com/clearcontrol/ClearControl/net/clearvolume/clearaudio/1.0.2/clearaudio-1.0.2.pom'. Received status code 403 from server: LoginPagePost
> Could not resolve net.clearvolume:clearaudio:1.0.2.
> Could not get resource 'http://maven.imagej.net/content/repositories/snapshots/net/clearvolume/clearaudio/1.0.2/clearaudio-1.0.2.pom'.
> Could not GET 'http://maven.imagej.net/content/repositories/snapshots/net/clearvolume/clearaudio/1.0.2/clearaudio-1.0.2.pom'. Received status code 403 from server: LoginPagePost
> Could not resolve net.clearvolume:clearaudio:1.0.2.
> Could not get resource 'http://artifacts.openmicroscopy.org/artifactory/maven/net/clearvolume/clearaudio/1.0.2/clearaudio-1.0.2.pom'.
> Could not GET 'http://artifacts.openmicroscopy.org/artifactory/maven/net/clearvolume/clearaudio/1.0.2/clearaudio-1.0.2.pom'. Received status code 403 from server: LoginPagePost
Could not resolve net.clearvolume:cleargl:2.1.0.
Required by:
project :
> Could not resolve net.clearvolume:cleargl:2.1.0.
> Could not get resource 'http://dl.bintray.com/clearvolume/ClearVolume/net/clearvolume/cleargl/2.1.0/cleargl-2.1.0.pom'.
> Could not GET 'http://dl.bintray.com/clearvolume/ClearVolume/net/clearvolume/cleargl/2.1.0/cleargl-2.1.0.pom'. Received status code 403 from server: LoginPagePost
> Could not resolve net.clearvolume:cleargl:2.1.0.
> Could not get resource 'http://oss.sonatype.org/content/groups/public/net/clearvolume/cleargl/2.1.0/cleargl-2.1.0.pom'.
> Could not GET 'http://oss.sonatype.org/content/groups/public/net/clearvolume/cleargl/2.1.0/cleargl-2.1.0.pom'. Received status code 403 from server: LoginPagePost
> Could not resolve net.clearvolume:cleargl:2.1.0.
> Could not get resource 'http://dl.bintray.com/clearcontrol/ClearControl/net/clearvolume/cleargl/2.1.0/cleargl-2.1.0.pom'.
> Could not GET 'http://dl.bintray.com/clearcontrol/ClearControl/net/clearvolume/cleargl/2.1.0/cleargl-2.1.0.pom'. Received status code 403 from server: LoginPagePost
> Could not resolve net.clearvolume:cleargl:2.1.0.
> Could not get resource 'http://maven.imagej.net/content/repositories/snapshots/net/clearvolume/cleargl/2.1.0/cleargl-2.1.0.pom'.
> Could not GET 'http://maven.imagej.net/content/repositories/snapshots/net/clearvolume/cleargl/2.1.0/cleargl-2.1.0.pom'. Received status code 403 from server: LoginPagePost
> Could not resolve net.clearvolume:cleargl:2.1.0.
> Could not get resource 'http://artifacts.openmicroscopy.org/artifactory/maven/net/clearvolume/cleargl/2.1.0/cleargl-2.1.0.pom'.
> Could not GET 'http://artifacts.openmicroscopy.org/artifactory/maven/net/clearvolume/cleargl/2.1.0/cleargl-2.1.0.pom'. Received status code 403 from server: LoginPagePost

  • Try:
    Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output.

  • Get more help at https://help.gradle.org

BUILD FAILED in 1s

@vigo332 vigo332 changed the title cvFatJar dependencies URL not found. cvFatJar dependencies URLs not found. Sep 19, 2017
@skalarproduktraum
Copy link
Member

Hi @vigo332,

the errors you are receiving actually indicate a problem related to the proxy you are using, which apparently wants to redirect you to a login page. Could you try from another network location, or without the proxy settings? It's normal that some of the files are not found (404), as the resolver tries several repositories, and not all of them have all packages. You are however seeing 403's stemming from your proxy, or a related network issue.

cheers!

@vigo332
Copy link
Author

vigo332 commented Sep 26, 2017

Hi, @skalarproduktraum

Thanks for updating.
It was a proxy issue which I have solved.

However, I came up the following error with sh build.sh. It seems that the Makefile cannot be generated successfully in build/cmake. I clone the master and I am running on Redhat 6.9 (2.6.32-696.6.3). I can open another issue if needed. Appreciated.

I have the following envs
$ echo $PATH
/cm/shared/apps/cuda80//bin:/cm/shared/apps/java/oracle/jdk1.8.0_144/bin:/apps/cmake/2.8.12/bin:/home2/user/installs/gradle/gradle-4.1/bin:/cm/shared/apps/git/v2.5.3/bin:/cm/shared/apps/slurm/2.5.7/sbin:/cm/shared/apps/slurm/2.5.7/bin:/usr/lib64/qt-3.3/bin:/usr/local/bin:/usr/bin:/bin:/usr/local/sbin:/usr/sbin:/sbin:/sbin:/usr/sbin:/sbin:/usr/sbin

$ which cmake
/apps/cmake/2.8.12/bin/cmake
$ which make
/usr/bin/make

$ uname -a
Linux server.univ 2.6.32-696.6.3.el6.x86_64 #1 SMP Fri Jun 30 13:24:18 EDT 2017 x86_64 x86_64 x86_64 GNU/Linux

$ echo $LD_LIBRARY_PATH
/cm/shared/apps/cuda80//extras/CUPTI/lib64:/cm/shared/apps/cuda80//lib64:/cm/shared/apps/java/oracle/jdk1.8.0_144/lib:/home2/user/installs/gradle/gradle-4.1/lib:/cm/shared/apps/slurm/2.5.7/lib64/slurm:/cm/shared/apps/slurm/2.5.7/lib64

$ echo $_JAVA_OPTIONS
-Dhttp.proxyHost=proxy.univ.edu -Dhttp.proxyPort=3128 -Dhttps.proxyHost=proxy.univ.edu -Dhttps.proxyPort=3128

$ nvidia-smi
Tue Sep 26 15:33:05 2017
+-----------------------------------------------------------------------------+
| NVIDIA-SMI 375.51 Driver Version: 375.51 |
|-------------------------------+----------------------+----------------------+
| GPU Name Persistence-M| Bus-Id Disp.A | Volatile Uncorr. ECC |
| Fan Temp Perf Pwr:Usage/Cap| Memory-Usage | GPU-Util Compute M. |
|===============================+======================+======================|
| 0 Quadro P2000 Off | 0000:01:00.0 On | N/A |
| 47% 35C P8 8W / 75W | 459MiB / 5048MiB | 0% Default |
+-------------------------------+----------------------+----------------------+

+-----------------------------------------------------------------------------+
| Processes: GPU Memory |
| GPU PID Type Process name Usage |
|=============================================================================|
| 0 4418 G /usr/bin/Xorg 457MiB |
+-----------------------------------------------------------------------------+

$ sh build.sh
Picked up _JAVA_OPTIONS: -Dhttp.proxyHost=proxy.univ.edu -Dhttp.proxyPort=3128 -Dhttps.proxyHost=proxy.univ.edu -Dhttps.proxyPort=3128

Configure project :
[cmake]
[make]

Task :compileJava
Note: /home2/user/installs/clearvolume/src/java/clearvolume/renderer/cleargl/ClearGLVolumeRenderer.java uses or overrides a deprecated API.
Note: Recompile with -Xlint:deprecation for details.
Note: /home2/user/installs/clearvolume/src/java/clearvolume/volume/sink/filter/gui/ChannelFilterSinkJPanel.java uses unchecked or unsafe operations.
Note: Recompile with -Xlint:unchecked for details.

Task :javadoc
Picked up _JAVA_OPTIONS: -Dhttp.proxyHost=proxy.univ.edu -Dhttp.proxyPort=3128 -Dhttps.proxyHost=proxy.univ.edu -Dhttps.proxyPort=3128
/home2/user/installs/clearvolume/src/java/clearvolume/renderer/cleargl/ClearGLVolumeRenderer.java:1129: warning - @param argument "pPhase" is not a parameter name.
/home2/user/installs/clearvolume/src/java/clearvolume/renderer/cleargl/ClearGLVolumeRenderer.java:1129: warning - @param argument "pClearBuffer" is not a parameter name.
/home2/user/installs/clearvolume/src/java/clearvolume/transferf/TransferFunctions.java:19: warning - @return tag has no arguments.
/home2/user/installs/clearvolume/src/java/clearvolume/transferf/TransferFunctions.java:30: warning - @return tag has no arguments.
/home2/user/installs/clearvolume/src/java/clearvolume/transferf/TransferFunctions.java:189: warning - @return tag has no arguments.
/home2/user/installs/clearvolume/src/java/clearvolume/transferf/TransferFunctions.java:198: warning - @return tag has no arguments.
/home2/user/installs/clearvolume/src/java/clearvolume/transferf/TransferFunctions.java:207: warning - @return tag has no arguments.
/home2/user/installs/clearvolume/src/java/clearvolume/renderer/ClearVolumeRendererBase.java:1252: warning - @param argument "pClipBoxBounds" is not a parameter name.
/home2/user/installs/clearvolume/src/java/clearvolume/renderer/ClearVolumeRendererBase.java:1274: warning - @param argument "pClipBoxBounds" is not a parameter name.
/home2/user/installs/clearvolume/src/java/clearvolume/renderer/ClearVolumeRendererBase.java:2305: warning - @param argument "pByteBuffer" is not a parameter name.
10 warnings

Task :cmake
cmake version 2.8.12
Usage

cmake [options]
cmake [options]

Options
-C = Pre-load a script to populate the cache.
-D := = Create a cmake cache entry.
-U <globbing_expr> = Remove matching entries from CMake cache.
-G = Specify a build system generator.
-T = Specify toolset name if supported by
generator.
-Wno-dev = Suppress developer warnings.
-Wdev = Enable developer warnings.
-E = CMake command mode.
-i = Run in wizard mode.
-L[A][H] = List non-advanced cached variables.
--build

= Build a CMake-generated project binary tree.
-N = View mode only.
-P = Process script mode.
--find-package = Run in pkg-config like mode.
--graphviz=[file] = Generate graphviz of dependencies, see
CMakeGraphVizOptions.cmake for more.
--system-information [file] = Dump information about this system.
--debug-trycompile = Do not delete the try_compile build tree.
Only useful on one try_compile at a time.
--debug-output = Put cmake in a debug mode.
--trace = Put cmake in trace mode.
--warn-uninitialized = Warn about uninitialized values.
--warn-unused-vars = Warn about unused variables.
--no-warn-unused-cli = Don't warn about command line options.
--check-system-vars = Find problems with variable usage in system
files.
--help-command cmd [file] = Print help for a single command and exit.
--help-command-list [file] = List available listfile commands and exit.
--help-commands [file] = Print help for all commands and exit.
--help-compatcommands [file]= Print help for compatibility commands.
--help-module module [file] = Print help for a single module and exit.
--help-module-list [file] = List available modules and exit.
--help-modules [file] = Print help for all modules and exit.
--help-custom-modules [file]= Print help for all custom modules and exit.
--help-policy cmp [file] = Print help for a single policy and exit.
--help-policies [file] = Print help for all policies and exit.
--help-property prop [file] = Print help for a single property and exit.
--help-property-list [file] = List available properties and exit.
--help-properties [file] = Print help for all properties and exit.
--help-variable var [file] = Print help for a single variable and exit.
--help-variable-list [file] = List documented variables and exit.
--help-variables [file] = Print help for all variables and exit.
--copyright [file] = Print the CMake copyright and exit.
--help,-help,-usage,-h,-H,/?= Print usage information and exit.
--help-full [file] = Print full help and exit.
--help-html [file] = Print full help in HTML format.
--help-man [file] = Print full help as a UNIX man page and exit.
--version,-version,/V [file]= Show program name/version banner and exit.

Generators

The following generators are available on this platform:
Unix Makefiles = Generates standard UNIX makefiles.
Ninja = Generates build.ninja files (experimental).
CodeBlocks - Ninja = Generates CodeBlocks project files.
CodeBlocks - Unix Makefiles = Generates CodeBlocks project files.
Eclipse CDT4 - Ninja = Generates Eclipse CDT 4.0 project files.
Eclipse CDT4 - Unix Makefiles
= Generates Eclipse CDT 4.0 project files.
KDevelop3 = Generates KDevelop 3 project files.
KDevelop3 - Unix Makefiles = Generates KDevelop 3 project files.
Sublime Text 2 - Ninja = Generates Sublime Text 2 project files.
Sublime Text 2 - Unix Makefiles
= Generates Sublime Text 2 project files.

Task :make
make: *** No targets specified and no makefile found. Stop.

FAILURE: Build failed with an exception.

  • What went wrong:
    Execution failed for task ':make'.

Process 'command 'make'' finished with non-zero exit value 2

  • Try:
    Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output.

  • Get more help at https://help.gradle.org

BUILD FAILED in 18s
10 actionable tasks: 10 executed

@skalarproduktraum
Copy link
Member

Hi @vigo332! This error looks like you are using an old CMake version. Is there a way you could use CMake 3.0 or higher?

@vigo332
Copy link
Author

vigo332 commented Sep 27, 2017

Hi, @skalarproduktraum,

Thanks for prompt response. I tried with cmake 3.9.3. Still the same error. Thanks

$ cmake --version
cmake version 3.9.3

CMake suite maintained and supported by Kitware (kitware.com/cmake).

$ gradle build -x test distribution --info
Gives the following error in make task.

Task :cmake
Putting task artifact state for task ':cmake' into context took 0.0 secs.
Skipping task ':cmake' as it is up-to-date (took 0.006 secs).

:cmake (Thread[Task worker for ':' Thread 2,5,main]) completed. Took 0.007 secs.
:make (Thread[Task worker for ':' Thread 2,5,main]) started.

Task :make
Putting task artifact state for task ':make' into context took 0.0 secs.
Executing task ':make' (up-to-date check took 0.0 secs) due to:
Task has failed previously.
Starting process 'command 'make''. Working directory: /home2/user/installs/clearvolume/build/cmake Command: make
Successfully started process 'command 'make''
make: *** No targets specified and no makefile found. Stop.

:make (Thread[Task worker for ':' Thread 2,5,main]) completed. Took 0.011 secs.

FAILURE: Build failed with an exception.

  • What went wrong:
    Execution failed for task ':make'.

Process 'command 'make'' finished with non-zero exit value 2

  • Try:
    Run with --stacktrace option to get the stack trace. Run with --debug option to get more log output.

  • Get more help at https://help.gradle.org

BUILD FAILED in 1s
10 actionable tasks: 1 executed, 9 up-to-date

@skalarproduktraum
Copy link
Member

Hey @vigo332,

so this now looks like as CMake is recognizing the flags given correctly, but in the previous run has failed to actually generate Makefiles for make to consume. Could you remove gradle's build/ directory and try the same command again?

@vigo332
Copy link
Author

vigo332 commented Sep 28, 2017

Hi @skalarproduktraum,

It also failed after removing the build/ directory, again the Makefile was not generated by cmake.

I am using java 1.8.0.144. I also tried to use java 1.7.0_51 but it is not supported.

Thanks

$ gradle build -x test distribution --debug --stacktrace
11:54:54.593 [ERROR] [org.gradle.internal.buildevents.BuildExceptionReporter]
11:54:54.593 [ERROR] [org.gradle.internal.buildevents.BuildExceptionReporter] FAILURE: Build failed with an exception.
11:54:54.593 [ERROR] [org.gradle.internal.buildevents.BuildExceptionReporter]
11:54:54.593 [ERROR] [org.gradle.internal.buildevents.BuildExceptionReporter] * What went wrong:
11:54:54.593 [ERROR] [org.gradle.internal.buildevents.BuildExceptionReporter] Execution failed for task ':make'.
11:54:54.593 [ERROR] [org.gradle.internal.buildevents.BuildExceptionReporter] > Process 'command 'make'' finished with non-zero exit value 2
11:54:54.593 [ERROR] [org.gradle.internal.buildevents.BuildExceptionReporter]
11:54:54.593 [ERROR] [org.gradle.internal.buildevents.BuildExceptionReporter] * Exception is:
11:54:54.593 [ERROR] [org.gradle.internal.buildevents.BuildExceptionReporter] org.gradle.api.tasks.TaskExecutionException: Execution failed for task ':make'.
11:54:54.593 [ERROR] [org.gradle.internal.buildevents.BuildExceptionReporter] at org.gradle.api.internal.tasks.execution.ExecuteActionsTaskExecuter.executeActions(ExecuteActionsTaskExecuter.java:100)
11:54:54.593 [ERROR] [org.gradle.internal.buildevents.BuildExceptionReporter] at org.gradle.api.internal.tasks.execution.ExecuteActionsTaskExecuter.execute(ExecuteActionsTaskExecuter.java:70)
11:54:54.593 [ERROR] [org.gradle.internal.buildevents.BuildExceptionReporter] at org.gradle.api.internal.tasks.execution.SkipUpToDateTaskExecuter.execute(SkipUpToDateTaskExecuter.java:63)
11:54:54.593 [ERROR] [org.gradle.internal.buildevents.BuildExceptionReporter] at org.gradle.api.internal.tasks.execution.ResolveTaskOutputCachingStateExecuter.execute(ResolveTaskOutputCachingStateExecuter.java:54)
11:54:54.593 [ERROR] [org.gradle.internal.buildevents.BuildExceptionReporter] at org.gradle.api.internal.tasks.execution.ValidatingTaskExecuter.execute(ValidatingTaskExecuter.java:58)
11:54:54.593 [ERROR] [org.gradle.internal.buildevents.BuildExceptionReporter] at org.gradle.api.internal.tasks.execution.SkipEmptySourceFilesTaskExecuter.execute(SkipEmptySourceFilesTaskExecuter.java:88)
11:54:54.593 [ERROR] [org.gradle.internal.buildevents.BuildExceptionReporter] at org.gradle.api.internal.tasks.execution.ResolveTaskArtifactStateTaskExecuter.execute(ResolveTaskArtifactStateTaskExecuter.java:52)
11:54:54.593 [ERROR] [org.gradle.internal.buildevents.BuildExceptionReporter] at org.gradle.api.internal.tasks.execution.SkipTaskWithNoActionsExecuter.execute(SkipTaskWithNoActionsExecuter.java:52)
11:54:54.593 [ERROR] [org.gradle.internal.buildevents.BuildExceptionReporter] at org.gradle.api.internal.tasks.execution.SkipOnlyIfTaskExecuter.execute(SkipOnlyIfTaskExecuter.java:54)
11:54:54.593 [ERROR] [org.gradle.internal.buildevents.BuildExceptionReporter] at org.gradle.api.internal.tasks.execution.ExecuteAtMostOnceTaskExecuter.execute(ExecuteAtMostOnceTaskExecuter.java:43)
11:54:54.593 [ERROR] [org.gradle.internal.buildevents.BuildExceptionReporter] at org.gradle.api.internal.tasks.execution.CatchExceptionTaskExecuter.execute(CatchExceptionTaskExecuter.java:34)
11:54:54.593 [ERROR] [org.gradle.internal.buildevents.BuildExceptionReporter] at org.gradle.execution.taskgraph.DefaultTaskGraphExecuter$EventFiringTaskWorker$1.run(DefaultTaskGraphExecuter.java:248)
11:54:54.593 [ERROR] [org.gradle.internal.buildevents.BuildExceptionReporter] at org.gradle.internal.progress.DefaultBuildOperationExecutor$RunnableBuildOperationWorker.execute(DefaultBuildOperationExecutor.java:336)
11:54:54.593 [ERROR] [org.gradle.internal.buildevents.BuildExceptionReporter] at org.gradle.internal.progress.DefaultBuildOperationExecutor$RunnableBuildOperationWorker.execute(DefaultBuildOperationExecutor.java:328)
11:54:54.593 [ERROR] [org.gradle.internal.buildevents.BuildExceptionReporter] at org.gradle.internal.progress.DefaultBuildOperationExecutor.execute(DefaultBuildOperationExecutor.java:197)
11:54:54.594 [ERROR] [org.gradle.internal.buildevents.BuildExceptionReporter] at org.gradle.internal.progress.DefaultBuildOperationExecutor.run(DefaultBuildOperationExecutor.java:107)
11:54:54.594 [ERROR] [org.gradle.internal.buildevents.BuildExceptionReporter] at org.gradle.execution.taskgraph.DefaultTaskGraphExecuter$EventFiringTaskWorker.execute(DefaultTaskGraphExecuter.java:241)
11:54:54.594 [ERROR] [org.gradle.internal.buildevents.BuildExceptionReporter] at org.gradle.execution.taskgraph.DefaultTaskGraphExecuter$EventFiringTaskWorker.execute(DefaultTaskGraphExecuter.java:230)
11:54:54.594 [ERROR] [org.gradle.internal.buildevents.BuildExceptionReporter] at org.gradle.execution.taskgraph.DefaultTaskPlanExecutor$TaskExecutorWorker.processTask(DefaultTaskPlanExecutor.java:124)
11:54:54.594 [ERROR] [org.gradle.internal.buildevents.BuildExceptionReporter] at org.gradle.execution.taskgraph.DefaultTaskPlanExecutor$TaskExecutorWorker.access$200(DefaultTaskPlanExecutor.java:80)
11:54:54.594 [ERROR] [org.gradle.internal.buildevents.BuildExceptionReporter] at org.gradle.execution.taskgraph.DefaultTaskPlanExecutor$TaskExecutorWorker$1.execute(DefaultTaskPlanExecutor.java:105)
11:54:54.594 [ERROR] [org.gradle.internal.buildevents.BuildExceptionReporter] at org.gradle.execution.taskgraph.DefaultTaskPlanExecutor$TaskExecutorWorker$1.execute(DefaultTaskPlanExecutor.java:99)
11:54:54.594 [ERROR] [org.gradle.internal.buildevents.BuildExceptionReporter] at org.gradle.execution.taskgraph.DefaultTaskExecutionPlan.execute(DefaultTaskExecutionPlan.java:625)
11:54:54.594 [ERROR] [org.gradle.internal.buildevents.BuildExceptionReporter] at org.gradle.execution.taskgraph.DefaultTaskExecutionPlan.executeWithTask(DefaultTaskExecutionPlan.java:580)
11:54:54.594 [ERROR] [org.gradle.internal.buildevents.BuildExceptionReporter] at org.gradle.execution.taskgraph.DefaultTaskPlanExecutor$TaskExecutorWorker.run(DefaultTaskPlanExecutor.java:99)
11:54:54.594 [ERROR] [org.gradle.internal.buildevents.BuildExceptionReporter] at org.gradle.internal.concurrent.ExecutorPolicy$CatchAndRecordFailures.onExecute(ExecutorPolicy.java:63)
11:54:54.594 [ERROR] [org.gradle.internal.buildevents.BuildExceptionReporter] at org.gradle.internal.concurrent.ManagedExecutorImpl$1.run(ManagedExecutorImpl.java:46)
11:54:54.594 [ERROR] [org.gradle.internal.buildevents.BuildExceptionReporter] at org.gradle.internal.concurrent.ThreadFactoryImpl$ManagedThreadRunnable.run(ThreadFactoryImpl.java:55)
11:54:54.594 [ERROR] [org.gradle.internal.buildevents.BuildExceptionReporter] Caused by: org.gradle.process.internal.ExecException: Process 'command 'make'' finished with non-zero exit value 2
11:54:54.594 [ERROR] [org.gradle.internal.buildevents.BuildExceptionReporter] at org.gradle.process.internal.DefaultExecHandle$ExecResultImpl.assertNormalExitValue(DefaultExecHandle.java:380)
11:54:54.594 [ERROR] [org.gradle.internal.buildevents.BuildExceptionReporter] at org.gradle.process.internal.DefaultExecAction.execute(DefaultExecAction.java:31)
11:54:54.594 [ERROR] [org.gradle.internal.buildevents.BuildExceptionReporter] at org.gradle.api.tasks.AbstractExecTask.exec(AbstractExecTask.java:54)
11:54:54.594 [ERROR] [org.gradle.internal.buildevents.BuildExceptionReporter] at org.gradle.internal.reflect.JavaMethod.invoke(JavaMethod.java:73)
11:54:54.594 [ERROR] [org.gradle.internal.buildevents.BuildExceptionReporter] at org.gradle.api.internal.project.taskfactory.DefaultTaskClassInfoStore$StandardTaskAction.doExecute(DefaultTaskClassInfoStore.java:141)
11:54:54.594 [ERROR] [org.gradle.internal.buildevents.BuildExceptionReporter] at org.gradle.api.internal.project.taskfactory.DefaultTaskClassInfoStore$StandardTaskAction.execute(DefaultTaskClassInfoStore.java:134)
11:54:54.594 [ERROR] [org.gradle.internal.buildevents.BuildExceptionReporter] at org.gradle.api.internal.project.taskfactory.DefaultTaskClassInfoStore$StandardTaskAction.execute(DefaultTaskClassInfoStore.java:121)
11:54:54.594 [ERROR] [org.gradle.internal.buildevents.BuildExceptionReporter] at org.gradle.api.internal.AbstractTask$TaskActionWrapper.execute(AbstractTask.java:731)
11:54:54.594 [ERROR] [org.gradle.internal.buildevents.BuildExceptionReporter] at org.gradle.api.internal.AbstractTask$TaskActionWrapper.execute(AbstractTask.java:705)
11:54:54.594 [ERROR] [org.gradle.internal.buildevents.BuildExceptionReporter] at org.gradle.api.internal.tasks.execution.ExecuteActionsTaskExecuter$1.run(ExecuteActionsTaskExecuter.java:122)
11:54:54.594 [ERROR] [org.gradle.internal.buildevents.BuildExceptionReporter] at org.gradle.internal.progress.DefaultBuildOperationExecutor$RunnableBuildOperationWorker.execute(DefaultBuildOperationExecutor.java:336)
11:54:54.594 [ERROR] [org.gradle.internal.buildevents.BuildExceptionReporter] at org.gradle.internal.progress.DefaultBuildOperationExecutor$RunnableBuildOperationWorker.execute(DefaultBuildOperationExecutor.java:328)
11:54:54.594 [ERROR] [org.gradle.internal.buildevents.BuildExceptionReporter] at org.gradle.internal.progress.DefaultBuildOperationExecutor.execute(DefaultBuildOperationExecutor.java:197)
11:54:54.594 [ERROR] [org.gradle.internal.buildevents.BuildExceptionReporter] at org.gradle.internal.progress.DefaultBuildOperationExecutor.run(DefaultBuildOperationExecutor.java:107)
11:54:54.594 [ERROR] [org.gradle.internal.buildevents.BuildExceptionReporter] at org.gradle.api.internal.tasks.execution.ExecuteActionsTaskExecuter.executeAction(ExecuteActionsTaskExecuter.java:111)
11:54:54.594 [ERROR] [org.gradle.internal.buildevents.BuildExceptionReporter] at org.gradle.api.internal.tasks.execution.ExecuteActionsTaskExecuter.executeActions(ExecuteActionsTaskExecuter.java:92)
11:54:54.594 [ERROR] [org.gradle.internal.buildevents.BuildExceptionReporter] ... 27 more
11:54:54.594 [ERROR] [org.gradle.internal.buildevents.BuildExceptionReporter]
11:54:54.594 [ERROR] [org.gradle.internal.buildevents.BuildExceptionReporter]
11:54:54.594 [ERROR] [org.gradle.internal.buildevents.BuildExceptionReporter] * Get more help at https://help.gradle.org
11:54:54.594 [ERROR] [org.gradle.internal.buildevents.BuildResultLogger]
11:54:54.594 [ERROR] [org.gradle.internal.buildevents.BuildResultLogger] BUILD FAILED in 11s

@skalarproduktraum
Copy link
Member

Okay then, let's dig deeper.

So gradle is actually just wrapping CMake, to make the process a little more convenient. Let's try what happens if we use CMake directly. Could you please go to the src/cpp directory, and create a new directory (named e.g. build) there? Then change into this directory, and run cmake .., and post the output here. Thanks!

@vigo332
Copy link
Author

vigo332 commented Oct 2, 2017

Hi, @skalarproduktraum ,

Thanks. I got these output.

$ pwd
/home2/user/installs/clearvolume/src/cpp
$ mkdir build
$ cd build/
$ cmake --version
cmake version 3.9.3
$ cmake ..
-- The C compiler identification is GNU 4.4.7
-- The CXX compiler identification is GNU 4.4.7
-- Check for working C compiler: /usr/bin/cc
-- Check for working C compiler: /usr/bin/cc -- works
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Detecting C compile features
-- Detecting C compile features - done
-- Check for working CXX compiler: /usr/bin/c++
-- Check for working CXX compiler: /usr/bin/c++ -- works
-- Detecting CXX compiler ABI info
-- Detecting CXX compiler ABI info - done
-- Detecting CXX compile features
-- Detecting CXX compile features - done
64 bits compiler detected
-- Found JNI: /cm/shared/apps/java/oracle/jdk1.8.0_144/jre/lib/amd64/libjawt.so
-- Could NOT find TIFF (missing: TIFF_LIBRARY TIFF_INCLUDE_DIR)
-- JNI found, using:
-- JNI_INCLUDE_DIRS=/cm/shared/apps/java/oracle/jdk1.8.0_144/include;/cm/shared/apps/java/oracle/jdk1.8.0_144/include/linux;/cm/shared/apps/java/oracle/jdk1.8.0_144/include
-- JNI_LIBRARIES=/cm/shared/apps/java/oracle/jdk1.8.0_144/jre/lib/amd64/libjawt.so;/cm/shared/apps/java/oracle/jdk1.8.0_144/jre/lib/amd64/server/libjvm.so
-- Performing Test COMPILER_SUPPORTS_CXX11
-- Performing Test COMPILER_SUPPORTS_CXX11 - Failed
-- Performing Test COMPILER_SUPPORTS_CXX0X
-- Performing Test COMPILER_SUPPORTS_CXX0X - Success
-- LibTIFF not found or disabled, building only non-LibTIFF examples.
-- Configuring done
-- Generating done
-- Build files have been written to: /home2/user/installs/clearvolume/src/cpp/build

This seem to be successful. I copied this build directory to clearvolume/build/cmake and ran build, I got
$ pwd
/home2/user/installs/clearvolume

$ sh build.sh
Picked up _JAVA_OPTIONS: -Dhttp.proxyHost=proxy.univ.edu -Dhttp.proxyPort=3128 -Dhttps.proxyHost=proxy.univ.edu -Dhttps.proxyPort=3128

Configure project :
[cmake]
[make]

Task :cmake
Usage

cmake [options]
cmake [options]

Specify a source directory to (re-)generate a build system for it in the
current working directory. Specify an existing build directory to
re-generate its build system.

Run 'cmake --help' for more information.

Task :make
64 bits compiler detected
-- Could NOT find TIFF (missing: TIFF_LIBRARY TIFF_INCLUDE_DIR)
-- JNI found, using:
-- JNI_INCLUDE_DIRS=/cm/shared/apps/java/oracle/jdk1.8.0_144/include;/cm/shared/apps/java/oracle/jdk1.8.0_144/include/linux;/cm/shared/apps/java/oracle/jdk1.8.0_144/include
-- JNI_LIBRARIES=/cm/shared/apps/java/oracle/jdk1.8.0_144/jre/lib/amd64/libjawt.so;/cm/shared/apps/java/oracle/jdk1.8.0_144/jre/lib/amd64/server/libjvm.so
-- LibTIFF not found or disabled, building only non-LibTIFF examples.
-- Configuring done
-- Generating done
-- Build files have been written to: /home2/user/installs/clearvolume/src/cpp/build
make[2]: *** No rule to make target ../src/cvlib.c', needed by CMakeFiles/clearvolume.dir/src/cvlib.c.o'. Stop.
make[1]: *** [CMakeFiles/clearvolume.dir/all] Error 2
make: *** [all] Error 2

FAILURE: Build failed with an exception.

  • What went wrong:
    Execution failed for task ':make'.

Process 'command 'make'' finished with non-zero exit value 2

  • Try:
    Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output.

  • Get more help at https://help.gradle.org

BUILD FAILED in 2s
10 actionable tasks: 2 executed, 8 up-to-date

I guess this probably messed up the file path by hard copying the cmake files.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants