Ntcore installation error (Jetson)

Our team is attempting to setup networktables between a Jetson and the RoboRio using this tutorial https://elinux.org/Jetson/FRC_Setup#Software_Examples. After cloning the Ntcore github and installing cmake, we ran sudo make which through the following error: https://pastebin.com/hS9VRdiN .

Don’t clone the ntcore github repo, that’s extremely old and no longer updated. Use the allwpilib repo (you can just build ntcore). If you run into warning-as-error problems with that repo, edit cmake/modules/CompileWarnings.cmake and remove -Werror from the target_compile_options.

2 Likes

I’m also trying to use ntcore on a jetson and have cloned allwpilib and set the options to build WITHOUT_JAVA, WITHOUT_CSCORE, and WITHOUT_ALLWPILIB. Everything appeared to build OK and sudo make install also appeared to be successful. I’ve updated my own CMake file to find wpilib and ntcore, but when I try to include files like <NetworkTable.h> its not found. I attempted to set additional includes but it quickly becomes a mess with include dependencies of other files not found. Any thoughts on what I’m doing wrong? Is there a specific way to set the include_dirs in the CMake file to resolve this?

After banging my head against the wall for a few days, I found an alternative. I am currently running this on my Jetson.

NetworkTable.h is in the networktables folder, so you need to #include <networktables/NetworkTable.h>. This is what your CMakeLists.txt needs to look like:

FIND_PACKAGE(wpiutil)
FIND_PACKAGE(ntcore)
ADD_EXECUTABLE(test test.cpp)
TARGET_LINK_LIBRARIES(test ntcore)

This will automatically add the right include directories and linker commands.

Thanks! Somehow I missed the find for ntcore. All’s good now.

This topic was automatically closed 365 days after the last reply. New replies are no longer allowed.