Drive PX2 libGL.SO Problem

Hi,
I am trying to build quanergy lidar node in DPX2 and I encounter below error:

error:

Checking for module ‘libopenni2’
– No package ‘libopenni2’ found
– Could NOT find OpenNI2 (missing: OPENNI2_LIBRARY OPENNI2_INCLUDE_DIRS)
** WARNING ** io features related to openni2 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.2/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.2/VTKTargets.cmake”
    but not all the files it references.

CMake Error at /usr/lib/aarch64-linux-gnu/cmake/Qt5Gui/Qt5GuiConfig.cmake:27 (message):
The imported target “Qt5::Gui” references the file

 "/usr/lib/aarch64-linux-gnu/libGL.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/aarch64-linux-gnu/cmake/Qt5Gui/Qt5GuiConfigExtras.cmake”

but not all the files it references.

Call Stack (most recent call first):
/usr/lib/aarch64-linux-gnu/cmake/Qt5Gui/Qt5GuiConfigExtras.cmake:50 (_qt5_Gui_check_file_exists)
/usr/lib/aarch64-linux-gnu/cmake/Qt5Gui/Qt5GuiConfigExtras.cmake:74 (_qt5gui_find_extra_libs)
/usr/lib/aarch64-linux-gnu/cmake/Qt5Gui/Qt5GuiConfig.cmake:158 (include)
/usr/lib/aarch64-linux-gnu/cmake/Qt5WebKit/Qt5WebKitConfig.cmake:99 (find_package)
/usr/lib/aarch64-linux-gnu/cmake/Qt5WebKitWidgets/Qt5WebKitWidgetsConfig.cmake:99 (find_package)
/usr/lib/cmake/vtk-6.2/Modules/vtkGUISupportQtWebkit.cmake:13 (find_package)
/usr/lib/cmake/vtk-6.2/vtkModuleAPI.cmake:45 (include)
/usr/lib/cmake/vtk-6.2/vtkModuleAPI.cmake:15 (vtk_module_load)
/usr/lib/cmake/vtk-6.2/vtkModuleAPI.cmake:132 (_vtk_module_config_recurse)
/usr/lib/cmake/vtk-6.2/VTKConfig.cmake:80 (vtk_module_config)
/usr/lib/aarch64-linux-gnu/cmake/pcl/PCLConfig.cmake:328 (find_package)
/usr/lib/aarch64-linux-gnu/cmake/pcl/PCLConfig.cmake:468 (find_VTK)
/usr/lib/aarch64-linux-gnu/cmake/pcl/PCLConfig.cmake:651 (find_external_library)
CMakeLists.txt:51 (find_package)

So, I have tried forums solved issues like,

cd /usr/lib/aarch64-linux-gnu/
sudo ln -sf tegra/libgl.so libgl.so

but it don’t work.

Now I tried to build my working work-space and I am getting below error after used above commend.

error:

