betajaen
30-10-2006 23:46:09
betajaen
30-10-2006 23:46:09
avee
31-10-2006 02:43:12
betajaen
31-10-2006 08:42:03
Harvest
21-11-2006 20:26:21
runixd
20-01-2007 23:11:11
betajaen
21-01-2007 11:31:57
LAva
25-01-2007 08:39:50
DieHard
25-01-2007 20:04:43
LAva
26-01-2007 18:51:01
syedhs
27-01-2007 06:31:58
so I wanted to know if somebody has an ogre program running with physx yet.
LAva
29-01-2007 21:08:56
LAva
28-02-2007 20:01:42
betajaen
28-02-2007 20:47:06
xabila
01-03-2007 09:25:18
I found it!
You just have to deactivate fluids and the hardware support and everything is fine.
I added this defines:
LINUX
CORELIB
NX32
NX_DISABLE_FLUIDS
NX_DISABLE_HARDWARE
Now I have the NxOgre0.4RC3 running with the PhysX2.6.2 on Linux
LAva
01-03-2007 16:40:03
I found it!
You just have to deactivate fluids and the hardware support and everything is fine.
I added this defines:
LINUX
CORELIB
NX32
NX_DISABLE_FLUIDS
NX_DISABLE_HARDWARE
Now I have the NxOgre0.4RC3 running with the PhysX2.6.2 on Linux
Really, wich version of gcc do you have ?
I have added these definition too but i have more things to do with gcc 4.0.2 :
1> enum defaultStates, long 0x100000000 it's too big for int , so i change it to 0x1000000 and it's seems ok ? but perhaps there is some implication...
2> every time you define a friend toto, gcc want friend class toto;
3> i have a last error in definition of nxOgre_error.
nxOgre::error’ is implicitly friends with itself
: erreur: cannot declare member function ‘NxUserOutputStream::print’ within ‘nxOgre::error’
And i don't know how to handle it ...
STATE_NO_GRAVITY = 0x100000000LL - 0x01,
...
void setWind(Ogre::Vector3 _wind);
Ogre::Vector3 scene::getWind();
...
xabila
02-03-2007 15:04:45
betajaen
02-03-2007 15:20:17
xabila
02-03-2007 16:15:31
betajaen
02-03-2007 17:17:40
LAva
02-03-2007 17:51:59
betajaen
02-03-2007 17:53:41
xabila
02-03-2007 18:08:44
devachan
02-03-2007 18:15:54
xabila
03-03-2007 13:03:12
xabila
04-03-2007 17:46:17
betajaen
04-03-2007 18:15:16
/usr/local/lib - PhysX, Ogre, and NxOgre libraries.
/usr/local/include - PhysX headers (a directory each for each library or portion of one), Ogre headers, and NxOgre headers.
xabila
04-03-2007 19:00:03
SET(PHYSX /home/xlarrode/MolkWii/PhysX_2.6.2)
INCLUDE_DIRECTORIES(
${OGRE_INC}
${CMAKE_CURRENT_BINARY_DIR}
../include
${PHYSX}/novodex/SDKs/Cooking/Include
${PHYSX}/novodex/SDKs/Foundation/include
${PHYSX}/novodex/SDKs/Framework/include
${PHYSX}/novodex/SDKs/NxCharacter/include
${PHYSX}/novodex/SDKs/NxExtensions/include
${PHYSX}/novodex/SDKs/PhysXLoader/include
${PHYSX}/novodex/SDKs/Physics/include
.)
xabila
11-03-2007 16:20:25
betajaen
11-03-2007 16:28:57
xabila
12-03-2007 08:12:15
manowar
20-07-2007 09:56:00
betajaen
20-07-2007 10:27:44
vinvin
23-07-2007 07:03:48
vinvin
24-07-2007 13:57:01
/usr/local/lib/libNxOgre.so: undefined reference to `NxReleaseControllerManager'
/usr/local/lib/libNxOgre.so: undefined reference to `NxCreateControllerManager'
vinvin
25-07-2007 02:20:08
CoffeeMan
26-07-2007 13:04:14
#include <NxPhysics.h>
#include <stdio.h>
NxPhysicsSDK *gPhysicsSDK;
int main(int argc, char* argv[])
{
gPhysicsSDK = NxCreatePhysicsSDK(NX_PHYSICS_SDK_VERSION);
printf("gPhysicsSDK == %p\n", gPhysicsSDK);
if (gPhysicsSDK == NULL)
return -1;
gPhysicsSDK->release();
}
persoontje
31-07-2007 22:26:20
betajaen
31-07-2007 22:38:45
persoontje
01-08-2007 11:10:50
I installed SDK 2.7.2 (all *.debs in tar.gz) on my Ubuntu 7.04 but it dont works
Next little example after compiling print (nil) on screen:
#include <NxPhysics.h>
#include <stdio.h>
NxPhysicsSDK *gPhysicsSDK;
int main(int argc, char* argv[])
{
gPhysicsSDK = NxCreatePhysicsSDK(NX_PHYSICS_SDK_VERSION);
printf("gPhysicsSDK == %p\n", gPhysicsSDK);
if (gPhysicsSDK == NULL)
return -1;
gPhysicsSDK->release();
}
gcc -DLINUX <all physx libraries paths> main.cpp -o test
on screen i get "gPhysicsSDK == (nul)"
PROJECT(PHYSXTEST)
SET (SRC_FILES
main.cpp)
SET (PHYSX_INCLUDEDIR
/usr/include/PhysX/v2.7.2/SDKs/Foundation/include /usr/include/PhysX/v2.7.2/SDKs/Physics/include /usr/include/PhysX/v2.7.2/SDKs/Cooking/Include /usr/include/PhysX/v2.7.2/SDKs/PhysXLoader/include
)
SEPARATE_ARGUMENTS(PHYSX_INCLUDEDIR)
SET (PHYSX_LIBDIR
/usr/lib/PhysX/v2.7.2
/usr/lib)
SEPARATE_ARGUMENTS(PHYSX_LIBDIR)
SET (PHYSX_LIBS
libNxCooking.so
libPhysXLoader.so
libPhysXCore.so)
SEPARATE_ARGUMENTS(PHYSX_LIBS)
LINK_DIRECTORIES( ${PHYSX_LIBDIR})
ADD_DEFINITIONS(-DLINUX=1)
INCLUDE_DIRECTORIES(
${PHYSX_INCLUDEDIR}
)
ADD_EXECUTABLE(main ${SRC_FILES})
TARGET_LINK_LIBRARIES(main ${PHYSX_LIBS} pthread dl)
INSTALL(TARGETS main DESTINATION .)
ProfMobius
04-08-2007 05:01:19
heightFieldDesc.samples = new NxU32[width * width];
error: expression in new-declarator must have integral or enumeration type
betajaen
04-08-2007 09:16:06
heightFieldDesc.samples = new NxU32[heightFieldDesc.nbRows * heightFieldDesc.nbColumns];
ProfMobius
04-08-2007 13:22:13
NxOgreTrigger.h (line 135)
class NxExport Trigger : public Actor {
friend Scene;
friend SceneTriggerController;
error: a class-key must be used when declaring a friend
error: friend declaration doest not name a class or function
class NxExport Trigger : public Actor {
friend class Scene;
friend class SceneTriggerController;
ProfMobius
04-08-2007 14:00:52
ProfMobius
04-08-2007 14:14:29
nxogre3/NxOgre/source/NxOgreCloth.cpp:733: error: no matching function for call to ‘NxPhysicsSDK::createClothMesh(MemoryReadBuffer)’
NxPhysicsSDK.h:544: note: candidates are: virtual NxClothMesh* NxPhysicsSDK::createClothMesh(NxStream&)
vinvin
04-08-2007 14:46:10
ProfMobius
04-08-2007 14:54:49
vinvin
04-08-2007 15:09:38
Roht
18-08-2007 13:48:47
Program received signal SIGSEGV, Segmentation fault.
0xb3c51fdf in ?? () from /usr/lib/PhysX/v2.7.2/libPhysXCore.so
mWorld = new World("log: html");
mScene = mWorld->createScene("Main", mSceneMgr, "gravity: yes, floor: yes");
vinvin
18-08-2007 14:23:05
Roht
18-08-2007 16:20:41
vinvin
21-08-2007 00:58:25
betajaen
21-08-2007 09:24:13
vinvin
21-08-2007 17:40:20
betajaen
21-08-2007 18:50:34
vinvin
22-08-2007 23:21:42
betajaen
23-08-2007 00:12:32
#define NX_USE_FLUID_API 0
dpb
30-08-2007 17:10:32
dpb
30-08-2007 21:25:14
dpb
02-09-2007 22:30:39
betajaen
02-09-2007 22:39:55
dpb
03-09-2007 19:40:52
reptor
04-11-2007 18:19:02
betajaen
04-11-2007 18:41:42
vinvin
04-11-2007 20:45:16
Samiljan
14-11-2007 18:14:14
StringList EnumsBlueprint::AsNxFluidSimulationMethod() {
StringList l;
#if NX_USE_FLUID_API
if (mEnum & NX_F_SPH)
l.insert(NxString("NX_F_SPH"));
if (mEnum & NX_F_NO_PARTICLE_INTERACTION)
l.insert(NxString("NX_F_NO_PARTICLE_INTERACTION"));
if (mEnum & NX_F_MIXED_MODE)
l.insert(NxString("NX_F_MIXED_MODE"));
#endif
return l;
}
////////////////////////////////////////////////////////////////////////////////////////////////
StringList EnumsBlueprint::AsNxFluidCollisionMethod() {
StringList l;
#if NX_USE_FLUID_API
if (mEnum & NX_F_STATIC)
l.insert(NxString("NX_F_STATIC"));
if (mEnum & NX_F_DYNAMIC)
l.insert(NxString("NX_F_DYNAMIC"));
#endif
return l;
}
////////////////////////////////////////////////////////////////////////////////////////////////
StringList EnumsBlueprint::AsNxFluidFlag() {
StringList l;
#if NX_USE_FLUID_API
if (mEnum & NX_FF_VISUALIZATION)
l.insert(NxString("NX_FF_VISUALIZATION"));
if (mEnum & NX_FF_DISABLE_GRAVITY)
l.insert(NxString("NX_FF_DISABLE_GRAVITY"));
#if NX_SDK_VERSION_NUMBER >= 250
if (mEnum & NX_FF_COLLISION_TWOWAY)
l.insert(NxString("NX_FF_COLLISION_TWOWAY"));
#endif
#if NX_SDK_VERSION_NUMBER >= 250
if (mEnum & NX_FF_ENABLED)
l.insert(NxString("NX_FF_ENABLED"));
#endif
#if NX_SDK_VERSION_NUMBER >= 250
if (mEnum & NX_FF_HARDWARE)
l.insert(NxString("NX_FF_HARDWARE"));
#endif
#endif //NX_USE_FLUID_API
return l;
}
////////////////////////////////////////////////////////////////////////////////////////////////
StringList EnumsBlueprint::AsNxEmitterType() {
StringList l;
if (mEnum & NX_AF_DISABLE_COLLISION)
l.insert(NxString("NX_AF_DISABLE_COLLISION"));
#if NX_USE_FLUID_API
if (mEnum & NX_FE_CONSTANT_PRESSURE)
l.insert(NxString("NX_FE_CONSTANT_PRESSURE"));
if (mEnum & NX_FE_CONSTANT_FLOW_RATE)
l.insert(NxString("NX_FE_CONSTANT_FLOW_RATE"));
#endif
return l;
}
////////////////////////////////////////////////////////////////////////////////////////////////
StringList EnumsBlueprint::AsNxEmitterShape() {
StringList l;
#if NX_USE_FLUID_API
if (mEnum & NX_FE_RECTANGULAR)
l.insert(NxString("NX_FE_RECTANGULAR"));
if (mEnum & NX_FE_ELLIPSE)
l.insert(NxString("NX_FE_ELLIPSE"));
#endif
return l;
}
////////////////////////////////////////////////////////////////////////////////////////////////
StringList EnumsBlueprint::AsNxFluidEmitterFlag() {
StringList l;
#if NX_USE_FLUID_API
if (mEnum & NX_FEF_VISUALIZATION)
l.insert(NxString("NX_FEF_VISUALIZATION"));
#if NX_SDK_VERSION_NUMBER < 250
if (mEnum & NX_FEF_BROKEN_ACTOR_REF)
l.insert(NxString("NX_FEF_BROKEN_ACTOR_REF"));
#endif
#if 0
#if NX_SDK_VERSION_NUMBER >= 250
if (mEnum & NX_FEF_DUMMY1)
l.insert(NxString("NX_FEF_DUMMY1"));
#endif
#endif
#if NX_SDK_VERSION_NUMBER < 260
if (mEnum & NX_FEF_FORCE_ON_ACTOR)
l.insert(NxString("NX_FEF_FORCE_ON_ACTOR"));
#endif
#if NX_SDK_VERSION_NUMBER >= 260
if (mEnum & NX_FEF_FORCE_ON_BODY)
l.insert(NxString("NX_FEF_FORCE_ON_BODY"));
#endif
#if NX_SDK_VERSION_NUMBER < 260
if (mEnum & NX_FEF_ADD_ACTOR_VELOCITY)
l.insert(NxString("NX_FEF_ADD_ACTOR_VELOCITY"));
#endif
#if NX_SDK_VERSION_NUMBER >= 260
if (mEnum & NX_FEF_ADD_BODY_VELOCITY)
l.insert(NxString("NX_FEF_ADD_BODY_VELOCITY"));
#endif
if (mEnum & NX_FEF_ENABLED)
l.insert(NxString("NX_FEF_ENABLED"));
#endif //NX_USE_FLUID_API
return l;
}
betajaen
14-11-2007 18:39:14
vinvin
14-11-2007 18:56:19
reptor
21-11-2007 20:14:27
In NxOgreSimpleShape.h, line 74: gcc complains that the class cannot be friend to itself or something like that, i just removed the line.
Samiljan
23-11-2007 17:04:58
reptor
23-11-2007 19:07:36
Felipe
27-11-2007 15:10:44
------------- Build: Debug in NxOgre ---------------
Compiling: ../source/NxOgreActor.cpp
In file included from ../include/NxOgreStable.h:168,
from ../source/NxOgreActor.cpp:20:
/usr/include/PhysX/v2.7.2/SDKs/Foundation/include/Nx.h:34:4: error: #error custom definition of NX_CALL_CONV for your OS needed!
/usr/include/PhysX/v2.7.2/SDKs/Foundation/include/Nx.h:61:3: error: #error PhysX SDK: Platforms pointer size ambiguous. Please define NX32 or Nx64 in the compiler settings!
In file included from /usr/include/PhysX/v2.7.2/SDKs/Foundation/include/Nx.h:246,
from ../include/NxOgreStable.h:168,
from ../source/NxOgreActor.cpp:20:
/usr/include/PhysX/v2.7.2/SDKs/Foundation/include/NxSimpleTypes.h:89:3: error: #error Unknown platform!
In file included from /usr/include/PhysX/v2.7.2/SDKs/Physics/include/NxScene.h:14,
from /usr/include/PhysX/v2.7.2/SDKs/Physics/include/NxPhysics.h:26,
from ../include/NxOgreStable.h:169,
from ../source/NxOgreActor.cpp:20:
/usr/include/PhysX/v2.7.2/SDKs/Physics/include/Nxp.h:111:1: warning: "NX_USE_FLUID_API" redefined
In file included from ../source/NxOgreActor.cpp:20:
../include/NxOgreStable.h:113:1: warning: this is the location of the previous definition
In file included from /usr/include/PhysX/v2.7.2/SDKs/NxCharacter/include/ControllerManager.h:10,
from ../include/NxOgreStable.h:170,
from ../source/NxOgreActor.cpp:20:
/usr/include/PhysX/v2.7.2/SDKs/NxCharacter/include/NxControllerManager.h:93:17: warning: no newline at end of file
/usr/include/PhysX/v2.7.2/SDKs/Foundation/include/NxSimpleTypes.h:97: error: ‘NxI8’ was not declared in this scope
/usr/include/PhysX/v2.7.2/SDKs/Foundation/include/NxSimpleTypes.h:98: error: ‘NxU8’ was not declared in this scope
/usr/include/PhysX/v2.7.2/SDKs/Foundation/include/NxSimpleTypes.h:99: error: ‘NxI16’ was not declared in this scope
/usr/include/PhysX/v2.7.2/SDKs/Foundation/include/NxSimpleTypes.h:100: error: ‘NxU16’ was not declared in this scope
/usr/include/PhysX/v2.7.2/SDKs/Foundation/include/NxSimpleTypes.h:101: error: ‘NxI32’ was not declared in this scope
/usr/include/PhysX/v2.7.2/SDKs/Foundation/include/NxSimpleTypes.h:102: error: ‘NxU32’ was not declared in this scope
/usr/include/PhysX/v2.7.2/SDKs/Foundation/include/NxSimpleTypes.h:103: error: ‘NxI64’ was not declared in this scope
/usr/include/PhysX/v2.7.2/SDKs/Foundation/include/NxSimpleTypes.h:104: error: ‘NxU64’ was not declared in this scope
/usr/include/PhysX/v2.7.2/SDKs/Foundation/include/Nxf.h:20: error: ‘NxF32’ does not name a type
/usr/include/PhysX/v2.7.2/SDKs/Foundation/include/NxFoundationSDK.h:92: error: ‘NxU32’ has not been declared
/usr/include/PhysX/v2.7.2/SDKs/Foundation/include/NxArray.h: In member function ‘bool NxArray<ElemType, AllocType>::deleteEntry(const ElemType&)’:
/usr/include/PhysX/v2.7.2/SDKs/Foundation/include/NxArray.h:294: error: ‘NxU32’ was not declared in this scope
/usr/include/PhysX/v2.7.2/SDKs/Foundation/include/NxArray.h:294: error: expected `;' before ‘s’
/usr/include/PhysX/v2.7.2/SDKs/Foundation/include/NxArray.h:295: error: expected `;' before ‘i’
/usr/include/PhysX/v2.7.2/SDKs/Foundation/include/NxArray.h:295: error: ‘i’ was not declared in this scope
/usr/include/PhysX/v2.7.2/SDKs/Foundation/include/NxArray.h:295: error: ‘s’ was not declared in this scope
/usr/include/PhysX/v2.7.2/SDKs/Foundation/include/NxBitField.h: At global scope:
/usr/include/PhysX/v2.7.2/SDKs/Foundation/include/NxBitField.h:29: error: ‘NxU32’ does not name a type
/usr/include/PhysX/v2.7.2/SDKs/Foundation/include/NxBitField.h:31: error: ‘NxU32’ does not name a type
/usr/include/PhysX/v2.7.2/SDKs/Foundation/include/NxBitField.h:32: error: ‘NxU32’ does not name a type
/usr/include/PhysX/v2.7.2/SDKs/Foundation/include/NxBitField.h:33: error: ‘NxU32’ does not name a type
/usr/include/PhysX/v2.7.2/SDKs/Foundation/include/NxBitField.h:34: error: ‘NxU32’ does not name a type
/usr/include/PhysX/v2.7.2/SDKs/Foundation/include/NxBitField.h:42: error: ‘NxU32’ has not been declared
/usr/include/PhysX/v2.7.2/SDKs/Foundation/include/NxBitField.h:43: error: declaration of ‘operator=’ as non-function
/usr/include/PhysX/v2.7.2/SDKs/Foundation/include/NxBitField.h:43: error: expected ‘;’ before ‘(’ token
/usr/include/PhysX/v2.7.2/SDKs/Foundation/include/NxBitField.h:48: error: expected `;' before ‘inline’
/usr/include/PhysX/v2.7.2/SDKs/Foundation/include/NxBitField.h:48: error: expected type-specifier before ‘Flag’
/usr/include/PhysX/v2.7.2/SDKs/Foundation/include/NxBitField.h:55: error: ‘NxU32’ does not name a type
/usr/include/PhysX/v2.7.2/SDKs/Foundation/include/NxBitField.h:63: error: field ‘IntType’ has incomplete type
/usr/include/PhysX/v2.7.2/SDKs/Foundation/include/NxBitField.h:63: error: ‘IntType’ declared as an ‘inline’ field
/usr/include/PhysX/v2.7.2/SDKs/Foundation/include/NxBitField.h:65: error: expected type-specifier before ‘IntType’
/usr/include/PhysX/v2.7.2/SDKs/Foundation/include/NxBitField.h:68: error: declaration of ‘operator=’ as non-function
/usr/include/PhysX/v2.7.2/SDKs/Foundation/include/NxBitField.h:68: error: expected ‘;’ before ‘(’ token
/usr/include/PhysX/v2.7.2/SDKs/Foundation/include/NxBitField.h:71: error: ‘NxU32’ has not been declared
/usr/include/PhysX/v2.7.2/SDKs/Foundation/include/NxBitField.h:71: error: ‘Flag’ has not been declared
/usr/include/PhysX/v2.7.2/SDKs/Foundation/include/NxBitField.h:72: error: ‘NxU32’ has not been declared
/usr/include/PhysX/v2.7.2/SDKs/Foundation/include/NxBitField.h:73: error: ‘NxU32’ has not been declared
/usr/include/PhysX/v2.7.2/SDKs/Foundation/include/NxBitField.h:74: error: ‘Flag’ does not name a type
/usr/include/PhysX/v2.7.2/SDKs/Foundation/include/NxBitField.h:78: error: ‘Mask’ has not been declared
/usr/include/PhysX/v2.7.2/SDKs/Foundation/include/NxBitField.h:78: error: ‘Flag’ has not been declared
/usr/include/PhysX/v2.7.2/SDKs/Foundation/include/NxBitField.h:79: error: ‘Mask’ has not been declared
/usr/include/PhysX/v2.7.2/SDKs/Foundation/include/NxBitField.h:80: error: ‘Mask’ has not been declared
/usr/include/PhysX/v2.7.2/SDKs/Foundation/include/NxBitField.h:82: error: ‘Mask’ has not been declared
/usr/include/PhysX/v2.7.2/SDKs/Foundation/include/NxBitField.h:96: error: ‘Field’ does not name a type
/usr/include/PhysX/v2.7.2/SDKs/Foundation/include/NxBitField.h:97: error: ‘Shift’ has not been declared
/usr/include/PhysX/v2.7.2/SDKs/Foundation/include/NxBitField.h:97: error: ‘Mask’ has not been declared
/usr/include/PhysX/v2.7.2/SDKs/Foundation/include/NxBitField.h:97: error: ‘Field’ has not been declared
/usr/include/PhysX/v2.7.2/SDKs/Foundation/include/NxBitField.h:98: error: ‘Mask’ has not been declared
/usr/include/PhysX/v2.7.2/SDKs/Foundation/include/NxBitField.h:101: error: ‘NxU32’ has not been declared
vinvin
27-11-2007 15:16:23
Felipe
27-11-2007 19:43:03
vinvin
27-11-2007 20:10:52
Felipe
29-11-2007 13:32:28
Felipe
01-12-2007 10:43:01
To build cakebox I only had to change from void main to int main in Cake.h and use a modified betagui 016.
To build I used scons, because I can't write makefiles Razz
SConstruct for NxOgre
SConstruct for cakebox
Samiljan
01-12-2007 12:30:32
To build cakebox I only had to change from void main to int main in Cake.h and use a modified betagui 016.
To build I used scons, because I can't write makefiles Razz
SConstruct for NxOgre
SConstruct for cakebox
the links of SConstruct for NxOgre and SConstruct for cakebox is off!!
peterpoon
11-12-2007 22:43:42
/usr/local/lib/libNxOgre.so:: undefined reference to `NxOgre::toVector3(NxVec3 const&)'
/usr/local/lib/libNxOgre.so:: undefined reference to `NxOgre::toNxExtendedVec3(Ogre::Vector3 const&)'
/usr/local/lib/libNxOgre.so:: undefined reference to `NxOgre::Blueprints::EnumsBlueprint::AsNxSceneFlags()'
/usr/local/lib/libNxOgre.so:: undefined reference to `NxOgre::Blueprints::EnumsBlueprint::AsNxSoftBodyMeshFlags()'
/usr/local/lib/libNxOgre.so:: undefined reference to `NxOgre::Blueprints::EnumsBlueprint::AsNxSoftBodyFlag()'
/usr/local/lib/libNxOgre.so:: undefined reference to `NxOgre::NxCreateID(unsigned int, std::basic_string<char, std::char_traits<char>, std::allocator<char> >)'
/usr/local/lib/libNxOgre.so:: undefined reference to `NxOgre::Blueprints::EnumsBlueprint::AsNxForceFieldCoordinates()'
/usr/local/lib/libNxOgre.so:: undefined reference to `NxOgre::Blueprints::EnumsBlueprint::AsNxSoftBodyAttachmentFlag()'
/usr/local/lib/libNxOgre.so:: undefined reference to `NxOgre::toNxVec3(Ogre::Vector3 const&)'
/usr/local/lib/libNxOgre.so:: undefined reference to `NxOgre::toQuaternion(NxQuat const&)'
/usr/local/lib/libNxOgre.so:: undefined reference to `NxOgre::toNxQuat(Ogre::Quaternion const&)'
/usr/local/lib/libNxOgre.so:: undefined reference to `NxOgre::Blueprints::EnumsBlueprint::AsNxMeshDataFlags()'
/usr/local/lib/libNxOgre.so:: undefined reference to `NxOgre::Blueprints::EnumsBlueprint::AsNxSoftBodyVertexFlags()'
/usr/local/lib/libNxOgre.so:: undefined reference to `NxOgre::Blueprints::EnumsBlueprint::AsNxClothFlag()'
:: === Build finished: 14 errors, 0 warnings ===
Nazgul
19-12-2007 23:28:45
slanning
24-12-2007 21:39:29
$ export PHYSX_DIR=$HOME/.physx-install
$ mkdir $PHYSX_DIR
$ cp PhysX_7.11.13_SystemSoftware.exe $PHYSX_DIR
$ cp PhysX_2.7.3_SDK_CoreLinux_deb.tar.gz $PHYSX_DIR
$ cd $PHYSX_DIR
$ tar -zxf PhysX_2.7.3_SDK_CoreLinux_deb.tar.gz
$ rm PhysX_2.7.3_SDK_CoreLinux_deb.tar.gz
$ sudo dpkg -i libphysx-doc-2.7.3_8_i386.deb
$ sudo dpkg -i libphysx-common_2.7.3-8_i386.deb
$ sudo dpkg -i libphysx-2.7.3_8_i386.deb
$ sudo dpkg -i libphysx-dev-2.7.3_8_i386.deb
$ sudo dpkg -i libphysx-extras-2.7.3_8_i386.deb
/usr/lib/PhysX/v2.7.3/lib
$ sudo ldconfig
// by CoffeeMan,
// http://www.ogre3d.org/phpBB2addons/viewtopic.php?p=28363#28363
#include <NxPhysics.h>
#include <stdio.h>
NxPhysicsSDK *gPhysicsSDK;
int main(int argc, char* argv[])
{
gPhysicsSDK = NxCreatePhysicsSDK(NX_PHYSICS_SDK_VERSION);
printf("gPhysicsSDK == %p\n", gPhysicsSDK);
if (gPhysicsSDK == NULL)
return -1;
gPhysicsSDK->release();
}
# based on a CMakeLists.txt file by persoontje
# http://www.ogre3d.org/phpBB2addons/viewtopic.php?p=28592#28592
MYAPP = test
PHYSX_INCDIR = /usr/include/PhysX/v2.7.3/SDKs
PHYSX_LIBDIR = /usr/lib/PhysX/v2.7.3
# compiler and linker
CXX = g++
LD = g++
# variables for convenience
DEFINES = -DLINUX
# INCLUDES = -I$(PHYSX_INCDIR)/Cooking/include -I$(PHYSX_INCDIR)/Foundation/include -I$(PHYSX_INCDIR)/NxCharacter/include -I$(PHYSX_INCDIR)/NxExtensions/include -I$(PHYSX_INCDIR)/Physics/include -I$(PHYSX_INCDIR)/Cooking/Include -I$(PHYSX_INCDIR)/PhysXLoader/include
INCLUDES = -I$(PHYSX_INCDIR)/Cooking/include
INCLUDES += -I$(PHYSX_INCDIR)/Foundation/include
INCLUDES += -I$(PHYSX_INCDIR)/NxCharacter/include
INCLUDES += -I$(PHYSX_INCDIR)/NxExtensions/include
INCLUDES += -I$(PHYSX_INCDIR)/Physics/include
INCLUDES += -I$(PHYSX_INCDIR)/Cooking/Include
INCLUDES += -I$(PHYSX_INCDIR)/PhysXLoader/include
CXXFLAGS = $(INCLUDES) $(DEFINES)
# note: for some reason. libPhysXLoader.so was put in /usr/lib
LDFLAGS = -lpthread -ldl -lPhysXLoader -L$(PHYSX_LIBDIR) -lPhysXCore -lNxCharacter -lNxCooking
# compile everything
all:
$(CXX) $(CXXFLAGS) $(LDFLAGS) -o $(MYAPP) $(MYAPP).cpp
$ make
$ ./test
gPhysicsSDK == 0x804a590
$ svn co http://latest.nxogre.org/nxogre3
$ cd nxogre3/NxOgre/
$ cp /tmp/SConstruct-nxogre SConstruct
# You might have to install the scons package first.
$ scons
$ sudo scons install
$ cp /tmp/Cakebox.zip .
$ unzip Cakebox.zip
$ cd tutorials/
$ cp /tmp/SConstruct-cakebox SConstruct
With these changes NxOgre compiles, but I had to change one more thing to
make cakebox work. I had to move all the inline function bodies from
NxOgreHelpers.cpp to NxOgreHelpers.h for it to link correctly. I don't know
why, it seems strange.
$ for f in /usr/lib/OGRE/*.so; do ln -s $f; done
$ gedit compiler/source/Cake.h
- comment out Plugin_CgProgramManager line
$ gedit media/config.yaml
# Graphics
device:opengl
width:1024
height:768
depth:32
aa:0
vsync:Yes
fullscreen:No
$ gedit media/resources.cfg
# Resource locations to be added to the 'boostrap' path
# This also contains the minimum you need to use the Ogre example framework
[Bootstrap]
FileSystem=media/Essential/Boot/
# Resource locations to be added to the default path
[General]
FileSystem=media/
FileSystem=media/Essential/
FileSystem=media/Essential/BetaGUI/
FileSystem=media/Essential/BetaGUIExtended/
FileSystem=media/Essential/Fonts/
FileSystem=media/SimpleMeshes/
FileSystem=media/ComplexMeshes/
FileSystem=media/Env/
$ ./cakebox
slanning
24-12-2007 21:42:48
282MB when building as static library (.a)
and still 84MB when creating a shared object library (.so)
(....)
Does that match any of your results?
$ ls -l /usr/lib/libNxOgre.so
-rwxrwxr-x 1 root root 73494036 2007-12-21 22:32 /usr/lib/libNxOgre.so
Nazgul
25-12-2007 08:03:41
$ strip libnxogre.a
$ strip libnxogre.so
-rw-r--r-- 1 user group 282M 20. Dez 22:35 libnxogre.a
-rw-r--r-- 1 user group 1,7M 20. Dez 04:46 libnxogre.a-stripped
$ tar xjvf cake-linux.tar.bz2
$ cd cake
cake$ qmake
cake$ make
cake$ bin/cake
Gemuetlich
26-02-2008 23:02:48
AC_INIT([NxOgre], [1.0], [])
AC_CONFIG_AUX_DIR([compiler/build])
AM_INIT_AUTOMAKE([-Wall -Werror foreign])
AC_PROG_LIBTOOL
AC_CONFIG_HEADERS([config.h])
AC_PROG_CXX
AC_PROG_CC
AC_C_CONST
AC_HEADER_STDBOOL
AC_TYPE_SIZE_T
PKG_CHECK_MODULES(OGRE, [OGRE >= 1.2])
AC_SUBST(OGRE_CFLAGS)
AC_SUBST(OGRE_LIBS)
AC_CONFIG_FILES([
Makefile
source/Makefile
])
AC_OUTPUT
lib_LTLIBRARIES = libNxOgre.la
libNxOgre_la_CPPFLAGS= -DNX_DEBUG -DNX32 -DNXOGRE_LINUX -DNX_LINUX -DLINUX -I$(srcdir)/../include -I$(PHYSX_DIR)/SDKs/Cooking/Include -I$(PHYSX_DIR)/SDKs/Foundation/include -I$(PHYSX_DIR)/SDKs/NxCharacter/include -I$(PHYSX_DIR)/SDKs/NxExtensions/include -I$(PHYSX_DIR)/SDKs/Physics/include -I$(PHYSX_DIR)/SDKs/PhysXLoader/include -DNX_DISABLE_FLUIDS $(OGRE_CFLAGS)
libNxOgre_la_SOURCES = NxOgreActorBlueprint.cpp NxOgreParams.cpp NxOgreActor.cpp NxOgrePhysXDriver.cpp NxOgreBody.cpp NxOgrePose.cpp NxOgreCharacterController.cpp NxOgreRaycaster.cpp NxOgreCharacter.cpp NxOgreRemoteDebuggerConnection.cpp NxOgreCharacterHitReport.cpp NxOgreSceneBlueprint.cpp NxOgreCloth.cpp NxOgreSceneContactController.cpp NxOgreClothRaycaster.cpp NxOgreSceneController.cpp NxOgreCompound.cpp NxOgreScene.cpp NxOgreContainer.cpp NxOgreSceneTriggerController.cpp NxOgreCooking.cpp NxOgreSerialiser.cpp NxOgreDebugRenderer.cpp NxOgreShapeBlueprintConvex.cpp NxOgreDominanceGroup.cpp NxOgreShapeBlueprint.cpp NxOgreEnumsBlueprint.cpp NxOgreShapeBlueprintMesh.cpp NxOgreError.cpp NxOgreShapeBlueprintPrimitives.cpp NxOgreFluid.cpp NxOgreShapeBlueprintTerrain.cpp NxOgreFluidMesh.cpp NxOgreShapeBlueprintWheel.cpp NxOgreForceField.cpp NxOgreShapeConvex.cpp NxOgreGlobalFunctions.cpp NxOgreShape.cpp NxOgreGroup.cpp NxOgreShapeMesh.cpp NxOgreHelper.cpp NxOgreShapePrimitives.cpp NxOgreHelpers.cpp NxOgreShapeTerrain.cpp NxOgreIntersection.cpp NxOgreShapeWheel.cpp NxOgreJoint.cpp NxOgreSimpleShape.cpp NxOgreJointSet1.cpp NxOgreSkeleton.cpp NxOgreJointSet2.cpp NxOgreSoftBody.cpp NxOgreJSON.cpp NxOgreStable.cpp NxOgreJSONRead.cpp NxOgreSummary.cpp NxOgreJSONWrite.cpp NxOgreTesting.cpp NxOgreLog.cpp NxOgreTrigger.cpp NxOgreMaterial.cpp NxOgreUserAllocator.cpp NxOgreMeshManager.cpp NxOgreUserStream.cpp NxOgreMotor.cpp NxOgreWorldBlueprint.cpp NxOgreNxSerialiser.cpp NxOgreWorld.cpp
ProfMobius
25-03-2008 17:04:57
*** glibc detected *** ./cakebox: double free or corruption (!prev): 0x097872f0 ***
======= Backtrace: =========
/lib/libc.so.6[0x60bac1]
/lib/libc.so.6(cfree+0x90)[0x60f0f0]
/lib/libc.so.6(fclose+0x136)[0x5fa3b6]
/usr/lib/libNxOgre.so(_ZN10UserStreamD1Ev+0x39)[0x2991b9]
/usr/lib/libNxOgre.so(_ZN6NxOgre32NxGenerateConvexMeshFromOgreMeshERKSsP7NxScene6NxVec3S1_+0xa0f)[0x2a8101]
/usr/lib/libNxOgre.so(_ZN6NxOgre11ConvexShape23_bindToActorDescriptionEPNS_5ActorEjR7NxArrayIP11NxShapeDesc18NxAllocatorDefaultE+0x286)[0x21600c]
/usr/lib/libNxOgre.so(_ZN6NxOgre5Actor12_createActorEPNS_14ShapeBlueprintERKNS_4PoseENS_11ActorParamsE+0x34c)[0x25faf4]
/usr/lib/libNxOgre.so(_ZN6NxOgre5ActorC2ERKSsPNS_5SceneEPNS_14ShapeBlueprintERKNS_4PoseENS_11ActorParamsE+0xb67)[0x261bf9]
/usr/lib/libNxOgre.so(_ZN6NxOgre4BodyC1ERKSsPNS_5SceneEPNS_14ShapeBlueprintERKNS_4PoseENS_11ActorParamsE+0x5c)[0x2a0b34]
/usr/lib/libNxOgre.so(_ZN6NxOgre5Scene10createBodyERKSsPNS_14ShapeBlueprintERKNS_4PoseENS_11ActorParamsE+0x7d)[0x26a5e7]
./cakebox[0x805fcb1]
./cakebox[0x806121e]
./cakebox[0x8061709]
./cakebox[0x8064aa0]
./cakebox[0x805082d]
./cakebox[0x805087e]
/usr/lib/libOgreMain-1.4.6.so(_ZN4Ogre4Root17_fireFrameStartedERNS_10FrameEventE+0xd5)[0x38a2eb5]
/usr/lib/libOgreMain-1.4.6.so(_ZN4Ogre4Root17_fireFrameStartedEv+0x67)[0x38a34d7]
/usr/lib/libOgreMain-1.4.6.so(_ZN4Ogre4Root14renderOneFrameEv+0x22)[0x38a3512]
/usr/lib/libOgreMain-1.4.6.so(_ZN4Ogre4Root14startRenderingEv+0x41)[0x38a3581]
./cakebox[0x80521f8]
./cakebox[0x8052259]
./cakebox[0x805705f]
/lib/libc.so.6(__libc_start_main+0xe0)[0x5b8390]
./cakebox(__gxx_personality_v0+0x239)[0x804f841]
======= Memory map: ========
00110000-00111000 r-xp 00110000 00:00 0 [vdso]
00111000-00374000 r-xp 00000000 08:06 3288294 /usr/lib/libNxOgre.so
00374000-0037e000 rwxp 00263000 08:06 3288294 /usr/lib/libNxOgre.so
0037e000-00383000 rwxp 0037e000 00:00 0
00383000-003a1000 r-xp 00000000 08:06 3295254 /usr/lib/libOIS-1.2.0.so
003a1000-003a2000 rwxp 0001e000 08:06 3295254 /usr/lib/libOIS-1.2.0.so
003a2000-003be000 r-xp 00000000 08:06 3288688 /usr/lib/libgdk_pixbuf-2.0.so.0.1200.5
003be000-003bf000 rwxp 0001b000 08:06 3288688 /usr/lib/libgdk_pixbuf-2.0.so.0.1200.5
003bf000-003e0000 r-xp 00000000 08:06 3316012 /usr/lib/libjpeg.so.62.0.0
003e0000-003e1000 rwxp 00020000 08:06 3316012 /usr/lib/libjpeg.so.62.0.0
003e1000-003e5000 r-xp 00000000 08:06 3315716 /usr/lib/libXxf86vm.so.1.0.0
003e5000-003e6000 rwxp 00003000 08:06 3315716 /usr/lib/libXxf86vm.so.1.0.0
003e6000-003e8000 rwxp 00000000 00:0f 1015 /dev/zero
003fd000-004c7000 r-xp 00000000 08:06 716019 /lib/libglib-2.0.so.0.1400.6
004c7000-004c8000 rwxp 000ca000 08:06 716019 /lib/libglib-2.0.so.0.1400.6
004c8000-00537000 r-xp 00000000 08:06 3318520 /usr/lib/libGLU.so.1.3.070002
00537000-00538000 rwxp 0006f000 08:06 3318520 /usr/lib/libGLU.so.1.3.070002
00541000-00556000 r-xp 00000000 08:06 1562227 /usr/lib/libILU.so.1.0.0
00556000-00557000 rwxp 00014000 08:06 1562227 /usr/lib/libILU.so.1.0.0
00559000-0055f000 r-xp 00000000 08:06 1562262 /usr/lib/libzzip-0.so.13.0.49
0055f000-00560000 rwxp 00005000 08:06 1562262 /usr/lib/libzzip-0.so.13.0.49
0057f000-0059a000 r-xp 00000000 08:06 716359 /lib/ld-2.7.so
0059a000-0059b000 r-xp 0001a000 08:06 716359 /lib/ld-2.7.so
0059b000-0059c000 rwxp 0001b000 08:06 716359 /lib/ld-2.7.so
005a2000-006f5000 r-xp 00000000 08:06 718028 /lib/libc-2.7.so
006f5000-006f7000 r-xp 00153000 08:06 718028 /lib/libc-2.7.so
006f7000-006f8000 rwxp 00155000 08:06 718028 /lib/libc-2.7.so
006f8000-006fb000 rwxp 006f8000 00:00 0
006fd000-00724000 r-xp 00000000 08:06 718037 /lib/libm-2.7.so
00724000-00725000 r-xp 00026000 08:06 718037 /lib/libm-2.7.so
00725000-00726000 rwxp 00027000 08:06 718037 /lib/libm-2.7.so
00728000-0072b000 r-xp 00000000 08:06 718038 /lib/libdl-2.7.so
0072b000-0072c000 r-xp 00002000 08:06 718038 /lib/libdl-2.7.so
0072c000-0072d000 rwxp 00003000 08:06 718038 /lib/libdl-2.7.so
0072f000-00744000 r-xp 00000000 08:06 718034 /lib/libpthread-2.7.so
Aborted
Promo
05-04-2008 22:37:01
betajaen
05-04-2008 22:45:00
reptor
05-04-2008 22:49:06
Promo
05-04-2008 22:55:38
You could always cook the meshes using Flour in Windows, then load them in Linux.
mgoodman
23-05-2008 20:32:09
You don't have to use cooked meshes in 0.9, it will convert them on the fly.
Body *myBody = mScene->createBody("robot.mesh",new CubeShape(10,10,10),Vector3(0,100,0), "mass: 10");
Body *myBody = mScene->createBody("robot.mesh",new ConvexShape("robot.mesh"),Vector3(50,50,100), "mass: 50");
*** glibc detected *** /home/mloyer/planet2/trunk/code/planet2: double free or corruption (!prev): 0x08af6568 ***
======= Backtrace: =========
/lib/tls/i686/cmov/libc.so.6[0xb6fd5a85]
/lib/tls/i686/cmov/libc.so.6(cfree+0x90)[0xb6fd94f0]
/lib/tls/i686/cmov/libc.so.6(fclose+0x134)[0xb6fc43e4]
/opt/nxogre/lib/libNxOgre_d.so(_ZN10UserStreamD1Ev+0x39)[0xb7325cd3]
/opt/nxogre/lib/libNxOgre_d.so(_ZN6NxOgre32NxGenerateConvexMeshFromOgreMeshERKSsP7NxScene6NxVec3S1_+0x9eb)[0xb731fc5f]
/opt/nxogre/lib/libNxOgre_d.so(_ZN6NxOgre11ConvexShape23_bindToActorDescriptionEPNS_5ActorEjR7NxArrayIP11NxShapeDesc18NxAllocatorDefaultE+0x286)[0xb7316a42]
/opt/nxogre/lib/libNxOgre_d.so(_ZN6NxOgre5Actor12_createActorEPNS_14ShapeBlueprintERKNS_4PoseENS_11ActorParamsE+0x34c)[0xb7396824]
/opt/nxogre/lib/libNxOgre_d.so(_ZN6NxOgre5ActorC2ERKSsPNS_5SceneEPNS_14ShapeBlueprintERKNS_4PoseENS_11ActorParamsE+0xa2c)[0xb73986b4]
/opt/nxogre/lib/libNxOgre_d.so(_ZN6NxOgre4BodyC1ERKSsPNS_5SceneEPNS_14ShapeBlueprintERKNS_4PoseENS_11ActorParamsE+0x5c)[0xb739dd3a]
/opt/nxogre/lib/libNxOgre_d.so(_ZN6NxOgre5Scene10createBodyERKSsPNS_14ShapeBlueprintERKNS_4PoseENS_11ActorParamsE+0x7d)[0xb735a9df]
/home/mloyer/planet2/trunk/code/planet2[0x806f6fe]
/home/mloyer/planet2/trunk/code/planet2[0x806f90c]
/home/mloyer/planet2/trunk/code/planet2[0x807a2ea]
/lib/tls/i686/cmov/libc.so.6(__libc_start_main+0xe0)[0xb6f80450]
/home/mloyer/planet2/trunk/code/planet2(_ZN4Ogre12SceneManager21_applySceneAnimationsEv+0x61)[0x8056111]
dpb
28-07-2008 16:08:17
betajaen
28-07-2008 16:58:23
Dusk
28-07-2008 22:57:17
I'm going to slowly attempt to get Ogre compiled then port NxOgre over, properly this time - with projects and makefiles
dpb
29-07-2008 18:32:37
nargil
29-07-2008 23:47:54
dpb
18-09-2008 01:18:57
jonnys
28-09-2008 21:27:38