【学习ARToolkit小记之一】 ARToolkit配置设置,解决64位操作系统运行sln生成错误
2015-04-22 11:20
661 查看
关于ARToolkit,最近在学习相关的东西,最初的系统配置就出现了问题,可谓小白的悲哀。不过,原因也不是全部出现在自身的身上,因为,官网及其他网站资料的配置方法都是基于windows32位系统和VC6.0或者VS2008的配置,按照权威的步骤最终实验多次都还是出现了同样的错误。生成-->批生产,结果48个失败(VS2010),查找了好几天,终于找出了原因,问题就出在我的是Windows7 64位操作系统。下面首先列举了官网提供的方法,具体链接为http://www.hitl.washington.edu/artoolkit/documentation/usersetup.htm
0、系统环境
1)Windows7 32/64位
2)VS2010
1、准备资源
2、系统配置
You can now build ARToolKit. Build steps:
Unpack the ARToolKit zip to a convenient location. This location will be referred to below as {ARToolKit}.
Unpack the DSVideoLib zip into {ARToolKit}. Make sure that the directory is named "DSVL".
Copy the files DSVL.dll and DSVLd.dll from {ARToolKit}\DSVL\bin into {ARToolKit}\bin.
Install the GLUT DLL into the Windows System32 folder, and the library and headers into the VS platform SDK folders.
Run the script {ARToolKit}\Configure.win32.bat to create include/AR/config.h.
Open the ARToolKit.sln file (VS.NET) or ARToolkit.dsw file (VS6).
Build the toolkit.
The VRML renderering library and example (libARvrml & simpleVRML) are optional builds:
Unpack the OpenVRML zip into {ARToolKit}.
Copy js32.dll from {ARToolKit}\OpenVRML\bin into {ARToolKit}\bin.
Enable the libARvrml and simpleVRML projects in the VS configuration manager and build.
3、64位系统配置的不同
如果你是32位系统,运行sln批生成,结果一般最多2个失败,这个没什么关系;如果你是64位系统,那么上述配置需要一个地方进行修改,即上面系统配置的第4步,拷贝dll文件的位置不是“System32”文件件,而是SysWOW64(C:\Windows\SysWOW64)文件夹,即把所有的需要拷贝到System32文件夹的dll文件拷贝到SysWOW64文件夹中,运行sln,此时因为版本的不同需要转换,然后选择生成-->批生成,此时即可看到生成成功的结果。
4、实例演示
旋转中的小茶壶:运行bin文件夹中的“graphicsTest.exe”,即可看到运行结果如下:
图一
5、网上参考的其他设置方法
http://m.blog.csdn.net/blog/dragonly945707194/34932271
0、系统环境
1)Windows7 32/64位
2)VS2010
1、准备资源
Prerequisite | Instructions |
Development environment | Microsoft Visual Studio 6 and Microsoft Visual Studio .NET 2003 are supported, but it is also possible to build the toolkit using free development environments (e.g. Cygwin, http://www.cygwin.com/) |
DSVideoLib-0.0.8b-win32 | On Windows, DSVideoLib is used to handle communication with the camera driver. DSVideoLib-0.0.8b or later is required for ARToolKit 2.71. A source + binary package of DSVideoLib is included on the ARToolKit downloads page on sourceforge. |
GLUT | Verify that GLUT runtime and SDK is installed. If not, you can download a binary package containing GLUT for Windows fromhttp://www.xmission.com/~nate/glut.html Verify that you have the GLUT runtime installed in your system directory. e.g. c:\windows\system32 glut32.dll Verify that GLUT SDK is installed in your Visual C++ installation: Include\gl\glut.h Lib\glut32.lib |
DirectX Runtime | Verify that DirectX runtime is installed: with Windows XP it is installed by default. You need to check your version; it must be 9.0b or later. |
Video input device | Plug your camera or video input into your PC and install any necessary drivers. Verify that your camera has a VFW or WDM driver by running the program amcap.exe (this can be found in the DirectX SDK, in Samples\C++\DirectShow\Bin). Check for your camera in the Devices menu (see Figure 1). Figure 1: amcap Screenshot |
(Optional, for VRML renderer only) OpenVRML-0.14.3-win32 | A source + binary package of OpenVRML is included on the ARToolKit downloads page on sourceforge. |
You can now build ARToolKit. Build steps:
Unpack the ARToolKit zip to a convenient location. This location will be referred to below as {ARToolKit}.
Unpack the DSVideoLib zip into {ARToolKit}. Make sure that the directory is named "DSVL".
Copy the files DSVL.dll and DSVLd.dll from {ARToolKit}\DSVL\bin into {ARToolKit}\bin.
Install the GLUT DLL into the Windows System32 folder, and the library and headers into the VS platform SDK folders.
Run the script {ARToolKit}\Configure.win32.bat to create include/AR/config.h.
Open the ARToolKit.sln file (VS.NET) or ARToolkit.dsw file (VS6).
Build the toolkit.
The VRML renderering library and example (libARvrml & simpleVRML) are optional builds:
Unpack the OpenVRML zip into {ARToolKit}.
Copy js32.dll from {ARToolKit}\OpenVRML\bin into {ARToolKit}\bin.
Enable the libARvrml and simpleVRML projects in the VS configuration manager and build.
3、64位系统配置的不同
如果你是32位系统,运行sln批生成,结果一般最多2个失败,这个没什么关系;如果你是64位系统,那么上述配置需要一个地方进行修改,即上面系统配置的第4步,拷贝dll文件的位置不是“System32”文件件,而是SysWOW64(C:\Windows\SysWOW64)文件夹,即把所有的需要拷贝到System32文件夹的dll文件拷贝到SysWOW64文件夹中,运行sln,此时因为版本的不同需要转换,然后选择生成-->批生成,此时即可看到生成成功的结果。
4、实例演示
旋转中的小茶壶:运行bin文件夹中的“graphicsTest.exe”,即可看到运行结果如下:
图一
5、网上参考的其他设置方法
http://m.blog.csdn.net/blog/dragonly945707194/34932271
相关文章推荐
- 【学习ARToolkit小记之初】 ARToolkit在VS2010(Win7 64位)下的配置及第一个开发程序的编译与运行
- 【学习ARToolkit小记之五】 解决“error LNK2019: 无法解析的外部符号 ___glutCreateWindowWithExit@8”错误
- 学习openfrie之路--将openfire源码导入eclipse第二次开发的导入错误解决和配置设置
- 根据不同的操作系统(64/32),设置文件以64位运行。又可解决问题:“试图加载不正确的程序”。
- VB 生成exe后,动态加载窗体的show事件会出现运行时错误5的解决方法
- Ubuntu16.0.4LTS 64位上运行32位程序,提示No such file or directory?错误的解决办法
- 64位操作系统运行由32位操作系统生成的C/C++可执行文件
- VS2015+Android环境配置【appt.exe停止运行以及packaged_resources不存在】错误解决
- 关于win10 php环境配置后运行php文件出现HTTP 错误 401.3 - Unauthorized的解决方法
- 解决jdk环境变量设置完后,在cmd中运行javac出现’javac‘不是内部或外部命令,也不是可运行的程序或批处理文件的错误提示
- Ubuntu学习总结-08 Ubuntu运行Shell脚本报 shell /bin/bash^M: bad interpreter错误问题解决
- Robotium学习(六)-运行错误的解决方法
- 2003 64位 方法运行asp ,连接数据库出现错误设置方法
- allegro学习之生成网络表错误及解决方法
- 运行错误:应用程序无法启动因为并行配置不正确。the application has failed to start because its side-by-side configuration is incorrect 解决方法
- 换了台电脑tomcat自己运行没问题,eclipse中配置tomcat开启了浏览器却404错误解决
- 在32位系统计算机上编写的程序 (工具vs2013/2010),在64位操作系统上运行时出现缺少.dll和0x000007b错误的问题
- plsql访问本机(win7 64位操作系统)数据库,报ORA-12514: TNS:listener does not currently.错误解决
- windows server,nginx安装,配置,运行nodeJS后端的web项目的实现,以及错误分析及解决方法
- 解决jdk环境变量设置完后,在cmd中运行javac出现’javac‘不是内部或外部命令,也不是可运行的程序或批处理文件的错误提示