[Insight-users] itk setup problems in Ubuntu QtCreator

pengpeng helloliupengxin at gmail.com
Tue Jul 2 04:39:25 EDT 2013


Hello All:

I want to use itk in QtCreator in Ubuntu.
What I did is as below:
In .pro file : 
I added : 
INCLUDEPATH+=/usr/local/include/ITK-4.3 
LIBS += /usr/local/lib/libITKBiasCorrection-4.3.a\ (and so on with all itk
lib)

In main.cpp file:
I added only 3 lines to test
#include "itkImage.h"
typedef itk::Image<unsigned short,3> ImageType;
ImageType::Pointer image=ImageType::New();

Then I got errors as below:

/usr/local/lib/libitkvnl_algo-4.3.a(vnl_svd+double-.cxx.o):-1: In function
`vnl_svd<double>::vnl_svd(vnl_matrix<double> const&, double)':
(.text._ZN7vnl_svdIdEC2ERK10vnl_matrixIdEd[_ZN7vnl_svdIdEC5ERK10vnl_matrixIdEd]+0x26a):-1:
error: undefined reference to `v3p_netlib_dsvdc_'
/usr/local/lib/libitkvnl_algo-4.3.a(vnl_svd+double-.cxx.o):-1: In function
`_GLOBAL__sub_I_vnl_svd_double_.cxx':
(.text.startup+0x2f):-1: error: undefined reference to
`v3p_netlib_initialize'
/usr/local/lib/libitkvnl_algo-4.3.a(vnl_qr+double-.cxx.o):-1: In function
`vnl_qr<double>::vnl_qr(vnl_matrix<double> const&)':
(.text._ZN6vnl_qrIdEC2ERK10vnl_matrixIdE[_ZN6vnl_qrIdEC5ERK10vnl_matrixIdE]+0x14a):-1:
error: undefined reference to `v3p_netlib_dqrdc_'
/usr/local/lib/libitkvnl_algo-4.3.a(vnl_qr+double-.cxx.o):-1: In function
`vnl_qr<double>::solve(vnl_vector<double> const&) const':
/usr/local/lib/libitkvnl_algo-4.3.a(vnl_qr+double-.cxx.o):-1: In function
`vnl_qr<double>::QtB(vnl_vector<double> const&) const':
/usr/local/lib/libitkvnl_algo-4.3.a(vnl_qr+double-.cxx.o):-1: In function
`_GLOBAL__sub_I_vnl_qr_double_.cxx':
(.text.startup+0x2f):-1: error: undefined reference to
`v3p_netlib_initialize'
:-1: error: collect2: ld returned 1 exit status

I can not figure it out, Any reply will be welcome, thanks a lot.



--
View this message in context: http://itk-insight-users.2283740.n2.nabble.com/itk-setup-problems-in-Ubuntu-QtCreator-tp7583410.html
Sent from the ITK Insight Users mailing list archive at Nabble.com.


More information about the Insight-users mailing list