hi,
i'm trying to compile the ArToolKit
http://www.hitl.washington.edu/artoolkit/
with CodeBlocks.
I did it before with Visual Studio Net at a colleagues machine.
It worked fine.
For compiling i use mingw32-gcc.exe
The first problem i solved was that ming don't like *.lib endings.
i read in the forum.
now i get the next errors.
seems to be a linker problem with the includes.
heres the code
Project : videoTest
Compiler : GNU GCC Compiler (called directly)
Directory : C:\Programme\ARToolKit\util\videoTest\
--------------------------------------------------------------------------------
Compiling: ..\..\examples\collide\collideTest.c
Linking console executable: ..\..\examples\collide\collideTest.exe
..\..\examples\collide\collideTest.o:collideTest.c:(.text+0x1c): undefined reference to `__glutInitWithExit@12'
..\..\examples\collide\collideTest.o:collideTest.c:(.text+0x3c): undefined reference to `__glutCreateWindowWithExit@8'
..\..\examples\collide\collideTest.o:collideTest.c:(.text+0x5c): undefined reference to `__glutCreateMenuWithExit@8'
..\..\examples\collide\collideTest.o:collideTest.c:(.text+0xac): undefined reference to `arVideoCapStart'
..\..\examples\collide\collideTest.o:collideTest.c:(.text+0xc8): undefined reference to `argMainLoop'
..\..\examples\collide\collideTest.o:collideTest.c:(.text+0xef): undefined reference to `arUtilTimer'
..\..\examples\collide\collideTest.o:collideTest.c:(.text+0x125): undefined reference to `arVideoGetImage'
..\..\examples\collide\collideTest.o:collideTest.c:(.text+0x13a): undefined reference to `arUtilSleep'
..\..\examples\collide\collideTest.o:collideTest.c:(.text+0x14d): undefined reference to `arUtilTimerReset'
..\..\examples\collide\collideTest.o:collideTest.c:(.text+0x158): undefined reference to `argDrawMode2D'
..\..\examples\collide\collideTest.o:collideTest.c:(.text+0x173): undefined reference to `argDispImage'
..\..\examples\collide\collideTest.o:collideTest.c:(.text+0x178): undefined reference to `arVideoCapNext'
..\..\examples\collide\collideTest.o:collideTest.c:(.text+0x197): undefined reference to `glColor3f@12'
and so on.
any help?
kind regards
norbert
started from zero. with the following.
- a nightly from 19th December.
- MinGW with binutils-2.17.50-20060824-1.tar.gz
- GLUT files in the artoolkit include, the simpletest folder and bin directory. also have the glut.h in the MinGW include folder.
- linked to the include and lib folders under project/build options.
trying to compile the simpleTest Example i get the following.
he is missing a file called comutil.h (DirectShow)
-------------- Build: Debug|Win32 in libARgsub_lite ---------------
Target is up to date.
-------------- Build: Debug|Win32 in libARvideo ---------------
Compiling: videoWin32DirectShow.cpp
In file included from ../../../DSVL/src/DSVL.h:40,
from videoWin32DirectShow.cpp:42:
../../../DSVL/src/DSVL_PixelFormatTypes.h:49:7: warning: no newline at end of file
In file included from videoWin32DirectShow.cpp:42:
../../../DSVL/src/DSVL.h:98:3: warning: no newline at end of file
videoWin32DirectShow.cpp:46:21: comutil.h: No such file or directory
Process terminated with status 1 (0 minutes, 0 seconds)
1 errors, 2 warnings
I found the file in the Visual Studio include folder.
linked to it. same result.
copied it into the MinGW include folder.
now i get this one
-------------- Build: Debug|Win32 in libARgsub_lite ---------------
Target is up to date.
-------------- Build: Debug|Win32 in libARvideo ---------------
Compiling: videoWin32DirectShow.cpp
In file included from ../../../DSVL/src/DSVL.h:40,
from videoWin32DirectShow.cpp:42:
../../../DSVL/src/DSVL_PixelFormatTypes.h:49:7: warning: no newline at end of file
In file included from videoWin32DirectShow.cpp:42:
../../../DSVL/src/DSVL.h:98:3: warning: no newline at end of file
In file included from videoWin32DirectShow.cpp:46:
C:/MinGW/bin/../lib/gcc/mingw32/3.4.5/../../../../include/comutil.h: In constructor `_variant_t::_variant_t(int)':
C:/MinGW/bin/../lib/gcc/mingw32/3.4.5/../../../../include/comutil.h:1297: error: `V_INT' was not declared in this scope
C:/MinGW/bin/../lib/gcc/mingw32/3.4.5/../../../../include/comutil.h: In constructor `_variant_t::_variant_t(unsigned int)':
C:/MinGW/bin/../lib/gcc/mingw32/3.4.5/../../../../include/comutil.h:1305: error: `V_UINT' was not declared in this scope
C:/MinGW/bin/../lib/gcc/mingw32/3.4.5/../../../../include/comutil.h: In member function `_variant_t::operator int() const':
C:/MinGW/bin/../lib/gcc/mingw32/3.4.5/../../../../include/comutil.h:1552: error: `V_INT' was not declared in this scope
C:/MinGW/bin/../lib/gcc/mingw32/3.4.5/../../../../include/comutil.h:1558: error: `V_INT' was not declared in this scope
C:/MinGW/bin/../lib/gcc/mingw32/3.4.5/../../../../include/comutil.h: In member function `_variant_t::operator unsigned int() const':
C:/MinGW/bin/../lib/gcc/mingw32/3.4.5/../../../../include/comutil.h:1566: error: `V_UINT' was not declared in this scope
C:/MinGW/bin/../lib/gcc/mingw32/3.4.5/../../../../include/comutil.h:1572: error: `V_UINT' was not declared in this scope
C:/MinGW/bin/../lib/gcc/mingw32/3.4.5/../../../../include/comutil.h: In member function `_variant_t& _variant_t::operator=(const char*)':
C:/MinGW/bin/../lib/gcc/mingw32/3.4.5/../../../../include/comutil.h:1805: error: `V_I1REF' was not declared in this scope
C:/MinGW/bin/../lib/gcc/mingw32/3.4.5/../../../../include/comutil.h: In member function `_variant_t& _variant_t::operator=(int)':
C:/MinGW/bin/../lib/gcc/mingw32/3.4.5/../../../../include/comutil.h:1975: error: `V_INT' was not declared in this scope
C:/MinGW/bin/../lib/gcc/mingw32/3.4.5/../../../../include/comutil.h: In member function `_variant_t& _variant_t::operator=(unsigned int)':
C:/MinGW/bin/../lib/gcc/mingw32/3.4.5/../../../../include/comutil.h:1992: error: `V_UINT' was not declared in this scope
C:/MinGW/bin/../lib/gcc/mingw32/3.4.5/../../../../include/comutil.h: In member function `bool _variant_t::operator==(const VARIANT*) const':
C:/MinGW/bin/../lib/gcc/mingw32/3.4.5/../../../../include/comutil.h:2121: error: `V_INT' was not declared in this scope
C:/MinGW/bin/../lib/gcc/mingw32/3.4.5/../../../../include/comutil.h:2124: error: `V_UINT' was not declared in this scope
Process terminated with st
seems to be very hard!