[solved][Android] NDK Error when running ndk-build

Discuss any ports of LÖVE to different platforms.
Post Reply
User avatar
NickRock
Citizen
Posts: 76
Joined: Thu Dec 25, 2014 9:33 pm
Location: Earth
Contact:

[solved][Android] NDK Error when running ndk-build

Post by NickRock »

I'm pretty sure I have installed all the new system variables correctly. NDK version is r9d.

When I run the command ndk-build is gives me this error:

Android NDK: ERROR:C:/Users/Nicolas/NDK/android-ndk-r9d/sources/cxx-stl/gnu-libs
tdc++/Android.mk:gnustl_static: LOCAL_SRC_FILES points to a missing file
Android NDK: Check that C:/Users/Nicolas/NDK/android-ndk-r9d/sources/cxx-stl/gnu
-libstdc++/4.9/libs/armeabi/libgnustl_static.a exists or that its path is correct
C:/Users/Nicolas/NDK/android-ndk-r9d/build/core/prebuilt-library.mk:45: *** Andr
oid NDK: Aborting . Stop.

From what I understood it is looking for this file /sources/cxx-stl/gnu-libstdc++/4.9/libs/armeabi/libgnustl_static.a

But the folder 4.9 doesn't exist. Mine only has the versions 4.8 and 4.6. I found 4.9 in the r10 version but the bitbucket page says that there have been some problems with the latest versions.

How can I fix this issue? It seems like the r9 version of NDK is just too outdated but the latest versions don't work either (according to the bitbucket page).
Last edited by NickRock on Wed Jul 05, 2017 1:24 pm, edited 1 time in total.
Weeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeooow!!
wison27
Prole
Posts: 2
Joined: Fri Jun 23, 2017 12:04 am
Location: Recife

Re: [Android] NDK Error when running ndk-build

Post by wison27 »

Try use the NDK 14b, is generating normally here. See this: https://love2d.org/wiki/Game_Distribution#Android .
User avatar
desman
Prole
Posts: 31
Joined: Fri Jul 08, 2016 7:31 am
Location: JKT48, Indonesia

Re: [solved][Android] NDK Error when running ndk-build

Post by desman »

Your path is too long. Windows command line string only support up to 32,768 characters.

Please check if this a same problem:
https://bitbucket.org/MartinFelis/love- ... d-ndk-r11c
https://stackoverflow.com/questions/765 ... tory-error
maryrosie
Prole
Posts: 1
Joined: Sat Oct 06, 2018 3:55 am
Contact:

Re: [solved][Android] NDK Error when running ndk-build

Post by maryrosie »

I also think the problem you are having is because your path is too long!
Post Reply

Who is online

Users browsing this forum: No registered users and 2 guests