I try to build the Qualcomm's FastCV sample fastcorner. I add the project file into Eclipse, and follow the instruction to "add C/C++ attributes to the project" using "Convert to a C++ Project". I got nothing in the
I try to clean the project, got follow errors:
**** Clean-only build of configuration Default for project FastCVSample ****
make clean
Host OS was auto-detected: windows
gawk.exe": fatal: can't open source file "/cygdrive/d/Android/android-ndk-r7/build/awk/check-awk.awk" for reading (No such file or directory)
/cygdrive/d/Android/android-ndk-r7/build/core/init.mk:258: *** Android NDK: Aborting. . Stop.
Android NDK: Host 'awk' tool is outdated. Please define HOST_AWK to point to Gawk or Nawk !
make: *** [clean] Error 2
make[1]: Entering directory `/cygdrive/d/Android/fastcv-android-1-0-3/samples/fastcorner'
make[1]: Leaving directory `/cygdrive/d/Android/fastcv-android-1-0-3/samples/fastcorner'
Makefile:57: recipe for target `clean' failed
**** Build Finished ****
It seems eclipse can not find "awk", but I can successfully execute awk in cygwin, and I also set the C/C++ build envirement variable in "HOST_AWK" in eclipse, nothing helps.
Is there anyone know what should I do?
I had the same problem on ndk-r7 and I had to rename ndk/prebuild/windows/bin/awk.exe to _awk.exe.
In ndk-r7b I don't have this issue.
Related
I am running Windows 8.1 trying to start cocos2d-x. I've got version 3.4 on the system and every time I try building the hello world app the following shows up:
No rule to make target d:/android-ndk/sources/android/cpufeatures/cpu-features.c', needed by obj/local/armeabi/objs-debug/cpufeatures/cpu-features.o`
Waiting for unfinished jobs....
StaticLibrary : libcocos2dandroid.a
make: Leaving directory C:/android/cocos2d-x-3.4/NEW_PROJECTS_DIR/MyGame/proj.android
Ndk build failed
C:\android\cocos2d-x-3.4\NEW_PROJECTS_DIR\MyGame>`
I am using the ndk r9 for this and it's located at c:/android/adt/ndk.
I've tried ndk r10d as well but it brings up the following error instead:
collect2.exe: error: ld returned 1 exit status
make: *** [obj/local/armeabi/libcocos2dcpp.so] Error 1
make: Leaving directory `C:/android/cocos2d-x-3.4/tutorialV3CPPWindows/proj.andr
oid'
Ndk build failed
But I think that the problem is with the ndk. I am quite new to this and have been using tutorials and guides, so detail would be appreciated.
If you use eclipse,check your NDK_ROOT path
the error info
No rule to make target d:/android-ndk/sources/android/cpufeatures/cpu-features.c'
but your ndk r9 is atc:/android/adt/ndk
They are not the same.
I'm running a sample application given in android-ndk, i have done basic settings like setting NDK Path at windows->preferences->android->NDK . Adding native support into project, included directories at c/c++ genereal-> paths and symbols -> includes but project is still showing error , if i clean the project it will generate error shown below . Any one knows what this errors means and what is the solution for this?
**** Clean-only build of configuration Default for project HelloJni ****
F:\android-ndk-r9-windows-x86\android-ndk-r9\ndk-build.cmd clean
Android NDK: Your APP_BUILD_SCRIPT points to an unknown file: ;F:\android-ndk-r9-windows-x86\android-ndk-r9/jni/Android.mk
F:/android-ndk-r9-windows-x86/android-ndk-r9/build/core/add-application.mk:176: *** Android NDK: Aborting... . Stop.
**** Build Finished ****
Seems like ndk-build looks for jni/Android.mk under NDK directory and it is clearly wrong. Before running ndk-build, you should change your directory to project directory. For ease of use, add NDK directory to Path in your environment variables first, then change your directory to project directory and run ndk-build then. Like (assuming NDK directory is added to environment variables):
cd F:\path\to\project
ndk-build
I just follow this sophisticated and nice manual
compiling fftw3 in android ndk
I succesfully build config.h file but in this next step with Android.mk:
IAm stack becouse I try build this and Console says:
12:53:23 **** Incremental Build of configuration Default for project F ileBroswerActivity ****
sh "C:\\Users\\Peťulka\\Desktop\\android-ndk-r5b-windows\\android-ndk-r5b\\ndk-build" all
Invalid attribute name:
package
/c/Users/Peťulka/Desktop/GUI/FileBroswer/jni/Android.mk:2: /fftw3/project/jni/Android.mk: No such file or directory
/c/Users/Peťulka/Desktop/GUI/FileBroswer/jni/Android.mk:2: /fftw3/project/jni/Android.mk: No such file or directory
make.exe: *** No rule to make target `/fftw3/project/jni/Android.mk'. Stop.
12:53:29 Build Finished (took 6s.316ms)
But I have this ANdroid.mk file ! in this path I check my project 10 times, I dont know where i s problem.,
I've been trying to build Android WebKit from source (from here https://github.com/android/platform_external_webkit), but haven't had any success so far. I've run make and ndk-build from the root directory of my repo copy and from from the Source directory inside it, with the following results:
make from the root directory (makes sense, because there is no Makefile),
make: *** No targets specified and no makefile found. Stop.
make from the /Source directory:
make[1]: Entering directory `/webkit/Source/JavaScriptGlue'
../Makefile.shared:2: ../../Makefile.shared: No such file or directory
make[1]: *** No rule to make target `../../Makefile.shared'. Stop.
make[1]: Leaving directory `/webkit/Source/JavaScriptGlue'
make: *** [all] Error 2
ndk-build from root and ./Source:
Android NDK: Could not find application project directory !
Android NDK: Please define the NDK_PROJECT_PATH variable to point to it.
<NDK>/build/core/build-local.mk:130: *** Android NDK: Aborting . Stop.
Can anyone advise as to what I'm doing wrong? I've read mention of Android needing to be compiled as a whole, but since this is 'external', I thought it would compile standalone. Am I wrong about that? Or is there some configuration step I've missed? Or anything else?
Thanks for the help.
This doesn't allow you to get a build fully working, I suspect you did the same as me and cloned to a folder called webkit.
If you rename that to jni and then run ndk-build from the folder containing jni, it does at least get past the problem you mention. I now get the error:
jni/Android.mk:314: external/stlport/libstlport.mk: No such file or directory
Android NDK: Trying to define local module 'webcore' in jni/Source/WebKit/Android.mk.
Android NDK: But this module was already defined by jni/Source/WebKit/Android.mk.
/cygdrive/e/android-ndk-r7/build/core/build-module.mk:34: *** Android NDK: Aborting. . Stop.
I'm still trying to figure out how to solve this new error.
I try to run my project in windows. Project use android ndk. I install Cygwin and add "C:\cygwin\bin" in PATH. Instal GnuMake, and set variable GNUMAKE = /cygdrive/c/Art/GnuMake/bin/make.exe. Also I add native support to my project in Eclipse.
When I try run this project, Eclipse Show:
**** Build of configuration Default for project FFWall ****
C:\cygwin\bin\bash.exe C:\Art\android-ndk\ndk-build V=1
make: *** No targets specified and no makefile found. Stop.
ERROR: Your GNUMAKE variable is defined to an invalid name: /cygdrive/c/Art/GnuMake/bin/make.exe
Please fix it to point to a valid make executable (e.g. /usr/bin/make)
**** Build Finished ****
How I can resolve this issue?
I guess you are using the GNU's Make.exe, try the make.exe present in the Cygwin's bin folder.
Use GNUMAKE = C:\cygwin\bin\bash.exe It`s working for me