How can make Newton to work?

Discuss about anything related to the Irrlicht Engine, or read announcements about any significant features or usage changes.
Post Reply
Auradrummer
Posts: 260
Joined: Thu Apr 17, 2008 1:38 pm
Location: Brasopolis - Brazil

How can make Newton to work?

Post by Auradrummer »

Hello again friends,

I made some graphics for my game, now I have to make the physics. I choose Newton, based upon what I found in the Internet.

But I'm not successful making it works, despite my efforts.

I'm working with Anjuta IDE, on Ubuntu Linux, and I cannot compile it together an Irrlicht project. I think I have to add something in the makefile. Someone can give me some light?
Professional Software Developer and Amateur Game Designer ;-)
JP
Posts: 4526
Joined: Tue Sep 13, 2005 2:56 pm
Location: UK
Contact:

Post by JP »

Just like you include irrlicht's include folder and link to irrlicht's library in your makefile you will also need to do the same for Newton ;)
Image Image Image
Auradrummer
Posts: 260
Joined: Thu Apr 17, 2008 1:38 pm
Location: Brasopolis - Brazil

Post by Auradrummer »

Ah JP! Thanks you very much.

Your answer seems to be obvious, but for me isn't. The problem is that I had the first contact with C using that DOS IDE (dark blue). There, we have to Include the files in the compiler, and the Anjuta took automatically the Irrlicht libraries. So I was thinking that is an IDE feature, and was starting to suspect that is something in the Makefile. With your reply, I have the confirmation, and now they works.

If someone else arrives here with the same doubt:

Code: Select all

CPPFLAGS = -I$(IrrlichtHome)/include -I/usr/X11R6/include -I$(IrrlichtHome)/newtonSDK/sdk -I$(IrrlichtHome)/newtonSDK/samples/toolBox -I$(IrrlichtHome)/newtonSDK/samples/gl$(USERCPPFLAGS)

add the addresses in this line, and everything is right.
Professional Software Developer and Amateur Game Designer ;-)
Post Reply