Using PCL with QT Creator

classic Classic list List threaded Threaded
24 messages Options
12
VM
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Using PCL with QT Creator

VM
Hello, I am noob on PCL, I can't Configure QT Creator For PCL in windows. 
I have Installed PCL 1.6.0 All-In-One Installer. 
in qt Creator config file Look like this 
TEMPLATE = app
CONFIG += console
CONFIG -= qt

SOURCES += main.cpp

INCLUDEPATH += "D://opencv//install//include" /
               "D://PCL1.6.0//include//pcl-1.6" /
"D://PCL1.6.0//3rdParty//Eigen//include" /
"D://PCL1.6.0//3rdParty//Boost//include" /
"D://PCL1.6.0//3rdParty//VTK//include//vtk-5.8" /
"D://PCL1.6.0//3rdParty//FLANN//include" /
"D://PCL1.6.0//3rdParty//Qhull//include" /


LIBS += "D://opencv//bin//*.dll" /
"D://PCL1.6.0//3rdParty//VTK//lib//vtk-5.8//*.lib" /
"D://PCL1.6.0//lib//*.lib"


and I have got error while compiling 
main.cpp:26: error: undefined reference to `pcl::visualization::PCLVisualizer::PCLVisualizer(std::string const&, bool)'

--
Best regards V.Metreveli

_______________________________________________
[hidden email] / http://pointclouds.org
http://pointclouds.org/mailman/listinfo/pcl-users
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: Using PCL with QT Creator

erickulcyk
What does your main.cpp look like?

Eric

Sent from Windows Mail

From: [hidden email]
Sent: ‎Saturday‎, ‎February‎ ‎22‎, ‎2014 ‎3‎:‎04‎ ‎AM
To: [hidden email]

Hello, I am noob on PCL, I can't Configure QT Creator For PCL in windows. 
I have Installed PCL 1.6.0 All-In-One Installer. 
in qt Creator config file Look like this 
TEMPLATE = app
CONFIG += console
CONFIG -= qt

SOURCES += main.cpp

INCLUDEPATH += "D://opencv//install//include" /
               "D://PCL1.6.0//include//pcl-1.6" /
"D://PCL1.6.0//3rdParty//Eigen//include" /
"D://PCL1.6.0//3rdParty//Boost//include" /
"D://PCL1.6.0//3rdParty//VTK//include//vtk-5.8" /
"D://PCL1.6.0//3rdParty//FLANN//include" /
"D://PCL1.6.0//3rdParty//Qhull//include" /


LIBS += "D://opencv//bin//*.dll" /
"D://PCL1.6.0//3rdParty//VTK//lib//vtk-5.8//*.lib" /
"D://PCL1.6.0//lib//*.lib"


and I have got error while compiling 
main.cpp:26: error: undefined reference to `pcl::visualization::PCLVisualizer::PCLVisualizer(std::string const&, bool)'

--
Best regards V.Metreveli

_______________________________________________
[hidden email] / http://pointclouds.org
http://pointclouds.org/mailman/listinfo/pcl-users
VM
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: Using PCL with QT Creator

VM
#include <opencv/cv.h>
#include <opencv/highgui.h>
#include <iostream>
#include <string>
#include <pcl/common/common_headers.h>
#include <pcl/io/pcd_io.h>
#include <pcl/visualization/pcl_visualizer.h>
#include <boost/thread/thread.hpp>

//Kids, using this kind of #define is quite dirty, don't do it at home!!
#define CUSTOM_REPROJECT
/*** To understand the CUSTOM_REPROJECT code, please read Chapter 12 of the book
  Learning OpenCV: Computer Vision with the OpenCV Library. (Page 435)
  I am using it because cv::reprojectImageTo3D is not giving me the expected
  results for some reason.

  If you want to use this program with cv::reprojectImageTo3D please comment
  the previous #define CUSTOM_REPROJECT and recompile.

***/


//This function creates a PCL visualizer, sets the point cloud to view and returns a pointer
boost::shared_ptr<pcl::visualization::PCLVisualizer> createVisualizer (pcl::PointCloud<pcl::PointXYZRGB>::ConstPtr cloud)
{
    boost::shared_ptr<pcl::visualization::PCLVisualizer> viewer (new pcl::visualization::PCLVisualizer("3D Viewer"));
    viewer->setBackgroundColor (0, 0, 0);
    pcl::visualization::PointCloudColorHandlerRGBField<pcl::PointXYZRGB> rgb(cloud);
    viewer->addPointCloud<pcl::PointXYZRGB> (cloud, rgb, "reconstruction");
    //viewer->setPointCloudRenderingProperties (pcl::visualization::PCL_VISUALIZER_POINT_SIZE, 3, "reconstruction");
    viewer->addCoordinateSystem ( 1.0 );
    viewer->initCameraParameters ();
    return (viewer);
}

