DaveInAus / MailCore2-Android_Lib

2 stars 1 forks source link

Android build fails at step 14 (libetpan) #2

Open triton3 opened 8 years ago

triton3 commented 8 years ago

Hi Dave

Trying to build mailcore2 using the instructions in LibMailCore-AndroidBuildInstructions.pdf It fails when trying to build libetpan for android, with following compile error.

I am wondering if I missed something? I followed all prior steps as per instructions, and I would really appreciate your help in solving this.

...
    config.status: creating config.h
config.status: executing depfiles commands
config.status: executing libtool commands
sed: ./ltmain.sh: No such file or directory
sed: libtoolT: No such file or directory
/bin/sh ~/Downloads/libetpan-master-3/install-sh -d ./include/libetpan/
cd ./include/libetpan/
ln -s -f ../../././libetpan-config.h .
cp: include/libetpan/libetpan-config.h: No such file or directory
cp: include/libetpan/libetpan-config.h: No such file or directory
[armeabi] Compile thumb  : etpan <= base64.c
In file included from ~/Downloads/libetpan-master-3/build-android/jni/../.././src/data-types/base64.c:36:0:
~/Downloads/libetpan-master-3/build-android/jni/../.././src/data-types/base64.h:44:30: fatal error: libetpan-config.h: No such file or directory
 # include "libetpan-config.h"
                              ^
compilation terminated.
make: *** [~/Downloads/libetpan-master-3/build-android/obj/local/armeabi/objs/etpan/__/__/./src/data-types/base64.o] Error 1
cp: ~/Downloads/libetpan-master-3/build-android/obj/local/armeabi/libetpan.a: No such file or directory
[armeabi-v7a] Compile thumb  : etpan <= base64.c
In file included from ~/Downloads/libetpan-master-3/build-android/jni/../.././src/data-types/base64.c:36:0:
~/Downloads/libetpan-master-3/build-android/jni/../.././src/data-types/base64.h:44:30: fatal error: libetpan-config.h: No such file or directory
 # include "libetpan-config.h"
                             ^
compilation terminated.
make: *** [~/Downloads/libetpan-master-3/build-android/obj/local/armeabi-v7a/objs/etpan/__/__/./src/data-types/base64.o] Error 1
cp: ~/Downloads/libetpan-master-3/build-android/obj/local/armeabi-v7a/libetpan.a: No such file or directory
[x86] Compile        : etpan <= base64.c
In file included from ~/Downloads/libetpan-master-3/build-android/jni/../.././src/data-types/base64.c:36:0:
~/Downloads/libetpan-master-3/build-android/jni/../.././src/data-types/base64.h:44:30: fatal error: libetpan-config.h: No such file or directory
 # include "libetpan-config.h"
                              ^
compilation terminated.
make: *** [~/Downloads/libetpan-master-3/build-android/obj/local/x86/objs/etpan/__/__/./src/data-types/base64.o] Error 1
cp: ~/Downloads/libetpan-master-3/build-android/obj/local/x86/libetpan.a: No such file or directory
DaveInAus commented 8 years ago

@triton3 - Apologies again for the delay - I'm trying to rebuild - source has changed and I'm getting the same error I've also added the older 3rd Party API-16 build for libetpan under https://github.com/DaveInAus/MailCore2-Android_Lib/tree/master/libmailcore2-API16/3rd%20Party

triton3 commented 8 years ago

Thank you so much for your response Dave. I will try the built libetpan and let you know how it goes. I wonder if the config/build scripts for libetpan are deleting the original libetpan-config.h, which results in the link being broken. I found this was happening when building openssl; I had to manually copy the headers in include directory to fix broken links. But I havent been able to find a solution for libetpan though.

ghost commented 7 years ago

Still does not work. Got the same error using the master.