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

Problem compiling on Android NDK #1

Open
albertodemichelis opened this issue Jan 11, 2017 · 3 comments
Open

Problem compiling on Android NDK #1

albertodemichelis opened this issue Jan 11, 2017 · 3 comments

Comments

@albertodemichelis
Copy link

albertodemichelis commented Jan 11, 2017

Hi, I tried to compile a project with your XMath with android's NDK (r12b) and It generated loads of errors. Most of the errors seem related to vector type conversion(uint32x4_t to float32x4_t etc...).
Is there any compiler flag that is required for compiling on android?

my settings are like this and I've set "-flax-vector-conversions"

#define BUILD_INTRINSICS_LEVEL 1
#if defined(QN_ANDROID)
#define BUILD_ARCH_ARM
#define VE_COMPILER_GCC
#define BUILD_PLATFORM_ANDROID

#elif defined(QN_IOS)
#define BUILD_ARCH_ARM
#define VE_COMPILER_GCC
#define BUILD_PLATFORM_IOS

#elif defined(QN_LINUX)
#define VE_COMPILER_GCC
#endif


#if defined(BUILD_ARCH_ARM)
#   if  BUILD_INTRINSICS_LEVEL > 0
#       define _XM_ARM_NEON_INTRINSICS_
#   else
#       define _XM_NO_INTRINSICS_
#   endif
#else
#   if BUILD_INTRINSICS_LEVEL > 0
#       define _XM_SSE_INTRINSICS_
#   endif
#   if BUILD_INTRINSICS_LEVEL > 1
#       define _XM_SSE3_INTRINSICS_
#       define _XM_SSE4_INTRINSICS_
#       define _XM_AVX_INTRINSICS_
#   endif
#   if BUILD_INTRINSICS_LEVEL > 2
#       define _XM_F16C_INTRINSICS_
#   endif
#endif
#if defined(VE_COMPILER_GCC) || defined(BUILD_PLATFORM_IOS)
#   define _XM_NO_CALL_CONVENTION_
#	include <stdint.h>
#endif
#if defined(BUILD_PLATFORM_IOS) || defined(BUILD_PLATFORM_ANDROID)
#   define _XM_ARM_NEON_NO_ALIGN_
#endif

thank you
Alberto

@Napoleon314
Copy link
Owner

Napoleon314 commented Jan 12, 2017 via email

@Napoleon314
Copy link
Owner

Napoleon314 commented Jan 12, 2017 via email

@albertodemichelis
Copy link
Author

Thank you for the quick reply. Yes I use gcc, that might be the problem.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants