iwjd / muparser

Automatically exported from code.google.com/p/muparser
Other
0 stars 0 forks source link

Compiling on Android #5

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1.`export PATH=$PATH:$MY_ANDROID_STANDALONE_TOOLCHAIN/bin`
2.`./configure --disable-samples 
--prefix=$MY_ANDROID_STANDALONE_TOOLCHAIN/sysroot --host=arm-linux-androideabi`

What is the expected output? What do you see instead?
compile everything without any error but it outputs 
checking build system type... x86_64-unknown-linux-gnu
checking host system type... Invalid configuration `arm-linux-androideabi': 
system `androideabi' not recognized
configure: error: /bin/sh build/autoconf/config.sub arm-linux-androideabi 

What version of the product are you using? On what operating system?
Linux localhost.localdomain 3.13.11-100.fc19.x86_64 #1 SMP Wed Apr 23 20:10:57 
UTC 2014 x86_64 x86_64 x86_64 GNU/Linux

Please provide any additional information below.
SEE: 
http://stackoverflow.com/questions/4594736/configure-does-not-recognize-androide
abi
GET: https://www.gnu.org/software/gettext/manual/html_node/config_002eguess.html

NOTE: Android dont support versioned libraries. this did the trick:
Makefile.in 263: 
`@COND_SHARED_1@    $(SHARED_LD_CXX) $@ $(MUPARSER_DLL_OBJECTS)   
$(__muParser_dll___macinstnamecmd) $(__muParser_dll___importlib) 
$(__muParser_dll___macver) $(LDFLAGS)  $(LIBS)`

removed the `$(__muParser_dll___soname_flags)`
perform a conditional check to remove this if compiling for Android.

Alternate solution:
use Android NDK. afaik better and easier (for everyone).

Original issue reported on code.google.com by kuldeepd...@gmail.com on 13 Aug 2014 at 11:27