Re: [C++-sig] Cplusplus-sig Digest, Vol 64, Issue 11
Hi Niki and Giuseppe, thanks for your answers, but once I had already considered . My compiler flags are: /DWIN32 /DDEBUG /GR /RTCsu /DPX_DEBUG I wish you a nice day. Peter -----Ursprüngliche Nachricht----- Von: Cplusplus-sig [mailto:cplusplus-sig-bounces+arm=rfh-koeln.de@python.org] Im Auftrag von cplusplus-sig-request@python.org Gesendet: Mittwoch, 29. Januar 2014 12:00 An: cplusplus-sig@python.org Betreff: Cplusplus-sig Digest, Vol 64, Issue 11 Send Cplusplus-sig mailing list submissions to cplusplus-sig@python.org To subscribe or unsubscribe via the World Wide Web, visit https://mail.python.org/mailman/listinfo/cplusplus-sig or, via email, send a message with subject or body 'help' to cplusplus-sig-request@python.org You can reach the person managing the list at cplusplus-sig-owner@python.org When replying, please edit your Subject line so it is more specific than "Re: Contents of Cplusplus-sig digest..." Today's Topics: 1. Re: PhysX3.x Wrapping Problems (niki) 2. Re: PhysX3.x Wrapping Problems (Giuseppe Corbelli) ---------------------------------------------------------------------- Message: 1 Date: Wed, 29 Jan 2014 10:19:59 +0200 From: niki <niki@vintech.bg> To: Development of Python/C++ integration <cplusplus-sig@python.org> Subject: Re: [C++-sig] PhysX3.x Wrapping Problems Message-ID: <52E8B9AF.4050602@vintech.bg> Content-Type: text/plain; charset=UTF-8; format=flowed On 28.01.2014 18:33, Peter Armbr?ster wrote:
Dear Boost.python, C++ and Py++ Experts,
this is my first post in your excellent Forum.
I have chosen as the wrapper software the boost.python/Py++ Packageto write a physx 3.x Wrapper, because I think it is the best.
Many many thanks to David Abrahams and Roman Yakovenko for the great Tools.
The wrapping of old versions physx 2.x had made no problems.
And now I come across a very big problem at the 3.x Versions.
All wrappings of classes works very well.
The problem only exists in the PhysX free functions, which are responsible for the initialization of PhysX.
I try to explain with a reduced Example.
The initialization of PhysX starts with create of foundation :
*0 static*PxFoundation*mFoundation=NULL;
*1 static*PxDefaultErrorCallbackgDefaultErrorCallback; *2 static*PxDefaultAllocatorgDefaultAllocatorCallback; 3 mFoundation=PxCreateFoundation(PX_PHYSICS_VERSION,gDefaultAllocatorCal lback,gDefaultErrorCallback);4 *4 if*(!mFoundation)
5 fatalError("PxCreateFoundation failed!");
The wrapped python program generate a runtime error at line 3:RuntimeError: Access violation - no RTTI data!
Just wild guess: add compiler option to enable RTTI HTH Niki ------------------------------ Message: 2 Date: Wed, 29 Jan 2014 11:03:00 +0100 From: Giuseppe Corbelli <giuseppe.corbelli@copanitalia.com> To: Development of Python/C++ integration <cplusplus-sig@python.org> Subject: Re: [C++-sig] PhysX3.x Wrapping Problems Message-ID: <52E8D1D4.7060003@copanitalia.com> Content-Type: text/plain; charset=ISO-8859-1; format=flowed On 28/01/2014 17:33, Peter Armbr?ster wrote:
Dear Boost.python, C++ and Py++ Experts,
this is my first post in your excellent Forum.
I have chosen as the wrapper software the boost.python/Py++ Packageto write a physx 3.x Wrapper, because I think it is the best.
Many many thanks to David Abrahams and Roman Yakovenko for the great Tools.
The wrapping of old versions physx 2.x had made no problems.
And now I come across a very big problem at the 3.x Versions.
All wrappings of classes works very well.
The problem only exists in the PhysX free functions, which are responsible for the initialization of PhysX.
I try to explain with a reduced Example.
The initialization of PhysX starts with create of foundation :
*0 static*PxFoundation*mFoundation=NULL;
*1 static*PxDefaultErrorCallbackgDefaultErrorCallback; *2 static*PxDefaultAllocatorgDefaultAllocatorCallback; 3 mFoundation=PxCreateFoundation(PX_PHYSICS_VERSION,gDefaultAllocatorCal lback,gDefaultErrorCallback);4 *4 if*(!mFoundation)
5 fatalError("PxCreateFoundation failed!");
The wrapped python program generate a runtime error at line 3:RuntimeError: Access violation - no RTTI data!
Its impossible to get mFoundation.
*Notes: *
- physx comes as SDK: only Headers, libs and dlls.
Before reading on I'd investigate the "no RTTI data" message. Make sure you're using the /GR compiler option. -- Giuseppe Corbelli WASP Software Engineer, Copan Italia S.p.A Phone: +390303666318 Fax: +390302659932 E-mail: giuseppe.corbelli@copanitalia.com ------------------------------ Subject: Digest Footer _______________________________________________ Cplusplus-sig mailing list Cplusplus-sig@python.org https://mail.python.org/mailman/listinfo/cplusplus-sig ------------------------------ End of Cplusplus-sig Digest, Vol 64, Issue 11 *********************************************
participants (1)
-
Peter Armbrüster