0
Under review

Hello-openice execution

Kavya K A 10 years ago in OpenICE updated 10 years ago 4
Hi
I am new to this community. I tried running the hello-openice code by downloading it from github using gradle commands and I am stuck at gradlew run command it stops at Bulding 75%. I am not able to understand what is going wrong.

OpenICE
Under review
Hello Kavya,

Try importing the OpenICE project to Eclipse. The following may help:

This is an excerpt from Build OpenICE from Source:
Building the project
Option A: Do you use Eclipse? Gradle, our project automation tool of choice, has an Eclipse plugin.
Navigate to the root directory of the mdpnp-code you just downloaded
Type gradle eclipse on your command line. This will convert the project into an Eclipse project.
Type gradle build which will build your code.
Note: This command will be
$ ./gradle eclipse for Linux andMac OS X.
> gradle eclipse for Windows.
Now you can simply import the project into Eclipse.

If you still have problems, please provide a detailed list of the steps you are making to get to this issue and we will be able to help you more.

Thanks,
Jeff
Hi Jeff,

I tried building the project and here is the following error that I am getting when I use any of the command gradle build or gradle eclipse so please help me what is going wrong how do i need to follow the steps.

C:\Users\310211285\mdpnp>gradle eclipse
NOTE: To build with OpenSplice compatibility please set the OSPL_HOME and SPLICE
_TARGET environment variables.
Defining custom 'build' task when using the standard Gradle lifecycle plugins ha
s been deprecated and is scheduled to be removed in Gradle 3.0

FAILURE: Build failed with an exception.

* Where:
Build file 'C:\Users\310211285\mdpnp\data-types\x73-idl-rti-dds\build.gradle' li
ne: 72

* What went wrong:
A problem occurred evaluating project ':data-types:x73-idl-rti-dds'.
> Could not resolve all dependencies for configuration ':data-types:x73-idl-rti-
dds:rtiddsgen'.
> Could not resolve org.anarres:cpp-bin:1.2.8-SNAPSHOT.
Required by:
org.mdpnp:x73-idl-rti-dds:0.6.3-SNAPSHOT
> Could not resolve org.anarres:cpp-bin:1.2.8-SNAPSHOT.
> Unable to load Maven meta-data from https://build.openice.info/artifa
ctory/libs-snapshot/org/anarres/cpp-bin/1.2.8-SNAPSHOT/maven-metadata.xml.
t/org/anarres/cpp-bin/1.2.8-SNAPSHOT/maven-metadata.xml'.
> This is usually a temporary error during hostname resolution an
d means that the local server did not receive a response from an authoritative s
erver
> Could not resolve org.anarres:cpp-bin:1.2.8-SNAPSHOT.
> Unable to load Maven meta-data from https://build.openice.info/artifa
ctory/libs-release/org/anarres/cpp-bin/1.2.8-SNAPSHOT/maven-metadata.xml.
/org/anarres/cpp-bin/1.2.8-SNAPSHOT/maven-metadata.xml'.
> build.openice.info
> Could not resolve org.anarres:cpp-bin:1.2.8-SNAPSHOT.
> Unable to load Maven meta-data from https://build.openice.info/artifa
ctory/remote-repos/org/anarres/cpp-bin/1.2.8-SNAPSHOT/maven-metadata.xml.
/org/anarres/cpp-bin/1.2.8-SNAPSHOT/maven-metadata.xml'.
> build.openice.info

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

BUILD FAILED

Total time: 35.901 secs

C:\Users\310211285\mdpnp>

Regards
Kavya K A

The errors indicate an inability to receive libraries from our artifact server either due to network connectivity issues or issues with the server. Often such errors are transient. Do you ever retry the build? I've tried rebuilding several times successfully and cannot reproduce the problem.

Also, the hello-openice project runs the program as its default target. So it will show that the "build" is at 75% when it runs the program. This is expected behavior. From that point the program will print out any OpenICE traffic it detects. If there is no traffic present nothing will be output. The intent of the "hello-openice" project is for people to examine the code and see how they can access data in the OpenICE system.

Thank you