aizi0216 2022-04-26 22:51 采纳率: 0%
浏览 102

动态虚拟墙问题,不知道是否是qt5.90问题-

安装了qt5.9后catkin_make报错
/usr/bin/ld: /home/intel/Qt5.9.0/5.9/gcc_64/lib/libQt5Qml.so.5.9.0: undefined reference to `operator delete(void*, unsigned long)@Qt_5'

/usr/bin/ld: /home/intel/Qt5.9.0/5.9/gcc_64/lib/libQt5Qml.so.5.9.0: undefined reference to operator delete[](void*, unsigned long)@Qt_5' collect2: error: ld returned 1 exit status make[2]: *** [costmap_prohibition_layer/src/slamproject/CMakeFiles/currencyChassis_CreateSqlDatabaseMain_node.dir/build.make:188:/home/intel/xuniqiang/devel/lib/slamproject/currencyChassis_CreateSqlDatabaseMain_node] 错误 1 make[1]: *** [CMakeFiles/Makefile2:2054:costmap_prohibition_layer/src/slamproject/CMakeFiles/currencyChassis_CreateSqlDatabaseMain_node.dir/all] 错误 2 make[1]: *** 正在等待未完成的任务.... /usr/bin/ld: /home/intel/Qt5.9.0/5.9/gcc_64/lib/libQt5Qml.so.5.9.0: undefined reference to operator delete(void*, unsigned long)@Qt_5'
/usr/bin/ld: /home/intel/Qt5.9.0/5.9/gcc_64/lib/libQt5Qml.so.5.9.0: undefined reference to operator delete[](void*, unsigned long)@Qt_5' collect2: error: ld returned 1 exit status make[2]: *** [costmap_prohibition_layer/src/slamproject/CMakeFiles/currencyChassis_sqlDatabaseMain_node.dir/build.make:188:/home/intel/xuniqiang/devel/lib/slamproject/currencyChassis_sqlDatabaseMain_node] 错误 1 make[1]: *** [CMakeFiles/Makefile2:1811:costmap_prohibition_layer/src/slamproject/CMakeFiles/currencyChassis_sqlDatabaseMain_node.dir/all] 错误 2 /usr/bin/ld: /home/intel/Qt5.9.0/5.9/gcc_64/lib/libQt5Qml.so.5.9.0: undefined reference to operator delete(void*, unsigned long)@Qt_5'
/usr/bin/ld: /home/intel/Qt5.9.0/5.9/gcc_64/lib/libQt5Qml.so.5.9.0: undefined reference to `operator delete[](void*, unsigned long)@Qt_5'
collect2: error: ld returned 1 exit status
make[2]: *** [costmap_prohibition_layer/src/slamproject/CMakeFiles/currencyChassis_KSDemoDlgTABLE_COSTMAPLAYERMain_node.dir/build.make:203:/home/intel/xuniqiang/devel/lib/slamproject/currencyChassis_KSDemoDlgTABLE_COSTMAPLAYERMain_node] 错误 1
make[1]: *** [CMakeFiles/Makefile2:1838:costmap_prohibition_layer/src/slamproject/CMakeFiles/currencyChassis_KSDemoDlgTABLE_COSTMAPLAYERMain_node.dir/all] 错误 2

不知道是版本问题还是啥
  • 写回答

1条回答 默认 最新

  • _无往而不胜_ 2022-04-26 23:43
    关注

    你的qt环境有问题:
    1.把依赖装一下:
    sudo apt install libqt5serialport5-dev
    sudo apt-get install qtmultimedia5-dev
    sudo apt-get install libqt5websockets5-dev
    sudo apt-get install libqt5webchannel5-dev
    sudo apt-get install libqt5multimedia5-plugins
    sudo apt-get install sqlitebrowser
    2.sudo gedit ~/.bashrc 把qt的环境边量都注释掉,
    #export PATH=/home/iimt/Qt5.9.9/5.9.9/gcc_64/bin:$PATH
    #export LD_LIBRARY_PATH=/home/iimt/Qt5.9.9/5.9.9/gcc_64/lib:$LD_LIBRARY_PATH
    #export QT_PLUGIN_PATH=/home/iimt/Qt5.9.9/5.9.9/gcc_64/plugins:$QT_PLUGIN_PATH
    #export QML2_IMPORT_PATH=/home/iimt/Qt5.9.9/5.9.9/gcc_64/qml:$QML2_IMPORT_PATH

    1. 然后source ~/.bashrc

    4.确认系统是ubuntu20.04,ros版本是 noetic

    评论 编辑记录

报告相同问题?

问题事件

  • 创建了问题 4月26日