int main( int argc, char** argv )
{
    //Check arguments
    if (argc != 4)
    {
        std::cerr << "Usage: " << argv[0] << " <rgb-image-filename> <disparity-image-filename> <path-to-Q-matrix>" << std::endl;
        return 1;
    }

    //Load Matrix Q
    cv::FileStorage fs(argv[3], cv::FileStorage::READ);
    cv::Mat Q;

    fs["Q"] >> Q;

    //If size of Q is not 4x4 exit
    if (Q.cols != 4 || Q.rows != 4)
    {
        std::cerr << "ERROR: Could not read matrix Q (doesn't exist or size is not 4x4)" << std::endl;
        return 1;
    }

#ifdef CUSTOM_REPROJECT
    //Get the interesting parameters from Q
    double Q03, Q13, Q23, Q32, Q33;
    Q03 = Q.at<double>(0,3);
    Q13 = Q.at<double>(1,3);
    Q23 = Q.at<double>(2,3);
    Q32 = Q.at<double>(3,2);
    Q33 = Q.at<double>(3,3);

    std::cout << "Q(0,3) = "<< Q03 <<"; Q(1,3) = "<< Q13 <<"; Q(2,3) = "<< Q23 <<"; Q(3,2) = "<< Q32 <<"; Q(3,3) = "<< Q33 <<";" << std::endl;

#endif


    std::cout << "Read matrix in file " << argv[3] << std::endl;

    //Show the values inside Q (for debug purposes)
    /*
  for (int y = 0; y < Q.rows; y++)
  {
    const double* Qy = Q.ptr<double>(y);
    for (int x = 0; x < Q.cols; x++)
    {
      std::cout << "Q(" << x << "," << y << ") = " << Qy[x] << std::endl;
    }
  }
  */

    //Load rgb-image
    cv::Mat img_rgb = cv::imread(argv[1], CV_LOAD_IMAGE_COLOR);
    if (img_rgb.data == NULL)
    {
        std::cerr << "ERROR: Could not read rgb-image: " << argv[1] << std::endl;
        return 1;
    }

    //Load disparity image
    cv::Mat img_disparity = cv::imread(argv[2], CV_LOAD_IMAGE_GRAYSCALE);
    if (img_disparity.data == NULL)
    {
        std::cerr << "ERROR: Could not read disparity-image: " << argv[2] << std::endl;
        return 1;
    }

    //Both images must be same size
    if (img_rgb.size() != img_disparity.size())
    {
        std::cerr << "ERROR: rgb-image and disparity-image have different sizes " << std::endl;
        return 1;
    }

    //Show both images (for debug purposes)
    cv::namedWindow("rgb-image");
    cv::namedWindow("disparity-image");
    cv::imshow("rbg-image", img_rgb);
    cv::imshow("disparity-image", img_disparity);
    std::cout << "Press a key to continue..." << std::endl;
    cv::waitKey(0);
    cv::destroyWindow("rgb-image");
    cv::destroyWindow("disparity-image");

#ifndef CUSTOM_REPROJECT
    //Create matrix that will contain 3D corrdinates of each pixel
    cv::Mat recons3D(img_disparity.size(), CV_32FC3);

    //Reproject image to 3D
    std::cout << "Reprojecting image to 3D..." << std::endl;
    cv::reprojectImageTo3D( img_disparity, recons3D, Q, false, CV_32F );
#endif
    //Create point cloud and fill it
    std::cout << "Creating Point Cloud..." <<std::endl;
    pcl::PointCloud<pcl::PointXYZRGB>::Ptr point_cloud_ptr (new pcl::PointCloud<pcl::PointXYZRGB>);

    double px, py, pz;
    uchar pr, pg, pb;

    for (int i = 0; i < img_rgb.rows; i++)
    {
        uchar* rgb_ptr = img_rgb.ptr<uchar>(i);
#ifdef CUSTOM_REPROJECT
        uchar* disp_ptr = img_disparity.ptr<uchar>(i);
#else
        double* recons_ptr = recons3D.ptr<double>(i);
#endif
        for (int j = 0; j < img_rgb.cols; j++)
        {
            //Get 3D coordinates
#ifdef CUSTOM_REPROJECT
            uchar d = disp_ptr[j];
            if ( d == 0 ) continue; //Discard bad pixels
            double pw = -1.0 * static_cast<double>(d) * Q32 + Q33;
            px = static_cast<double>(j) + Q03;
            py = static_cast<double>(i) + Q13;
            pz = Q23;

            px = px/pw;
            py = py/pw;
            pz = pz/pw;

#else
            px = recons_ptr[3*j];
            py = recons_ptr[3*j+1];
            pz = recons_ptr[3*j+2];
#endif

            //Get RGB info
            pb = rgb_ptr[3*j];
            pg = rgb_ptr[3*j+1];
            pr = rgb_ptr[3*j+2];

            //Insert info into point cloud structure
            pcl::PointXYZRGB point;
            point.x = px;
            point.y = py;
            point.z = pz;
            uint32_t rgb = (static_cast<uint32_t>(pr) << 16 |
                            static_cast<uint32_t>(pg) << 8 | static_cast<uint32_t>(pb));
            point.rgb = *reinterpret_cast<float*>(&rgb);
            point_cloud_ptr->points.push_back (point);
        }
    }
    point_cloud_ptr->width = (int) point_cloud_ptr->points.size();
    point_cloud_ptr->height = 1;

    //Create visualizer
    boost::shared_ptr<pcl::visualization::PCLVisualizer> viewer;
    viewer = createVisualizer( point_cloud_ptr );

    //Main loop
    while ( !viewer->wasStopped())
    {
        viewer->spinOnce(100);
        boost::this_thread::sleep (boost::posix_time::microseconds (100000));
    }

    return 0;
}



