OgreNewt VS2005 Problems

benjamin0624

10-09-2010 10:05:00

Hi guys here, I find it so difficult to establish a new Ogre-Newton runnable environment recently, and I also believe that

there must be many people like me who encountered the following problems,

0. Developing Tools:
Windows XP Platform, MSVS2005(VC8);
Ogre1.7.1(I got the source codes from SVN Server and comipled it myself 3 months ago, actually, It is 1.8.0 unstable according to its doc involved);
NewtonSDK (Windows_SDK_2.22, but the latest version now is Windows_SDK_2.24 http://newtondynamics.com/forum/downloads.php);
OgreNewt(https://svn.ogre3d.org/svnroot/ogreaddons/branches/ogrenewt/newton20/);
For the sake of avoiding troubles,I also downloaded the latest Boost library, boost_1_44_0.zip (http://sourceforge.net/projects/boost/files/boost/1.44.0/).

1.Directory Settings:
Ogre1.7.1 : I built the src codes(in the folder D:\OGRE\OGRE_SRC_1.8\)to a another folder named OGRE_SDK_1.8.
Environment Variable --> OGRE_HOME(D:\OGRE\OGRE_SDK_1.8\);
NewtonSDK: I decompressed NewtonWin-2.22.rar and put them into D:\NewtonWin-2.22 with three sub-folders in: sdk,toolchain,samples.
Environment Variable --> NEWTON_HOME(D:\NewtonWin-2.22);
OgreNewt: I set the folder D:\OGRE\OgreNewton to checkout SVN files.
Environment Variable --> OGRENEWT_HOME(D:\OGRE\OgreNewton);
Finally, the Boost Lib: I put the Lib to D:\boost_1_44_0.
Environment Variable --> BOOST_HOME(D:\boost_1_44_0);

2.Make VS2005 files:
I find there aren't VS2005 project files in OgreNewton, then I'll make them by CMake(I use cmake-2.8.1-win32-x86) referring to INSTALL.TXT in the folder OgreNewton.
1) the source code --> D:/OGRE/OgreNewton
2) the build binaries --> D:/OGRE/OgreNewtSDK [a new empty folder]
all other parameters keep default.
then, Configure... I choose "Visual Studio 8 2005" as the generator...Here comes a error notice as following pic_0.JPG:

[attachment=0]pic_0.JPG[/attachment]

And the informations for detail are:
Name . Value

OGRE_INCLUDE_SEARCH_DIRS /usr/include/OGRE;/usr/local/include/OGRE;/opt/include/OGRE;/opt/OGRE/include;D:/OGRE/OGRE_SDK_1.8/include;D:/OGRE/OGRE_SDK_1.8/OgreMain/include

OGRE_LIBRARY_SEARCH_DIRS /usr/lib;/usr/lib64;/usr/local/lib;/usr/local/lib64;/opt/lib;/opt/lib64;/opt/OGRE/lib;/opt/OGRE/lib64;D:/OGRE/OGRE_SDK_1.8/lib;D:/OGRE/OGRE_SDK_1.8/lib64


Could you please tell me how to set the dirs for ogre? I tried to set some feasible dirs in OGRE_INCLUDE_SEARCH_DIRS / OGRE_LIBRARY_SEARCH_DIRS, but It didn't work... also jumped the error.

The dirs I set before(using single-line or multi-line) :
D:/OGRE/OGRE_SDK_1.8/include
D:/OGRE/OGRE_SRC_1.8/OgreMain/include
D:/OGRE/OGRE_SDK_1.8/Dependencies/include

D:/OGRE/OGRE_SDK_1.8/lib
D:/OGRE/OGRE_SDK_1.8/Dependencies/lib
....


I have read the http://www.ogre3d.org/addonforums/viewtopic.php?f=4&t=11510, but I didn't find the way to solve my problem, They all are relative to MSVS2008 or others....Help me!
I wish to post the whole process of making,compiling and running informaion here with which can be a guide when someone needs them, and I believe that there must be many people are designing under the same IDE as I am doing now. Could you do me a favor to help me to complete this job? Appreciations in advance :)

SFCBias

11-09-2010 02:57:30

Since i run Linux and have not been keeping up with VS as in the past. When there is a problem you can't figure out with cMake, the easiest thing to do IMO is to take all of the source files for the project, start a new VS project and just build the library that way.

kallaspriit

11-09-2010 10:32:43

I have not made the cmake files and I have not had the time to learn how to at the moment. I don't know if the cmake-way of building OgreNewt on windows ever worked, but if someone can fix it, I'll be clad to add it to svn :)

benjamin0624

14-09-2010 02:25:36

Thanks for guys.

@SFCBias:
start a new VS project and just build the library that way.

