[Python-ogre-commit] SF.net SVN: python-ogre:[772] trunk/python-ogre
Brought to you by:
andy_miller,
roman_yakovenko
From: <and...@us...> - 2008-10-21 10:25:50
|
Revision: 772 http://python-ogre.svn.sourceforge.net/python-ogre/?rev=772&view=rev Author: andy_miller Date: 2008-10-21 10:25:36 +0000 (Tue, 21 Oct 2008) Log Message: ----------- Improved Physx support on Linux - retrieve and build automatic now Modified Paths: -------------- trunk/python-ogre/PythonOgreConfig_posix.py trunk/python-ogre/environment.py Modified: trunk/python-ogre/PythonOgreConfig_posix.py =================================================================== --- trunk/python-ogre/PythonOgreConfig_posix.py 2008-10-21 09:53:59 UTC (rev 771) +++ trunk/python-ogre/PythonOgreConfig_posix.py 2008-10-21 10:25:36 UTC (rev 772) @@ -110,7 +110,7 @@ PATH_LIB_betagui = PATH_betagui PATH_LIB_quickgui = PATH_quickgui PATH_LIB_NxOgre= os.path.join(LOCAL_LIB ) -PATH_LIB_PhysX = os.path.join(LOCAL_LIB, 'PhysX','v2.7.3') +PATH_LIB_PhysX = os.path.join('/usr/lib', 'PhysX','v2.8.1') PATH_LIB_Bullet = os.path.join( LOCAL_LIB ) PATH_LIB_Theora= os.path.join(PATH_Theora, 'bin', 'Release') PATH_LIB_ogrevideoffmpeg = PATH_ogrevideoffmpeg @@ -177,13 +177,13 @@ ##,os.path.join(PATH_OgreAddons,'videoplugin','ptypes-1.8.3','include') ,os.path.join(PATH_THIRDPARTY,'ptypes','include') ] -physxbase = os.path.join(LOCAL_INCLUDE, 'PhysX','v2.7.3', 'SDKs') +physxbase = os.path.join('/usr/include/', 'PhysX','v2.8.1', 'SDKs') PATH_INCLUDE_PhysX= [ physxbase - ,os.path.join(physxbase, 'Cooking','Include') + ,os.path.join(physxbase, 'Cooking','include') ,os.path.join(physxbase, 'Foundation','include') ,os.path.join(physxbase, 'PhysXLoader','include') ,os.path.join(physxbase, 'NxCharacter','include') - ,os.path.join(physxbase, 'NxExtensions','include') + ##,os.path.join(physxbase, 'NxExtensions','include') ,os.path.join(physxbase, 'Physics','include') ] PATH_INCLUDE_opensteer = os.path.join(LOCAL_INCLUDE, 'OpenSteer') Modified: trunk/python-ogre/environment.py =================================================================== --- trunk/python-ogre/environment.py 2008-10-21 09:53:59 UTC (rev 771) +++ trunk/python-ogre/environment.py 2008-10-21 10:25:36 UTC (rev 772) @@ -1280,10 +1280,22 @@ Config.PATH_LIB_PhysX ] CheckIncludes=[] - if os.name == 'nt': + if isWindows(): libs=[ boost.lib, 'NxCharacter', 'NxCooking', 'PhysXLoader' ] - else: - libs=[ boost.lib, 'NxCharacter', 'NxCooking', 'PhysXCore', 'PhysXLoader' ] + elif isLinux(): + libs=[ boost.lib, 'NxCharacter', 'NxCooking', 'PhysXCore', 'PhysXLoader' ] + source = [ + [wget, "http://developer.download.nvidia.com/PhysX/2.8.1/PhysX_2.8.1_SDK_CoreLinux_deb.tar.gz", downloadPath] + ] + + buildCmds = [ + [0, "tar zxf " + os.path.join(downloadPath, "PhysX_2.8.1_SDK_CoreLinux_deb.tar.gz"), ''], + [0, "sudo dpkg -i libphysx-common_2.8.1-4_i386.deb", ''], + [0, "sudo dpkg -i libphysx-2.8.1_4_i386.deb", ''], + [0, "sudo dpkg -i libphysx-dev-2.8.1_4_i386.deb", ''], + [0, "sudo dpkg -i libphysx-extras-2.8.1_4_i386.deb", ''] + ] + ModuleName="PhysX" class nxogre_09: This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |