Hi all,
I am trying to port a c++ code (ARToolKitPLUS) which compiles perfectly well in windows to Linux (Suse 9.1). I am getting the following errors which I am unable to figureout. The person who developed the windows code is unable to track the thing as well. Any suggestions in this regard will help a lot.
thanks,
Aaryan (aaryan_g25@yahoo.com)
PS :it seems the extra * (pointer???--- PIXEL_FORMAT_LUM>::*) is causing all the problem.
***building***: Linux-glibc-GNU-debug/main.o
/home/encephalon/ramesh/Desktop/work/ARToolKitPLUS/src/TrackerImpl.cxx: In
constructor `ARToolKitPlus::TrackerImpl<__PATTERN_SIZE_X, __PATTERN_SIZE_Y,
__PATTERN_SAMPLE_NUM, __PIX_FORMAT>::TrackerImpl() [with int
__PATTERN_SIZE_X = 6, int __PATTERN_SIZE_Y = 6, int __PATTERN_SAMPLE_NUM =
6, ARToolKitPlus::PIXEL_FORMAT __PIX_FORMAT = PIXEL_FORMAT_LUM]':
/home/encephalon/ramesh/Desktop/work/ARToolKitPLUS/src/TrackerSingleMarkerImpl.cxx:27: instantiated from `ARToolKitPlus::TrackerSingleMarkerImpl<__PATTERN_SIZE_X, __PATTERN_SIZE_Y, __PATTERN_SAMPLE_NUM, __PIX_FORMAT>::TrackerSingleMarkerImpl(int, int) [with int __PATTERN_SIZE_X = 6, int __PATTERN_SIZE_Y = 6, int __PATTERN_SAMPLE_NUM = 6, ARToolKitPlus::PIXEL_FORMAT __PIX_FORMAT = PIXEL_FORMAT_LUM]'
/home/encephalon/ramesh/Desktop/work/ARToolKitPLUS/sample/simple/src/main.cpp:41: instantiated from here
/home/encephalon/ramesh/Desktop/work/ARToolKitPLUS/src/TrackerImpl.cxx:93: error: argument
of type `int (ARToolKitPlus::TrackerImpl<6, 6, 6, PIXEL_FORMAT_LUM>::)(const
ARFloat*, float, float, ARFloat*, ARFloat*)' does not match `int
(ARToolKitPlus::TrackerImpl<6, 6, 6, PIXEL_FORMAT_LUM>::*)(const ARFloat*,
float, float, ARFloat*, ARFloat*)'
look into the last lines.
look into the last lines.
the given argument in src/TrackerImpl.cxx line 93 doesn't match the expected argument (type).
it seems, that a pointer (functionpointer?) is expected. See ...::TrackerImpl::*)...
but no pointer is given. the '*' is missing after TrackerImpl::
i hope this helps.