* * *

Author Topic: How to install android cross compiler on Windows  (Read 3382 times)

qq9ebg9acvzx

  • New member
  • *
  • Posts: 12
How to install android cross compiler on Windows
« on: January 13, 2018, 05:57:01 pm »
Hello, people!

I have downloaded these installers:
ftp://freepascal.stack.nl/pub/mirrors/fpc/dist/3.0.4/i386-win32/fpc-3.0.4.i386-win32.cross.android.exe
ftp://freepascal.stack.nl/pub/mirrors/fpc/dist/3.0.4/i386-win32/fpc-3.0.4.i386-win32.exe

And I have downloaded the Android NDK from here:
https://dl.google.com/android/repository/android-ndk-r16b-windows-x86.zip

But when I try to install "fpc-3.0.4.i386-win32.cross.android.exe", it gives an error:
(http://i.imgur.com/16yi8kC.png)

I already tried many possible possible paths to the extracted NDK, but the error persists. What am I doing wrong?

Thank you!

Thaddy

  • Hero Member
  • *****
  • Posts: 7140
Re: How to install android cross compiler on Windows
« Reply #1 on: January 13, 2018, 06:03:23 pm »
Show us those paths you tried... Otherwise we have no clue...
inline variables like in D10.3 are a bit like Brexit: if you are given the wrong information it sounds like a good idea. Every kid loves candy, but it makes you fat and your teeth will disappear.

qq9ebg9acvzx

  • New member
  • *
  • Posts: 12
Re: How to install android cross compiler on Windows
« Reply #2 on: January 13, 2018, 08:54:00 pm »
Show us those paths you tried... Otherwise we have no clue...
Many:
C:\Android_NDK\android-ndk-r16b\toolchains\arm-linux-androideabi-4.9
C:\Android_NDK\android-ndk-r16b\toolchains\arm-linux-androideabi-4.9\prebuilt\windows\bin
C:\Android_NDK\android-ndk-r16b\toolchains\arm-linux-androideabi-4.9\prebuilt\windows\arm-linux-androideabi\bin
C:\Android_NDK\android-ndk-r16b\toolchains\arm-linux-androideabi-4.9\prebuilt\windows\arm-linux-androideabi\lib
C:\Android_NDK\android-ndk-r16b\platforms\android-16\arch-arm\usr\lib

And I tried others based on google search, but nothing... The truth is that I have no idea as well.

Your help is appreciated. Thank you!

jmpessoa

  • Hero Member
  • *****
  • Posts: 1199
Re: How to install android cross compiler on Windows
« Reply #3 on: January 13, 2018, 10:21:11 pm »

Windows?

Try Laz4Android  (Lazarus 1.8 stable + cross-android installed !!!)

ref.          https://sourceforge.net/projects/laz4android/

Linux?

https://github.com/jmpessoa/lazandroidmodulewizard/tree/master/docs/linux
Lamw: Lazarus Android Module Wizard
https://github.com/jmpessoa/lazandroidmodulewizard

qq9ebg9acvzx

  • New member
  • *
  • Posts: 12
Re: How to install android cross compiler on Windows
« Reply #4 on: January 14, 2018, 06:24:38 pm »

Windows?

Try Laz4Android  (Lazarus 1.8 stable + cross-android installed !!!)

ref.          https://sourceforge.net/projects/laz4android/

Linux?

https://github.com/jmpessoa/lazandroidmodulewizard/tree/master/docs/linux
OK, it worked.

Thank you very much!

sameer

  • New member
  • *
  • Posts: 11
Re: How to install android cross compiler on Windows
« Reply #5 on: July 27, 2018, 12:44:43 pm »

Windows?

Try Laz4Android  (Lazarus 1.8 stable + cross-android installed !!!)

ref.          https://sourceforge.net/projects/laz4android/

Linux?

https://github.com/jmpessoa/lazandroidmodulewizard/tree/master/docs/linux

Laz4Android uses FPC 3.0.4. I require FPC 3.1(trunk) as my application uses mORMot. Can you suggest any workaround ?

Trenatos

  • Sr. Member
  • ****
  • Posts: 442
  • Software developer - Open source contributor
    • MarcusFernstrom.com
Re: How to install android cross compiler on Windows
« Reply #6 on: September 12, 2018, 08:42:06 pm »
fpcupdeluxe, give that a go.

 

Recent

Get Lazarus at SourceForge.net. Fast, secure and Free Open Source software downloads Open Hub project report for Lazarus