Pcl demo build error in Jetpack4.6 (c++: internal compiler error)

Jetson Xavier NX - Jetpack 4.6 [L4T 32.6.1]

when I build pcl visualizer demo pcl_visualizer_demo , got internal compiler error, the pcl is installed by apt-get install libpcl-dev.
and I have tried method from opencv-compilation-error-on-tx1-jetpack-l4t-2-2 and ros-hector-mapping-c-internal-compiler-error-segmentation-fault-program-cc1plus
not work.
finally I found it can success build in Jetpack 4.5. But I need use some .so in Jetpack 4.6. Can some one help with this.

Thanks

build cmake .. && make
-- Boost version: 1.65.1
-- Found the following Boost libraries:
--   system
--   filesystem
--   thread
--   date_time
--   iostreams
--   serialization
--   chrono
--   atomic
--   regex
-- Could NOT find ensenso (missing: ENSENSO_LIBRARY ENSENSO_INCLUDE_DIR) 
** WARNING ** io features related to ensenso will be disabled
-- Could NOT find DAVIDSDK (missing: DAVIDSDK_LIBRARY DAVIDSDK_INCLUDE_DIR) 
** WARNING ** io features related to davidSDK will be disabled
-- Could NOT find DSSDK (missing: _DSSDK_LIBRARIES) 
** WARNING ** io features related to dssdk will be disabled
** WARNING ** io features related to pcap will be disabled
** WARNING ** io features related to png will be disabled
-- The imported target "vtkRenderingPythonTkWidgets" references the file
   "/usr/lib/aarch64-linux-gnu/libvtkRenderingPythonTkWidgets.so"
but this file does not exist.  Possible reasons include:
* The file was deleted, renamed, or moved to another location.
* An install or uninstall procedure did not complete successfully.
* The installation package was faulty and contained
   "/usr/lib/cmake/vtk-6.3/VTKTargets.cmake"
but not all the files it references.

-- The imported target "vtk" references the file
   "/usr/bin/vtk"
but this file does not exist.  Possible reasons include:
* The file was deleted, renamed, or moved to another location.
* An install or uninstall procedure did not complete successfully.
* The installation package was faulty and contained
   "/usr/lib/cmake/vtk-6.3/VTKTargets.cmake"
but not all the files it references.

** WARNING ** io features related to libusb-1.0 will be disabled
-- Could NOT find ensenso (missing: ENSENSO_LIBRARY ENSENSO_INCLUDE_DIR) 
** WARNING ** visualization features related to ensenso will be disabled
-- Could NOT find DAVIDSDK (missing: DAVIDSDK_LIBRARY DAVIDSDK_INCLUDE_DIR) 
** WARNING ** visualization features related to davidSDK will be disabled
-- Could NOT find DSSDK (missing: _DSSDK_LIBRARIES) 
** WARNING ** visualization features related to dssdk will be disabled
-- Could NOT find RSSDK (missing: _RSSDK_LIBRARIES) 
** WARNING ** visualization features related to rssdk will be disabled
-- looking for PCL_COMMON
-- looking for PCL_OCTREE
-- looking for PCL_IO
-- looking for PCL_KDTREE
-- looking for PCL_SEARCH
-- looking for PCL_SAMPLE_CONSENSUS
-- looking for PCL_FILTERS
-- looking for PCL_2D
-- looking for PCL_GEOMETRY
-- looking for PCL_FEATURES
-- looking for PCL_ML
-- looking for PCL_SEGMENTATION
-- looking for PCL_VISUALIZATION
-- looking for PCL_SURFACE
-- looking for PCL_REGISTRATION
-- looking for PCL_KEYPOINTS
-- looking for PCL_TRACKING
-- looking for PCL_RECOGNITION
-- looking for PCL_STEREO
-- looking for PCL_APPS
-- looking for PCL_IN_HAND_SCANNER
-- looking for PCL_MODELER
-- looking for PCL_POINT_CLOUD_EDITOR
-- looking for PCL_OUTOFCORE
-- looking for PCL_PEOPLE
-- Configuring done
-- Generating done
-- Build files have been written to: /home/nvidia/projects/pcl_demo/build
[ 50%] Building CXX object CMakeFiles/pcl_visualizer_demo.dir/pcl_visualizer_demo.cpp.o
c++: internal compiler error: Segmentation fault (program cc1plus)
Please submit a full bug report,
with preprocessed source if appropriate.
See <file:///usr/share/doc/gcc-7/README.Bugs> for instructions.
CMakeFiles/pcl_visualizer_demo.dir/build.make:62: recipe for target 'CMakeFiles/pcl_visualizer_demo.dir/pcl_visualizer_demo.cpp.o' failed
make[2]: *** [CMakeFiles/pcl_visualizer_demo.dir/pcl_visualizer_demo.cpp.o] Error 4
CMakeFiles/Makefile2:67: recipe for target 'CMakeFiles/pcl_visualizer_demo.dir/all' failed
make[1]: *** [CMakeFiles/pcl_visualizer_demo.dir/all] Error 2
Makefile:83: recipe for target 'all' failed
make: *** [all] Error 2

Hi,
This would need other users to share experience. See if the .so files can be installed through apt-get install.

Or maybe you can copy the files from JP4.5 to JP4.6 for a try. The system are Ubuntu 18.04 and the files should work on both 4.5 and 4.6.

Thanks for your reply.But this seems to be an issue with JP 4.6? and I want to use TensorRT 8.0+ in JP4.6.

Hi,
Does the sample have dependency to python? If yes, you may try
Jetson/L4T/TRT Customized Example - eLinux.org

Certain issue is triggered due to version mismatch of 3rdparty packages. This issue may be a similar one.

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