NDK build errors

A place to discuss everything related to Newton Dynamics.

Moderators: Sascha Willems, walaber

Re: NDK build errors

Postby Slick » Tue Aug 10, 2021 11:33 am

I modified my flags to the following and it now works (subject to testing):

Code: Select all
LOCAL_CPPFLAGS := -DDG_USE_THREAD_EMULATION -D_CRT_SECURE_NO_WARNINGS -D_POSIX_VER
LOCAL_CPPFLAGS += -DDG_SCALAR_VECTOR_CLASS
LOCAL_CPPFLAGS += -g -DANDROID -fdata-sections -ffunction-sections -funwind-tables -fstack-protector-strong -no-canonical-prefixes -D_FORTIFY_SOURCE=2 -march=armv7-a -mthumb -Wformat -Werror=format-security   -O0 -fno-limit-debug-info  -fPIC   -fPIC -fpermissive -std=c++11
Slick
 
Posts: 330
Joined: Sat Feb 07, 2004 7:24 pm
Location: LA last and France now

Re: NDK build errors

Postby Julio Jerez » Tue Aug 10, 2021 12:26 pm

why don't you try 4.0?
oh I am so sorry, I delete you first question by mistake, I was try to delete my last post about github.
I am trying to do a NDK build from the command line in Windows 10.

I've hit an error and I'm not sure if I need to define something. I noticed that dgVector.h has changed since I last used it some the ifdef might be causing a problem.

Anyway here is my error:

CODE: SELECT ALL
S:\NDKdependencies>cmd.exe /c ndk-build APP_BUILD_SCRIPT=Newton\jni\Android.mk NDK_DEBUG=0
fcntl(): Bad file descriptor
Android NDK: APP_PLATFORM not set. Defaulting to minimum supported version android-16.
Newton\jni\Android.mk:13: ---------------------------- Building newtondynamics
[armeabi-v7a] Compile++ thumb: newtondynamics <= dg.cpp
[armeabi-v7a] Compile++ thumb: newtondynamics <= dgAABBPolygonSoup.cpp
In file included from S:\NewtonGIT\newton-3.14\sdk\dgCore\dgAABBPolygonSoup.cpp:26:
In file included from S:\NewtonGIT\newton-3.14\sdk\dgCore/dgMatrix.h:28:
In file included from S:\NewtonGIT\newton-3.14\sdk\dgCore/dgVector.h:35:
S:\NewtonGIT\newton-3.14\sdk\dgCore/dgVectorArmNeon.h:1129:27: error: unknown type name 'float32x4_t'
DG_INLINE dgVector(const float32x4_t type)

sorry about that.

those seem arm neon instructions are you using that?
Julio Jerez
Moderator
Moderator
 
Posts: 12249
Joined: Sun Sep 14, 2003 2:18 pm
Location: Los Angeles

Re: NDK build errors

Postby Slick » Wed Aug 11, 2021 2:03 am

No I am not using arm specifically. I just want armv7a and arm64a which I now seem to have along with the x86 x64 but I don't think they are too popular on Android.

I will switch to 4.0. I haven't had much time to program and updating libraries etc has taken a bunch of it.

Next on my list is to try out 4.0.
Slick
 
Posts: 330
Joined: Sat Feb 07, 2004 7:24 pm
Location: LA last and France now


Return to General Discussion

Who is online

Users browsing this forum: No registered users and 7 guests

cron