PDA

View Full Version : artoolkit in dev c++


otomo
March 30th, 2005, 02:31 AM
Hi ,

has anyone experience in compiling the examples for artoolkit with devc++?

I import the visualC++ Project file into devc++ but get errors during the compile.

After setting some include-paths, I am still left with a long list of linker-errors.

Does anyone know a to solve this?

this is the first error in the list:

[Linker error] undefined reference to `_imp__arVideoCapStart'




Help would be great.

otomo
March 30th, 2005, 03:47 AM
after playing a bit with the linker-options I got over this hazard. But new errors are approaching:

The first error is in the videoWin32DirectShow.h File in the line of the first commented line. It says:

parse error before '/' token

#ifndef AR_VIDEO_WIN32_DIRECTSHOW_H
#define AR_VIDEO_WIN32_DIRECTSHOW_H

#ifdef __cplusplus
extern "C" {
#endif

#include <AR/config.h>
#include <AR/ar.h>

#include <stdio.h>
#include <string.h>

// -----------------------------------------------------------------------------------------------------------------

typedef struct {
void* dummy;
} AR2VideoBufferT;


Any tips?

philip_lamb
March 30th, 2005, 03:57 AM
I'm guessing that its choking on the preceeding line.. but I'm not sure from your post which line that is? Is the error occuring on the line
//-----------------------... ?

otomo
March 30th, 2005, 04:09 AM
I'm guessing that its choking on the preceeding line.. but I'm not sure from your post which line that is? Is the error occuring on the line
//-----------------------... ?

yes, it is happening there.

philip_lamb
March 30th, 2005, 04:13 AM
So devC++ doesn't like something inside #include <string.h>.

Actually.. looking at that, perhaps the block
#ifdef __cplusplus
extern "C" {
#endif

should be moved to after all the #includes. Try that.

otomo
March 30th, 2005, 04:50 AM
hmmm, i don't understand it anymore.

I seemed that devc++ had problems with the comments:

"//" does not work.

I used "/**/" instead, and it worked.

Now I got the message

"cannot find -libARvideo.lib"

though I set the path to the directory.

Hmmm, maybe I can sort this out tomorrow...

otomo
March 30th, 2005, 04:54 AM
the comment-errors had to do with my compiler-settings:

when activating "compile as c++" it compiled with the // comments. I remember that C only knew /**/. Is that right?

Other things tomorrow. Have to get some sleep.

otomo
March 30th, 2005, 01:37 PM
that strange: I always get the linker-error:

cannot find -libARvideo.lib

though I set up the paths to the lib-directory correctly.

I think I give up on this, if I don't get any new ideas. I copied the libARvideo-lib file to everywhere, but still get the linker-error.

mikenigh
July 17th, 2008, 08:20 AM
Try using the devpak - http://devpaks.org/details.php?devpak=237

If you don't know what a devpak is, it's just a dev c++ installer for a lib. Will have you using artoolkit faster then any ide 'cept maybe on linux.