Recent

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

qq9ebg9acvzx

  • New Member
  • *
  • Posts: 21
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: 14204
  • Probably until I exterminate Putin.
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...
Specialize a type, not a var.

qq9ebg9acvzx

  • New Member
  • *
  • Posts: 21
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: 2297
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: 21
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: 13
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

  • Hero Member
  • *****
  • Posts: 535
    • 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.

 

TinyPortal © 2005-2018