Problems compiling Vimtouch

56 views
Skip to first unread message

flide

unread,
Apr 29, 2014, 10:40:46 PM4/29/14
to vimtouch...@googlegroups.com
Hi Devs,

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

Vytautas Šaltenis

unread,
Apr 30, 2014, 3:03:22 AM4/30/14
to vimtouch...@googlegroups.com
Hi flide,

Did you run ./prepare-clean-checkout.sh?
> --
> You received this message because you are subscribed to the Google Groups "vimtouch-general" group.
> To unsubscribe from this group and stop receiving emails from it, send an email to vimtouch-gener...@googlegroups.com.
> For more options, visit https://groups.google.com/d/optout.



--
Vytautas Šaltenis
On the Web: http://rtfb.lt/

Ravi Agarwal

unread,
Apr 30, 2014, 3:27:26 AM4/30/14
to vimtouch...@googlegroups.com
Hi Vytautas,

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

Message has been deleted
Message has been deleted
Message has been deleted

Vytautas Šaltenis

unread,
Apr 30, 2014, 3:43:17 AM4/30/14
to vimtouch...@googlegroups.com
On Wed, Apr 30, 2014 at 10:27 AM, Ravi Agarwal <flid...@gmail.com> wrote:
> Hi Vytautas,
>
> 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.

Hm. libncurses is cloned by this line:

git clone g...@github.com:momodalo/android_external_libncurses.git -b
vimtouch libncurses

Maybe it failed for some reason when you ran prepare? Try running it
by hand in ./jni.

Ravi Agarwal

unread,
Apr 30, 2014, 9:13:33 AM4/30/14
to vimtouch...@googlegroups.com
Just to be sure, I deleted my local vimtouch repository and started afresh.

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

Ravi Agarwal

unread,
Apr 30, 2014, 10:00:19 AM4/30/14
to vimtouch...@googlegroups.com
I have finally been able to get this running.
Since you pointed out the problem was with libncurses not being there I tried a few other possibilities and the following worked in the end

git clone https://github.com/momodalo/vimtouch.git -b vimtouch libncurses

running this in the jni folder worked.

Thanks for all the help :)

Vytautas Šaltenis

unread,
Apr 30, 2014, 3:34:08 PM4/30/14
to vimtouch...@googlegroups.com
On Wed, Apr 30, 2014 at 5:00 PM, Ravi Agarwal <flid...@gmail.com> wrote:
> Thanks for all the help :)

My pleasure :-). But I wonder why would clone fail from script, but
succeed from command line...
Reply all
Reply to author
Forward
0 new messages