Skip to content
This repository has been archived by the owner on Mar 17, 2022. It is now read-only.

MIPS Build fails #10

Closed
slashuer opened this issue Mar 13, 2012 · 7 comments
Closed

MIPS Build fails #10

slashuer opened this issue Mar 13, 2012 · 7 comments
Assignees

Comments

@slashuer
Copy link

Prebuilt : libgnustl_static.a <= /sources/cxx-stl/gnu-libstdc++/libs/mips/
SharedLibrary : liblept.so
/home/z/Library/ProgramFiles/android-ndk-r7bm/toolchains/mips-linux-android-4.4.3/prebuilt/linux-x86/bin/../lib/gcc/mips-linux-android/4.4.3/../../../../mips-linux-android/bin/ld: ./obj/local/mips/libgnustl_static.a(math_stubs_float.o): relocation R_MIPS_HI16 against `__gnu_local_gp' can not be used when making a shared object; recompile with -fPIC
./obj/local/mips/libgnustl_static.a: could not read symbols: Bad value
collect2: ld returned 1 exit status
make: *** [obj/local/mips/liblept.so] Error 1

@rmtheis
Copy link
Owner

rmtheis commented Mar 13, 2012

Did you try it on Ubuntu 11.04?

@slashuer
Copy link
Author

No I did not, I don't have a copy installed on my system.
does 11.04 work?

On Mon, Mar 12, 2012 at 10:25 PM, Robert Theis <
[email protected]

wrote:

Did you try it on Ubuntu 11.04?


Reply to this email directly or view it on GitHub:
#10 (comment)

@rmtheis
Copy link
Owner

rmtheis commented Mar 13, 2012

The ordinary non-MIPS build works on 11.04 but not on 11.10, so trying the MIPS build on 11.04 could be worth a shot.

@slashuer
Copy link
Author

OK I will try to build it on 11.04, also I got a new computer running 11.10
and now x86 & arm build perfectly on it.
here is the MIPS NDK I am using
http://developer.mips.com/android/download-android-ndk/

On Mon, Mar 12, 2012 at 11:09 PM, Robert Theis <
[email protected]

wrote:

The ordinary non-MIPS build works on 11.04 but not on 11.10, so trying the
MIPS build on 11.04 could be worth a shot.


Reply to this email directly or view it on GitHub:
#10 (comment)

@rmtheis
Copy link
Owner

rmtheis commented Mar 13, 2012

OK. Thanks. I haven't been able to build on 11.10 at all, so that's why I asked.

@slashuer
Copy link
Author

OK I have tested building on 11.04
here is the result

SharedLibrary : liblept.so
/home/z/Downloads/android-ndk-r7bm/toolchains/mips-linux-android-4.4.3/prebuilt/linux-x86/bin/../lib/gcc/mips-linux-android/4.4.3/../../../../mips-linux-android/bin/ld: ./obj/local/mips/libgnustl_static.a(math_stubs_float.o): relocation R_MIPS_HI16 against `__gnu_local_gp' can not be used when making a shared object; recompile with -fPIC
./obj/local/mips/libgnustl_static.a: could not read symbols: Bad value
collect2: ld returned 1 exit status
make: *** [obj/local/mips/liblept.so] Error 1

@ghost ghost assigned rmtheis Mar 16, 2012
@rmtheis
Copy link
Owner

rmtheis commented May 28, 2012

Compile mips : lept <= gifio.c
In file included from /home/theis/android-ndk-r8/platforms/android-9/arch-mips/usr/include/signal.h:35,
from /home/theis/android-ndk-r8/platforms/android-9/arch-mips/usr/include/sys/select.h:34,
from /home/theis/android-ndk-r8/platforms/android-9/arch-mips/usr/include/unistd.h:34,
from jni/com_googlecode_leptonica_android/src/src/gifio.c:39:
/home/theis/android-ndk-r8/platforms/android-9/arch-mips/usr/include/asm/signal.h:105: warning: 'struct siginfo' declared inside parameter list
/home/theis/android-ndk-r8/platforms/android-9/arch-mips/usr/include/asm/signal.h:105: warning: its scope is only this definition or declaration, which is probably not what you want

Compile mips : lept <= tiffio.c
In file included from /home/theis/android-ndk-r8/platforms/android-9/arch-mips/usr/include/signal.h:35,
from /home/theis/android-ndk-r8/platforms/android-9/arch-mips/usr/include/sys/select.h:34,
from /home/theis/android-ndk-r8/platforms/android-9/arch-mips/usr/include/unistd.h:34,
from jni/com_googlecode_leptonica_android/src/src/tiffio.c:70:
/home/theis/android-ndk-r8/platforms/android-9/arch-mips/usr/include/asm/signal.h:105: warning: 'struct siginfo' declared inside parameter list
/home/theis/android-ndk-r8/platforms/android-9/arch-mips/usr/include/asm/signal.h:105: warning: its scope is only this definition or declaration, which is probably not what you want

Compile++ mips : tess <= chopper.cpp
jni/com_googlecode_tesseract_android/src/wordrec/chopper.cpp: In member function 'BLOB_CHOICE_LIST_VECTOR* tesseract::Wordrec::chop_word_main(WERD_RES*)':
jni/com_googlecode_tesseract_android/src/wordrec/chopper.cpp:699: warning: NULL used in arithmetic

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants