You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This discussion was converted from issue #2191 on April 26, 2021 03:54.
Heading
Bold
Italic
Quote
Code
Link
Numbered list
Unordered list
Task list
Attach files
Mention
Reference
Menu
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
I am using a custom cmake script to build bullet in vs 2017. The applyCentralImpulse only moves in x axis.
Below is the CMAKE script.
cmake_minimum_required(VERSION 3.14.0)
PROJECT(MOBOPlayer)
include_directories( "{CMAKE_CURRENT_LIST_DIR}/../" "{CMAKE_CURRENT_LIST_DIR}/../../bullet3/src" "{CMAKE_CURRENT_LIST_DIR}/../../common" "{CMAKE_CURRENT_LIST_DIR}/../../includes")
link_directories("{CMAKE_CURRENT_LIST_DIR}/../lib")
FILE(GLOB bullet3_1 "{CMAKE_CURRENT_LIST_DIR}/../../bullet3/src/LinearMath/.cpp")
FILE(GLOB bullet3_2 "{CMAKE_CURRENT_LIST_DIR}/../../bullet3/src/Bullet3Common/.cpp")
FILE(GLOB bullet3_3 "{CMAKE_CURRENT_LIST_DIR}/../../bullet3/src/BulletCollision/BroadphaseCollision/.cpp")
FILE(GLOB bullet3_4 "{CMAKE_CURRENT_LIST_DIR}/../../bullet3/src/BulletCollision/CollisionDispatch/.cpp")
FILE(GLOB bullet3_5 "{CMAKE_CURRENT_LIST_DIR}/../../bullet3/src/BulletCollision/CollisionShapes/.cpp")
FILE(GLOB bullet3_6 "{CMAKE_CURRENT_LIST_DIR}/../../bullet3/src/BulletCollision/NarrowPhaseCollision/.cpp")
FILE(GLOB bullet3_7 "{CMAKE_CURRENT_LIST_DIR}/../../bullet3/src/BulletDynamics/ConstraintSolver/.cpp")
FILE(GLOB bullet3_8 "{CMAKE_CURRENT_LIST_DIR}/../../bullet3/src/BulletDynamics/Dynamics/.cpp")
FILE(GLOB bullet3_9 "{CMAKE_CURRENT_LIST_DIR}/../../bullet3/src/BulletDynamics/Featherstone/.cpp")
FILE(GLOB bullet3_10 "{CMAKE_CURRENT_LIST_DIR}/../../bullet3/src/BulletDynamics/MLCPSolvers/.cpp")
FILE(GLOB bullet3_11 "{CMAKE_CURRENT_LIST_DIR}/../../bullet3/src/BulletDynamics/Vehicle/.cpp")
FILE(GLOB bullet3_12 "{CMAKE_CURRENT_LIST_DIR}/../../bullet3/src/BulletDynamics/Character/.cpp")
FILE(GLOB bullet3_13 "{CMAKE_CURRENT_LIST_DIR}/../../bullet3/src/BulletSoftBody/.cpp")
FILE(GLOB bullet3_14 "{CMAKE_CURRENT_LIST_DIR}/../../bullet3/src/BulletInverseDynamics/.cpp")
FILE(GLOB bullet3_15 "{CMAKE_CURRENT_LIST_DIR}/../../bullet3/src/BulletInverseDynamics/details/*.cpp")
FILE(GLOB CommonSrc "{CMAKE_CURRENT_LIST_DIR}/../../common/.h" "{CMAKE_CURRENT_LIST_DIR}/../../common/.cpp")
FILE(GLOB EditorSrc "{CMAKE_CURRENT_LIST_DIR}/../.h" "{CMAKE_CURRENT_LIST_DIR}/../.cpp")
add_compile_definitions(ME_PLAYER)
add_library( bullet "${bullet3_1}" "${bullet3_2}" "${bullet3_3}" "${bullet3_4}" "${bullet3_5}" "${bullet3_6}" "${bullet3_7}" "${bullet3_8}" "${bullet3_9}" "${bullet3_10}" "${bullet3_11}" "${bullet3_12}" "${bullet3_13}" "${bullet3_14}" "${bullet3_15}" )
set_target_properties(bullet PROPERTIES LINKER_LANGUAGE CXX)
add_executable( MOBOPlayer WIN32 "${CommonSrc}" "${EditorSrc}")
set_target_properties(MOBOPlayer PROPERTIES LINKER_LANGUAGE CXX)
target_link_libraries( MOBOPlayer bullet vermilion glfw3_d OpenGL32)
Any help regarding Fixing the issue is appreciated.
Regards,
Pradeep. D
Beta Was this translation helpful? Give feedback.
All reactions