[英]OGRE3D not working in visualstudio 2015
So I tried installing OGRE3D sdk for Visualstudio 2015. I followed the installation tutorial link given below. 因此,我尝试为Visualstudio 2015安装OGRE3D sdk。我按照下面给出的安装教程链接进行操作。
The SDK I downloaded was OGRE 1.9 SDK for visualstudio 2012(32 bit) OGRE1.9_SDK 我下载的SDK是用于visualstudio 2012(32位)的OGRE 1.9 SDK OGRE1.9_SDK
and installed in C:\\OgreSDK_vc11_v1-9-0
. 并安装在
C:\\OgreSDK_vc11_v1-9-0
。 DirectX was downloaded from the link in the tutorial. DirectX是从教程中的链接下载的。 I set the environment variable
OGRE_HOME
to C:\\OgreSDK_vc11_v1-9-0
. 我将环境变量
OGRE_HOME
设置为C:\\OgreSDK_vc11_v1-9-0
。 I then loaded the OGRE.sln
in VisualStudio, everything was loaded successfully. 然后,
OGRE.sln
在VisualStudio中加载了OGRE.sln
,所有内容OGRE.sln
成功加载。 But when trying to run the samplebrowser
, it doesn't compile and gives 364 error messages, and 443 warnings, some of which are given below. 但是,当尝试运行
samplebrowser
,它不会编译并给出364条错误消息和443条警告,下面给出了一些警告。
Error LNK2038 mismatch detected for '_MSC_VER': value '1700' doesn't match value '1900' in BezierPatch.obj Sample_BezierPatch C:\OgreSDK_vc11_v1-9-0\Samples\BezierPatch\libboost_system-vc110-mt-gd-1_55.lib(error_code.obj) 1
Error LNK2038 mismatch detected for '_MSC_VER': value '1700' doesn't match value '1900' in BSP.obj Sample_BSP C:\OgreSDK_vc11_v1-9-0\Samples\BSP\libboost_system-vc110-mt-gd-1_55.lib(error_code.obj) 1
Error LNK2038 mismatch detected for '_MSC_VER': value '1700' doesn't match value '1900' in Dot3Bump.obj Sample_Dot3Bump C:\OgreSDK_vc11_v1-9-0\Samples\Dot3Bump\libboost_system-vc110-mt-gd-1_55.lib(error_code.obj) 1
Where did I mess up? 我在哪里弄糟? If there's something wrong(which definitely is) , then please provide me with information to properly set this up and running for VS 2015. Thank you.
如果出了点问题(肯定是),那么请向我提供信息以正确进行设置并为VS 2015运行。谢谢。
As you noted, your SDK version was built with VS2012 which means the resulting binaries do not work with VS2015 directly. 如您所述,您的SDK版本是使用VS2012构建的,这意味着生成的二进制文件无法直接用于VS2015。 This applies not only to Ogre3D but all libraries/binaries in general.
这不仅适用于Ogre3D,而且通常适用于所有库/二进制文件。
Two options: 两种选择:
Disclaimer: I am not completely sure if the second option will or should work. 免责声明:我不确定第二种选择是否可行。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.