On Sat, Feb 22, 2014 at 8:54 PM, erickulcyk [via Point Cloud Library (PCL) Users mailing list] <[hidden email]> wrote:
What does your main.cpp look like?

Eric

Sent from Windows Mail

From: [hidden email]
Sent: ‎Saturday‎, ‎February‎ ‎22‎, ‎2014 ‎3‎:‎04‎ ‎AM
To: [hidden email]

Hello, I am noob on PCL, I can't Configure QT Creator For PCL in windows. 
I have Installed PCL 1.6.0 All-In-One Installer. 
in qt Creator config file Look like this 
TEMPLATE = app
CONFIG += console
CONFIG -= qt

SOURCES += main.cpp

INCLUDEPATH += "D://opencv//install//include" /
               "D://PCL1.6.0//include//pcl-1.6" /
"D://PCL1.6.0//3rdParty//Eigen//include" /
"D://PCL1.6.0//3rdParty//Boost//include" /
"D://PCL1.6.0//3rdParty//VTK//include//vtk-5.8" /
"D://PCL1.6.0//3rdParty//FLANN//include" /
"D://PCL1.6.0//3rdParty//Qhull//include" /


LIBS += "D://opencv//bin//*.dll" /
"D://PCL1.6.0//3rdParty//VTK//lib//vtk-5.8//*.lib" /
"D://PCL1.6.0//lib//*.lib"


and I have got error while compiling 
main.cpp:26: error: undefined reference to `pcl::visualization::PCLVisualizer::PCLVisualizer(std::string const&, bool)'

--
Best regards V.Metreveli

_______________________________________________
[hidden email] / http://pointclouds.org
http://pointclouds.org/mailman/listinfo/pcl-users



If you reply to this email, your message will be added to the discussion below:
http://www.pcl-users.org/Using-PCL-with-QT-Creator-tp4032454p4032455.html
To start a new topic under Point Cloud Library (PCL) Users mailing list, email [hidden email]
To unsubscribe from Point Cloud Library (PCL) Users mailing list, click here.
NAML



--
Best regards V.Metreveli
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: Using PCL with QT Creator

nizar sallem
In reply to this post by VM
Make a CMakeLists.txt for your project as done in PCL tutorials, Qt
Creator handles them well.

--
Nizar

On 22/02/2014 10:04, ვახუშტი მეტრეველი wrote:

> Hello, I am noob on PCL, I can't Configure QT Creator For PCL in windows.
> I have Installed PCL 1.6.0 All-In-One Installer.
> in qt Creator config file Look like this
>
> TEMPLATE = app
> CONFIG += console
> CONFIG -= qt
>
> SOURCES += main.cpp
>
> INCLUDEPATH += "D://opencv//install//include" /
>                 "D://PCL1.6.0//include//pcl-1.6" /
> "D://PCL1.6.0//3rdParty//Eigen//include" /
> "D://PCL1.6.0//3rdParty//Boost//include" /
> "D://PCL1.6.0//3rdParty//VTK//include//vtk-5.8" /
> "D://PCL1.6.0//3rdParty//FLANN//include" /
> "D://PCL1.6.0//3rdParty//Qhull//include" /
>
>
> LIBS += "D://opencv//bin//*.dll" /
> "D://PCL1.6.0//3rdParty//VTK//lib//vtk-5.8//*.lib" /
> "D://PCL1.6.0//lib//*.lib"
>
>
>
> and I have got error while compiling
> main.cpp:26: error: undefined reference to
> `pcl::visualization::PCLVisualizer::PCLVisualizer(std::string const&, bool)'
>
>
>
> _______________________________________________
> [hidden email] / http://pointclouds.org
> http://pointclouds.org/mailman/listinfo/pcl-users
>
_______________________________________________
[hidden email] / http://pointclouds.org
http://pointclouds.org/mailman/listinfo/pcl-users
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: Using PCL with QT Creator

Ponzifex Maximus
I have added these to my .pro file and compiles well.


DEFINES += NOMINMAX
DEFINES += BOOST_DATE_TIME_NO_LIB

INCLUDEPATH += "c:/Program Files (x86)/PCL 1.6.0/include/pcl-1.6"
INCLUDEPATH += "c:/Program Files (x86)/Eigen/include"
INCLUDEPATH += "c:/Program Files (x86)/Boost/include"
INCLUDEPATH += "c:/Program Files (x86)/flann/include"

LIBS += "-LC:/Program Files (x86)/PCL 1.6.0/lib"

