Ask Your Question
0

QT creator with Cmake error

asked 2014-10-04 02:15:17 -0600

xiaoke gravatar image

updated 2014-10-04 04:51:17 -0600

bvbdort gravatar image

I use QT creator with Cmake to compile the package,but it fails to find rosbuild.cmake.

please help me

CMake Error at CMakeLists.txt:8 (include):
  include could not find load file:
    /core/rosbuild/rosbuild.cmake
    CMake Error at CMakeLists.txt:9 (rosbuild_init):
      Unknown CMake command "rosbuild_init".   
    -- The C compiler identification is GNU
    -- The CXX compiler identification is GNU
    -- Check for working C compiler: /usr/bin/gcc
    -- Check for working C compiler: /usr/bin/gcc -- works
    -- Detecting C compiler ABI info
    -- Detecting C compiler ABI info - done
    -- Check for working CXX compiler: /usr/bin/c++
    -- Check for working CXX compiler: /usr/bin/c++ -- works
    -- Detecting CXX compiler ABI info
    -- Detecting CXX compiler ABI info - done
    -- Looking for Q_WS_X11
    -- Looking for Q_WS_X11 - found
    -- Looking for Q_WS_WIN
    -- Looking for Q_WS_WIN - not found.
    -- Looking for Q_WS_QWS
    -- Looking for Q_WS_QWS - not found.
    -- Looking for Q_WS_MAC
    -- Looking for Q_WS_MAC - not found.
    -- Found Qt4: /usr/local/Trolltech/Qt-4.8.5/bin/qmake (found version "4.8.5")
    -- Boost version: 1.46.1
    -- Found PROTOBUF: /usr/lib/libprotobuf.so 
    -- Configuring incomplete, errors occurred!
edit retag flag offensive close merge delete

Comments

Which ros version / which operating system do you use?

Wolf gravatar imageWolf ( 2014-10-05 04:17:51 -0600 )edit

I installed ROS Fuerte Turtle on Ubuntu 12.04 of linux system. Thank you all the same !

xiaoke gravatar imagexiaoke ( 2014-10-06 09:10:46 -0600 )edit

1 Answer

Sort by ยป oldest newest most voted
0

answered 2014-10-05 14:10:26 -0600

This error appears if the ROS environment is not set correctly when starting QtCreator. The most frequent reason is if you started QtCreator from one of the Ubuntu menus or a desktop link. The solution is easy: Either start from a ROS environment enabled terminal, or create a dedicated desktop file. Both options are described in detail on the IDEs ROS wiki page.

edit flag offensive delete link more

Comments

Your answer is very effective.Thank you !

xiaoke gravatar imagexiaoke ( 2014-10-06 08:50:45 -0600 )edit

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account.

Add Answer

Question Tools

1 follower

Stats

Asked: 2014-10-04 02:15:17 -0600

Seen: 1,131 times

Last updated: Oct 05 '14