Thank you Patrick for your help.<br><br>I have discovered that I have had a 'parasite igstkConfigure.h' in other directory and was found first provoking the errors.<br><br>Regards,<br>Rafael Palomar<br><br><div class="gmail_quote">
2010/6/10 Patrick Cheng <span dir="ltr"><<a href="mailto:cheng@isis.georgetown.edu">cheng@isis.georgetown.edu</a>></span><br><blockquote class="gmail_quote" style="margin: 0pt 0pt 0pt 0.8ex; border-left: 1px solid rgb(204, 204, 204); padding-left: 1ex;">
Hi Rafael,<br>
<br>
Do you have a igstkConfigure.h file in your binary directory? This file is generated by the CMake configuration process and it includes the definitions of those variables.<br>
<br>
Try clean out the binary directory and run CMake Configuration again.<br>
<br>
Patrick<div class="im"><br>
<br>
On 6/10/2010 7:26 AM, Rafael Palomar wrote:<br>
</div><blockquote class="gmail_quote" style="margin: 0pt 0pt 0pt 0.8ex; border-left: 1px solid rgb(204, 204, 204); padding-left: 1ex;"><div class="im">
<br>
<br>
2010/6/10 Rafael Palomar <<a href="mailto:rafaelpalomaravalos@gmail.com" target="_blank">rafaelpalomaravalos@gmail.com</a><br></div>
<mailto:<a href="mailto:rafaelpalomaravalos@gmail.com" target="_blank">rafaelpalomaravalos@gmail.com</a>>><div><div></div><div class="h5"><br>
<br>
    Hello all,<br>
<br>
    I am trying to build IGST<br>