LIBS += -lpcl_apps_debug
LIBS += -lpcl_common_debug
LIBS += -lpcl_filters_debug
LIBS += -lpcl_keypoints_debug
LIBS += -lpcl_kdtree_debug
LIBS += -lpcl_search_debug
LIBS += -lpcl_features_debug
LIBS += -lpcl_io_debug
LIBS += -lpcl_io_ply_debug
LIBS += -lpcl_visualization_debug



On Sat, Feb 22, 2014 at 8:51 PM, Nizar Sallem <[hidden email]> wrote:
Make a CMakeLists.txt for your project as done in PCL tutorials, Qt Creator handles them well.

--
Nizar


On 22/02/2014 10:04, ვახუშტი მეტრეველი wrote:
Hello, I am noob on PCL, I can't Configure QT Creator For PCL in windows.
I have Installed PCL 1.6.0 All-In-One Installer.
in qt Creator config file Look like this

TEMPLATE = app
CONFIG += console
CONFIG -= qt

SOURCES += main.cpp

INCLUDEPATH += "D://opencv//install//include" /
                "D://PCL1.6.0//include//pcl-1.6" /
"D://PCL1.6.0//3rdParty//Eigen//include" /
"D://PCL1.6.0//3rdParty//Boost//include" /
"D://PCL1.6.0//3rdParty//VTK//include//vtk-5.8" /
"D://PCL1.6.0//3rdParty//FLANN//include" /
"D://PCL1.6.0//3rdParty//Qhull//include" /


LIBS += "D://opencv//bin//*.dll" /
"D://PCL1.6.0//3rdParty//VTK//lib//vtk-5.8//*.lib" /
"D://PCL1.6.0//lib//*.lib"



and I have got error while compiling
main.cpp:26: error: undefined reference to
`pcl::visualization::PCLVisualizer::PCLVisualizer(std::string const&, bool)'





_______________________________________________
[hidden email] / http://pointclouds.org
http://pointclouds.org/mailman/listinfo/pcl-users
VM
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: Using PCL with QT Creator

VM
In reply to this post by nizar sallem
I don't know how to create  CMakeLists.txt, Can you give me tutorial for it?


On Sat, Feb 22, 2014 at 11:51 PM, nizar sallem [via Point Cloud Library (PCL) Users mailing list] <[hidden email]> wrote:
Make a CMakeLists.txt for your project as done in PCL tutorials, Qt
Creator handles them well.

--
Nizar

On 22/02/2014 10:04, ვახუშტი მეტრეველი wrote:

> Hello, I am noob on PCL, I can't Configure QT Creator For PCL in windows.
> I have Installed PCL 1.6.0 All-In-One Installer.
> in qt Creator config file Look like this
>
> TEMPLATE = app
> CONFIG += console
> CONFIG -= qt
>
> SOURCES += main.cpp
>
> INCLUDEPATH += "D://opencv//install//include" /
>                 "D://PCL1.6.0//include//pcl-1.6" /
> "D://PCL1.6.0//3rdParty//Eigen//include" /
> "D://PCL1.6.0//3rdParty//Boost//include" /
> "D://PCL1.6.0//3rdParty//VTK//include//vtk-5.8" /
> "D://PCL1.6.0//3rdParty//FLANN//include" /
> "D://PCL1.6.0//3rdParty//Qhull//include" /
>
>
> LIBS += "D://opencv//bin//*.dll" /
> "D://PCL1.6.0//3rdParty//VTK//lib//vtk-5.8//*.lib" /
> "D://PCL1.6.0//lib//*.lib"
>
>
>
> and I have got error while compiling
> main.cpp:26: error: undefined reference to
> `pcl::visualization::PCLVisualizer::PCLVisualizer(std::string const&, bool)'
>
>
>
> _______________________________________________
> [hidden email] / http://pointclouds.org
> http://pointclouds.org/mailman/listinfo/pcl-users
>
If you reply to this email, your message will be added to the discussion below:
http://www.pcl-users.org/Using-PCL-with-QT-Creator-tp4032454p4032457.html
To start a new topic under Point Cloud Library (PCL) Users mailing list, email [hidden email]
To unsubscribe from Point Cloud Library (PCL) Users mailing list, click here.
NAML



--
Best regards V.Metreveli
VM
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: Using PCL with QT Creator

VM
In reply to this post by Ponzifex Maximus
In my case it's not working, Can you give me your project for test.


On Sun, Feb 23, 2014 at 2:55 AM, Ponzi Fex [via Point Cloud Library (PCL) Users mailing list] <[hidden email]> wrote:
I have added these to my .pro file and compiles well.


DEFINES += NOMINMAX
DEFINES += BOOST_DATE_TIME_NO_LIB

INCLUDEPATH += "c:/Program Files (x86)/PCL 1.6.0/include/pcl-1.6"
INCLUDEPATH += "c:/Program Files (x86)/Eigen/include"
INCLUDEPATH += "c:/Program Files (x86)/Boost/include"
INCLUDEPATH += "c:/Program Files (x86)/flann/include"

LIBS += "-LC:/Program Files (x86)/PCL 1.6.0/lib"

