trouble with qt creator and pcl

classic Classic list List threaded Threaded
2 messages Options
Reply | Threaded
Open this post in threaded view
|

trouble with qt creator and pcl

joyo22
Hi,
i am trying to create a program with PCL and QT libraries in QT creator but i have some issues.
 
/usr/bin/ld: warning: libboost_system.so.1.54.0, needed by /usr/lib/gcc/x86_64-linux-gnu/4.8/../../../../lib/libpcl_visualization.so, may conflict with libboost_system.so.1.55.0
//usr/lib/libpq.so.5: undefined reference to `SSL_get_peer_certificate@OPENSSL_1.0.0'
/usr/lib/gcc/x86_64-linux-gnu/4.8/../../../../lib/libvtkIO.so: undefined reference to `TIFFReadDirectory@LIBTIFF_4.0'
//usr/lib/libpq.so.5: undefined reference to `CRYPTO_num_locks@OPENSSL_1.0.0'
//usr/lib/libpq.so.5: undefined reference to `SSL_CTX_use_certificate_chain_file@OPENSSL_1.0.0'
/usr/lib/gcc/x86_64-linux-gnu/4.8/../../../../lib/libvtkIO.so: undefined reference to `TIFFIsTiled@LIBTIFF_4.0'
//usr/lib/libpq.so.5: undefined reference to `SSL_use_certificate_file@OPENSSL_1.0.0'
//usr/lib/libpq.so.5: undefined reference to `ENGINE_free@OPENSSL_1.0.0'
//usr/lib/libpq.so.5: undefined reference to `OPENSSL_config@OPENSSL_1.0.0'
//usr/lib/libpq.so.5: undefined reference to `SSL_get_error@OPENSSL_1.0.0'
//usr/lib/libpq.so.5: undefined reference to `SSL_use_PrivateKey_file@OPENSSL_1.0.0'
//usr/lib/libpq.so.5: undefined reference to `X509_STORE_load_locations@OPENSSL_1.0.0'
/usr/lib/gcc/x86_64-linux-gnu/4.8/../../../../lib/libvtkIO.so: undefined reference to `TIFFDefaultStripSize@LIBTIFF_4.0'
/usr/lib/gcc/x86_64-linux-gnu/4.8/../../../../lib/libvtkIO.so: undefined reference to `TIFFReadTile@LIBTIFF_4.0'
//usr/lib/libpq.so.5: undefined reference to `SSL_set_ex_data@OPENSSL_1.0.0'
/usr/lib/gcc/x86_64-linux-gnu/4.8/../../../../lib/libvtkIO.so: undefined reference to `TIFFWriteScanline@LIBTIFF_4.0'
/usr/lib/gcc/x86_64-linux-gnu/4.8/../../../../lib/libvtkIO.so: undefined reference to `_TIFFfree@LIBTIFF_4.0'
//usr/lib/libpq.so.5: undefined reference to `SSL_read@OPENSSL_1.0.0'
/usr/lib/gcc/x86_64-linux-gnu/4.8/../../../../lib/libvtkIO.so: undefined reference to `TIFFGetField@LIBTIFF_4.0'
/usr/lib/gcc/x86_64-linux-gnu/4.8/../../../../lib/libvtkIO.so: undefined reference to `TIFFScanlineSize@LIBTIFF_4.0'
//usr/lib/libpq.so.5: undefined reference to `X509_STORE_set_flags@OPENSSL_1.0.0'
//usr/lib/libpq.so.5: undefined reference to `SSLv23_method@OPENSSL_1.0.0'
//usr/lib/libpq.so.5: undefined reference to `ENGINE_load_private_key@OPENSSL_1.0.0'
//usr/lib/libpq.so.5: undefined reference to `X509_get_subject_name@OPENSSL_1.0.0'
//usr/lib/libpq.so.5: undefined reference to `CRYPTO_set_id_callback@OPENSSL_1.0.0'
/usr/lib/gcc/x86_64-linux-gnu/4.8/../../../../lib/libvtkIO.so: undefined reference to `TIFFClose@LIBTIFF_4.0'
/usr/lib/gcc/x86_64-linux-gnu/4.8/../../../../lib/libvtkIO.so: undefined reference to `TIFFClientOpen@LIBTIFF_4.0'
//usr/lib/libpq.so.5: undefined reference to `SSL_CTX_new@OPENSSL_1.0.0'
//usr/lib/libpq.so.5: undefined reference to `SSL_CTX_get_cert_store@OPENSSL_1.0.0'
//usr/lib/libpq.so.5: undefined reference to `SSL_check_private_key@OPENSSL_1.0.0'
/usr/lib/gcc/x86_64-linux-gnu/4.8/../../../../lib/libvtkIO.so: undefined reference to `TIFFGetFieldDefaulted@LIBTIFF_4.0'
//usr/lib/libpq.so.5: undefined reference to `ENGINE_by_id@OPENSSL_1.0.0'
/usr/lib/gcc/x86_64-linux-gnu/4.8/../../../../lib/libvtkIO.so: undefined reference to `TIFFNumberOfDirectories@LIBTIFF_4.0'
//usr/lib/libpq.so.5: undefined reference to `ERR_get_error@OPENSSL_1.0.0'
//usr/lib/libpq.so.5: undefined reference to `CRYPTO_set_locking_callback@OPENSSL_1.0.0'
//usr/lib/libpq.so.5: undefined reference to `SSL_load_error_strings@OPENSSL_1.0.0'
//usr/lib/libpq.so.5: undefined reference to `SSL_new@OPENSSL_1.0.0'
//usr/lib/libpq.so.5: undefined reference to `X509_NAME_get_text_by_NID@OPENSSL_1.0.0'
/usr/lib/gcc/x86_64-linux-gnu/4.8/../../../../lib/libvtkIO.so: undefined reference to `TIFFOpen@LIBTIFF_4.0'
//usr/lib/libpq.so.5: undefined reference to `SSL_write@OPENSSL_1.0.0'
//usr/lib/libpq.so.5: undefined reference to `X509_free@OPENSSL_1.0.0'
//usr/lib/libpq.so.5: undefined reference to `SSL_CTX_load_verify_locations@OPENSSL_1.0.0'
/usr/lib/gcc/x86_64-linux-gnu/4.8/../../../../lib/libvtkIO.so: undefined reference to `TIFFReadRGBAImage@LIBTIFF_4.0'
//usr/lib/libpq.so.5: undefined reference to `SSL_free@OPENSSL_1.0.0'
//usr/lib/libpq.so.5: undefined reference to `SSL_ctrl@OPENSSL_1.0.0'
/usr/lib/gcc/x86_64-linux-gnu/4.8/../../../../lib/libvtkIO.so: undefined reference to `TIFFSetField@LIBTIFF_4.0'
//usr/lib/libpq.so.5: undefined reference to `SSL_set_verify@OPENSSL_1.0.0'
//usr/lib/libpq.so.5: undefined reference to `ENGINE_init@OPENSSL_1.0.0'
//usr/lib/libpq.so.5: undefined reference to `SSL_set_fd@OPENSSL_1.0.0'
//usr/lib/libpq.so.5: undefined reference to `SSL_connect@OPENSSL_1.0.0'
//usr/lib/libpq.so.5: undefined reference to `ERR_reason_error_string@OPENSSL_1.0.0'
//usr/lib/libpq.so.5: undefined reference to `SSL_CTX_ctrl@OPENSSL_1.0.0'
//usr/lib/libpq.so.5: undefined reference to `SSL_pending@OPENSSL_1.0.0'
//usr/lib/libpq.so.5: undefined reference to `SSL_use_PrivateKey@OPENSSL_1.0.0'
/usr/lib/gcc/x86_64-linux-gnu/4.8/../../../../lib/libvtkIO.so: undefined reference to `TIFFSetWarningHandler@LIBTIFF_4.0'
//usr/lib/libpq.so.5: undefined reference to `ENGINE_finish@OPENSSL_1.0.0'
/usr/lib/gcc/x86_64-linux-gnu/4.8/../../../../lib/libvtkIO.so: undefined reference to `TIFFSetErrorHandler@LIBTIFF_4.0'
/usr/lib/gcc/x86_64-linux-gnu/4.8/../../../../lib/libvtkIO.so: undefined reference to `_TIFFmalloc@LIBTIFF_4.0'
//usr/lib/libpq.so.5: undefined reference to `SSL_library_init@OPENSSL_1.0.0'
/usr/lib/gcc/x86_64-linux-gnu/4.8/../../../../lib/libvtkIO.so: undefined reference to `TIFFSetDirectory@LIBTIFF_4.0'
/usr/lib/gcc/x86_64-linux-gnu/4.8/../../../../lib/libvtkIO.so: undefined reference to `TIFFReadScanline@LIBTIFF_4.0'
//usr/lib/libpq.so.5: undefined reference to `SSL_shutdown@OPENSSL_1.0.0'
/usr/lib/gcc/x86_64-linux-gnu/4.8/../../../../lib/libvtkIO.so: undefined reference to `TIFFNumberOfTiles@LIBTIFF_4.0'
collect2: error: ld returned 1 exit status
make: *** [diplomovka_GUI] Error 1
15:58:32: The process "/usr/bin/make" exited with code 2.
Error while building/deploying project diplomovka_GUI (kit: Desktop)
When executing step 'Make'


Can anyone tell me what is wrong? My .pro is :


QT       += core gui

greaterThan(QT_MAJOR_VERSION, 4): QT += widgets

TARGET = diplomovka_GUI
TEMPLATE = app


SOURCES += main.cpp\
        mainwindow.cpp \
    resampling.cpp \
    cloud_viewer.cpp

HEADERS  += mainwindow.h \
    resampling.h \
    viewer.h

FORMS    += mainwindow.ui

INCLUDEPATH += "/usr/include/pcl-1.7/"
INCLUDEPATH += "/usr/include/pcl-1.7/pcl/"
INCLUDEPATH += "/usr/include/pcl-1.7/pcl/surface/"

INCLUDEPATH += "/usr/include/vtk-5.8/"
INCLUDEPATH += "/usr/include/eigen3/"
INCLUDEPATH += "/usr/include/"
INCLUDEPATH += "/usr/include/boost/"
INCLUDEPATH += "/usr/include/flann/"
INCLUDEPATH += "/usr/include/openni2/"

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+=-lboost_system
LIBS+=-lboost_thread

LIBS+=-lvtkRendering
LIBS+=-lvtkGraphics
LIBS+=-lvtkIO
LIBS+=-lvtkFiltering
LIBS+=-lvtkCommon
LIBS+=-lvtksys
LIBS+=-lpthread
LIBS+=-lm




thanks a lot.
Reply | Threaded
Open this post in threaded view
|

Re: trouble with qt creator and pcl

VictorLamoine
Administrator
Hello,

It will be a lot easier to use CMake rather than QMake for your Qt + PCL project;
Take a look at this tutorial:
http://www.pointclouds.org/documentation/tutorials/qt_visualizer.php

And especially the CMakeLists.txt:
http://www.pointclouds.org/documentation/tutorials/_downloads/CMakeLists1.txt

Bye