Recent

Author Topic: yes more problems with AndroidLCLtest  (Read 20136 times)

kitsaros

  • New Member
  • *
  • Posts: 27
Re: yes more problems with AndroidLCLtest
« Reply #30 on: October 18, 2013, 11:52:38 am »
i had included that path -Fu C:\codetyphon\fpcsrc\packages\fcl-db\src\sqlite\
the error appears with that option.
 Anyway i cannot understand why i have to keep focusing my efforts on i386 option.

From the crossbuilding script i can see this :
Code: [Select]
C:/codetyphon/fpc/bin/i386-win32/make 'FPC=C:/codetyphon/fpcsrc/compiler/ppc.exe' OS_TARGET=win32 CPU_TARGET=i386 CROSSBINDIR= BINUTILSPREFIX= CROSSCYCLEBOOTSTRAP=1 rtlclean rtl CYCLELEVEL=?

On CROSSBINDIR= it is not needed the ndk path ?
« Last Edit: October 18, 2013, 11:58:03 am by kitsaros »

engkin

  • Hero Member
  • *****
  • Posts: 2513
Re: yes more problems with AndroidLCLtest
« Reply #31 on: October 18, 2013, 04:14:22 pm »
(I accidentally editted your message instead of replying. I restored it as good as possible. - marcov)

It's ok. When I first saw it I was surprised. Now I'm laughing.

It was:
Quote
Do you have these two folders?
c:\codetyphon\fpc\units\arm-android
c:\codetyphon\fpc\units\i386-android
Yes

@kitsaros I need to know the size of each of these two folders.

Quote
cannot find -lsqlite3

I adjusted the path that was already in the project options, from CT to FPC, but it did not work. I searched for sqlite3.* and the best result I found was sqlite3.pp in
C:\laz4android\fpc\2.7.1\source\packages\sqlite\src\

Considering your directory structure I assume it should be:
C:\codetyphon\fpcsrc\packages\sqlite\src\

Can you check? see if you have that directory and it includes sqlite3.pp otherwise search for that file.

Anyway i cannot understand why i have to keep focusing my efforts on i386 option.

Your problem is possibly in c:\codetyphon\fpc\units\arm-android. If the second one (i386-android) is not built yet, then we can control/know which NDK is going to be used.

Again, I'm just guessing. I don't have/use CT, so when I compiled this sample using Lazarus/FPC I had this problem


From the crossbuilding script i can see this :
Code: [Select]
C:/codetyphon/fpc/bin/i386-win32/make 'FPC=C:/codetyphon/fpcsrc/compiler/ppc.exe' OS_TARGET=win32 CPU_TARGET=i386 CROSSBINDIR= BINUTILSPREFIX= CROSSCYCLEBOOTSTRAP=1 rtlclean rtl CYCLELEVEL=?

On CROSSBINDIR= it is not needed the ndk path ?

 :) Yup. Unless you have it in your path (if you do I suggest you remove it)

for x86 CPU:

OS_TARGET=Android

CPU_TARGET=i386

CROSSBINDIR=C:\Android-ndk\android-ndk-???\toolchains\x86-4.4.3\prebuilt\windows\bin

BINUTILSPREFIX=i686-android-linux-


for Arm CPU:

OS_TARGET=Android

CPU_TARGET=Arm

CROSSBINDIR=C:\Android\android-ndk-???\toolchains\arm-linux-androideabi-4.4.3\prebuilt\windows\bin

BINUTILSPREFIX=arm-linux-androideabi-


kitsaros

  • New Member
  • *
  • Posts: 27
Re: yes more problems with AndroidLCLtest
« Reply #32 on: October 18, 2013, 08:38:21 pm »
c:\codetyphon\fpc\units\arm-android -> 53.0 MB (55,609,590 bytes)
c:\codetyphon\fpc\units\i386-android -> 52.3 MB (54,880,111 bytes)

In fact the path for the  sqlite3.pp is :
C:\laz4android\fpc\2.7.1\source\packages\sqlite\src\

How can i edit the cross script of ct in order to add
CROSSBINDIR=C:\Android-ndk\android-ndk-???\toolchains\x86-4.4.3\prebuilt\windows\bin
BINUTILSPREFIX=i686-android-linux

I still get c:\codetyphon\fpc\bin\i386-win32\i386-android-ld.exe: cannot find -lsqlite3
selecting
OS_TARGET=Android
CPU_TARGET=i386

kitsaros

  • New Member
  • *
  • Posts: 27
Re: yes more problems with AndroidLCLtest
« Reply #33 on: October 21, 2013, 10:03:27 pm »
Hello , i have posted here my solution
http://forum.lazarus.freepascal.org/index.php/topic,22414.0.html

Have a nice day
and thanks to all