Recent

Author Topic: I can't build androidlcltest in windows  (Read 7033 times)

roeug

  • Jr. Member
  • **
  • Posts: 67
    • http://roeug.50megs.com/
I can't build androidlcltest in windows
« on: November 16, 2012, 07:20:09 am »
Lazarus-1.1-39105-fpc-2.6.1-20121017-win32.exe
Lazarus-1.1-39105-fpc-2.6.1-20121017-win32.exe Lazarus-1.1-39105-fpc-2.6.1-20121017-cross-arm-wince-win32.exe
fpc4android-r20768.7z  -> …\lazarusfpc261\fpc\2.6.1\bin\i386-win32\ppcrossarm.exe
                                       -> …\lazarusfpc261\fpc\2.6.1\units\arm-linux
program nonandroidtest - OK

library androidlcltest - ERROR

 -MObjFPC -Scghi -O1 -Tlinux -Parm -Xs -XX -vewnhi -Filib\arm-linux -Fl..\..\..\android-ndk-r8b\platforms\android-8\arch-arm\usr\lib -Fl..\..\..\android-ndk-r8b\toolchains\arm-linux-androideabi-4.4.3\prebuilt\windows\lib\gcc\arm-linux-androideabi\4.4.3 -Fu..\..\lcl\units\arm-linux\win32 -Fu..\..\lcl\units\arm-linux -Fu..\..\components\lazutils\lib\arm-linux -Fu..\..\packager\units\arm-linux -Fu. -FUlib\arm-linux\ -l -FEandroid\libs\armeabi\ -oliblclapp.so.so -dLCL -dLCLwin32 -dANDROID -Xd -CpARMV6

PPU Loading …\lazarusfpc261\fpc\2.6.1\units\arm-linux\rtl\system.ppu
fcllaz.pas(0,0) Fatal: Can not find system used by fcllaz, ppu=..\..\fpc\2.6.1\units\arm-linux\rtl\system.ppu

[TEST]button

Unitsearch: system.pp
Unitsearch: system.pas
...
Can't find unit system used by Program
Compilation aborted


WARNING: unit search path does not exist: C:\Programas\lazarusfpc261\lcl\units\arm-linux\win32
WARNING: unit search path does not exist: C:\Programas\lazarusfpc261\lcl\units\arm-linux
WARNING: unit search path does not exist: C:\Programas\lazarusfpc261\components\lazutils\lib\arm-linux

Leledumbo

  • Hero Member
  • *****
  • Posts: 8836
  • Programming + Glam Metal + Tae Kwon Do = Me
Re: I can't build androidlcltest in windows
« Reply #1 on: November 16, 2012, 01:27:52 pm »
Quote
PPU Loading …\lazarusfpc261\fpc\2.6.1\units\arm-linux\rtl\system.ppu
fcllaz.pas(0,0) Fatal: Can not find system used by fcllaz, ppu=..\..\fpc\2.6.1\units\arm-linux\rtl\system.ppu
Seems like a checksum mismatch, try recompiling rtl and packages for arm-linux.

roeug

  • Jr. Member
  • **
  • Posts: 67
    • http://roeug.50megs.com/
Re: I can't build androidlcltest in windows
« Reply #2 on: November 19, 2012, 08:04:48 am »
Never compiled rtl before.

> .\lazarusfpc261\fpc\2.6.1\source\rtl>…\lazarusfpc261\fpc\2.6.1\bin\i386-win32\make.exe
./lazarusfpc261/fpc/2.6.1/bin/i386-win32/make.exe -C win32 all
….
> /lazarusfpc261/fpc/2.6.1/bin/i386-win32/make.exe -C linux all

Result the same:
fcllaz.pas(0,0) Fatal: Can not find system used by fcllaz, ppu=..\..\fpc\2.6.1\units\arm-linux\rtl\system.ppu

marcov

  • Administrator
  • Hero Member
  • *
  • Posts: 12768
  • FPC developer.
Re: I can't build androidlcltest in windows
« Reply #3 on: November 19, 2012, 01:12:15 pm »
Afaik the FPC 2.6.x series doesn't support Android.

You need a special android branch (2.5.1 based) for that?

Andru

  • Full Member
  • ***
  • Posts: 112
Re: I can't build androidlcltest in windows
« Reply #4 on: November 19, 2012, 10:00:53 pm »
Quote from: marcov
Afaik the FPC 2.6.x series doesn't support Android.
With special patches - supports. But seems people just don't understand what they do and get troubles, or just AndroidLCL needs something special. So, for everybody in future - DO NOT USE my patches and FreePascal 2.6.x(mentioned above fpc4android-r20768.7z) prepared for using with ZenGL and some other libraries, because nobody will help here. Read wiki, where you can find info written specially for Lazarus and Custom Drawn Interface.

roeug

  • Jr. Member
  • **
  • Posts: 67
    • http://roeug.50megs.com/
Re: I can't build androidlcltest in windows
« Reply #5 on: November 20, 2012, 07:24:47 am »
> people just don't understand... fpc4android-r20768.7z prepared for using with ZenGL and some other libraries
Sorry. May be should rename (in future) fpc4android-r##.7z to fpc4android-ZenGL-r##.7z

The main problem (for win Lazarus) was the output name
Result LCL test installed and runs (at the moment with black screen)
Lazarus 1.02 FPC 2.6.0
1) fpc4android_2_5_1_2_apr_2012.zip
      *.exe -> …lazarusfpc260\fpc\2.6.0\bin\i386-win32 
units - > …lazarusfpc260\fpc\2.5.1\units\arm-linux
2) Project/Target file name (-o) WAS
android\libs\armeabi\liblclapp.so
MUST be
android\libs\armeabi\liblclapp (NO EXTENTION so)
3) Edit generate_debug_key.bat, build_debug_apk.bat - SET PATH…SET ANDROID_HOME…SET APK_SDK_PLATFORM….SET APK_PROJECT_PATH…
(psws – senhas –remain)


« Last Edit: November 22, 2012, 09:34:05 am by roeug »

roeug

  • Jr. Member
  • **
  • Posts: 67
    • http://roeug.50megs.com/
Re: I can't build androidlcltest in windows
« Reply #6 on: November 26, 2012, 09:02:47 am »
Result2 LCL test installed and runs

Lazarus-1.1-39105-fpc-2.6.1-20121017-win32.exe
1) fpc4android_2_5_1_2_apr_2012.zip
      *.exe -> …lazarusfpc260\fpc\2.6.1\bin\i386-win32 
units - > …lazarusfpc260\fpc\2.5.1\units\arm-linux
2) Project/Target file name (-o) WAS
android\libs\armeabi\liblclapp.so
MUST be
android\libs\armeabi\liblclapp (NO EXTENTION so)
3) Edit generate_debug_key.bat, build_debug_apk.bat - SET PATH…SET ANDROID_HOME…SET APK_SDK_PLATFORM….SET APK_PROJECT_PATH…
(psws – senhas –remain)

androidlcl  – runs OK

 

TinyPortal © 2005-2018