IPhysics - Newton/Irrlicht framework
-
- Posts: 41
- Joined: Thu Sep 28, 2006 4:34 am
- Location: Eaton, Colorado, United States
lib should work as well
.a and .lib are both supported
EDIT:
After some investigation I found that gcc only supports .lib files to a certain extent. I'm currently looking to see if there is a way to convert .lib to .a. I think this may be the reason I'm getting linking errors.
I can convert .dll into .a with some utils i have, but not .lib. I'll find it soon i hope. I'll send the .a to Nick when i get it.
EDIT:
Unfortunatly I'm unable to convert a .lib to a .def file. I can convert a .dll to a .def, but not a .lib.
Oh well. Perhaps Nick will be able to make a .a file.
And if anybody uses IPhysics with code::blocks and mingw please let me know how you got it working...
.a and .lib are both supported
EDIT:
After some investigation I found that gcc only supports .lib files to a certain extent. I'm currently looking to see if there is a way to convert .lib to .a. I think this may be the reason I'm getting linking errors.
I can convert .dll into .a with some utils i have, but not .lib. I'll find it soon i hope. I'll send the .a to Nick when i get it.
EDIT:
Unfortunatly I'm unable to convert a .lib to a .def file. I can convert a .dll to a .def, but not a .lib.
Oh well. Perhaps Nick will be able to make a .a file.
And if anybody uses IPhysics with code::blocks and mingw please let me know how you got it working...
-
- Posts: 98
- Joined: Mon Dec 13, 2004 11:47 am
- Location: Japan
@twentytortures, Lee Zhi Eng: No worries - worst case scenario I can just download code::blocks / DevC++ and compile it with those. Although if you know how to do it, you should have everything you need in the download: in the /source directory is the entire source (it's not massive!) - that just needs to be compiled as a static library. Just create a new project, set it to create the right type of library, and just add all those source files in - there are no dependancies aside from Irrlicht and Newton. If you're not sure and you're really stuck, there's always the option of just adding those source files directly into your project, thus avoiding any linking. The only annoying thing is that you'll have to compile them every time you do a full rebuild, but at least you can use it!
-
- Posts: 34
- Joined: Tue Aug 22, 2006 2:48 pm
- Location: Malaysia
when i compile the source using dev-c++, these things shows up:there are no dependancies aside from Irrlicht and Newton
\IPhysics-1.1\source\CPhysics.cpp In file included from CPhysics.cpp
\IPhysics-1.1\source\PhysicsGlobal.h Irrlicht.h: No such file or directory.
\IPhysics-1.1\source\PhysicsGlobal.h Newton.h: No such file or directory.
and after i'd linked to both of the header files, i got many errors like this:
\IPhysics-1.1\source\PhysicsGlobal.h [Warning] no newline at end of file
\IPhysicsEntity.h initializer specified for non-virtual method `IPhysicsEntity::IPhysicsEntity()'
-
- Posts: 41
- Joined: Thu Sep 28, 2006 4:34 am
- Location: Eaton, Colorado, United States
-
- Posts: 98
- Joined: Mon Dec 13, 2004 11:47 am
- Location: Japan
@Lee Zhi Eng: As I said, you do need to have Irrlicht and Newton set up, and the directories rigged up such that #include <Irrlicht.h> will work.
As twentytortures said, this error:
\IPhysicsEntity.h initializer specified for non-virtual method `IPhysicsEntity::IPhysicsEntity()'
is fixed.
About this one:
\IPhysics-1.1\source\PhysicsGlobal.h [Warning] no newline at end of file
Visual C++ doesn't complain about that, but it's an easy fix (!). I know it's only a trivial warning but nice and neat is good!
Cheers guys, keep 'em coming!
As twentytortures said, this error:
\IPhysicsEntity.h initializer specified for non-virtual method `IPhysicsEntity::IPhysicsEntity()'
is fixed.
About this one:
\IPhysics-1.1\source\PhysicsGlobal.h [Warning] no newline at end of file
Visual C++ doesn't complain about that, but it's an easy fix (!). I know it's only a trivial warning but nice and neat is good!
Cheers guys, keep 'em coming!
-
- Posts: 41
- Joined: Thu Sep 28, 2006 4:34 am
- Location: Eaton, Colorado, United States
I'm close
Have a little problem though.
I get a couple of things like that, unfortunatly I don't know what it means.
Have a little problem though.
Code: Select all
IPhysicsCar.cpp:7: error: definition of implicitly-declared `IPhysicsCar::IPhysicsCar()'
-
- Posts: 98
- Joined: Mon Dec 13, 2004 11:47 am
- Location: Japan
IPhysicsCar.cpp, IPhysicsBaseEntity.cpp and IPhysicsEntity.cpp have been removed from the source as they are no longer necessary - you should just have the headers in for those three files. Are you including the source directly into your project? If so just delete those three files - I'm guessing when you copied them over the old ones would just have been left unchanged.
-
- Posts: 5
- Joined: Mon Oct 02, 2006 2:08 pm
-
- Posts: 41
- Joined: Thu Sep 28, 2006 4:34 am
- Location: Eaton, Colorado, United States
-
- Posts: 98
- Joined: Mon Dec 13, 2004 11:47 am
- Location: Japan
-
- Posts: 41
- Joined: Thu Sep 28, 2006 4:34 am
- Location: Eaton, Colorado, United States
I have the .a! I'll be sending it to nick here in a moment! Don't know if it will fix my errors though, hahahah!
EDIT:
Well I compiled the .a but now I have new linking errors, take a look:
I have several errors that are like that.
No idea what to do...
EDIT:
Well I compiled the .a but now I have new linking errors, take a look:
Code: Select all
C:\irrlicht\IPhysics-1.1\lib\libIPhysics.a(CPhysicsCarWheel.o):CPhysicsCarWheel.cpp:(.text+0x328): undefined reference to `NewtonVehicleAddTire'
I have several errors that are like that.
No idea what to do...
-
- Posts: 98
- Joined: Mon Dec 13, 2004 11:47 am
- Location: Japan
It can't find Newton, or probably the Newton library - have you #pragma comment'ed the Newton .lib? It's telling you that it can't find an implementation of NewtonVehicleAddTire, which is a Newton call.Well I compiled the .a but now I have new linking errors, take a look:I have several errors that are like that.Code: Select all
C:\irrlicht\IPhysics-1.1\lib\libIPhysics.a(CPhysicsCarWheel.o):CPhysicsCarWheel.cpp:(.text+0x328): undefined reference to `NewtonVehicleAddTire'
-
- Posts: 41
- Joined: Thu Sep 28, 2006 4:34 am
- Location: Eaton, Colorado, United States
-
- Posts: 41
- Joined: Thu Sep 28, 2006 4:34 am
- Location: Eaton, Colorado, United States