ntcore on github is over 2 years old and has a comment stating that ntcore is now part of allwpilib.
On the pi, changing to the root directory and using the command ‘sudo find . -name allwpilib -print’ results in ./usr/src/allwpilib ! Already installed on the pi. Well almost, commands to install are on the pi. We just need to know how to run them.
In that folder there is a README.md file telling us how to run gradlew. So we changed to that folder and tried to run ./gradlew :ntcore:build to build the ntcore.jar file. And we got the following errors:
:/usr/src/allwpilib$ ./gradlew :ntcore:build
Welcome to Gradle 6.0!
Here are the highlights of this release:
- Substantial improvements in dependency management, including
- Publishing Gradle Module Metadata in addition to pom.xml
- Advanced control of transitive versions
- Support for optional features and dependencies
- Rules to tweak published metadata
- Support for Java 13
- Faster incremental Java and Groovy compilation
- New Zinc compiler for Scala
- VS2019 support
- Support for Gradle Enterprise plugin 3.0
For more details see https://docs.gradle.org/6.0/release-notes.html
Starting a Gradle Daemon (subsequent builds will be faster)
FAILURE: Build failed with an exception.
- What went wrong:
Could not create service of type ScriptPluginFactory using BuildScopeServices.createScriptPluginFactory().
Could not create service of type CrossBuildFileHashCache using BuildSessionScopeServices.createCrossBuildFileHashCache().
BUILD FAILED in 1m 18s
Enough for tonight. And we have robotics in the morning so that will be it until Sunday. Maybe we need to specify compiling for pi processor. Or maybe we must run using sudo.
If we get this to work then we get to try and publish our jar file as a maven something or other. Lucky us we’ll get to figure out what maven is next. Might even have vision in time for this years competition. (Hah).