Tuesday, September 29, 2009

Configuring ARToolKit on Visual Studio 2008/Visual C++ and Windows 7

On this second post we will configure and run ARToolKit on Windows 7 and Visual Studio 2008/Visual C++

If you followed my last post you should have Visual C++ up and running and a API folder inside your user folder, if not then go ahead and do that. If you have Visual C++ up and running just keep on reading.

Software Versions used:
  • Visual Studio 2008/Visual C++
  • ARToolKit 2.71.1 32bits
  • Windows 7 Professional 64bits
Addicional Dependencies Required:
  • OpenGL/Glut libs
  1. Download ARToolKit's latest version: ARToolkit Download.
  2. Download Glut from this site and download the lastest version, at this time its glut 3.6 stable and 3.7beta so let's stick with v3.6. (OpenGL should come with Windows by default).
  3. Copy the glut32.lib to your system folder (C:\Windows\SySWoW64 on 64bit OS and C:\Windows\System32 on 32 bits OS)
  4. Download the glu/glut files for Visual C++ from here. Unpack it and copy the GL folder it to your includes folder under Visual Studio (defaults to C:\Program Files (x86)\Microsoft Visual Studio 9.0\VC\include). Now copy the files inside lib to the VC lib directory (VC\lib).
  5. Now download msvcp71d.dll and msvcr71d.dll from dll-files.com http://www.dll-files.com/dllindex/dll-files.shtml?msvcp71d and http://www.dll-files.com/dllindex/dll-files.shtml?msvcr71d
  6. Unpack ARToolKit (recommended in any folder under your home). 
  7. Open the ARToolKit project with Visual C++ (ARToolKit/ARToolkit.sln) and follow the Wizard to update it to a 2008 project.
  8. Paste the msvcp and msvcr dlls to the ARToolKit\bin.
  9. Build the projects with Visual C++, it should build fine
Important Note: I am having issues running the samples from Visual Studio 2008, it gives me the following error at the console: "Camera Parameter Load Error !!". I suspect its related either to my web cam's driver or the fact that its a built-in notebook webcam, any new info regarding this issue will be posted. Executing the .exe directly from the /bin folder works fine.

Sources: ARToolkit documentation and Maxwell Anderson's blog (pt_br): http://maxwellanderson.wordpress.com/2009/05/28/configurando-o-artoolkit-e-a-openvrml-no-microsoft-visual-studio-2008-parte-12/

1 comment:

  1. Augmented reality is becoming popular among advertisers, not only for its obvious cool factor, but also as a way of marketing and creating an endowment effect between consumers and products. It is also a practical way to let customers see and interact with products before buying them.

    Virtual Reality Booth

    ReplyDelete