I am trying to compile the vimtouch source-code but the build fails stating the following errors :
-----------------------------------------
-pre-compile:
-compile:
[javac] Compiling 1 source file to /home/flide/Programming/Android/vimtouch/bin/classes
-post-compile:
[exec] Warning: Binary file ./bin/classes/net/momodalo/app/vimtouch/Exec contains net.momodalo.app.vimtouch.Exec
[exec] jni/Android.mk:139: jni/libncurses/Android.mk: No such file or directory
[exec] make: *** No rule to make target `jni/libncurses/Android.mk'. Stop.
BUILD FAILED
/home/flide/Programming/Android/vimtouch/custom_rules.xml:35: exec returned: 2
-------------------------------------------
The above are the last few lines displayed after I run "ant debug"
The last line in the jni/Android.mk is :
include $(VIMTOUCH)/libncurses/Android.mk
Since there is no directory named libncurses anywhere, I tried removing the include from make file but the build process terminated stating it could not find "termcap.h"
Is there something I am doing wrong?
Any help would be much appriciated.
flide
I did. It took me a while to understand android compilation on command line. I have been trying to compile vimtouch for days now and at this point I could not find any help/reference on the error on google.
I have upgraded all references of max android sdk to 19 as i did not have 18 or 17 in projet including all three sub projects.
Apart from that, no change. I followed as mentioned in the readme.md
Flide
these are the last few line after downloading libiconv files by running ./prepare-clean-checkout.sh
-----------------------------------------------------------
Cloning into 'libncurses'...
Permission denied (publickey).
fatal: Could not read from remote repository.
Please make sure you have the correct access rights
and the repository exists.
android-19
Updated project.properties
Updated local.properties
Updated file libraries/emulatorview/proguard-project.txt
Updated project.properties
Updated local.properties
No project name specified, using project folder name 'aFileChooser'.
If you wish to change it, edit the first line of build.xml.
Added file libraries/aFileChooser/build.xml
Added file libraries/aFileChooser/proguard-project.txt
Updated project.properties
Updated local.properties
No project name specified, using project folder name 'SlidingMenu'.
If you wish to change it, edit the first line of build.xml.
Added file libraries/SlidingMenu/build.xml
Added file libraries/SlidingMenu/proguard-project.txt
Error: . is not a valid project (AndroidManifest.xml not found).
Buildfile: /home/flide/Programming/Android/vimtouch/build.xml
default-armeabi:
config:
manifest:
[copy] Copying 1 file to /home/flide/Programming/Android/vimtouch
jni_mk:
[copy] Copying 1 file to /home/flide/Programming/Android/vimtouch/jni
BUILD SUCCESSFUL
Total time: 1 second
---------------------------------------------------------------
I also tried to run the command you provided inside the jni/ directory following was the result:
---------------------------------------------------------------
git clone g...@github.com:momodalo/android_external_libncurses.git -b vimtouch libncurses
Cloning into 'libncurses'...
Permission denied (publickey).
fatal: Could not read from remote repository.
Please make sure you have the correct access rights
and the repository exists.
---------------------------------------------------------------
git clone https://github.com/momodalo/vimtouch.git -b vimtouch libncurses
running this in the jni folder worked.
Thanks for all the help :)