Hello,
We are from Team 5690 Subzero Robotics and we are having some networktable issues while using cmake to make our vision code. We are using ntcore from github and built it using ./gradlew :arm:build without any errors. We added paths in our CMakeLists.txt for ntcore and the networktables/NetworkTable.h. We end up getting an error that looks like this
ubuntu@tegra-ubuntu:~/Desktop/Projects$ cmake .
CUDA_USE_STATIC_CUDA_RUNTIME : OFF
– Found CUDA: /usr/local/cuda-8.0 (found suitable exact version “8.0”)
– Found CUDA: /usr/local/cuda-8.0 (found version “8.0”)
– Configuring done
– Generating done
– Build files have been written to: /home/ubuntu/Desktop/Projects
ubuntu@tegra-ubuntu:~/Desktop/Projects$ make
Scanning dependencies of target ZED_Tracking_Viewer
50%] Building CXX object CMakeFiles/ZED_Tracking_Viewer.dir/src/main.o
[100%] Linking CXX executable “ZED Tracking Viewer”
CMakeFiles/ZED_Tracking_Viewer.dir/src/main.o: In function main': /home/ubuntu/Desktop/Projects/src/main.cpp:32: undefined reference to
NetworkTable::SetClientMode()’
/home/ubuntu/Desktop/Projects/src/main.cpp:33: undefined reference to NetworkTable::SetIPAddress(llvm::StringRef)' /home/ubuntu/Desktop/Projects/src/main.cpp:34: undefined reference to
NetworkTable::Initialize()’
/home/ubuntu/Desktop/Projects/src/main.cpp:35: undefined reference to NetworkTable::GetTable(llvm::StringRef)' /home/ubuntu/Desktop/Projects/src/main.cpp:37: undefined reference to
NetworkTable::Shutdown()’
collect2: error: ld returned 1 exit status
CMakeFiles/ZED_Tracking_Viewer.dir/build.make:141: recipe for target ‘ZED Tracking Viewer’ failed
make[2]: *** [ZED Tracking Viewer] Error 1
CMakeFiles/Makefile2:67: recipe for target ‘CMakeFiles/ZED_Tracking_Viewer.dir/all’ failed
make[1]: *** [CMakeFiles/ZED_Tracking_Viewer.dir/all] Error 2
Makefile:83: recipe for target ‘all’ failed
make: *** [all] Error 2
ubuntu@tegra-ubuntu:~/Desktop/Projects$
Any ideas? Any help is much appreciated.