Ask Your Question
0

Setting up a new project in Qt-creator using OpenCV and PCL

asked 2012-12-27 09:40:02 -0500

this post is marked as community wiki

This post is a wiki. Anyone with karma >50 is welcome to improve it.

Hi all, i successfully installed OpenCV and PCL using respectively the script at https://github.com/DmitrySandalov/Install-OpenCV/blob/master/Ubuntu/2.4/opencv2_4_3.sh and the official documentation at http://pointclouds.org/downloads/linux.html. My question is : how can i set up a new project for using both OpenCV and PCL with Qt Creator? I also noticed that Qt offers some options for using cmake files but i'm really new to the all thing, can someone please explain it to me?

edit retag flag offensive close merge delete

2 answers

Sort by ยป oldest newest most voted
1

answered 2012-12-27 10:22:20 -0500

updated 2012-12-27 10:24:49 -0500

For use OpenCV in QT you can create a new project by File>NewFileOrProject>OtherProject>QTConsole Application or File>NewFileOrProject>QTWidgetProject>QTGuiApllication Then Open pro file(untiteld.pro) and append these lines to it.

INCLUDEPATH += C:\OpenCV\build\install\include\
LIBS += -LC:\OpenCV\build\install\lib\
-lopencv_core249 \
-lopencv_highgui249 \
-lopencv_imgproc249 \
-lopencv_features2d249 \
-lopencv_calib3d249

For use the PCL library in QT visit this page.

edit flag offensive delete link more

Comments

I can't use windows right now. Do you know how to this on Linux?

Uplink001 gravatar imageUplink001 ( 2012-12-27 10:57:06 -0500 )edit

for linux :

INCLUDEPATH += /usr/local/include/opencv

LIBS += -L/usr/local/lib

Mostafa Sataki gravatar imageMostafa Sataki ( 2012-12-27 11:44:33 -0500 )edit
0

answered 2013-01-18 16:11:35 -0500

this post is marked as community wiki

This post is a wiki. Anyone with karma >50 is welcome to improve it.

but how to integrate pcl with qt. ie is in .pro file the page show to install pcl but not integration

tq in advance

edit flag offensive delete link more
Login/Signup to Answer

Question Tools

Stats

Asked: 2012-12-27 09:40:02 -0500

Seen: 5,257 times

Last updated: Jan 18 '13