i used like a addon
i used like libraries
i put it by hand
but always apper arround 200 error
whe i thing that i find the way, apper an erro, like, this library doesn’t exits.
all the examples be for MAC
if anyone can make this real for windows, can helpme to sayme what is the way, i not need the project i can make ir but i can`t upload this toolkit for OF.
Same problem here! I’ve added everything and also linked everything but still i get a compile error i have no idea why this happens, ofxFiducialFinder works fine. codeblocks 10.05, OF-0061FAT any adieas?
AR_TEMPL_FUNC bool
AR_TEMPL_TRACKER::calcCameraMatrix(const char* nCamParamFile, int nWidth, int nHeight, ARFloat nNear, ARFloat nFar, ARFloat *nMatrix)
{
CameraFactory cf;
Camera* pCam = cf.createCamera(nCamParamFile);
if(pCam == NULL)
{
return(false);
}
pCam->changeFrameSize(AR_TEMPL_TRACKER::screenWidth,AR_TEMPL_TRACKER::screenHeight);
int i;
for(i = 0; i < 4; i++ )
pCam->mat[1][i] = (pCam->ysize-1)*(pCam->mat[2][i]) - pCam->mat[1][i];
ARFloat glcpara[16];
if(!convertProjectionMatrixToOpenGLStyle((ARParam*)pCam, nNear,nFar, glcpara))
return false;
// convert to float (in case of ARFloat is def'ed to doubled
for(i = 0; i < 16; i++ )
nMatrix[i] = (ARFloat)glcpara[i];
return(true);
}
and the compiler errors:
||=== opencvExample, release ===|
..\..\..\addons\ofxARToolkitPlus\include\ARToolKitPlus\config.h|231|warning: "MAX_PATH" redefined|
c:\program files (x86)\codeblocks\mingw\bin\..\lib\gcc\mingw32\4.4.1\..\..\..\..\include\stdlib.h|45|warning: this is the location of the previous definition|
..\..\..\addons\ofxARToolkitPlus\include\ARToolKitPlus\..\..\src\TrackerImpl.cxx||In constructor 'ARToolKitPlus::TrackerImpl<__PATTERN_SIZE_X, __PATTERN_SIZE_Y, __PATTERN_SAMPLE_NUM, __MAX_LOAD_PATTERNS, __MAX_IMAGE_PATTERNS>::TrackerImpl()':|
..\..\..\addons\ofxARToolkitPlus\include\ARToolKitPlus\..\..\src\TrackerImpl.cxx|66|note: #pragma message: >>> not using SinCos LUT|
..\..\..\addons\ofxARToolkitPlus\include\ARToolKitPlus\TrackerImpl.h|636|error: invalid use of member 'ARToolKitPlus::TrackerImpl<__PATTERN_SIZE_X, __PATTERN_SIZE_Y, __PATTERN_SAMPLE_NUM, __MAX_LOAD_PATTERNS, __MAX_IMAGE_PATTERNS>::screenWidth' in static member function|
..\..\..\addons\ofxARToolkitPlus\include\ARToolKitPlus\..\..\src\TrackerImpl.cxx|449|error: from this location|
..\..\..\addons\ofxARToolkitPlus\include\ARToolKitPlus\TrackerImpl.h|636|error: invalid use of member 'ARToolKitPlus::TrackerImpl<__PATTERN_SIZE_X, __PATTERN_SIZE_Y, __PATTERN_SAMPLE_NUM, __MAX_LOAD_PATTERNS, __MAX_IMAGE_PATTERNS>::screenHeight' in static member function|
..\..\..\addons\ofxARToolkitPlus\include\ARToolKitPlus\..\..\src\TrackerImpl.cxx|449|error: from this location|
||=== Build finished: 4 errors, 2 warnings ===|
Hey,
did anyone get this to work? I had the same issue with the AR_TEMP function
I tried the ARToolkit2.20 link and compiled a new set with that, the camera shows up, but I am not to sure if its actually drawing anything, or where it is referring to a specific marker…
Ok, I got it working in codeblocks!
However this uses the BCH markers and not the markers like ARToolKit uses in which your able to make your own as .patt files.
For example the simpletracker tutorials use hiro.patt as a reference.
Does anyone have that tutorial working with code blocks?
Thanks