robbeofficial / KinectTouch

Turns any surface into a giant touchpad using kinect
223 stars 55 forks source link

expected constructor, destructor, or type conversion before ‘::’ token #1

Open gleamuahmed opened 13 years ago

gleamuahmed commented 13 years ago

Hi ,

Whenever i try to run this through Command line it throws me this error .

Building file: ../src/oscpack/osc/OscOutboundPacketStream.cpp Invoking: GCC C++ Compiler g++ -I/usr/include/ni -I"/home/robbe/workspace/KinectTouch/src/oscpack" -I"/home/robbe/workspace/KinectTouch/src/TUIO" -O0 -g3 -Wall -c -fmessage-length=0 -MMD -MP -MF"src/oscpack/osc/OscOutboundPacketStream.d" -MT"src/oscpack/osc/OscOutboundPacketStream.d" -o"src/oscpack/osc/OscOutboundPacketStream.o" "../src/oscpack/osc/OscOutboundPacketStream.cpp" Finished building: ../src/oscpack/osc/OscOutboundPacketStream.cpp

Building file: ../src/oscpack/osc/OscPrintReceivedElements.cpp Invoking: GCC C++ Compiler g++ -I/usr/include/ni -I"/home/robbe/workspace/KinectTouch/src/oscpack" -I"/home/robbe/workspace/KinectTouch/src/TUIO" -O0 -g3 -Wall -c -fmessage-length=0 -MMD -MP -MF"src/oscpack/osc/OscPrintReceivedElements.d" -MT"src/oscpack/osc/OscPrintReceivedElements.d" -o"src/oscpack/osc/OscPrintReceivedElements.o" "../src/oscpack/osc/OscPrintReceivedElements.cpp" Finished building: ../src/oscpack/osc/OscPrintReceivedElements.cpp

Building file: ../src/oscpack/osc/OscReceivedElements.cpp Invoking: GCC C++ Compiler g++ -I/usr/include/ni -I"/home/robbe/workspace/KinectTouch/src/oscpack" -I"/home/robbe/workspace/KinectTouch/src/TUIO" -O0 -g3 -Wall -c -fmessage-length=0 -MMD -MP -MF"src/oscpack/osc/OscReceivedElements.d" -MT"src/oscpack/osc/OscReceivedElements.d" -o"src/oscpack/osc/OscReceivedElements.o" "../src/oscpack/osc/OscReceivedElements.cpp" Finished building: ../src/oscpack/osc/OscReceivedElements.cpp

Building file: ../src/oscpack/osc/OscTypes.cpp Invoking: GCC C++ Compiler g++ -I/usr/include/ni -I"/home/robbe/workspace/KinectTouch/src/oscpack" -I"/home/robbe/workspace/KinectTouch/src/TUIO" -O0 -g3 -Wall -c -fmessage-length=0 -MMD -MP -MF"src/oscpack/osc/OscTypes.d" -MT"src/oscpack/osc/OscTypes.d" -o"src/oscpack/osc/OscTypes.o" "../src/oscpack/osc/OscTypes.cpp" Finished building: ../src/oscpack/osc/OscTypes.cpp

Building file: ../src/oscpack/ip/posix/NetworkingUtils.cpp Invoking: GCC C++ Compiler g++ -I/usr/include/ni -I"/home/robbe/workspace/KinectTouch/src/oscpack" -I"/home/robbe/workspace/KinectTouch/src/TUIO" -O0 -g3 -Wall -c -fmessage-length=0 -MMD -MP -MF"src/oscpack/ip/posix/NetworkingUtils.d" -MT"src/oscpack/ip/posix/NetworkingUtils.d" -o"src/oscpack/ip/posix/NetworkingUtils.o" "../src/oscpack/ip/posix/NetworkingUtils.cpp" ../src/oscpack/ip/posix/NetworkingUtils.cpp:30:32: error: ip/NetworkingUtils.h: No such file or directory ../src/oscpack/ip/posix/NetworkingUtils.cpp:40: error: ‘NetworkInitializer’ has not been declared ../src/oscpack/ip/posix/NetworkingUtils.cpp:40: error: ISO C++ forbids declaration of ‘NetworkInitializer’ with no type ../src/oscpack/ip/posix/NetworkingUtils.cpp: In function ‘int NetworkInitializer()’: ../src/oscpack/ip/posix/NetworkingUtils.cpp:40: warning: no return statement in function returning non-void ../src/oscpack/ip/posix/NetworkingUtils.cpp: At global scope: ../src/oscpack/ip/posix/NetworkingUtils.cpp:42: error: expected constructor, destructor, or type conversion before ‘::’ token make: *\ [src/oscpack/ip/posix/NetworkingUtils.o] Error 1

psydack commented 13 years ago

The same errror this. Some fix to do?

I trying with eclipse too, but not work.

majzlik commented 13 years ago

You can fix this by editing all of subdir.mk files (i think there is six of them in debug dir). For some reason there is full path (Users/Robbe/Worskpace... or something) and you need to change it to path where your KinectTouch is located.