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.
Related
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)
I'm trying to rebuild Limbo Android. I'm on Linux Mint.
All I changed was android-config.mak NDK_ROOT, exported variables NDK_ROOT. I've also exported NDK_MODULE_PATH to /home/pathtoandroidndk/sources, as per README instructions.
From terminal I do cd limbo-android/jni and then make.
Building returns this error:
jni/glib/glib/./libcharset/localcharset.c:22:20: fatal error: config.h: No such file or directory
compilation terminated.
make: *** [obj/local/armeabi-v7a/objs-debug/glib-2.0/./libcharset/localcharset.o] Error 1
make: Leaving directory `/home/me/limbo-android'
I've tried modifing Android.mk following instructions from Android NDK - Additional Include Directories and Unable to find header files - Android NDK, without success.
I came to conclusion that each module inside limbo-android needs it's own config.h file, while libcharset does not have one.
How do I solve this error? Is there a generic config.h (the one from NDK maybe?)
NOTE: I can build it without any problems on Windows 8.1 using mingw.
I want to use in app billing in my android app, for doing this i tried to work with cocos2d-x/plugin-x, but i didn't succeed to integrate it.
I followed this wiki , and i have this message:
Android NDK: /Users/yagoub/XXXX/XXXX/proj.android/../cocos2d/cocos/ui/Android.mk: Cannot find module with tag 'protocols/android' in import path
Android NDK: Are you sure your NDK_MODULE_PATH variable is properly defined ?
Android NDK: The following directories were searched:
Android NDK:
make: Entering directory `/Users/yagoub/XXXXXX/XXXXXXXX/proj.android'
jni/Android.mk:47: *** Android NDK: Aborting. . Stop.
make: Leaving directory `/Users/yagoub/XXXXXX/XXXXXXXXXX/proj.android'
Error running command, return code: 2
Could you please explain to me the steps for doing that correctly?
Thank you for your time and consideration.
While building boot2gecko for d2att, I get
target Strip: libssl (out/target/product/d2att/obj/lib/libssl.so)
make: *** No rule to make target
`NOTICE-TARGET-STATIC_LIBRARIES-lib_driver_cmd_bcmdhd',
needed by `out/target/product/d2att/system/bin/wpa_supplicant'.
Stop.
make: *** Waiting for unfinished jobs....
I have recieved errors that
out/target/product/d2att/obj/STATIC_LIBRARIES/
lib_driver_cmd_bcmdhd_intermediates/lib_driver_cmd_bcmdhd.a
does not exit,
so I built cm9 and copied the files in that folder over.
How can I fix this?
Also, how can I use a prebuilt wpa_supplicant instead?
Get a compiled wpa_supplicant and change the module make file for wpa_supplicant to use $(BUILD_PREBUILT) and specify the binary for the wpa_supplicant. That should avoid the issue. You should only need to tweak the place where the module is defined in the build system to get this to work.
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.