<br>
<br>
I am sorry for that...<br>
<br>
So..I am trying to build IGSTK with OpenIGTLink suport and I get the<br>
following errors:<br>
<br>
Building CXX object<br>
Source/CMakeFiles/IGSTK.dir/igstkSerialCommunicationForPosix.o<br>
/home/rafa/src/IGSTK-4-2/Source/igstkSerialCommunicationForPosix.cxx: In<br>
member function ‘virtual igstk::SerialCommunicationForPosix::ResultType<br>
igstk::SerialCommunicationForPosix::InternalOpenPort()’:<br>
/home/rafa/src/IGSTK-4-2/Source/igstkSerialCommunicationForPosix.cxx:74:35:<br>
error: ‘IGSTK_SERIAL_PORT_0’ was not declared in this scope<br>
/home/rafa/src/IGSTK-4-2/Source/igstkSerialCommunicationForPosix.cxx:75:35:<br>
error: ‘IGSTK_SERIAL_PORT_1’ was not declared in this scope<br>
/home/rafa/src/IGSTK-4-2/Source/igstkSerialCommunicationForPosix.cxx:76:35:<br>
error: ‘IGSTK_SERIAL_PORT_2’ was not declared in this scope<br>
/home/rafa/src/IGSTK-4-2/Source/igstkSerialCommunicationForPosix.cxx:77:35:<br>
error: ‘IGSTK_SERIAL_PORT_3’ was not declared in this scope<br>
/home/rafa/src/IGSTK-4-2/Source/igstkSerialCommunicationForPosix.cxx:78:35:<br>
error: ‘IGSTK_SERIAL_PORT_4’ was not declared in this scope<br>
/home/rafa/src/IGSTK-4-2/Source/igstkSerialCommunicationForPosix.cxx:79:35:<br>
error: ‘IGSTK_SERIAL_PORT_5’ was not declared in this scope<br>
/home/rafa/src/IGSTK-4-2/Source/igstkSerialCommunicationForPosix.cxx:80:35:<br>
error: ‘IGSTK_SERIAL_PORT_6’ was not declared in this scope<br>
/home/rafa/src/IGSTK-4-2/Source/igstkSerialCommunicationForPosix.cxx:81:35:<br>
error: ‘IGSTK_SERIAL_PORT_7’ was not declared in this scope<br>
/home/rafa/src/IGSTK-4-2/Source/igstkSerialCommunicationForPosix.cxx:96:20:<br>
error: aggregate<br>
‘igstk::SerialCommunicationForPosix::InternalOpenPort()::termios t’ has<br>
incomplete type and cannot be defined<br>
/home/rafa/src/IGSTK-4-2/Source/igstkSerialCommunicationForPosix.cxx:97:34:<br>
error: ‘tcgetattr’ was not declared in this scope<br>
/home/rafa/src/IGSTK-4-2/Source/igstkSerialCommunicationForPosix.cxx:105:14:<br>
error: ‘VMIN’ was not declared in this scope<br>
/home/rafa/src/IGSTK-4-2/Source/igstkSerialCommunicationForPosix.cxx:106:14:<br>
error: ‘VTIME’ was not declared in this scope<br>
/home/rafa/src/IGSTK-4-2/Source/igstkSerialCommunicationForPosix.cxx:110:34:<br>
error: ‘TCSANOW’ was not declared in this scope<br>
/home/rafa/src/IGSTK-4-2/Source/igstkSerialCommunicationForPosix.cxx:110:44:<br>
error: ‘tcsetattr’ was not declared in this scope<br>
/home/rafa/src/IGSTK-4-2/Source/igstkSerialCommunicationForPosix.cxx:113:34:<br>
error: ‘TCIOFLUSH’ was not declared in this scope<br>
/home/rafa/src/IGSTK-4-2/Source/igstkSerialCommunicationForPosix.cxx:113:43:<br>
error: ‘tcflush’ was not declared in this scope<br>
/home/rafa/src/IGSTK-4-2/Source/igstkSerialCommunicationForPosix.cxx: In<br>
member function ‘virtual igstk::SerialCommunicationForPosix::ResultType<br>
igstk::SerialCommunicationForPosix::InternalUpdateParameters()’:<br>
/home/rafa/src/IGSTK-4-2/Source/igstkSerialCommunicationForPosix.cxx:159:28:<br>
error: ‘B9600’ was not declared in this scope<br>
/home/rafa/src/IGSTK-4-2/Source/igstkSerialCommunicationForPosix.cxx:160:28:<br>
error: ‘B19200’ was not declared in this scope<br>
/home/rafa/src/IGSTK-4-2/Source/igstkSerialCommunicationForPosix.cxx:161:28:<br>
error: ‘B38400’ was not declared in this scope<br>
/home/rafa/src/IGSTK-4-2/Source/igstkSerialCommunicationForPosix.cxx:162:28:<br>
error: ‘B57600’ was not declared in this scope<br>
/home/rafa/src/IGSTK-4-2/Source/igstkSerialCommunicationForPosix.cxx:163:28:<br>
error: ‘B115200’ was not declared in this scope<br>
/home/rafa/src/IGSTK-4-2/Source/igstkSerialCommunicationForPosix.cxx:167:18:<br>
error: aggregate<br>
‘igstk::SerialCommunicationForPosix::InternalUpdateParameters()::termios<br>
t’ has incomplete type and cannot be defined<br>
/home/rafa/src/IGSTK-4-2/Source/igstkSerialCommunicationForPosix.cxx:168:28:<br>
error: ‘tcgetattr’ was not declared in this scope<br>
/home/rafa/src/IGSTK-4-2/Source/igstkSerialCommunicationForPosix.cxx:169:17:<br>
error: ‘CSIZE’ was not declared in this scope<br>
/home/rafa/src/IGSTK-4-2/Source/igstkSerialCommunicationForPosix.cxx:178:17:<br>
error: ‘CBAUD’ was not declared in this scope<br>
/home/rafa/src/IGSTK-4-2/Source/igstkSerialCommunicationForPosix.cxx:185:18:<br>
error: ‘CS8’ was not declared in this scope<br>
/home/rafa/src/IGSTK-4-2/Source/igstkSerialCommunicationForPosix.cxx:189:18:<br>
error: ‘CS7’ was not declared in this scope<br>
/home/rafa/src/IGSTK-4-2/Source/igstkSerialCommunicationForPosix.cxx:195:19:<br>
error: ‘PARENB’ was not declared in this scope<br>
/home/rafa/src/IGSTK-4-2/Source/igstkSerialCommunicationForPosix.cxx:196:19:<br>
error: ‘PARODD’ was not declared in this scope<br>
/home/rafa/src/IGSTK-4-2/Source/igstkSerialCommunicationForPosix.cxx:200:18:<br>
error: ‘PARENB’ was not declared in this scope<br>
/home/rafa/src/IGSTK-4-2/Source/igstkSerialCommunicationForPosix.cxx:201:19:<br>
error: ‘PARODD’ was not declared in this scope<br>
/home/rafa/src/IGSTK-4-2/Source/igstkSerialCommunicationForPosix.cxx:207:19:<br>
error: ‘CSTOPB’ was not declared in this scope<br>
/home/rafa/src/IGSTK-4-2/Source/igstkSerialCommunicationForPosix.cxx:211:18:<br>
error: ‘CSTOPB’ was not declared in this scope<br>
/home/rafa/src/IGSTK-4-2/Source/igstkSerialCommunicationForPosix.cxx:218:16:<br>
error: ‘CRTSCTS’ was not declared in this scope<br>
/home/rafa/src/IGSTK-4-2/Source/igstkSerialCommunicationForPosix.cxx:232:10:<br>
error: ‘VMIN’ was not declared in this scope<br>
/home/rafa/src/IGSTK-4-2/Source/igstkSerialCommunicationForPosix.cxx:233:10:<br>
error: ‘VTIME’ was not declared in this scope<br>
/home/rafa/src/IGSTK-4-2/Source/igstkSerialCommunicationForPosix.cxx:238:30:<br>
error: ‘TCSADRAIN’ was not declared in this scope<br>
/home/rafa/src/IGSTK-4-2/Source/igstkSerialCommunicationForPosix.cxx:238:42:<br>
error: ‘tcsetattr’ was not declared in this scope<br>
/home/rafa/src/IGSTK-4-2/Source/igstkSerialCommunicationForPosix.cxx: In<br>
member function ‘virtual igstk::SerialCommunicationForPosix::ResultType<br>
igstk::SerialCommunicationForPosix::InternalSendBreak()’:<br>
/home/rafa/src/IGSTK-4-2/Source/igstkSerialCommunicationForPosix.cxx:304:33:<br>
error: ‘tcsendbreak’ was not declared in this scope<br>
/home/rafa/src/IGSTK-4-2/Source/igstkSerialCommunicationForPosix.cxx: In<br>
member function ‘virtual igstk::SerialCommunicationForPosix::ResultType<br>
igstk::SerialCommunicationForPosix::InternalPurgeBuffers()’:<br>
/home/rafa/src/IGSTK-4-2/Source/igstkSerialCommunicationForPosix.cxx:320:29:<br>
error: ‘TCIOFLUSH’ was not declared in this scope<br>
/home/rafa/src/IGSTK-4-2/Source/igstkSerialCommunicationForPosix.cxx:320:38:<br>
error: ‘tcflush’ was not declared in this scope<br>
/home/rafa/src/IGSTK-4-2/Source/igstkSerialCommunicationForPosix.cxx: In<br>
member function ‘virtual igstk::SerialCommunicationForPosix::ResultType<br>
igstk::SerialCommunicationForPosix::InternalRead(char*, unsigned int,<br>
unsigned int&)’:<br>
/home/rafa/src/IGSTK-4-2/Source/igstkSerialCommunicationForPosix.cxx:382:20:<br>
error: aggregate<br>
‘igstk::SerialCommunicationForPosix::InternalRead(char*, unsigned int,<br>
unsigned int&)::termios t’ has incomplete type and cannot be defined<br>
/home/rafa/src/IGSTK-4-2/Source/igstkSerialCommunicationForPosix.cxx:385:35:<br>
error: ‘tcgetattr’ was not declared in this scope<br>
/home/rafa/src/IGSTK-4-2/Source/igstkSerialCommunicationForPosix.cxx:387:14:<br>
error: ‘VMIN’ was not declared in this scope<br>
/home/rafa/src/IGSTK-4-2/Source/igstkSerialCommunicationForPosix.cxx:388:14:<br>
error: ‘VTIME’ was not declared in this scope<br>
/home/rafa/src/IGSTK-4-2/Source/igstkSerialCommunicationForPosix.cxx:389:34:<br>
error: ‘TCSANOW’ was not declared in this scope<br>
/home/rafa/src/IGSTK-4-2/Source/igstkSerialCommunicationForPosix.cxx:389:44:<br>
error: ‘tcsetattr’ was not declared in this scope<br>
make[2]: ***<br>
[Source/CMakeFiles/IGSTK.dir/igstkSerialCommunicationForPosix.o] Error 1<br>
make[1]: *** [Source/CMakeFiles/IGSTK.dir/all] Error 2<br>
make: *** [all] Error 2<br>
<br>
It is curious that the first lines regarding IGSTK_SERIAL_PORT. should<br>
be declared in the igstkConfigure.h. Anyone have dealing with these<br>
errors before?<br>
<br>
Thank you in advance.<br>
<br>
<br>
<br></div></div>
_______________________________________________<br>
IGSTK-Developers mailing list<br>
<a href="mailto:IGSTK-Developers@public.kitware.com" target="_blank">IGSTK-Developers@public.kitware.com</a><br>
<a href="http://public.kitware.com/cgi-bin/mailman/listinfo/igstk-developers" target="_blank">http://public.kitware.com/cgi-bin/mailman/listinfo/igstk-developers</a><br>
</blockquote>
_______________________________________________<br>
IGSTK-Developers mailing list<br>
<a href="mailto:IGSTK-Developers@public.kitware.com" target="_blank">IGSTK-Developers@public.kitware.com</a><br>
<a href="http://public.kitware.com/cgi-bin/mailman/listinfo/igstk-developers" target="_blank">http://public.kitware.com/cgi-bin/mailman/listinfo/igstk-developers</a><br>
</blockquote></div><br>