Spatiallite for ARM

238 views
Skip to first unread message

Kumar Ashutosh

unread,
Jan 26, 2016, 2:10:54 PM1/26/16
to SpatiaLite Users

I am trying to cross compile spatialite for ARM . I am getting this error on terminal  
configure: error: could not find libgeos_c (or obsolete 'libgeos_c' < v.3.3.0 found) - you may need to specify the directory of a geos-config file using --with-geosconfig.I am providing the geosconfig file . 

When I checked the config log I got these  error 
undefined reference to `GEOSCoveredBy 
skipping incompatible /../../../../libgeos_c.so when searching for -lgeos_c 


a.fu...@lqt.it

unread,
Jan 26, 2016, 3:22:51 PM1/26/16
to spatiali...@googlegroups.com
Hi Kumar,

as the error message suggests "(obsolete 'libgeos_c' < v.3.3.0 found)"
your local copy of libgeos_c.so is heavily outdated, and does not
supports the 'GEOSCoveredBy' API thus causing a linker failure.

please check better which version of GEOS you are using: the current
version is 3.5.0, the previous one was 3.4.2; I strongly discourage
you to use any earlier version because all them are definitely
obsolete nowadays.

bye Sandro

Kumar Ashutosh

unread,
Jan 26, 2016, 3:52:05 PM1/26/16
to SpatiaLite Users
Hi Sandro,

Thanks for Reply 
I am using the latest Version 3.5.0 . The lib created with Geos are these libgeos.so,libgeos-3.5.0.so ,libgeos_c.so.1 libgeos_c_so.1.9.0.
Are these libgeos_c.so.1 /libgeos_c_so.1.9.0 is going to be linked ?

Or am I missing something ?
For Geos Cross Compile I did these steps:

1 Extract Source 
2 export CC = usr/bin/arm-linux-gnueabihf-gcc
3 export LD = usr/bin/arm-linux-gnueabihf-ld
4 ./configure --host=arm-linux --target=arm-linux --prefix=/../.. 

After that executing spatialite configure in new terminal .

a.fu...@lqt.it

unread,
Jan 26, 2016, 4:19:35 PM1/26/16
to spatiali...@googlegroups.com
On Tue, 26 Jan 2016 12:52:05 -0800 (PST), Kumar Ashutosh wrote:
> Hi Sandro,
>
> Thanks for Reply I am using the latest Version 3.5.0 . The lib
> created with Geos are these libgeos.so,libgeos-3.5.0.so
> ,libgeos_c.so.1 libgeos_c_so.1.9.0.
> Are these libgeos_c.so.1 /libgeos_c_so.1.9.0 is going to be linked ?
>

all right so you have installed somewhere geos 3.5.0

>> undefined reference to `GEOSCoveredBy 
>> skipping incompatible /../../../../libgeos_c.so when searching for
>> -lgeos_c 
>

anyway the ./configure script is actually attempting to link
"/../../../../libgeos_c.so", which probably isn't your latest
version of GEOS.
I imagine that you could easily resolve that relative path so
to get a more readable absolute path, then checking if it really
corresponds to your intentions.

the "skipping incompatible" warning probably means that the
library do really exists but it contains binary code not compatible
with your current cross compiler expectations
just try this shell command:

file /../../../../libgeos_c.so

it should return some useful informations about the
the intended CPU architecture

bye Sandro

Kumar Ashutosh

unread,
Jan 26, 2016, 7:16:02 PM1/26/16
to SpatiaLite Users
Ya u r right. Thanks for the information . I am not correctly cross compiling the GEOS .
However i am giving these command for cross compiling GEOS for ARM 

1 Setting CC /../arm-linux-gnueabihf-gcc/lib/include 
2 ./configure --host=arm-linux  --target=arm-linux CC=/usr/bin/arm-linux-gnueabihf-gcc-4.6 LD=/usr/bin/arm-linux-gnueabihf-ld  --prefix=/./././SamplelibPlace 
Am I missing something ? 
Hoping for your help again  

On Tuesday, 26 January 2016 13:10:54 UTC-6, Kumar Ashutosh wrote:

Kumar Ashutosh

unread,
Jan 27, 2016, 2:00:27 PM1/27/16
to SpatiaLite Users
Hi

I build the GEOS for ARM . 
I am getting this  error :configure: error: could not find libgeos_c (or obsolete 'libgeos_c' < v.3.3.0 found) - you may need to specify the directory of a geos-config file using --with-geosconfig.

In the config log I found this
warning: libgeos-3.5.0.so, needed by /../../../..libgeos_c.so, not found (try using -rpath or -rpath-link)
and then whole lot of undefined reference

I tried all the combination i.e setting LD_LIBRARY_PATH/LIBRARY_PATH
Do I need something more  


On Tuesday, 26 January 2016 13:10:54 UTC-6, Kumar Ashutosh wrote:

David Ashman / Zone 7 Engineering, LLC

unread,
May 21, 2018, 8:29:41 PM5/21/18
to SpatiaLite Users
Hi Sandro and Kumar,

Was a build for ARM ever successful?
Reply all
Reply to author
Forward
0 new messages