2011-03-12 6 views

Répondre

4

étapes de construction:

(1) Déballez le zip ARToolKit à un emplacement idéal. Cet emplacement sera appelé ci-dessous {ARToolKit}. (2) Décompressez le zip DSVideoLib dans {ARToolKit}. Assurez-vous que le répertoire est nommé "DSVL".

(3) Copiez les fichiers DSVL.dll et DSVLd.dll de {ARToolKit} \ DSVL \ bin dans {ARToolKit} \ bin.

(4) Installer GLUT, mettez * .h et * .lib dans GLUT SDK dans le dossier VStudio (include \ GL \ glut.h et lib \ glut32.lib)

(5) Exécutez le script { ARToolKit} \ Configure.win32.bat pour créer include \ AR \ config.h.

(6) Ouvrez le fichier ARToolKit.sln (de VS.NET) ou d'un fichier ARToolkit.dsw (de VS6).

(7) Construire le toolkit

La bibliothèque de rendu VRML et l'exemple (libARvrml & simpleVRML) sont option al construit:

(8) Décompressez le zip OpenVRML dans {ARToolKit}.

(9) Copiez js32.dll de {ARToolKit} \ OpenVRML \ bin dans {ARToolKit} \ bin. (10) Activez les projets libARvrml et simpleVRML dans le gestionnaire de configuration VS et la construction.

Quelques conseils:

(1) Vous devrez peut-être ce tutoriel
http://www.artoolworks.com/support/library/ARToolKit_tutorial_1:_First_simple_ARToolKit_scene

(2) Information de la caméra dans \ bin \ DATA \ WDM_camera_flipV.xml. Changez le nom_amical de votre appareil vidéo. Essayez AMCap.exe pour obtenir le nom de votre périphérique vidéo (par exemple, mine_name = "périphérique vidéo USB")

+1

Merci, votre dernier point a fonctionné! Auparavant mes exemples de programmes se brisaient une fois qu'ils étaient exécutés. Ça fonctionne bien maintenant! à votre santé! – coder9

+0

Je suis d'accord, les infos de la caméra ont également sauvé mon bacon. Beau travail @Alpha! – espais

0

Cette question est ancienne. La nouvelle version d'ARToolkit a un programme d'installation fourni avec de nombreux paquets requis. C'est ce que j'ai écrit basé sur ARToolkit 5.3.1

Requirements: 
visual studio 2013 

Installing OpenCV 

1. Download OpenCV 2.4.11 http://iweb.dl.sourceforge.net/project/opencvlibrary/opencv-win/2.4.11/opencv-2.4.11.exe and extract 
2. Copy all lib files from extracted opencv to visual studio: opencv\build\x86\vc12\lib -> C:\Program Files (x86)\Microsoft Visual Studio 12.0\VC\lib 
3. Copy header folder from opencv\build\include (there are two folders: opencv, opencv2) to C:\Program Files (x86)\Microsoft Visual Studio 12.0\VC\include 
4. Change windows environment PATH environment variable by adding your opencv bin path: J:\UTDallas\PhDThesis\Resources\artoolkit\opencv\build\x86\vc12\bin 
5. (Notice that we use x86 compile in the guide) 

Installing Artoolkit 

6. Download http://www.artoolkit.org/dist/artoolkit5/5.3/ARToolKit%20v5.3.1R2%20Setup%20(bin-win32-vs120).exe And install 
7. Run C:\Program Files (x86)\ARToolKit5\Configure-win32.vbs 
8. Open solution from C:\Program Files (x86)\ARToolKit5\VisualStudio\vs120\ in Visual Studio 2013 
9. For project calib_camera, set Opencv links. Right click on Project, select properties, find Linker from the left, select input. Change Additional Dependencies by removing old OpenCV and adding newer version of OpenCV. For debug mode use debug links (you may only change version of the current. This is the complete list of opencv 2.4.11 lib files) 

opencv_calib3d2411d.lib 
opencv_contrib2411d.lib 
opencv_core2411d.lib 
opencv_features2d2411d.lib 
opencv_flann2411d.lib 
opencv_gpu2411d.lib 
opencv_highgui2411d.lib 
opencv_imgproc2411d.lib 
opencv_legacy2411d.lib 
opencv_ml2411d.lib 
opencv_nonfree2411d.lib 
opencv_objdetect2411d.lib 
opencv_ocl2411d.lib 
opencv_photo2411d.lib 
opencv_stitching2411d.lib 
opencv_superres2411d.lib 
opencv_ts2411d.lib 
opencv_video2411d.lib 
opencv_videostab2411d.lib 

For release mode use release links (you may only change version of the current. This is the complete list of opencv 2.4.11 lib files): 

opencv_calib3d2411.lib 
opencv_contrib2411.lib 
opencv_core2411.lib 
opencv_features2d2411.lib 
opencv_flann2411.lib 
opencv_gpu2411.lib 
opencv_highgui2411.lib 
opencv_imgproc2411.lib 
opencv_legacy2411.lib 
opencv_ml2411.lib 
opencv_nonfree2411.lib 
opencv_objdetect2411.lib 
opencv_ocl2411.lib 
opencv_photo2411d.lib 
opencv_stitching2411.lib 
opencv_superres2411.lib 
opencv_ts2411.lib 
opencv_video2411.lib 
opencv_videostab2411.lib 

10. Compile the solution. (Only VRML project won't compile) 
11. Run examples from C:\Program Files (x86)\ARToolKit5\bin 


Installing QuickTime 
12. Download and install QuickTime for windows: https://secure-appldnld.apple.com/quicktime/031-43075-20160107-c0844134-b3cd-11e5-b1c0-43ca8d551951/quicktimeinstaller.exe 
13. Download QuickTime 7.3 SDK from Apple Developer (You will need apple developer account) https://developer.apple.com/downloads/: http://adcdownload.apple.com/QuickTime/quicktime_7.3_sdk_for_windows/quicktimesdk.zip 
14. Run C:\Program Files (x86)\ARToolKit5\VisualStudio\vs120\Patch QuickTime 7.3 SDK\PatchQuickTime73SDK.vbs to configure for this version