Programs don't compile after load from dusty-nv/jetson-inference

I’m on ORIN Jetson AGX Developer kit
L4T 35.1.0 [ JetPack 5.0.2 ]

Reading document posted by dusty-nv - jetson-inference/docs/building-repo-2.md
All was successful, until the “Compiling the Project” step.
I executed the $ make command from the jetson-inference/build directory.
Then i see errors during tensorNet.cpp, captureWindow.cpp, and PyNumpy.cpp compile:

…condensed…
[ 49%] Building CXX object CMAKEFiles/jetson-inference.dir/c/tensorNet.cpp.o
…tensorNet.cpp: In member function 'bool tensorNet::LoadNetwork…
…tensorNety.cpp1216:25: warning ‘.calibration’ directive writing 12 bytes into a region of size between 1 and 4096
…tensorNet.cpp:1216:9: note: ‘sprintf’ output between 13 and 4108 bytes into a destination of size 4096
…tensorNet.cpp:1222:25: warning: ‘.engine’ directive writing 7 bytes into a region of size between 1 and 4096
…tensorNet.cpp:1222:9: note: ‘sprintf’ output between 8 and 4103 bytes into a destination of size 4096
.
.
[ 75%] Building CXX object tools/camera-capture/CMakeFiles/camera-capture.dir/captureWindow.cpp.o
…jetson-inference/tools/camera-capture/captureWindow.cpp: In member function ‘glWidget* CaptureWindow::GetWidget(int) const’:
…/jetson-inference/tools/camera-capture/captureWindow.cpp:222:1: warning: no return statement in function returning non-void [-Wreturn-type]
.
.
[ 91%] Building CXX object utils/python/bindings_python_3.8/CMakeFiles/jetson-utils-python-38.dir/PyNumpy.cpp.o
…/jetson-inference/utils/python/bindings/PyNumpy.cpp: In function ‘PyObject* PyNumpy_ImportNumpy()’:
…/jetson-inference/utils/python/bindings/PyNumpy.cpp:313:1: warning: control reaches end of non-void function…
.
.
[100%] Linking CXX shared library …/…/aarch64/lib/python/3.8/jetson_inference_python.so
[100%] Built target jetson-inference-python-38

Did I miss a step? I assume others have had similar issues?

Thanks for the Help!

I modified the three programs that caused the build to fail. I have not tested the code changes and will do so as I develop. They all now compile at least.

PyNumpy.cpp
jetson-inference/utils/python/bindings/PyNumpy.cpp
Added a new line of code

308   // Initialize NumPy
309  PyMODINIT_FUNC PyNumpy_ImportNumpy()
310  {
311	      import_array();
312       //import_ufunc();    // only needed if using ufunctions
313	      return NULL;         // SPARKS 2023-04-20 Added this line to fix error
314  }

tensorNet.cpp
jetson-inference/c/tensorNet.cpp
Add 20 to cache_path variable length

1212 char cache_prefix[PATH_MAX]; // No change
1213 char cache_path[PATH_MAX + 20];   // Add 20 to length to help compile

captureWindow.cpp
jetson-inference/tools/camera-capture/captureWindow.cpp
Added return

218 // GetWidget
219 glWidget* CaptureWindow::GetWidget( int index ) const
220 {
221	return display->GetWidget(index); // SPARKS 2023-04-20 Added return to fix compaile error
222 }

Hi @steven.sparks, those were warnings not errors, so they shouldn’t have prevented the programs from compiling. Regardless, thanks for tracking these down - is it working for you ok now?

Yes, all is working ok now. Thanks for the quick reply.

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