Thank you, your advice has been very helpful so far. I am now trying to compile Panda using makepanda. I have added two files in the device directory, touchScreen.h and touchScreen.cxx. I have also added #include “touchScreen.h” in the device_composite2.cxx file and I have added the following lines in makepanda.py:
IncDirectory(“OPENCVH1”, “C:/Program Files/OpenCV/cv/include”)
IncDirectory(“OPENCVH2”, “C:/Program Files/OpenCV/cxcore/include”)
IncDirectory(“OPENCVH3”, “C:/Program Files/OpenCV/otherlibs/highgui”)
IncDirectory(“TOUCHLIB”, “C:/multitouch/touchlib/include”)
IncDirectory(“CMU”, “C:/Program Files/CMU/1394Camera/include”)
IncDirector(“VIDEOWRAPPER”, “C:/_libraries/VideoWrapper_0_1_1/include”)
IncDirectory(“TINYXML”, “C:/multitouch/touchlib/tinyxml”)
IncDirectory(“DSVL”, “C:/_libraries/dsvl-0.0.8c/src”)
LibDirectory(“OPENCV”, “C:/Program Files/OpenCV/lib”)
LibDirectory(“CMUL”, “C:/Program Files/CMU/1394Camera/lib”)
LibDirectory(“VIDEOWRAPPERL”, “C:/_libraries/VideoWrapper_0_1_1/lib”)
LibDirectory(“TINYXMLL”, “C:/multitouch/touchlib/tinyxml/lib”)
LibDirectory(“DSVLL”, “C:/_libraries/dsvl-0.0.8c/lib”)
LibName(“TOUCHLIB1”, “/panda/src/device/touchlib.lib”)
LibName(“TOUCHLIB2”, “/panda/src/device/RFFTW2dll.lib”)
Finally I have modified the OPTS variable before the TargetAdds for the device directory, to add these libraries to the compilation:
OPTS=[‘DIR:panda/src/device’, ‘BUILDING:PANDA’, ‘OPENCVH1’, ‘OPENCVH2’, ‘OPENCVH3’, ‘TOUCHLIB’, ‘CMU’, ‘VIDEOWRAPPER’, ‘TINYXML’, ‘DSVL’, ‘OPENCV’, ‘TOUCHLIB1’, ‘TOUCHLIB2’,‘CMUL’, ‘VIDEOWRAPPERL’, ‘TINYXMLL’, ‘DSVLL’]
The compilation goes well, until i get this strange error:
built/bin/interrogate -srcdir panda/src/device -Ipanda/src/device -DCPPPARSER -D__STDC__=1 -D__cplusplus -D__inline -longlong __int64 -D_X86
_ -DWIN32_VC -D_WIN32 -D_MSC_VER=1400 -D"_declspec(param)=" -D_near -D_far -D__near -D__far -D__stdcall -DFORCE_INLINING -oc built/tmp/libde
vice_igate.cxx -od built/pandac/input/libdevice.in -fnames -string -refcount -assert -python-native -Sbuilt/include/parser-inc -Ipanda/src/d
evice -S"thirdparty/win-python/include" -S"C:/Program Files/OpenCV/cv/include" -S"C:/Program Files/OpenCV/cxcore/include" -S"C:/Program File
s/OpenCV/otherlibs/highgui" -S"C:/multitouch/touchlib/include" -S"C:/Program Files/CMU/1394Camera/include" -S"C:/_libraries/VideoWrapper_0_1
_1/include" -S"C:/multitouch/touchlib/tinyxml" -S"C:/_libraries/dsvl-0.0.8c/src" -S"built/tmp" -S"built/include" -DBUILDING_PANDA -module pa
nda -library libdevice analogNode.h buttonNode.h clientAnalogDevice.h clientBase.h clientButtonDevice.h clientDevice.h clientDialDevice.h cl
ientTrackerDevice.h config_device.h device_composite.cxx dialNode.h mouseAndKeyboard.h touchScreen.h trackerData.h trackerNode.h virtualMous
e.h
*** Error in /c/multitouch/touchlib/include/Image.h near line 41, column 15:
parse error
Error parsing file: 'device_composite.cxx'
There is no clue on what the error is, and from what i can tell, Image.h is fine, bacause i have compiled touchlib lots of times in the past using visual studio. Any clue on what the problem might be? Maybe I haven’t followed the right procedure in order to add these extra libraries.