0
有什么方法可以整合Qt和Physx,所以我可以在Qt Creator中使用Physx?QT Creator与Physx的集成
有什么方法可以整合Qt和Physx,所以我可以在Qt Creator中使用Physx?QT Creator与Physx的集成
不幸的是PhysX是针对/MT
(静态运行时版本)进行编译的,而Qt MSVC使用/MD
。这意味着你将不得不使用/MT
构建一个Qt MSVC静态构建。即使你得到它使用Qt的共享版本来运行你会遇到下面的警告和可能problems:
这个计算器的回答将帮助你得到你开始为QT静态编译:How to build Qt 4.8/5.2 statically under VS2012, using the static MSVC runtime, with Windows XP support?
要在Qt MSVC中使用PhysX库(MinGW与PhysX不兼容),以下是qmake配置示例。
PHYSX = /path/to/physx/library
INCLUDEPATH += $${PHYSX}/Include
LIBS += -L$${PHYSX}/Lib/win64
LIBS += \
-lPhysX3CharacterKinematic_x64 \
-lPhysX3_x64 \
-lPhysX3Common_x64 \
-lPhysX3Cooking_x64 \
-lPhysX3Extensions \
-lPhysX3Vehicle \
-lPhysXProfileSDK \
-lPhysXVisualDebuggerSDK \
-lPxTask
如果不是我要去必须做我的Visual Studio项目下的PhysX物理部分......但后来我如何使用Qt Creator的制作UI是我的项目的接口,在Visual Studio(PhysX物理)项目? – 2011-05-06 00:57:59
我自己并没有使用Qt Creator,但我是否正确地说它使用了mingw?如果我没有记错,mingw不被支持。但我不是100%肯定的。因此,评论,而不是一个答案。 – Bart 2011-05-06 09:31:44
是的,在窗户上。 – dabhaid 2011-05-06 13:51:26