Page 1 of 1

Problems with irrPhysX SDK

Posted: Tue Oct 20, 2009 11:31 am
by Kirjuxa
Hi,

I downloaded the irrPhysX SDK and now i get some errors.
When I compile the Example: BoxesExample
then I get an error at line 159 that I cannont make an Instance of an abstract class.

paramChanger = new CGUIParamChanger(guienv, guienv->getRootGUIElement(), -1, core::rect<s32>(600,0,800,105));

I did not change anything at the source code that was with the irrPhysX

Can anybody help please, how I solve the problem?

Thanks

Posted: Tue Oct 20, 2009 12:55 pm
by Seven
what versions are you using?

irrlicht version #
physx version #

Posted: Tue Oct 20, 2009 1:01 pm
by Kirjuxa
I am using Irrlicht 1.6
and the latest irrPhysX version

Posted: Tue Oct 20, 2009 3:53 pm
by JP
You can't use IrrPhysx with a version of Irrlicht other than 1.5 and 1.4.2 currently, I've just not had a chance to upload a 1.6 compatible version.

So if you want to use IrrPhysx with Irrlicht 1.6 you'll have to recompile IrrPhysx linking it to Irrlicht 1.6.

There's also something in 1.6 that has changed for GUI elements which menghzu says can be fixed by commenting out the functions that the linker complains about:

1>CGUIParamChanger.obj : error LNK2001: unresolved external symbol "public: virtual bool __thiscall CGUIParamChanger::getDrawTitlebar(void)const " (?getDrawTitlebar@CGUIParamChanger@@UBE_NXZ)

So for that linker error you'd comment out the function CGUIParamChanger::getDrawTitlebar in both the header and cpp file.

Apparently that works, I've not done anything with it myself.

Posted: Tue Oct 20, 2009 10:45 pm
by Kirjuxa
Well thanks for rapid answer but I get problem when i compile the boxesExample, i tried irrlicht v1.5, 1.4.2 my visual studio says to me the same error.

Perhaps I need to recompile my irrlicht versions(I am using the libs i have downloadet) perhaps its because of visual studio i dont know.

And do you perhaps know a site where i can find usefull PhysX and irrPhysX tutorials??

Thanks

Posted: Wed Oct 21, 2009 8:10 am
by JP
The Physx website has Physx tutorials and the IrrPhysx SDK has the only IrrPhysx tutorials that I'm aware of.

Looking at Physx tutorials won't help you use IrrPhysx though as IrrPhysx hides Physx away from the user to make it easier to use from an Irrlicht user point of view.

I don't know why you're having problems... You certainly shouldn't have the same problems if you're using Irrlicht 1.5/1.4.2 (with the correct version of IrrPhysx)... that makes me think you didn't correctly link to the older versions of Irrlicht and instead are still linking to 1.6.

Posted: Wed Oct 21, 2009 1:41 pm
by Kirjuxa
Well thank for rapid answer but I solved the problem:

For programming with irrPhysx i needed the ServicePack for Visual Studio 2008

After installing the SP1 all my Linking and Compiling problems were solved.

Probalby you should note that on your irrPhysx site.

And also: Big Thanks for irrPhysx it is very usefull and easy to use.

Posted: Wed Oct 21, 2009 2:30 pm
by JP
Glad you're finding IrrPhysx useful and thanks for the feedback, I'll add that comment to the site when I get a chance!