Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Resolved undefined symbol __android_log_print and CP_USE_DOUBLES in arm32 #251

Open
wants to merge 2 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion src/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ if(BUILD_SHARED)
endif(NOT ANDROID)
if(ANDROID OR UNIX)
# need to explicitly link to the math library because the CMake/Android toolchains may not do it automatically
target_link_libraries(chipmunk m)
target_link_libraries(chipmunk m log)
endif(ANDROID OR UNIX)
install(TARGETS chipmunk RUNTIME DESTINATION ${BIN_INSTALL_DIR}
LIBRARY DESTINATION ${LIB_INSTALL_DIR}
Expand Down
5 changes: 1 addition & 4 deletions src/cpHastySpace.c
Original file line number Diff line number Diff line change
Expand Up @@ -231,10 +231,7 @@ int pthread_join(pthread_t thread, void **value_ptr)
#error Compiler not supported.
#endif

#if CP_USE_DOUBLES
#if !__arm64
#error Cannot use CP_USE_DOUBLES on 32 bit ARM.
#endif
#if CP_USE_DOUBLES && __arm64

typedef float64_t cpFloat_t;
typedef float64x2_t cpFloatx2_t;
Expand Down