Saturday, July 7, 2012

TuioServer OSX Compile error


When trying to compile Tuio C++ on OSX 10.7.3 with MacPorts GCC 4.7.1 there's an error about usleep not being declared:

/tuio/TuioServer.cpp: In function 'void* ThreadFunc(void*)':
/tuio/TuioServer.cpp:37:53: error: 'usleep' was not declared in this scope

That problem does not exist on windows or linux but I solved it by including "unistd.h" in TuioServer.h.

Just a heads up for anyone that might come across this problem.

2 comments: