Compiling OgreNewt in Code::Blocks?

Durnus

21-03-2009 17:44:52

I can hardly find anything about this subject, but I've been stuck on trying to compile this for the past few days. I'm using Code::Blocks (latest version) with MingW, but I can't get it compile right.

I am linking (in this order, in debug mode):
NewtonSDK\sdk\lib_mt\newton.lib
OIS.dll
OgreMain_d.dll

(I am using version 1.6 of ogre and 1.53 of Newton)

And it seems that all header files are being included right, because those aren't my errors. I attached the log of my attempted compile. It contains lines like:
NewtonSDK\sdk\lib_mt\newton.lib(./releasemt/dgTypes.obj):.\dgTypes.cpp:(.text[?DetectSSE@@YA_NXZ]+0x24): undefined reference to `__except_list'
Which lead me to believe that I need to link more libraries, or maybe I'm just using the wrong newton library. I've got folders that say dll, dll_double, lib_mt, lib_mt_double, lib_st, lib_st_double, and customjoints in the SDK directory of the Newton SDK.

It would be really nice to be able to use ogre3d for my projects, so any help is appreciated. I'd be happy to give more info if it is needed as well.

melven

22-03-2009 21:39:45

I googled for the missing reference and it seems that such problems can occur with the mingw-compiler when you try to link against libraries created with msvc. So you'll probably find a solution in the internet or just change the compiler...

Zero23

22-03-2009 22:35:36

Hmm
I looked in the NewtonForum and found that http://www.newtondynamics.com/forum/vie ... ngw#p34856.
Try to use the Newton 2.0 Beta and this should *work*, I hope.

Zero

Durnus

23-03-2009 01:59:04

Ok, I got the Newton 2.0 beta, but it still doesn't work. There are less errors, and most of them are about a "newton vehicle" thing, but "_NewtonGetTimeStep" in the World class is still an undefined reference, and that seems like it would be pretty important.

By the way, what's the difference between vs7 and vs9 in the Newton SDK? vs9's folder has a .map and .pdb file as well as a .dll and .lib, but I can't find any actual difference between the two.

Following the link on the Newton forums, I tried linking to [Newton SDK folder]/sdk/x32/dll_vs7/newton.lib, but I still get errors (see attached for log, my processor is 32 bit). There are fewer than there were previously, but it seems some are very critical. I am using OgreNewt version 0.11, downloaded from the addon SVN repository - is this not the right one?

Zero23

23-03-2009 07:42:36

Hi

http://svn.ogre3d.org/svnroot/ogreaddon ... t/newton20
Here you find at the moment the newest version of OgreNewt.

And VS9 is Visual Studio 2008 and VS7 may Visual Studio 2002? I dont know it exactly. But take the newest version(VS9) and try zo compile with them.
And you use the dll version?

Zero

Zero23

23-03-2009 07:42:37

Sry double post -.-

Durnus

23-03-2009 14:12:57

When you ask whether or not I'm using the dll version, what do you mean? My version of Newton has dll's in it, but I couldn't find any other way of obtaining the library. Should I be linking to the .dll's, instead of the .lib's? My knowledge of compiling is very little; this is the first time I've had to compile anything other than my own program.

Thanks for the link to the newer version, hopefully it'll help to have proper versions of everything. ;)