Game Development Community

T3D 3 PhysX compile error

by Robert Pierce · in Torque 3D Beginner · 10/31/2013 (3:13 pm) · 7 replies

I'm finally coming back to Torque after 5-6 years and compiled non-PhysX fine in VS2010. I quickly switched the project to use PhysX (no errors from the generator about missing locations) and I'm getting this error:

17>c:\users\robertsim007\desktop\torque3d\engine\source\t3d\physics\physx\pxmultiactor.cpp(573): error C2653: 'FS' : is not a class or namespace name
17>c:\users\robertsim007\desktop\torque3d\engine\source\t3d\physics\physx\pxmultiactor.cpp(573): error C3861: 'AddChangeNotification': identifier not found

In addition, I get quite a few C4005 warnings about TORQUE_ENGINE_PRODUCT being redefined, but that's nothing lol.

Any suggestions


#1
10/31/2013 (4:31 pm)
Did you install the PhysX SDK?
#2
10/31/2013 (7:07 pm)
Yes. Took some time, I initially installed two versions that were too new, until I found the NVIDIA support website route for the older version. I have my TORQUE_PHYSX_SDK variable set to my location.
#3
10/31/2013 (7:09 pm)
After searching through the other files in the T3D folder, I changed pxMultiActor line 573
FS::AddChangeNotification( physXStream, this, &PxMultiActorData::_onFileChanged );
to
Torque::FS::AddChangeNotification( physXStream, this, &PxMultiActorData::_onFileChanged );
Since other files in the T3D folder used Torque::FS instead of FS which was mainly in the core engine.

Torque compiles fine... and as far as I can tell everything is working as intended.
#4
10/31/2013 (8:24 pm)
For the record, I used the github source (development branch) as of 10/29/13 @ 10pm
#5
11/01/2013 (6:30 am)
Ah hah. Nice catch. Did you submit an issue for it? Or (preferably) a pull request with the fix? That'd be awesome.
#6
11/01/2013 (8:16 am)
I'm new to git, so I have no clue how pull requests work. I tried playing around with the Pull section on GitHub and I'm lost. I'm submitting an issue with the code, though, that seems straightforward enough.
#7
11/01/2013 (8:22 am)
Maybe I just figured it out, lol... https://github.com/GarageGames/Torque3D/pull/518