Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
T
thesis
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Redmine
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Deploy
Releases
Model registry
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
GitLab community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
farid
thesis
Commits
8b9ae0f3
Commit
8b9ae0f3
authored
9 years ago
by
Farid Alijani
Browse files
Options
Downloads
Patches
Plain Diff
how to build catkin package in QT
parent
d195095c
No related branches found
No related tags found
No related merge requests found
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
catkinPKGfromQT.txt
+44
-0
44 additions, 0 deletions
catkinPKGfromQT.txt
with
44 additions
and
0 deletions
catkinPKGfromQT.txt
0 → 100644
+
44
−
0
View file @
8b9ae0f3
--------------------- How to open a catkin package in QT creator --------------------
1. create the pkg
catkin_create_pkg <package name> [depend 1] [depend 2] [depend 3]
2. catkin_make --source .
to make build, devel and CMakeLists.txt file
3. source ./devel/setup.bash
4.
5. remove the CMakeLists.txt in the folder u have catkin package (not the one inside the package)
6. go to opt/ros/hydro/share/catkin/cmake
copy "toplevel.cmake" to the folder u have package
7. Rename it to "CMakeLists.txt"
copy the following lines @ the end of this file:
---------------------------------------------------------------
#Add all files in subdirectories of the project in
# a dummy_target so qtcreator have access to all files
FILE(GLOB children ${CMAKE_SOURCE_DIR}/*)
FOREACH(child ${children})
IF(IS_DIRECTORY ${child})
file(GLOB_RECURSE dir_files "${child}/*")
LIST(APPEND extra_files ${dir_files})
ENDIF()
ENDFOREACH()
add_custom_target(dummy_${PROJECT_NAME} SOURCES ${extra_files})
-----------------------------------------------------------------
8. open a QT (go to QT folder and run the file) from a terminal that u've sourced the setup.bash file
9. In QT creator ...
open project -> go to the folder of a package -> open "CMakeLists.txt"
10. Build Location: choose "build" folder from the folder of a package
11. Run Cmake : -DCATKIN_DEVEL_PREFIX=../devel -DCMAKE_INSTALL_PREFIX=../install -DCMAKE_BUILD_TYPE=Debug
12.
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment