Recent

Author Topic: sqlite error on android compile  (Read 5166 times)

GuidoCavalera

  • New Member
  • *
  • Posts: 18
sqlite error on android compile
« on: October 23, 2013, 03:57:47 pm »
hi,

i'm trying to compile an existing project for android but in the first step to create a .so lib  i've this error :
C:\Android\Laz4Android\fpc\2.7.1\bin\i386-win32\arm-linux-androideabi-ld.bfd.exe: cannot find -lsqlite3

Can u help me ?

marcov

  • Administrator
  • Hero Member
  • *
  • Posts: 12905
  • FPC developer.
Re: sqlite error on android compile
« Reply #1 on: October 23, 2013, 08:03:49 pm »
Provide a sqlite3 library. For Linux and derivatives as android, all used libraries must be available at linking time.

Since afaik sqllite is part of Android OS, I assume it is part of the NDK

GuidoCavalera

  • New Member
  • *
  • Posts: 18
Re: sqlite error on android compile
« Reply #2 on: November 10, 2013, 10:21:19 am »
i dont see any library of sqlite3 in NDK .... android NDK support sqlite3 with sqlite3dataset ?

Thank u

marcov

  • Administrator
  • Hero Member
  • *
  • Posts: 12905
  • FPC developer.
Re: sqlite error on android compile
« Reply #3 on: November 10, 2013, 12:28:05 pm »
I'm not an Android user, so I don't know.

Leledumbo

  • Hero Member
  • *****
  • Posts: 8836
  • Programming + Glam Metal + Tae Kwon Do = Me
Re: sqlite error on android compile
« Reply #4 on: November 10, 2013, 03:31:55 pm »
you can either build sqlite library yourself, or call sqlite from JNI, like androidlcl example shows by using sqlitejniandroid unit.

engkin

  • Hero Member
  • *****
  • Posts: 3112
Re: sqlite error on android compile
« Reply #5 on: November 10, 2013, 04:23:25 pm »
"... arm-linux-androideabi-ld.bfd.exe: cannot find -lsqlite3  ..."

Your linker can not find sqlite3. I assume it is looking for a file named "sqlite3.o"


Check that you have this file
C:\Android\laz4android\fpc\2.7.1\units\arm-android\sqlite\sqlite3.o


If you do, add it's path to your project. The path is:
C:\Android\laz4android\fpc\2.7.1\units\arm-android\sqlite\


This path is for devices running Android on ARM CPU.

GuidoCavalera

  • New Member
  • *
  • Posts: 18
Re: sqlite error on android compile
« Reply #6 on: November 10, 2013, 05:29:11 pm »
hi engkin

file exists... ive added path in ProjectOptions -> Paths -> Libraries (-Fl) but nothing !

Always same error !

Bye

 

TinyPortal © 2005-2018