You mean I shoud build all the 9 projects one by one and set those compiling environmental parameters respectively? Then I have to get the codes frome:
https://ogreaddons.svn.sourceforge.net/svnroot/ogreaddons/trunk/ogrenewt, is that right? 'cause I really just want to apply the newton physical system directly and conveniently, I find it a little beyond me~ :roll:

Thank you for your help again!

kallaspriit

14-09-2010 18:42:13

The SVN address is https://svn.ogre3d.org/svnroot/ogreaddo ... /newton20/

Isn't there a tool to convert VS9 project to 2005? And why not use VS9, the express version is free and works just fine :)

benjamin0624

15-09-2010 03:04:50

Kallaspriit, Thank you for your advice.

There is no tool directly for converting VC9 or VC10 to VC8 in the file folder got from SVN, actually, the SVN url you provided to me is the same one as I mentioned above, so I have to use Cmake here. I'd like to use VS9 and try a new and advanced IDE in deed, but all what I did before were based upon VS8(not only for Ogre), and for the urgence of exploitation, it's just out of the quetion to make any changes for the time being. What a pity.. :cry:

Appreciations again.

Nodrev

15-09-2010 08:15:27

Editing manually the vcproj file, and changing 'Version="9,00"' to 'Version="8,00' must do the trick, if i remind well...

benjamin0624

15-09-2010 10:31:37

Nodrev, thank you for your help.

I tried as what you said that Editing manually the vcproj file, I committed that with OgreNewt.vcproj in the beginning, then I configured the dirs and libs as what Mvelazquezm did referring to the last page of topic: http://www.ogre3d.org/addonforums/viewtopic.php?f=4&t=11510.
One obvious question came there that no relevant dll_vs8 import libs can be found in the Newton file folder. At first, I thought it resulted from the version of Newton, then I went to the http://newtondynamics.com/forum/downloads.php to download some other varieties of Newton versions such as Windows_SDK_2.00, Windows_SDK_2.10, Windows_SDK_2.20, Windows_SDK_2.24(I am now using the version Windows_SDK_2.22),the result was negative, nothing for VC8 can be found, then I tried the Newton 1.53 (old version), Oh my God! OgreNewt_Main compilation passed, but so many mismatches between current Ogre and OgreNewt/Newton occured when I compiled demos, too many errors to tell you and I am a little tired now~~~~ :x . I'v just got the OgreNewt_Main_d.lib/OgreNewt_Main.lib in the output directory respectively, so whether I can used NGD for my application or not? I have no idea about it.

Appreciations here.

kallaspriit

15-09-2010 12:23:03

VS2005 is simply so old that neither NGD nor OgreNewt uses it any more. Converting projects up to newer versions of VS should not be much of a problem, I advise to try it.

I added precompiled x32 Windows lib and dll of OgreNewt to SVN, perhaps this is of some help for anyone, not having to compile it yourselves :)

benjamin0624

16-09-2010 02:51:57

Just a little stupid I am. Visual Studio 2008 Express is for free, supplies some basic functions to designers. Visual Studio 2008 Team Suite is much more powerful and multifunctional than Express version, but costs much,that's it.. :oops:

SFCBias

18-09-2010 20:50:04

The include dirs set for CMake are linux paths, you need to set them manually via the CMake GUI, thats why you had the error about not finding cmake

benjamin0624

20-09-2010 01:47:18

Thank you SFCBias,
I'm about to try to build NGD with VS2008 on my own, your information will give me a big hand, it's really a little shame to know nothing about other platforms except Windows.
Benjamin.

SFCBias

20-09-2010 03:16:52

NGD comes prebuilt. So did you mean you're going to build OgreNewt on your own?

benjamin0624

20-09-2010 06:40:28

@SFCBias, thanks for your reply,it's right.
What exactly I mean is to build my OgreNewt based on the prebuilt NGD2.22 or later via MSVS2008. :) , any problems I will post here.
Thank you again.
Benjamin.

benjamin0624

20-09-2010 14:26:49

Hi, every guys here, I have completed the compilation of OgreNewt, it's so eazy to reach, I just complied it referring to INSTALL.txt in OgreNewt got from SVN, and also met some issues like heap/memory involved and I fixed them quickly. I listed some configuration tools as follow:
IDE: MSVS2008(the Professional version);
NGD: Newton2.24 (http://newtondynamics.com/forum/downloads.php, the latest version at present);
OgreNewt: got from https://svn.ogre3d.org/svnroot/ogreaddons/branches/ogrenewt/newton20/;
Boost Lib: Boost1.44, got from http://sourceforge.net/projects/boost/files/boost/1.44.0/, also the latest version.

May I help some guys who encounter some problems in the compilation of OgreNewt, and so sorry for failing to achieve the primary intention of helping guys to enjoy Newton World with VS2005, which is really beyond me.

Appreciations for guys here~ :D

SFCBias

20-09-2010 19:47:22

Ok, as long as you've got everything running congrats.