make[2]: *** No rule to make target ‘/usr/lib/aarch64-linux-gnu/libEGL.so’, needed by ‘/home/nvidia/nervo/devel/lib/dw_sensors/dw_gps’. Stop.
CMakeFiles/Makefile2:1825: recipe for target ‘dw_sensors/CMakeFiles/dw_gps.dir/all’ failed
make[1]: *** [dw_sensors/CMakeFiles/dw_gps.dir/all] Error 2
make[1]: *** Waiting for unfinished jobs…
make[2]: *** No rule to make target ‘/usr/lib/aarch64-linux-gnu/libEGL.so’, needed by ‘/home/nvidia/nervo/devel/lib/dw_sensors/userinput’. Stop.
CMakeFiles/Makefile2:2261: recipe for target ‘dw_sensors/CMakeFiles/userinput.dir/all’ failed
make[1]: *** [dw_sensors/CMakeFiles/userinput.dir/all] Error 2
make[2]: *** No rule to make target ‘/usr/lib/aarch64-linux-gnu/libEGL.so’, needed by ‘/home/nvidia/nervo/devel/lib/dw_sensors/dw_lidar’. Stop.
CMakeFiles/Makefile2:2160: recipe for target ‘dw_sensors/CMakeFiles/dw_lidar.dir/all’ failed
make[1]: *** [dw_sensors/CMakeFiles/dw_lidar.dir/all] Error 2
make[2]: *** No rule to make target ‘/usr/lib/aarch64-linux-gnu/libEGL.so’, needed by ‘/home/nvidia/nervo/devel/lib/dw_sensors/dw_drive_net’. Stop.
CMakeFiles/Makefile2:2091: recipe for target ‘dw_sensors/CMakeFiles/dw_drive_net.dir/all’ failed
make[1]: *** [dw_sensors/CMakeFiles/dw_drive_net.dir/all] Error 2
make[2]: *** No rule to make target ‘/usr/lib/aarch64-linux-gnu/libEGL.so’, needed by ‘/home/nvidia/nervo/devel/lib/dw_sensors/dw_cam_pub_node’. Stop.
CMakeFiles/Makefile2:2362: recipe for target ‘dw_sensors/CMakeFiles/dw_cam_pub_node.dir/all’ failed
make[1]: *** [dw_sensors/CMakeFiles/dw_cam_pub_node.dir/all] Error 2
make[2]: *** No rule to make target ‘/usr/lib/aarch64-linux-gnu/libEGL.so’, needed by ‘/home/nvidia/nervo/devel/lib/dw_sensors/dw_lanenet_node’. Stop.
CMakeFiles/Makefile2:1894: recipe for target ‘dw_sensors/CMakeFiles/dw_lanenet_node.dir/all’ failed
make[1]: *** [dw_sensors/CMakeFiles/dw_lanenet_node.dir/all] Error 2
Makefile:138: recipe for target ‘all’ failed
make: *** [all] Error 2

I have no idea what is going om Can you please explain me?

Thanks.

Dear @dhavan.patel,
Firstly, are you able to compile the DW samples? Have you installed NVIDIA drivers and prerequisites on host before compilation? Please check building the samples section in DW documentation

Dear @dhavan.patel
Any update on this issue?

Hi,
I have build samples.It is working fine but when I tried to build my workspace I have following error:

/usr/bin/ld: /home/nvidia/nervo/devel/lib/libdw_samples_framework.a(WindowGLFW.cpp.o): undefined reference to symbol ‘eglGetConfigs’
/usr/lib/libEGL.so.1: error adding symbols: DSO missing from command line
collect2: error: ld returned 1 exit status
dw_sensors/CMakeFiles/userinput.dir/build.make:164: recipe for target ‘/home/nvidia/nervo/devel/lib/dw_sensors/userinput’ failed
make[2]: *** [/home/nvidia/nervo/devel/lib/dw_sensors/userinput] Error 1
CMakeFiles/Makefile2:2261: recipe for target ‘dw_sensors/CMakeFiles/userinput.dir/all’ failed
make[1]: *** [dw_sensors/CMakeFiles/userinput.dir/all] Error 2
make[1]: *** Waiting for unfinished jobs…
/usr/bin/ld: /home/nvidia/nervo/devel/lib/libdw_samples_framework.a(WindowGLFW.cpp.o): undefined reference to symbol ‘eglGetConfigs’
/usr/lib/libEGL.so.1: error adding symbols: DSO missing from command line
collect2: error: ld returned 1 exit status
dw_sensors/CMakeFiles/dw_cam_pub_node.dir/build.make:138: recipe for target ‘/home/nvidia/nervo/devel/lib/dw_sensors/dw_cam_pub_node’ failed
make[2]: *** [/home/nvidia/nervo/devel/lib/dw_sensors/dw_cam_pub_node] Error 1
CMakeFiles/Makefile2:2362: recipe for target ‘dw_sensors/CMakeFiles/dw_cam_pub_node.dir/all’ failed
make[1]: *** [dw_sensors/CMakeFiles/dw_cam_pub_node.dir/all] Error 2
/usr/bin/ld: /home/nvidia/nervo/devel/lib/libdw_samples_framework.a(WindowGLFW.cpp.o): undefined reference to symbol ‘eglGetConfigs’
/usr/lib/libEGL.so.1: error adding symbols: DSO missing from command line
collect2: error: ld returned 1 exit status
dw_sensors/CMakeFiles/dw_lidar.dir/build.make:138: recipe for target ‘/home/nvidia/nervo/devel/lib/dw_sensors/dw_lidar’ failed
make[2]: *** [/home/nvidia/nervo/devel/lib/dw_sensors/dw_lidar] Error 1
CMakeFiles/Makefile2:2160: recipe for target ‘dw_sensors/CMakeFiles/dw_lidar.dir/all’ failed
make[1]: *** [dw_sensors/CMakeFiles/dw_lidar.dir/all] Error 2
/usr/bin/ld: /home/nvidia/nervo/devel/lib/libdw_samples_framework.a(WindowGLFW.cpp.o): undefined reference to symbol ‘eglGetConfigs’
/usr/lib/libEGL.so.1: error adding symbols: DSO missing from command line
collect2: error: ld returned 1 exit status
dw_sensors/CMakeFiles/dw_lanenet_node.dir/build.make:138: recipe for target ‘/home/nvidia/nervo/devel/lib/dw_sensors/dw_lanenet_node’ failed
make[2]: *** [/home/nvidia/nervo/devel/lib/dw_sensors/dw_lanenet_node] Error 1
CMakeFiles/Makefile2:1894: recipe for target ‘dw_sensors/CMakeFiles/dw_lanenet_node.dir/all’ failed
make[1]: *** [dw_sensors/CMakeFiles/dw_lanenet_node.dir/all] Error 2
/usr/bin/ld: /home/nvidia/nervo/devel/lib/libdw_samples_framework.a(WindowGLFW.cpp.o): undefined reference to symbol ‘eglGetConfigs’
/usr/lib/libEGL.so.1: error adding symbols: DSO missing from command line
collect2: error: ld returned 1 exit status
dw_sensors/CMakeFiles/dw_drive_net.dir/build.make:138: recipe for target ‘/home/nvidia/nervo/devel/lib/dw_sensors/dw_drive_net’ failed
make[2]: *** [/home/nvidia/nervo/devel/lib/dw_sensors/dw_drive_net] Error 1
CMakeFiles/Makefile2:2091: recipe for target ‘dw_sensors/CMakeFiles/dw_drive_net.dir/all’ failed
make[1]: *** [dw_sensors/CMakeFiles/dw_drive_net.dir/all] Error 2
/usr/bin/ld: /home/nvidia/nervo/devel/lib/libdw_samples_framework.a(WindowGLFW.cpp.o): undefined reference to symbol ‘eglGetConfigs’
/usr/lib/libEGL.so.1: error adding symbols: DSO missing from command line
collect2: error: ld returned 1 exit status
dw_sensors/CMakeFiles/dw_cam_sub_node.dir/build.make:138: recipe for target ‘/home/nvidia/nervo/devel/lib/dw_sensors/dw_cam_sub_node’ failed
make[2]: *** [/home/nvidia/nervo/devel/lib/dw_sensors/dw_cam_sub_node] Error 1
CMakeFiles/Makefile2:2431: recipe for target ‘dw_sensors/CMakeFiles/dw_cam_sub_node.dir/all’ failed
make[1]: *** [dw_sensors/CMakeFiles/dw_cam_sub_node.dir/all] Error 2
Makefile:138: recipe for target ‘all’ failed
make: *** [all] Error 2
Invoking “make -j6 -l6” failed

Hi,
Any update on this issue?

Dear @dhavan.patel,
Did you create your project under /usr/local/driveworks/samples folder like other DW sample and trying to build in a separate directory(like ~/build/)? If not, could you please check this first? As libEGL is needed by other DW samples, I expect them also to fail like your sample if the issue is with EGL lib linking. Please clean your build directory before compiling samples. Let us know the progress