LIBS += -lpcl_apps_debug
LIBS += -lpcl_common_debug
LIBS += -lpcl_filters_debug
LIBS += -lpcl_keypoints_debug
LIBS += -lpcl_kdtree_debug
LIBS += -lpcl_search_debug
LIBS += -lpcl_features_debug
LIBS += -lpcl_io_debug
LIBS += -lpcl_io_ply_debug
LIBS += -lpcl_visualization_debug



On Sat, Feb 22, 2014 at 8:51 PM, Nizar Sallem <[hidden email]> wrote:
Make a CMakeLists.txt for your project as done in PCL tutorials, Qt Creator handles them well.

--
Nizar


On 22/02/2014 10:04, ვახუშტი მეტრეველი wrote:
Hello, I am noob on PCL, I can't Configure QT Creator For PCL in windows.
I have Installed PCL 1.6.0 All-In-One Installer.
in qt Creator config file Look like this

TEMPLATE = app
CONFIG += console
CONFIG -= qt

SOURCES += main.cpp

INCLUDEPATH += "D://opencv//install//include" /
                "D://PCL1.6.0//include//pcl-1.6" /
"D://PCL1.6.0//3rdParty//Eigen//include" /
"D://PCL1.6.0//3rdParty//Boost//include" /
"D://PCL1.6.0//3rdParty//VTK//include//vtk-5.8" /
"D://PCL1.6.0//3rdParty//FLANN//include" /
"D://PCL1.6.0//3rdParty//Qhull//include" /


LIBS += "D://opencv//bin//*.dll" /
"D://PCL1.6.0//3rdParty//VTK//lib//vtk-5.8//*.lib" /
"D://PCL1.6.0//lib//*.lib"



and I have got error while compiling
main.cpp:26: error: undefined reference to
`pcl::visualization::PCLVisualizer::PCLVisualizer(std::string const&, bool)'




If you reply to this email, your message will be added to the discussion below:
http://www.pcl-users.org/Using-PCL-with-QT-Creator-tp4032454p4032459.html
To start a new topic under Point Cloud Library (PCL) Users mailing list, email [hidden email]
To unsubscribe from Point Cloud Library (PCL) Users mailing list, click here.
NAML



--
Best regards V.Metreveli
VM
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: Using PCL with QT Creator

VM
In reply to this post by Ponzifex Maximus



On Tue, Feb 25, 2014 at 1:05 PM, ვახუშტი მეტრეველი <[hidden email]> wrote:
In my case it's not working, Can you give me your project for test.


On Sun, Feb 23, 2014 at 2:55 AM, Ponzi Fex [via Point Cloud Library (PCL) Users mailing list] <[hidden email]> wrote:
I have added these to my .pro file and compiles well.


DEFINES += NOMINMAX
DEFINES += BOOST_DATE_TIME_NO_LIB

INCLUDEPATH += "c:/Program Files (x86)/PCL 1.6.0/include/pcl-1.6"
INCLUDEPATH += "c:/Program Files (x86)/Eigen/include"
INCLUDEPATH += "c:/Program Files (x86)/Boost/include"
INCLUDEPATH += "c:/Program Files (x86)/flann/include"

LIBS += "-LC:/Program Files (x86)/PCL 1.6.0/lib"

LIBS += -lpcl_apps_debug
LIBS += -lpcl_common_debug
LIBS += -lpcl_filters_debug
LIBS += -lpcl_keypoints_debug
LIBS += -lpcl_kdtree_debug
LIBS += -lpcl_search_debug
LIBS += -lpcl_features_debug
LIBS += -lpcl_io_debug
LIBS += -lpcl_io_ply_debug
LIBS += -lpcl_visualization_debug



On Sat, Feb 22, 2014 at 8:51 PM, Nizar Sallem <[hidden email]> wrote:
Make a CMakeLists.txt for your project as done in PCL tutorials, Qt Creator handles them well.

--
Nizar


On 22/02/2014 10:04, ვახუშტი მეტრეველი wrote:
Hello, I am noob on PCL, I can't Configure QT Creator For PCL in windows.
I have Installed PCL 1.6.0 All-In-One Installer.
in qt Creator config file Look like this

TEMPLATE = app
CONFIG += console
CONFIG -= qt

SOURCES += main.cpp

INCLUDEPATH += "D://opencv//install//include" /
                "D://PCL1.6.0//include//pcl-1.6" /
"D://PCL1.6.0//3rdParty//Eigen//include" /
"D://PCL1.6.0//3rdParty//Boost//include" /
"D://PCL1.6.0//3rdParty//VTK//include//vtk-5.8" /
"D://PCL1.6.0//3rdParty//FLANN//include" /
"D://PCL1.6.0//3rdParty//Qhull//include" /


LIBS += "D://opencv//bin//*.dll" /
"D://PCL1.6.0//3rdParty//VTK//lib//vtk-5.8//*.lib" /
"D://PCL1.6.0//lib//*.lib"



and I have got error while compiling
main.cpp:26: error: undefined reference to
`pcl::visualization::PCLVisualizer::PCLVisualizer(std::string const&, bool)'




