<div dir="ltr">Hi Chuck,<div>the unit tests are not standalone executables, i.e. they don't include a main function, which is the entry point of each application.</div><div><br></div><div>Change the line 139 in igstkAuroraTrackerTest.cxx </div>
<div><br></div><div>from</div><div><br></div><div>int igstkAuroraTrackerTest( int argc, char * argv[] )<br></div><div><br></div><div>to</div><div><br></div><div>int main(( int argc, char * argv[] )<br><div><br></div></div>
<div><br></div><div>Best,</div><div>Ozgur</div><div><br></div><div><br></div></div><div class="gmail_extra"><br><br><div class="gmail_quote">On Tue, Nov 12, 2013 at 10:18 PM, Chuck Hatt <span dir="ltr"><<a href="mailto:hatt@wisc.edu" target="_blank">hatt@wisc.edu</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr"><div>Hi, <br><br><br>I'm getting a strange build error with a project I am trying to create. I want to try a very simple Aurora data logger, so I thought I'd start with AuroraTrackerTest.cxx. Can someone let me know if I even have a correct CMakeLists.txt file? If so, does anyone have any ideas about the error?<br>
<br></div><div>I'm running Ubuntu 12.04<br></div><div><br>Thanks in advance,<br><br></div><div>Chuck<br></div><div><br><br></div>Here is the cmake file<br><div>____________________________<br>cmake_minimum_required(VERSION 2.8)<br>
<br>PROJECT( AuroraTest )<br><br><br>FIND_PACKAGE(ITK REQUIRED)
<br>INCLUDE(${ITK_USE_FILE})<br><br>FIND_PACKAGE(IGSTK REQUIRED)
<br>INCLUDE(${IGSTK_USE_FILE})<br><br>ADD_EXECUTABLE(AuroraTest<br> igstkAuroraTrackerTest.cxx<br> )<br><br>TARGET_LINK_LIBRARIES(AuroraTest IGSTK ITKCommon )<br><br>__________________________<br>
<br></div><div>Here is what happens when I make<br></div><div><br>>> make<br>Scanning dependencies of target AuroraTest<br>[100%] Building CXX object CMakeFiles/AuroraTest.dir/igstkAuroraTrackerTest.cxx.o<br>In file included from /usr/include/c++/4.6/backward/strstream:52:0,<br>
from /usr/local/vtk/VTK5.10.1/Common/vtkIOStream.h:108,<br> from /usr/local/vtk/VTK5.10.1/Common/vtkSystemIncludes.h:40,<br> from /usr/local/vtk/VTK5.10.1/Common/vtkIndent.h:24,<br>
from /usr/local/vtk/VTK5.10.1/Common/vtkObjectBase.h:43,<br> from /usr/local/vtk/VTK5.10.1/Common/vtkObject.h:41,<br> from /usr/local/vtk/VTK5.10.1/Common/vtkMatrix4x4.h:27,<br>
from /usr/local/igstk/IGSTK-5.2/Source/igstkTransform.h:26,<br> from /usr/local/igstk/IGSTK-5.2/Source/igstkEvents.h:23,<br> from /usr/local/igstk/IGSTK-5.2/Source/igstkSerialCommunication.h:32,<br>
from /home/user/Documents/igstk/Examples/AuroraTrackerTest2/igstkAuroraTrackerTest.cxx:34:<br>/usr/include/c++/4.6/backward/backward_warning.h:33:2: warning: #warning This file includes at least one deprecated or antiquated header which may be removed without further notice at a future date. Please use a non-deprecated interface with equivalent functionality instead. For a listing of replacement headers and interfaces, consult the file backward_warning.h. To disable this warning use -Wno-deprecated. [-Wcpp]<br>
Linking CXX executable AuroraTest<br><b>/usr/lib/gcc/x86_64-linux-gnu/4.6/../../../x86_64-linux-gnu/crt1.o: In function `_start':<br>(.text+0x20): undefined reference to `main'<br>collect2: ld returned 1 exit status<br>
make[2]: *** [AuroraTest] Error 1<br>make[1]: *** [CMakeFiles/AuroraTest.dir/all] Error 2<br>make: *** [all] Error 2</b><br><br></div></div>
<br>_______________________________________________<br>
Powered by <a href="http://www.kitware.com" target="_blank">www.kitware.com</a><br>
<br>
Visit other Kitware open-source projects at <a href="http://www.kitware.com/opensource/opensource.html" target="_blank">http://www.kitware.com/opensource/opensource.html</a><br>
<br>
Follow this link to subscribe/unsubscribe:<br>
<a href="http://public.kitware.com/cgi-bin/mailman/listinfo/igstk-users" target="_blank">http://public.kitware.com/cgi-bin/mailman/listinfo/igstk-users</a><br></blockquote></div><br><br clear="all"><div><br></div>-- <br>
*********************************************************************<br>Dr. Dipl.-Ing. Özgür Güler, Bakk. techn. PhD<br>Research Assistant<br>4D-Visualization Laboratory<br>Univ. ENT Clinic<br>Innsbruck Medical University<br>
Anichstr. 35, A-6020 Innsbruck, Austria<br><br>tel.: +43 512 504 23428, fax.: +43 512 504 25231<br><br><a href="http://voxelmaster.eu" target="_blank">voxelmaster.eu</a><br><a href="http://www.gueler.at" target="_blank">www.gueler.at</a><br>
*********************************************************************<br><br>
</div>