C++ 柳絮罐头';sudo升级后找不到qt_构建

C++ 柳絮罐头';sudo升级后找不到qt_构建,c++,qt,cmake,ros,catkin,C++,Qt,Cmake,Ros,Catkin,我当时正在做我的项目,我不小心让sudo升级了。 现在我有一些我不明白的问题 当我在我的工作区制作catkin_时,它说找不到qt_构建包,我需要将其安装在CMAKE_前缀_路径中 CMake Warning at /opt/ros/kinetic/share/catkin/cmake/catkinConfig.cmake:76 (find_package): Could not find a package configuration file provided by "

我当时正在做我的项目,我不小心让sudo升级了。 现在我有一些我不明白的问题

当我在我的工作区制作catkin_时,它说找不到qt_构建包,我需要将其安装在CMAKE_前缀_路径中

    CMake Warning at /opt/ros/kinetic/share/catkin/cmake/catkinConfig.cmake:76 (find_package):
  Could not find a package configuration file provided by "qt_build" with any
  of the following names:

    qt_buildConfig.cmake
    qt_build-config.cmake

  Add the installation prefix of "qt_build" to CMAKE_PREFIX_PATH or set
  "qt_build_DIR" to a directory containing one of the above files.  If
  "qt_build" provides a separate development package or SDK, be sure it has
  been installed.
Call Stack (most recent call first):
  motion_manager/CMakeLists.txt:31 (find_package)

---Could not find the required component 'qt_build'. The following CMake error indicates that you either need to install the package with the same name or change your environment so that it can be found.
CMake Error at /opt/ros/kinetic/share/catkin/cmake/catkinConfig.cmake:83 (find_package):
  Could not find a package configuration file provided by "qt_build" with any
  of the following names:

    qt_buildConfig.cmake
    qt_build-config.cmake

  Add the installation prefix of "qt_build" to CMAKE_PREFIX_PATH or set
  "qt_build_DIR" to a directory containing one of the above files.  If
  "qt_build" provides a separate development package or SDK, be sure it has
  been installed.
Call Stack (most recent call first):
  motion_manager/CMakeLists.txt:31 (find_package)
但是,包qt_build已经在该目录中

joao@joao-X580VD:~/ros_ws$ echo $CMAKE_PREFIX_PATH
/opt/ros/kinetic
joao@joao-X580VD:~/ros_ws$ cd /opt/ros/kinetic
joao@joao-X580VD:/opt/ros/kinetic$ locate qt_build
/opt/ros/kinetic/lib/pkgconfig/qt_build.pc
/opt/ros/kinetic/share/qt_build
/opt/ros/kinetic/share/qt_build/cmake
/opt/ros/kinetic/share/qt_build/package.xml
/opt/ros/kinetic/share/qt_build/cmake/qt-ros.cmake
/opt/ros/kinetic/share/qt_build/cmake/qt_buildConfig-version.cmake
/opt/ros/kinetic/share/qt_build/cmake/qt_buildConfig.cmake
/snap/kde-frameworks-5-core18/32/usr/lib/x86_64-linux-gnu/qt5/mkspecs/features/qt_build_config.prf
/snap/kde-frameworks-5-core18/32/usr/lib/x86_64-linux-gnu/qt5/mkspecs/features/qt_build_extra.prf
/snap/kde-frameworks-5-core18/32/usr/lib/x86_64-linux-gnu/qt5/mkspecs/features/qt_build_paths.prf
/usr/lib/x86_64-linux-gnu/qt5/mkspecs/features/qt_build_config.prf
/usr/lib/x86_64-linux-gnu/qt5/mkspecs/features/qt_build_paths.prf
在升级之前,一切正常,但现在我发现了这个错误


有人知道如何解决这样的问题吗?谢谢

您是否尝试了错误消息中建议的任何步骤?它告诉您如何解决问题…@squareskittles:根据
echo$CMAKE_PREFIX_PATH
输出,
CMAKE_PREFIX_PATH
被正确设置为安装前缀,在该前缀下,CMAKE可以找到
qt_buildConfig.CMAKE
文件。您尝试了错误消息中建议的任何步骤吗?它告诉您如何解决问题…@squareskittles:根据
echo$CMAKE_PREFIX_PATH
输出,
CMAKE_PREFIX_PATH
被正确设置为安装前缀,CMAKE可以在该前缀下找到
qt_buildConfig.CMAKE
文件。