Qtcreator Writing Ros Program: Unable to start process "Catkin_make"-dcmake_build_type=debug

Source: Internet
Author: User

To write a Ros program using Qtcreator, you must first configure the ROS environment to be added to the Qtcreator environment first. (i.e. ~/.BASHRC file)


1 version issue QT4 and QT5

sudo gedit ~/.local/share/applications/digiaqtopensource-qtcreator.desktop (qt5 default installed path)

When the open file is empty, close. Open files by Path

CD ~/.local/share/applications/

Gedit ~/.local/share/applications/digiaqt (+tab check)

I installed 5.2 run version: sudo gedit ~/.local/share/applications/digiaqtopensource-qtcreator.desktop (qt5 default installed path)
5.4 Online version is: sudo gedit ~/.local/share/applications/digiaqt-qtcreator-community.desktop


command to install the Qt4:sudo gedit/usr/share/applications/digiaqtopensource-qtcreator.desktop


~~~~~~~~~~~~~~~~~~~~~~~~~

PS: In short, the specific desktop file you look for the path first to find out where the file is//

~~~~~~~~~

Modify the Exec variable one line, add Bash-i-C in the middle and change to Exec=bash-i-c/home/viki/qt5.2.0/tools/qtcreator/bin/qtcreator, save and exit. Add Bash-i-C to load the ROS environment variable while activating QT creator via shortcut (ROS environment variable load script configuration within ~/.BASHRC file)



~~~~~~~~~~~~~~~~~~~~

Installation of QT5:

QT5 version is. Run File: Add executable permission
Http://qt-project.org/downloads

Uninstall of QT5:

Enter the path. Execute maintenancetool.

[Email protected]:~/qt$ sudo./maintenancetool




QT5 Ros Engineering Reference:
The corresponding configuration reference is described below:
Http://my.phirobot.com/blog/2013-12-ros_ide_qtcreator.html
Note: Modify the configuration environment to automatically load Ros at startup.
Gedit ~/.local/share/applications/digiaqtopensource-qtcreator.desktop (QT5)





2. Importing files


2.1 Import the file in Cmakelist.txt form.
The corresponding executable file is generated automatically after compiling.
The Compile Path selection dialog box. Browse modifies the path to a path of ~/catkin_ws/build/, such as:
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~`
Arguments a column filled in-dcmake_build_type=debug
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Then click Run CMake to start compiling
If there is no error message, click Finish, you can see the project structure in the edit interface, you can start to edit the project

2.2 Import the file as an existing file.
The form of manual configuration. The compilation path.



Settings related to terminal output



Engineering configuration Qt4. 5 similar:



~~~~~~

mark : find_package (Qt4)出错

See http://askubuntu.com/questions/349430/compiling-code-that-depends-on-qt4-with-qt5-installed

Compiling code that depends on QT4 with QT5 installed

-- Found unsuitable Qt version "5.0.2" from /usr/bin/qmake

Even though I am using

# find and set up qtfind_package (Qt4)
~~~~~~~~~~

The solution is to add the following to my CMakeLists.txt

set(QT_QMAKE_EXECUTABLE /usr/bin/qmake-qt4)


Qtcreator Writing Ros Program: Unable to start process "Catkin_make"-dcmake_build_type=debug

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.