If you reply to this email, your message will be added to the discussion below:
http://www.pcl-users.org/Using-PCL-with-QT-Creator-tp4032454p4032459.html
To start a new topic under Point Cloud Library (PCL) Users mailing list, email [hidden email]
To unsubscribe from Point Cloud Library (PCL) Users mailing list, click here.
NAML



--
Best regards V.Metreveli



--
Best regards V.Metreveli

3D_Reconstruct.rar (15K) Download Attachment
VM
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: Using PCL with QT Creator

VM
In reply to this post by erickulcyk
there is no one answer that?


On Sat, Feb 22, 2014 at 8:54 PM, erickulcyk [via Point Cloud Library (PCL) Users mailing list] <[hidden email]> wrote:
What does your main.cpp look like?

Eric

Sent from Windows Mail

From: [hidden email]
Sent: ‎Saturday‎, ‎February‎ ‎22‎, ‎2014 ‎3‎:‎04‎ ‎AM
To: [hidden email]

Hello, I am noob on PCL, I can't Configure QT Creator For PCL in windows. 
I have Installed PCL 1.6.0 All-In-One Installer. 
in qt Creator config file Look like this 
TEMPLATE = app
CONFIG += console
CONFIG -= qt

SOURCES += main.cpp

INCLUDEPATH += "D://opencv//install//include" /
               "D://PCL1.6.0//include//pcl-1.6" /
"D://PCL1.6.0//3rdParty//Eigen//include" /
"D://PCL1.6.0//3rdParty//Boost//include" /
"D://PCL1.6.0//3rdParty//VTK//include//vtk-5.8" /
"D://PCL1.6.0//3rdParty//FLANN//include" /
"D://PCL1.6.0//3rdParty//Qhull//include" /


LIBS += "D://opencv//bin//*.dll" /
"D://PCL1.6.0//3rdParty//VTK//lib//vtk-5.8//*.lib" /
"D://PCL1.6.0//lib//*.lib"


and I have got error while compiling 
main.cpp:26: error: undefined reference to `pcl::visualization::PCLVisualizer::PCLVisualizer(std::string const&, bool)'

--
Best regards V.Metreveli

_______________________________________________
[hidden email] / http://pointclouds.org
http://pointclouds.org/mailman/listinfo/pcl-users



If you reply to this email, your message will be added to the discussion below:
http://www.pcl-users.org/Using-PCL-with-QT-Creator-tp4032454p4032455.html
To start a new topic under Point Cloud Library (PCL) Users mailing list, email [hidden email]
To unsubscribe from Point Cloud Library (PCL) Users mailing list, click here.
NAML



--
Best regards V.Metreveli
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: Using PCL with QT Creator

Ponzifex Maximus
Sorry for answering lately. I have added an attachment of a working test project in Qt. You will have to modify the .pro file.



On Wed, Feb 26, 2014 at 9:13 AM, VM <[hidden email]> wrote:
there is no one answer that?


On Sat, Feb 22, 2014 at 8:54 PM, erickulcyk [via Point Cloud Library (PCL)
Users mailing list] <[hidden email]> wrote:

> What does your main.cpp look like?
>
> Eric
>
> Sent from Windows Mail
>
> *From:* [hidden email]<http://user/SendEmail.jtp?type=node&node=4032455&i=0>
> *Sent:* Saturday, February 22, 2014 3:04 AM
> *To:* [hidden email]<http://user/SendEmail.jtp?type=node&node=4032455&i=1>
>
> Hello, I am noob on PCL, I can't Configure QT Creator For PCL in windows.
> I have Installed PCL 1.6.0 All-In-One Installer.
> in qt Creator config file Look like this
>
> TEMPLATE = app
> CONFIG += console
> CONFIG -= qt
>
> SOURCES += main.cpp
>
> INCLUDEPATH += "D://opencv//install//include" /
>                "D://PCL1.6.0//include//pcl-1.6" /
> "D://PCL1.6.0//3rdParty//Eigen//include" /
> "D://PCL1.6.0//3rdParty//Boost//include" /
> "D://PCL1.6.0//3rdParty//VTK//include//vtk-5.8" /
> "D://PCL1.6.0//3rdParty//FLANN//include" /
> "D://PCL1.6.0//3rdParty//Qhull//include" /
>
>
> LIBS += "D://opencv//bin//*.dll" /
> "D://PCL1.6.0//3rdParty//VTK//lib//vtk-5.8//*.lib" /
> "D://PCL1.6.0//lib//*.lib"
>
>
>
> and I have got error while compiling
> main.cpp:26: error: undefined reference to
> `pcl::visualization::PCLVisualizer::PCLVisualizer(std::string const&, bool)'
>
> --
> Best regards V.Metreveli
>
> _______________________________________________
> [hidden email] <http://user/SendEmail.jtp?type=node&node=4032455&i=2> /
> http://pointclouds.org
> http://pointclouds.org/mailman/listinfo/pcl-users
>
>
> ------------------------------
>  If you reply to this email, your message will be added to the discussion
> below:
> http://www.pcl-users.org/Using-PCL-with-QT-Creator-tp4032454p4032455.html
View this message in context: http://www.pcl-users.org/Using-PCL-with-QT-Creator-tp4032454p4032546.html
Sent from the Point Cloud Library (PCL) Users mailing list mailing list archive at Nabble.com.
_______________________________________________
[hidden email] / http://pointclouds.org
http://pointclouds.org/mailman/listinfo/pcl-users


