CL NUI device for Kinect with NetBeans issue
Posted: 24 December 2010 05:56 AM   [ Ignore ]
New Member
Rank
Total Posts:  1
Joined  2010-12-24

Hello all,

First of all please allow me to thank you for your very good and hard work.

I have managed to get to compile and run on Visual Studio 2010, but I would like to migrate to NetBeans IDE.

I have NetBeans IDE 6.9.1 with both MinGW and Cygwin, and I’ve been trying to port my small code from Visual Studio to NetBeans.

When trying to compile, I get the following:

"/usr/bin/make" -f nbproject/Makefile-Debug.mk QMAKESUBPROJECTS= .build-conf
make[1]
Entering directory `/cygdrive/d/Programming/NetBeansProjects/Kinect Test'
"/usr/bin/make"  -f nbproject/Makefile-Debug.mk dist/Debug/MinGW-Windows/kinect_test.exe
make[2]: Entering directory 
`/cygdrive/d/Programming/NetBeansProjects/Kinect Test'
mkdir -p build/Debug/MinGW-Windows
rm -f build/Debug/MinGW-Windows/main.o.d
g++.exe    -c -g -MMD -MP -MF build/Debug/MinGW-Windows/main.o.d -o build/Debug/MinGW-Windows/main.o main.cpp
In file included from main.cpp:10:0:
C:\Program Files (x86)\Code Laboratories\CL NUI Platform\SDK\Include\CLNUIDevice.h:19:1: error: pasting ")" and "int" does not give a valid preprocessing token
C:\Program Files (x86)\Code Laboratories\CL NUI Platform\SDK\Include\CLNUIDevice.h:20:1: error: pasting ")" and "PCHAR" does not give a valid preprocessing token
C:\Program Files (x86)\Code Laboratories\CL NUI Platform\SDK\Include\CLNUIDevice.h:29:1: error: pasting ")" and "CLNUIMotor" does not give a valid preprocessing token
C:\Program Files (x86)\Code Laboratories\CL NUI Platform\SDK\Include\CLNUIDevice.h:30:1: error: pasting ")" and "bool" does not give a valid preprocessing token
C:\Program Files (x86)\Code Laboratories\CL NUI Platform\SDK\Include\CLNUIDevice.h:33:1: error: pasting ")" and "bool" does not give a valid preprocessing token
C:\Program Files (x86)\Code Laboratories\CL NUI Platform\SDK\Include\CLNUIDevice.h:36:1: error: pasting ")" and "bool" does not give a valid preprocessing token
C:\Program Files (x86)\Code Laboratories\CL NUI Platform\SDK\Include\CLNUIDevice.h:38:1: error: pasting ")" and "bool" does not give a valid preprocessing token
C:\Program Files (x86)\Code Laboratories\CL NUI Platform\SDK\Include\CLNUIDevice.h:48:1: error: pasting ")" and "CLNUICamera" does not give a valid preprocessing token
C:\Program Files (x86)\Code Laboratories\CL NUI Platform\SDK\Include\CLNUIDevice.h:49:1: error: pasting ")" and "bool" does not give a valid preprocessing token
C:\Program Files (x86)\Code Laboratories\CL NUI Platform\SDK\Include\CLNUIDevice.h:52:1: error: pasting ")" and "bool" does not give a valid preprocessing token
C:\Program Files (x86)\Code Laboratories\CL NUI Platform\SDK\Include\CLNUIDevice.h:53:1: error: pasting ")" and "bool" does not give a valid preprocessing token
C:\Program Files (x86)\Code Laboratories\CL NUI Platform\SDK\Include\CLNUIDevice.h:56:1: error: pasting ")" and "bool" does not give a valid preprocessing token
C:\Program Files (x86)\Code Laboratories\CL NUI Platform\SDK\Include\CLNUIDevice.h:57:1: error: pasting ")" and "bool" does not give a valid preprocessing token
C:\Program Files (x86)\Code Laboratories\CL NUI Platform\SDK\Include\CLNUIDevice.h:58:1: error: pasting ")" and "bool" does not give a valid preprocessing token
C:\Program Files (x86)\Code Laboratories\CL NUI Platform\SDK\Include\CLNUIDevice.h:61:1: error: pasting ")" and "bool" does not give a valid preprocessing token
C:\Program Files (x86)\Code Laboratories\CL NUI Platform\SDK\Include\CLNUIDevice.h:62:1: error: pasting ")" and "bool" does not give a valid preprocessing token
C:\Program Files (x86)\Code Laboratories\CL NUI Platform\SDK\Include\CLNUIDevice.h:63:1: error: pasting ")" and "bool" does not give a valid preprocessing token
C:\Program Files (x86)\Code Laboratories\CL NUI Platform\SDK\Include\CLNUIDevice.h:64:1: error: pasting ")" and "bool" does not give a valid preprocessing token
make[2]: Leaving directory `/cygdrive/d/Programming/NetBeansProjects/Kinect Test'
make[1]Leaving directory `/cygdrive/d/Programming/NetBeansProjects/Kinect Test'
make[2]: *** [build/Debug/MinGW-Windows/main.o] Error 1
make[1]: *** [.build-conf] Error 2
make: *** [.build-impl] Error 2

BUILD FAILED (exit value 2, total time: 3s) 

Those errors happen both with MinGW and Cygwin, but the program runs for Visual Studio (I am not sure which compiler is used for Visual Studio, it’s the default one so I believe it has its own?).

If anyone could please help me I would really appreciate.

Thanks a lot!

Profile
 
 
Posted: 02 January 2011 02:33 PM   [ Ignore ]   [ # 1 ]
New Member
Rank
Total Posts:  3
Joined  2011-01-02

Hi There ,
Yes that happens to me too when trying to migrate with eclipse and added the required .lib and .h files

Thanks for the good work!

Profile
 
 
 
 


RSS 2.0     Atom Feed