FFTW Build Android - android

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.,

Related

Building dictool_aosp.jar from source

I couldn't be able to build dictool_aosp.jar. I downloaded the aosp source from the repository then run the following commands:
source build/envsetup.sh
lunch aosp_flo-userdebug
make -j3
make dictool_aosp
But, I got the following error:
including ./system/vold/Android.mk ...
including ./tools/external/fat32lib/Android.mk ...
make: *** No rule to make target `dictool_aosp'. Stop.
#### make failed to build some targets (01:02 (mm:ss)) ####
Can you please guide me on how to build the jar file?
I have also tried to build from the directory using mm and mma and got the following result:
$ cd packages/inputmethods/LatinIME/tools/dicttool/
$ mma
...
including ./tools/external/fat32lib/Android.mk ...
No private recovery resources for TARGET_DEVICE flo
make: Entering directory `/android-repo'
make: Nothing to be done for `all_modules'.
make: Leaving directory `/android-repo'
#### make completed successfully (24 seconds) ####
$ mm
...
No private recovery resources for TARGET_DEVICE flo
make: Entering directory `/android-repo'
make: *** No rule to make target `/temp/out/dist/android-repo/host/linux-x86/framework/junit.jar', needed by `/temp/out/dist/android-repo/host/common/obj/JAVA_LIBRARIES/dicttool_aosp_intermediates/javalib.jar'. Stop.
make: Leaving directory `/android-repo'
Although mma succeeded there is no jar file in the output directory.
I assume you receive this error when you run make dictool_aosp:
make: *** No rule to make target `dictool_aosp'. Stop.
Means there is no make target named dictool_aosp.
You could try to build dictool_aosp by checking the Android.mk of that package. Look if there is a LOCAL_MODULE definition. If there is one you can use this one for your make call. If not you can add that or simply run mm on top of your project directory you want to build.
Some useful hints:
You can see all make targets with: make modules
You can build a subproject with mm (builds all of the modules in the current directory) or use mma (builds all of the modules in the current directory with dependencies)

NDK Build Error,Make.exe no such file or directory

i am trying to build the project .i have added native support to it.i am getting the following error in cosole.please help me
"> 16:10:52 **** Clean-only build of configuration Default for project MainActivity ****
"E:\NDK\android-ndk64-r10b-windows-x86_64\android-ndk-r10b\ndk-build.cmd" clean
make.exe: E:\NDK\android-ndk64-r10b-windows-x86_64\android-ndk-r10b\build/core/build-local.mk: No such file or directory
make.exe: * No rule to make target `E:\NDK\android-ndk64-r10b-windows-x86_64\android-ndk-r10b\build/core/build-local.mk'. Stop.**

compiling cocos2d-x for android

Did a project on the cocos2d-x for ios. Now try to run it for android.Sobirayu using eclipse. Eliminated like all the mistakes and now he writes:
**** Build of configuration Default for project Cut2 ****
bash /Users/Banck/cocos2d-x-2.2-2.1/projects/Cut2/proj.android/build_native.sh
NDK_ROOT = /Users/Banck/Downloads/android-ndk-r9b
COCOS2DX_ROOT = /Users/Banck/cocos2d-x-2.2-2.1/projects/Cut2/proj.android/../../..
APP_ROOT = /Users/Banck/cocos2d-x-2.2-2.1/projects/Cut2/proj.android/..
APP_ANDROID_ROOT = /Users/Banck/cocos2d-x-2.2-2.1/projects/Cut2/proj.android
Using prebuilt externals
Android NDK: WARNING: APP_PLATFORM android-19 is larger than android:minSdkVersion 8 in ./AndroidManifest.xml
Android NDK: WARNING:/Users/Banck/cocos2d-x-2.2-2.1/projects/Cut2/proj.android/../../../cocos2dx/Android.mk:cocos2dx_static: LOCAL_LDLIBS is always ignored for static libraries
make: Entering directory `/Users/Banck/cocos2d-x-2.2-2.1/projects/Cut2/proj.android'
[armeabi] Install : libcocos2dcpp.so => libs/armeabi/libcocos2dcpp.so
make: Leaving directory `/Users/Banck/cocos2d-x-2.2-2.1/projects/Cut2/proj.android'
**** Build Finished ****
And that takes a message you need to fix what is wrong.But what's wrong? It seems to be all right already ... Advice please
It seems ok, you just need to use this 'ant debug' command to generate an .apk package for you.

setting Android NDK giving error : Your APP_BUILD_SCRIPT points to an unknown file

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

build Qualcomm's FastCV sample

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.

Categories

Resources