Spatialite and windows mobile

134 views
Skip to first unread message

Thibaut

unread,
Feb 25, 2009, 5:54:45 AM2/25/09
to SpatiaLite Users
Hy,

I have to develop a mobile application in VB.net (Compact Framework 2)
with a little GIS part. I use SQLite as database. I have tried to use
SpatiaLite to make some basic spatial operations. But when I load the
extension with the "SELECT load_extension('filename')" instruction, I
get the error message "OsError 0x7e (126)". I use "System.Data.SQLite"
as ADO.net provider (http://sqlite.phxsoftware.com/) and the dll
available on the SpatiaLite download page. Is it possible to use
SpatiaLite in mobile application ? Is there others specific dll to
mobile platform ?

Best regards,
Thibaut Gheysen.

Alessandro Furieri

unread,
Mar 2, 2009, 8:36:00 AM3/2/09
to spatiali...@googlegroups.com
Hi Thibaut,

I'm completely unfamiliar with both VB.net and
mobile platforms, so I cannot say you for sure
what kind of problem this one can be.

From a first quick glance, the 0x7e (126)
error seems to be closely related to some
generic problem arising whilst trying to load
an external DLL, but it's very generic because
it can be caused by:

- wrong DLL path
- wrong access permissions / security settings
- wrong DLL version

Let me know any further new on this topic

bye
Sandro

Keith

unread,
Mar 2, 2009, 4:49:50 PM3/2/09
to SpatiaLite Users
Thibaut,

Did you copy the 6 spatialite dll's to the C:\windows\systems32
folder? It may fix your problem.

Keith

Thibaut

unread,
Mar 5, 2009, 11:15:40 AM3/5/09
to SpatiaLite Users
Hi,

I have tried the solution of Keith : copy the 6 dll's to the system
path of windows mobile device (.\windows\system) instead of the
program folder. I always have an error but, now, it's the "OsError
0xc1 (193)"...

Thibaut.

DavidL

unread,
Mar 24, 2009, 5:29:25 AM3/24/09
to SpatiaLite Users
You have to build spatialite for ARM processor (and Windows Mobile
limitation).
It's a bit tricky but possible.

CE adaptations of proj4 and geos are there:
http://mateusz.loskot.net/

Sqlite and Spatialite do not need modifications

libiconv is the hardest part

Alessandro Furieri

unread,
Mar 26, 2009, 5:29:42 AM3/26/09
to spatiali...@googlegroups.com
Hi David,

finally anything is clear to me:
- windows mobile doesn't runs on Intel x86,
but on ARM processors
- so, simply copying the x86 DLLs will
obviously produce a failure, because they
use the "wrong" machine op-codes.

Call for duty:
==============================================
"is anyone in this List interested in building
an ARM precompiled SpatiaLite ?"
==============================================

If YES, I can easily host this too on the
www.gaia-gis.it SpatiaLite's web site.

Any collaboration self-candidature will be
warmly welcomed.

bye, Sandro

blubb...@googlemail.com

unread,
Apr 1, 2009, 12:19:46 PM4/1/09
to SpatiaLite Users
Hello David,

do you have any hints on the toolchain you used?

Thibaut

unread,
Apr 2, 2009, 7:40:20 AM4/2/09
to SpatiaLite Users
Hi,

Unfortunately, I don't have the knowledge to build spatialite for ARM
processor but I found someone that have successfully ported libiconv
to windows ce (http://www2s.biglobe.ne.jp/~dat/java/project/jvm/
diary_en.html).

I hope it can help,
Thibaut.

On 26 mar, 11:29, Alessandro Furieri <a.furi...@lqt.it> wrote:
> Hi David,
>
> finally anything is clear to me:
> - windows mobile doesn't runs on Intel x86,
>   but on ARM processors
> - so, simply copying the x86 DLLs will
>   obviously produce a failure, because they
>   use the "wrong" machine op-codes.
>
> Call for duty:
> ==============================================
> "is anyone in this List interested in building
> an ARM precompiled SpatiaLite ?"
> ==============================================
>
> If YES, I can easily host this too on thewww.gaia-gis.itSpatiaLite's web site.

DavidL

unread,
Apr 3, 2009, 7:55:26 AM4/3/09
to SpatiaLite Users
Hi,

Many thanks for your link Thibaut.

What i basically did to build spatalite on WinCE is:

- built proj4 ce port with visual studio from (http://
mateusz.loskot.net/, project file are available there)
- built geos ce port with visual studio from (http://
mateusz.loskot.net/, project file are available there)
- made my own port of libiconv and made a visual studio project from
scratch to build it (now we have a nice port of libiconv)
- Same for spatialite extension

I would be happy to share but it's not a clean work, i only have
visual studio 2005 projetcs to build a static library
A better way to do that is to grab cegcc (http://
cegcc.sourceforge.net/) and use the standard building process
> > If YES, I can easily host this too on thewww.gaia-gis.itSpatiaLite'sweb site.

Thibaut

unread,
Apr 5, 2009, 4:46:27 AM4/5/09
to SpatiaLite Users
Hi,

Thank you very much David.

Is it possible that you add the result dll to this group I c

Thibaut

unread,
Apr 5, 2009, 4:49:49 AM4/5/09
to SpatiaLite Users
Hi,

Thanks you very much David. Can you post the result dll on this
group ? I'm very impatient to test it on my application.

Best regards,
Thibaut.

On 3 avr, 13:55, DavidL <David.Lil...@gmail.com> wrote:

blubb...@googlemail.com

unread,
Apr 7, 2009, 5:42:28 AM4/7/09
to SpatiaLite Users
Hi Thibaut,

did you make any progress on the issue?

Thibaut Gheysen

unread,
Apr 7, 2009, 7:50:45 AM4/7/09
to spatiali...@googlegroups.com
No, I'm waiting news from David.

Reply all
Reply to author
Forward
0 new messages