[IGSTK-Developers] Error Building IGSTK 4.2 with OpenIGTLink

Patrick Cheng cheng at isis.georgetown.edu
Thu Jun 10 10:37:38 EDT 2010


Hi Rafael,

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.

Try clean out the binary directory and run CMake Configuration again.

Patrick

On 6/10/2010 7:26 AM, Rafael Palomar wrote:
>
>
> 2010/6/10 Rafael Palomar <rafaelpalomaravalos at gmail.com
> <mailto:rafaelpalomaravalos at gmail.com>>
>
>     Hello all,
>
>     I am trying to build IGST
>
>
> I am sorry for that...
>
> So..I am trying to build IGSTK with OpenIGTLink suport and I get the
> following errors:
>
> Building CXX object
> Source/CMakeFiles/IGSTK.dir/igstkSerialCommunicationForPosix.o
> /home/rafa/src/IGSTK-4-2/Source/igstkSerialCommunicationForPosix.cxx: In
> member function ‘virtual igstk::SerialCommunicationForPosix::ResultType
> igstk::SerialCommunicationForPosix::InternalOpenPort()’:
> /home/rafa/src/IGSTK-4-2/Source/igstkSerialCommunicationForPosix.cxx:74:35:
> error: ‘IGSTK_SERIAL_PORT_0’ was not declared in this scope
> /home/rafa/src/IGSTK-4-2/Source/igstkSerialCommunicationForPosix.cxx:75:35:
> error: ‘IGSTK_SERIAL_PORT_1’ was not declared in this scope
> /home/rafa/src/IGSTK-4-2/Source/igstkSerialCommunicationForPosix.cxx:76:35:
> error: ‘IGSTK_SERIAL_PORT_2’ was not declared in this scope
> /home/rafa/src/IGSTK-4-2/Source/igstkSerialCommunicationForPosix.cxx:77:35:
> error: ‘IGSTK_SERIAL_PORT_3’ was not declared in this scope
> /home/rafa/src/IGSTK-4-2/Source/igstkSerialCommunicationForPosix.cxx:78:35:
> error: ‘IGSTK_SERIAL_PORT_4’ was not declared in this scope
> /home/rafa/src/IGSTK-4-2/Source/igstkSerialCommunicationForPosix.cxx:79:35:
> error: ‘IGSTK_SERIAL_PORT_5’ was not declared in this scope
> /home/rafa/src/IGSTK-4-2/Source/igstkSerialCommunicationForPosix.cxx:80:35:
> error: ‘IGSTK_SERIAL_PORT_6’ was not declared in this scope
> /home/rafa/src/IGSTK-4-2/Source/igstkSerialCommunicationForPosix.cxx:81:35:
> error: ‘IGSTK_SERIAL_PORT_7’ was not declared in this scope
> /home/rafa/src/IGSTK-4-2/Source/igstkSerialCommunicationForPosix.cxx:96:20:
> error: aggregate
> ‘igstk::SerialCommunicationForPosix::InternalOpenPort()::termios t’ has
> incomplete type and cannot be defined
> /home/rafa/src/IGSTK-4-2/Source/igstkSerialCommunicationForPosix.cxx:97:34:
> error: ‘tcgetattr’ was not declared in this scope
> /home/rafa/src/IGSTK-4-2/Source/igstkSerialCommunicationForPosix.cxx:105:14:
> error: ‘VMIN’ was not declared in this scope
> /home/rafa/src/IGSTK-4-2/Source/igstkSerialCommunicationForPosix.cxx:106:14:
> error: ‘VTIME’ was not declared in this scope
> /home/rafa/src/IGSTK-4-2/Source/igstkSerialCommunicationForPosix.cxx:110:34:
> error: ‘TCSANOW’ was not declared in this scope
> /home/rafa/src/IGSTK-4-2/Source/igstkSerialCommunicationForPosix.cxx:110:44:
> error: ‘tcsetattr’ was not declared in this scope
> /home/rafa/src/IGSTK-4-2/Source/igstkSerialCommunicationForPosix.cxx:113:34:
> error: ‘TCIOFLUSH’ was not declared in this scope
> /home/rafa/src/IGSTK-4-2/Source/igstkSerialCommunicationForPosix.cxx:113:43:
> error: ‘tcflush’ was not declared in this scope
> /home/rafa/src/IGSTK-4-2/Source/igstkSerialCommunicationForPosix.cxx: In
> member function ‘virtual igstk::SerialCommunicationForPosix::ResultType
> igstk::SerialCommunicationForPosix::InternalUpdateParameters()’:
> /home/rafa/src/IGSTK-4-2/Source/igstkSerialCommunicationForPosix.cxx:159:28:
> error: ‘B9600’ was not declared in this scope
> /home/rafa/src/IGSTK-4-2/Source/igstkSerialCommunicationForPosix.cxx:160:28:
> error: ‘B19200’ was not declared in this scope
> /home/rafa/src/IGSTK-4-2/Source/igstkSerialCommunicationForPosix.cxx:161:28:
> error: ‘B38400’ was not declared in this scope
> /home/rafa/src/IGSTK-4-2/Source/igstkSerialCommunicationForPosix.cxx:162:28:
> error: ‘B57600’ was not declared in this scope
> /home/rafa/src/IGSTK-4-2/Source/igstkSerialCommunicationForPosix.cxx:163:28:
> error: ‘B115200’ was not declared in this scope
> /home/rafa/src/IGSTK-4-2/Source/igstkSerialCommunicationForPosix.cxx:167:18:
> error: aggregate
> ‘igstk::SerialCommunicationForPosix::InternalUpdateParameters()::termios
> t’ has incomplete type and cannot be defined
> /home/rafa/src/IGSTK-4-2/Source/igstkSerialCommunicationForPosix.cxx:168:28:
> error: ‘tcgetattr’ was not declared in this scope
> /home/rafa/src/IGSTK-4-2/Source/igstkSerialCommunicationForPosix.cxx:169:17:
> error: ‘CSIZE’ was not declared in this scope
> /home/rafa/src/IGSTK-4-2/Source/igstkSerialCommunicationForPosix.cxx:178:17:
> error: ‘CBAUD’ was not declared in this scope
> /home/rafa/src/IGSTK-4-2/Source/igstkSerialCommunicationForPosix.cxx:185:18:
> error: ‘CS8’ was not declared in this scope
> /home/rafa/src/IGSTK-4-2/Source/igstkSerialCommunicationForPosix.cxx:189:18:
> error: ‘CS7’ was not declared in this scope
> /home/rafa/src/IGSTK-4-2/Source/igstkSerialCommunicationForPosix.cxx:195:19:
> error: ‘PARENB’ was not declared in this scope
> /home/rafa/src/IGSTK-4-2/Source/igstkSerialCommunicationForPosix.cxx:196:19:
> error: ‘PARODD’ was not declared in this scope
> /home/rafa/src/IGSTK-4-2/Source/igstkSerialCommunicationForPosix.cxx:200:18:
> error: ‘PARENB’ was not declared in this scope
> /home/rafa/src/IGSTK-4-2/Source/igstkSerialCommunicationForPosix.cxx:201:19:
> error: ‘PARODD’ was not declared in this scope
> /home/rafa/src/IGSTK-4-2/Source/igstkSerialCommunicationForPosix.cxx:207:19:
> error: ‘CSTOPB’ was not declared in this scope
> /home/rafa/src/IGSTK-4-2/Source/igstkSerialCommunicationForPosix.cxx:211:18:
> error: ‘CSTOPB’ was not declared in this scope
> /home/rafa/src/IGSTK-4-2/Source/igstkSerialCommunicationForPosix.cxx:218:16:
> error: ‘CRTSCTS’ was not declared in this scope
> /home/rafa/src/IGSTK-4-2/Source/igstkSerialCommunicationForPosix.cxx:232:10:
> error: ‘VMIN’ was not declared in this scope
> /home/rafa/src/IGSTK-4-2/Source/igstkSerialCommunicationForPosix.cxx:233:10:
> error: ‘VTIME’ was not declared in this scope
> /home/rafa/src/IGSTK-4-2/Source/igstkSerialCommunicationForPosix.cxx:238:30:
> error: ‘TCSADRAIN’ was not declared in this scope
> /home/rafa/src/IGSTK-4-2/Source/igstkSerialCommunicationForPosix.cxx:238:42:
> error: ‘tcsetattr’ was not declared in this scope
> /home/rafa/src/IGSTK-4-2/Source/igstkSerialCommunicationForPosix.cxx: In
> member function ‘virtual igstk::SerialCommunicationForPosix::ResultType
> igstk::SerialCommunicationForPosix::InternalSendBreak()’:
> /home/rafa/src/IGSTK-4-2/Source/igstkSerialCommunicationForPosix.cxx:304:33:
> error: ‘tcsendbreak’ was not declared in this scope
> /home/rafa/src/IGSTK-4-2/Source/igstkSerialCommunicationForPosix.cxx: In
> member function ‘virtual igstk::SerialCommunicationForPosix::ResultType
> igstk::SerialCommunicationForPosix::InternalPurgeBuffers()’:
> /home/rafa/src/IGSTK-4-2/Source/igstkSerialCommunicationForPosix.cxx:320:29:
> error: ‘TCIOFLUSH’ was not declared in this scope
> /home/rafa/src/IGSTK-4-2/Source/igstkSerialCommunicationForPosix.cxx:320:38:
> error: ‘tcflush’ was not declared in this scope
> /home/rafa/src/IGSTK-4-2/Source/igstkSerialCommunicationForPosix.cxx: In
> member function ‘virtual igstk::SerialCommunicationForPosix::ResultType
> igstk::SerialCommunicationForPosix::InternalRead(char*, unsigned int,
> unsigned int&)’:
> /home/rafa/src/IGSTK-4-2/Source/igstkSerialCommunicationForPosix.cxx:382:20:
> error: aggregate
> ‘igstk::SerialCommunicationForPosix::InternalRead(char*, unsigned int,
> unsigned int&)::termios t’ has incomplete type and cannot be defined
> /home/rafa/src/IGSTK-4-2/Source/igstkSerialCommunicationForPosix.cxx:385:35:
> error: ‘tcgetattr’ was not declared in this scope
> /home/rafa/src/IGSTK-4-2/Source/igstkSerialCommunicationForPosix.cxx:387:14:
> error: ‘VMIN’ was not declared in this scope
> /home/rafa/src/IGSTK-4-2/Source/igstkSerialCommunicationForPosix.cxx:388:14:
> error: ‘VTIME’ was not declared in this scope
> /home/rafa/src/IGSTK-4-2/Source/igstkSerialCommunicationForPosix.cxx:389:34:
> error: ‘TCSANOW’ was not declared in this scope
> /home/rafa/src/IGSTK-4-2/Source/igstkSerialCommunicationForPosix.cxx:389:44:
> error: ‘tcsetattr’ was not declared in this scope
> make[2]: ***
> [Source/CMakeFiles/IGSTK.dir/igstkSerialCommunicationForPosix.o] Error 1
> make[1]: *** [Source/CMakeFiles/IGSTK.dir/all] Error 2
> make: *** [all] Error 2
>
> It is curious that the first lines regarding IGSTK_SERIAL_PORT. should
> be declared in the igstkConfigure.h. Anyone have dealing with these
> errors before?
>
> Thank you in advance.
>
>
>
> _______________________________________________
> IGSTK-Developers mailing list
> IGSTK-Developers at public.kitware.com
> http://public.kitware.com/cgi-bin/mailman/listinfo/igstk-developers



More information about the IGSTK-Developers mailing list