<html dir="ltr">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<style id="owaParaStyle" type="text/css">
<!--
p
{margin-top:0;
margin-bottom:0}
-->
P {margin-top:0;margin-bottom:0;}</style>
</head>
<body ocsi="0" fpstyle="1">
<div style="direction: ltr;font-family: Tahoma;color: #000000;font-size: 10pt;"><font color="black" face="Tahoma" size="2"><span style="font-size:10pt;" dir="ltr">Ok, I found the error.<br>
<br>
Forgot to link the IGSTK library in the QT .pro file:<br>
LIBS += -L/usr/lib/<br>
LIBS += -lIGSTK <br>
<br>
Steve<br>
<br>
</span></font>
<div style="font-family: Times New Roman; color: #000000; font-size: 16px">
<hr tabindex="-1">
<div style="direction: ltr;" id="divRpF592330"><font color="#000000" face="Tahoma" size="2"><b>De :</b> Berger, Steve (ISTB)<br>
<b>Envoyé :</b> mardi, 3. décembre 2013 12:37<br>
<b>À :</b> igstk-users@public.kitware.com<br>
<b>Objet :</b> IGSTK and QT<br>
</font><br>
</div>
<div></div>
<div>
<div style="direction:ltr; font-family:Tahoma; color:#000000; font-size:10pt">Dear all,<br>
<br>
I recently build and installed VTK 5.10.1 and ITK 4.4.2 from source code under Ubuntu 13.10. Everything seems to be ok (at least I think so).<br>
Then I build IGSTK 5.2 as it is explained in the manual book. Seems to be ok.<br>
Finally, I write the following basic code in QtCreator:<br>
<br>
main.cpp:<br>
------------<br>
#include "igstkRealTimeClock.h"<br>
int main(int , char** )<br>
{<br>
igstk::RealTimeClock::Initialize();<br>
return EXIT_SUCCESS;<br>
}<br>
<br>
<br>
myProject.pro:<br>
-------------------<br>
SOURCES += \<br>
../main.cpp<br>
INCLUDEPATH += /usr/include/IGSTK<br>
<br>
<br>
Which gives me an error:<br>
undefined reference to 'igstk::RealTimeClock::Initialize()'<br>
<br>
When I search for the ''igstkRealTimeClock'' files on my computer with the 'locate' command, I get the following output:<br>
/home/berger/SpineBot/kitware/igstk/IGSTK-5.2/Source/igstkRealTimeClock.cxx<br>
/home/berger/SpineBot/kitware/igstk/IGSTK-5.2/Source/igstkRealTimeClock.h<br>
/usr/include/IGSTK/igstkRealTimeClock.h<br>
<br>
<br>
I do not understand what is wrong: <br>
- are there problems with the building process of IGSTK?<br>
- did I forget to add something in the myProject.pro file?<br>
<br>
<br>
Sorry if this question is really basic for you, but I'm new in this field and already try to find the answer by myself, without success...<br>
I hope someone can give me a hand.<br>
<br>
Kind regards,<br>
Steve</div>
</div>
</div>
</div>
</body>
</html>