_______________________________________________
[hidden email] / http://pointclouds.org
http://pointclouds.org/mailman/listinfo/pcl-users

pcltest.zip (12K) Download Attachment
VM
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: Using PCL with QT Creator

VM
thanks. but it isn't working in my pc. I am using PCL 1.6.0 All-In-One Installer (Windows MSVC 2010 (32bit)) ,
I am using  QT MinGW 32 bit, can be this is problem?


On Wed, Feb 26, 2014 at 4:55 PM, Ponzi Fex [via Point Cloud Library (PCL) Users mailing list] <[hidden email]> wrote:
Sorry for answering lately. I have added an attachment of a working test project in Qt. You will have to modify the .pro file.



On Wed, Feb 26, 2014 at 9:13 AM, VM <[hidden email]> wrote:
there is no one answer that?


On Sat, Feb 22, 2014 at 8:54 PM, erickulcyk [via Point Cloud Library (PCL)
Users mailing list] <[hidden email]> wrote:

> What does your main.cpp look like?
>
> Eric
>
> Sent from Windows Mail
>
> *From:* [hidden email]<http://user/SendEmail.jtp?type=node&node=4032455&i=0>
> *Sent:* Saturday, February 22, 2014 3:04 AM
> *To:* [hidden email]<http://user/SendEmail.jtp?type=node&node=4032455&i=1>
>
> Hello, I am noob on PCL, I can't Configure QT Creator For PCL in windows.
> I have Installed PCL 1.6.0 All-In-One Installer.
> in qt Creator config file Look like this
>
> TEMPLATE = app
> CONFIG += console
> CONFIG -= qt
>
> SOURCES += main.cpp
>
> INCLUDEPATH += "D://opencv//install//include" /
>                "D://PCL1.6.0//include//pcl-1.6" /
> "D://PCL1.6.0//3rdParty//Eigen//include" /
> "D://PCL1.6.0//3rdParty//Boost//include" /
> "D://PCL1.6.0//3rdParty//VTK//include//vtk-5.8" /
> "D://PCL1.6.0//3rdParty//FLANN//include" /
> "D://PCL1.6.0//3rdParty//Qhull//include" /
>
>
> LIBS += "D://opencv//bin//*.dll" /
> "D://PCL1.6.0//3rdParty//VTK//lib//vtk-5.8//*.lib" /
> "D://PCL1.6.0//lib//*.lib"
>
>
>
> and I have got error while compiling
> main.cpp:26: error: undefined reference to
> `pcl::visualization::PCLVisualizer::PCLVisualizer(std::string const&, bool)'
>
> --
> Best regards V.Metreveli
>
> _______________________________________________
> [hidden email] <http://user/SendEmail.jtp?type=node&node=4032455&i=2> /
> http://pointclouds.org
> http://pointclouds.org/mailman/listinfo/pcl-users
>
>
> ------------------------------

>  If you reply to this email, your message will be added to the discussion
> below:
> http://www.pcl-users.org/Using-PCL-with-QT-Creator-tp4032454p4032455.html
View this message in context: http://www.pcl-users.org/Using-PCL-with-QT-Creator-tp4032454p4032546.html
Sent from the Point Cloud Library (PCL) Users mailing list mailing list archive at Nabble.com.


pcltest.zip (12K) Download Attachment



If you reply to this email, your message will be added to the discussion below:
http://www.pcl-users.org/Using-PCL-with-QT-Creator-tp4032454p4032562.html
To start a new topic under Point Cloud Library (PCL) Users mailing list, email [hidden email]
To unsubscribe from Point Cloud Library (PCL) Users mailing list, click here.
NAML



--
Best regards V.Metreveli
VM
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: Using PCL with QT Creator

VM
I still have a same problem and i decided to install linux but I had got same result.
Can anybody help me?
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: Using PCL with QT Creator

nizar sallem
Did you use the CMakeLists.txt or Qt project files ?

--
Nizar
On 28/03/2014 14:24, VM wrote:

> I still have a same problem and i decided to install linux but I had got same
> result.
> Can anybody help me?
>
>
>
> --
> View this message in context: http://www.pcl-users.org/Using-PCL-with-QT-Creator-tp4032454p4033136.html
> Sent from the Point Cloud Library (PCL) Users mailing list mailing list archive at Nabble.com.
> _______________________________________________
> [hidden email] / http://pointclouds.org
> http://pointclouds.org/mailman/listinfo/pcl-users

_______________________________________________
[hidden email] / http://pointclouds.org
http://pointclouds.org/mailman/listinfo/pcl-users
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: Using PCL with QT Creator

Łukasz Groszkowski
In reply to this post by VM
Hi!
Well, very much that's possible. I have very similar setup here: I'm
using Qt 5.1 (compiled myself using tutorials) and PCL 1.6 all in one
plus I'm using x64 everywhere. Are you limited to x32 architecture?
W dniu 2014-03-28 14:24, VM pisze:

> I still have a same problem and i decided to install linux but I had got same
> result.
> Can anybody help me?
>
>
>
> --
> View this message in context: http://www.pcl-users.org/Using-PCL-with-QT-Creator-tp4032454p4033136.html
> Sent from the Point Cloud Library (PCL) Users mailing list mailing list archive at Nabble.com.
> _______________________________________________
> [hidden email] / http://pointclouds.org
> http://pointclouds.org/mailman/listinfo/pcl-users

_______________________________________________
[hidden email] / http://pointclouds.org
http://pointclouds.org/mailman/listinfo/pcl-users
VM
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: Using PCL with QT Creator

VM
This post was updated on .
In reply to this post by nizar sallem
I am using Qt project files .

I have compiled pcl myself in linux successfully. but I can't compile project.

Linux user-VirtualBox 3.11.0-12-generic #19-Ubuntu SMP Wed Oct 9 16:20:46 UTC 2013 x86_64 x86_64 x86_64 GNU/Linux

Make version 2.01a
Using Qt version 4.8.4 in /usr/lib/x86_64-linux-gnu

pcl-1.7.1
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: Using PCL with QT Creator

nizar sallem
Just create the project using CMakeLists.txt with Qt Creator and it will
be fine.

--
Nizar
On 28/03/2014 14:53, VM wrote:

> I am using Qt project files .
>
>
>
> --
> View this message in context: http://www.pcl-users.org/Using-PCL-with-QT-Creator-tp4032454p4033139.html
> Sent from the Point Cloud Library (PCL) Users mailing list mailing list archive at Nabble.com.
> _______________________________________________
> [hidden email] / http://pointclouds.org
> http://pointclouds.org/mailman/listinfo/pcl-users

_______________________________________________
[hidden email] / http://pointclouds.org
http://pointclouds.org/mailman/listinfo/pcl-users
VM
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: Using PCL with QT Creator

VM
I have no  CMakeLists.txt, and how to do it I don't know
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: Using PCL with QT Creator

JMRuizAb
VM wrote
I have no  CMakeLists.txt, and how to do it I don't know
Hi just check any tutorial in http://pointclouds.org/. You could use this example..
cmake_minimum_required(VERSION 2.8 FATAL_ERROR)

project(projects_name)

find_package(PCL 1.2 REQUIRED)

include_directories(${PCL_INCLUDE_DIRS})
link_directories(${PCL_LIBRARY_DIRS})
add_definitions(${PCL_DEFINITIONS})

add_executable (projects_name projects_name.cpp)
target_link_libraries (projects_name ${PCL_LIBRARIES})
Greetings!!
VM
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: Using PCL with QT Creator

VM
thanks but I fixed it without CMakeList.txt. I change project configure
with this.
INCLUDEPATH += "/usr/include/opencv"
INCLUDEPATH += "/usr/include/opencv2"
INCLUDEPATH += "/usr/include/pcl-1.7"
INCLUDEPATH += "/usr/include/vtk-5.8"
INCLUDEPATH += "/usr/include/eigen3"
INCLUDEPATH += "/usr/include/"

LIBS += -lpcl_apps
LIBS += -lpcl_common
LIBS += -lpcl_filters
LIBS += -lpcl_keypoints
LIBS += -lpcl_kdtree
LIBS += -lpcl_search
LIBS += -lpcl_features
LIBS += -lpcl_io
LIBS += -lpcl_io_ply
LIBS += -lpcl_visualization

LIBS+=-lopencv_calib3d
LIBS+=-lopencv_contrib
LIBS+=-lopencv_core
LIBS+=-lopencv_features2d
LIBS+=-lopencv_flann
LIBS+=-lopencv_gpu
LIBS+=-lopencv_highgui
LIBS+=-lopencv_imgproc
LIBS+=-lopencv_legacy
LIBS+=-lopencv_ml
LIBS+=-lopencv_objdetect
LIBS+=-lopencv_ocl
LIBS+=-lopencv_photo
LIBS+=-lopencv_stitching
LIBS+=-lopencv_superres
LIBS+=-lopencv_ts
LIBS+=-lopencv_video
LIBS+=-lopencv_videostab

LIBS+=-lboost_system
LIBS+=-lboost_thread

LIBS+=-lvtkRendering
LIBS+=-lvtkGraphics
LIBS+=-lvtkIO
LIBS+=-lvtkFiltering
LIBS+=-lvtkCommon
LIBS+=-lvtksys
LIBS+=-lpthread
LIBS+=-lm
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: Using PCL with QT Creator

JMRuizAb
You're welcome! I prefer CMake, uses fewer lines and is easier to administer.

Regards
12
Loading...