Welcome,
Guest
|
TOPIC:
Troubles with lclcustomdrawn in AndroidLCLTest 11 years 11 months ago #2844
|
Hello,
I updated to version 3.0 yesterday. Well I updated first and was glad to see that the arm-android cross compiler worked. The jvm cross compile targets would not build though, so I removed the previous version and reinstalled. After reinstalling all of the cross compilers build, but there seem to be some curiosities. arm-android seems to replace arm-linux and visa-versa in the compilers listing i.e. Free Pascal Compiler FPC for Linux32 cross element for arm-android cross element for i386-win32 cross element for jvm-java cross element for jvm-android [...] Lazarus IDE Lazarus for Linux 32 (BigIDE) When I tried to build the example I got an error that indicated arm-linux could not be found so I built the arm-linux cross compiler Free Pascal Compiler FPC for Linux32 cross element for arm-linux cross element for i386-win32 cross element for jvm-java cross element for jvm-android [...] Lazarus IDE Lazarus for Linux 32 (BigIDE) cross element for arm-linux I built the arm-android compiler again and tried to build the android example. The next error was in linking. 8< /usr/lib/codetyphon/fpc/bin/i386-linux/arm-linux-ld: warning: /usr/lib/codetyphon/lazarus/examples/androidlcl/android/libs/lib/arm-linux/link.res contains output sections; did you forget -T? /usr/lib/codetyphon/fpc/bin/i386-linux/arm-linux-ld: cannot find /lib/ld-linux.so.3 androidlcltest.lpr(37,36) Error: Error while linking androidlcltest.lpr(37,36) Fatal: There were 1 errors compiling module, stopping 8< I found a post on the Lazarus forum that indicated I needed to add a compiler option. Project Options | Compiler Options | Other -FLlibdl.so This is the output in the messages window when I try to compile the example project using either arm-linux or arm-android. 8< Hint: Start of reading config file /usr/lib/codetyphon/fpc/bin/i386-linux/fpc.cfg Hint: End of reading config file /usr/lib/codetyphon/fpc/bin/i386-linux/fpc.cfg Free Pascal Compiler version 2.7.1 [2012/11/25] for arm Copyright (c) 1993-2012 by Florian Klaempfl and others Target OS: Linux for ARMEL Compiling androidlcltest.lpr Assembling androidlcltest Compiling resource /usr/lib/codetyphon/lazarus/examples/androidlcl/lib/arm-linux/androidlcltest.or Linking /usr/lib/codetyphon/lazarus/examples/androidlcl/android/libs/lib/arm-linux/liblclapp.so.so /usr/lib/codetyphon/fpc/bin/i386-linux/arm-linux-ld: warning: /usr/lib/codetyphon/lazarus/examples/androidlcl/android/libs/lib/arm-linux/link.res contains output sections; did you forget -T? /usr/lib/codetyphon/lazarus/lcl/units/arm-linux/customdrawn/customdrawnint.o: In function `TCDWIDGETSET__SHOWVIRTUALKEYBOARD': /usr/lib/codetyphon/lazarus/lcl/interfaces/./customdrawn/customdrawnlclintf_android.inc:357:(.text.n_customdrawnint$_$tlazcdcustomfont_$__$$_create$$tlazcdcustomfont+0x4c): dangerous relocation: unsupported relocation /usr/lib/codetyphon/lazarus/lcl/interfaces/./customdrawn/customdrawnlclintf_android.inc:357:(.text.n_customdrawnint$_$tlazcdcustomfont_$__$$_create$$tlazcdcustomfont+0x50): dangerous relocation: unsupported relocation /usr/lib/codetyphon/lazarus/lcl/interfaces/./customdrawn/customdrawnlclintf_android.inc:359:(.text.n_customdrawnint$_$tlazcdcustomfont_$__$$_create$$tlazcdcustomfont+0x68): dangerous relocation: unsupported relocation /usr/lib/codetyphon/lazarus/lcl/interfaces/./customdrawn/customdrawnlclintf_android.inc:360:(.text.n_customdrawnint$_$tlazcdcustomfont_$__$$_create$$tlazcdcustomfont+0x98): dangerous relocation: unsupported relocation /usr/lib/codetyphon/lazarus/lcl/interfaces/./customdrawn/customdrawnlclintf_android.inc:360:(.text.n_customdrawnint$_$tlazcdcustomfont_$__$$_create$$tlazcdcustomfont+0xb4): dangerous relocation: unsupported relocation /usr/lib/codetyphon/lazarus/lcl/interfaces/./customdrawn/customdrawnlclintf_android.inc:360:(.text.n_customdrawnint$_$tlazcdcustomfont_$__$$_create$$tlazcdcustomfont+0xb8): dangerous relocation: unsupported relocation /usr/lib/codetyphon/lazarus/lcl/interfaces/./customdrawn/customdrawnlclintf_android.inc:360:(.text.n_customdrawnint$_$tlazcdcustomfont_$__$$_create$$tlazcdcustomfont+0xec): dangerous relocation: unsupported relocation /usr/lib/codetyphon/lazarus/lcl/interfaces/./customdrawn/customdrawnlclintf_android.inc:360:(.text.n_customdrawnint$_$tlazcdcustomfont_$__$$_create$$tlazcdcustomfont+0xf0): dangerous relocation: unsupported relocation /usr/lib/codetyphon/lazarus/lcl/interfaces/./customdrawn/customdrawnlclintf_android.inc:360:(.text.n_customdrawnint$_$tlazcdcustomfont_$__$$_create$$tlazcdcustomfont+0xf4): dangerous relocation: unsupported relocation /usr/lib/codetyphon/lazarus/lcl/interfaces/./customdrawn/customdrawnlclintf_android.inc:360:(.text.n_customdrawnint$_$tlazcdcustomfont_$__$$_create$$tlazcdcustomfont+0x104): dangerous relocation: unsupported relocation /usr/lib/codetyphon/lazarus/lcl/interfaces/./customdrawn/customdrawnlclintf_android.inc:360:(.text.n_customdrawnint$_$tlazcdcustomfont_$__$$_create$$tlazcdcustomfont+0x108): dangerous relocation: unsupported relocation /usr/lib/codetyphon/lazarus/lcl/interfaces/./customdrawn/customdrawnlclintf_android.inc:357:(.text.n_customdrawnint$_$tlazcdcustomfont_$__$$_destroy+0x3c): dangerous relocation: unsupported relocation /usr/lib/codetyphon/lazarus/lcl/interfaces/./customdrawn/customdrawnlclintf_android.inc:356:(.text.n_customdrawnint$_$tcdwidgetset_$__$$_accumulatingdebugout$crca358b962+0x34): dangerous relocation: unsupported relocation /usr/lib/codetyphon/lazarus/lcl/interfaces/./customdrawn/customdrawnlclintf_android.inc:357:(.text.n_customdrawnint$_$tcdwidgetset_$__$$_accumulatingdebugout$crca358b962+0x44): dangerous relocation: unsupported relocation /usr/lib/codetyphon/lazarus/lcl/interfaces/./customdrawn/customdrawnlclintf_android.inc:357:(.text.n_customdrawnint$_$tcdwidgetset_$__$$_accumulatingdebugout$crca358b962+0x48): dangerous relocation: unsupported relocation /usr/lib/codetyphon/lazarus/lcl/interfaces/./customdrawn/customdrawnlclintf_android.inc:360:(.text.n_customdrawnint$_$tcdwidgetset_$__$$_accumulatingdebugout$crca358b962+0xa0): dangerous relocation: unsupported relocation /usr/lib/codetyphon/lazarus/lcl/interfaces/./customdrawn/customdrawnlclintf_android.inc:360:(.text.n_customdrawnint$_$tcdwidgetset_$__$$_accumulatingdebugout$crca358b962+0xa4): dangerous relocation: unsupported relocation /usr/lib/codetyphon/lazarus/lcl/interfaces/./customdrawn/customdrawnlclintf_android.inc:360:(.text.n_customdrawnint$_$tcdwidgetset_$__$$_accumulatingdebugout$crca358b962+0xac): dangerous relocation: unsupported relocation /usr/lib/codetyphon/lazarus/lcl/interfaces/./customdrawn/customdrawnlclintf_android.inc:360:(.text.n_customdrawnint$_$tcdwidgetset_$__$$_accumulatingdebugout$crca358b962+0xbc): dangerous relocation: unsupported relocation /usr/lib/codetyphon/lazarus/lcl/interfaces/./customdrawn/customdrawnlclintf_android.inc:356:(.text.n_customdrawnint$_$tcdwidgetset_$__$$_cdsetfocustocontrol$twincontrol$twincontrol+0x38): dangerous relocation: unsupported relocation /usr/lib/codetyphon/lazarus/lcl/interfaces/./customdrawn/customdrawnlclintf_android.inc:359:(.text.n_customdrawnint$_$tcdwidgetset_$__$$_cdsetfocustocontrol$twincontrol$twincontrol+0x6c): dangerous relocation: unsupported relocation /usr/lib/codetyphon/lazarus/lcl/interfaces/./customdrawn/customdrawnlclintf_android.inc:359:(.text.n_customdrawnint$_$tcdwidgetset_$__$$_cdsetfocustocontrol$twincontrol$twincontrol+0x80): dangerous relocation: unsupported relocation /usr/lib/codetyphon/lazarus/lcl/interfaces/./customdrawn/customdrawnlclintf_android.inc:360:(.text.n_customdrawnint$_$tcdwidgetset_$__$$_cdsetfocustocontrol$twincontrol$twincontrol+0x9c): dangerous relocation: unsupported relocation /usr/lib/codetyphon/lazarus/lcl/interfaces/./customdrawn/customdrawnlclintf_android.inc:360:(.text.n_customdrawnint$_$tcdwidgetset_$__$$_cdsetfocustocontrol$twincontrol$twincontrol+0xbc): dangerous relocation: unsupported relocation /usr/lib/codetyphon/lazarus/lcl/interfaces/./customdrawn/customdrawnlclintf_android.inc:360:(.text.n_customdrawnint$_$tcdwidgetset_$__$$_cdsetfocustocontrol$twincontrol$twincontrol+0xc4): dangerous relocation: unsupported relocation /usr/lib/codetyphon/lazarus/lcl/interfaces/./customdrawn/customdrawnlclintf_android.inc:360:(.text.n_customdrawnint$_$tcdwidgetset_$__$$_cdsetfocustocontrol$twincontrol$twincontrol+0x100): dangerous relocation: unsupported relocation /usr/lib/codetyphon/lazarus/lcl/interfaces/./customdrawn/customdrawnlclintf_android.inc:360:(.text.n_customdrawnint$_$tcdwidgetset_$__$$_cdsetfocustocontrol$twincontrol$twincontrol+0x128): dangerous relocation: unsupported relocation /usr/lib/codetyphon/lazarus/lcl/interfaces/./customdrawn/customdrawnlclintf_android.inc:360:(.text.n_customdrawnint$_$tcdwidgetset_$__$$_cdsetfocustocontrol$twincontrol$twincontrol+0x144): dangerous relocation: unsupported relocation /usr/lib/codetyphon/lazarus/lcl/interfaces/./customdrawn/customdrawnlclintf_android.inc:360:(.text.n_customdrawnint$_$tcdwidgetset_$__$$_cdsetfocustocontrol$twincontrol$twincontrol+0x14c): dangerous relocation: unsupported relocation /usr/lib/codetyphon/lazarus/lcl/interfaces/./customdrawn/customdrawnlclintf_android.inc:360:(.text.n_customdrawnint$_$tcdwidgetset_$__$$_cdsetfocustocontrol$twincontrol$twincontrol+0x158): dangerous relocation: unsupported relocation /usr/lib/codetyphon/fpc/bin/i386-linux/arm-linux-ld: BFD (GNU Binutils) 2.22 assertion fail elf32-arm.c:8098 /usr/lib/codetyphon/fpc/bin/i386-linux/arm-linux-ld: BFD (GNU Binutils) 2.22 assertion fail elf32-arm.c:8098 /usr/lib/codetyphon/fpc/bin/i386-linux/arm-linux-ld: BFD (GNU Binutils) 2.22 assertion fail elf32-arm.c:8098 /usr/lib/codetyphon/fpc/bin/i386-linux/arm-linux-ld: BFD (GNU Binutils) 2.22 assertion fail elf32-arm.c:8098 /usr/lib/codetyphon/fpc/bin/i386-linux/arm-linux-ld: BFD (GNU Binutils) 2.22 assertion fail elf32-arm.c:8098 /usr/lib/codetyphon/fpc/bin/i386-linux/arm-linux-ld: BFD (GNU Binutils) 2.22 assertion fail elf32-arm.c:8098 /usr/lib/codetyphon/fpc/bin/i386-linux/arm-linux-ld: BFD (GNU Binutils) 2.22 internal error, aborting at elf32-arm.c line 7273 in elf32_arm_add_dynreloc /usr/lib/codetyphon/fpc/bin/i386-linux/arm-linux-ld: Please report this bug. androidlcltest.lpr(37,36) Error: Error while linking /usr/lib/codetyphon/fpc/bin/i386-linux/arm-linux-ld: warning: /usr/lib/codetyphon/lazarus/examples/androidlcl/android/libs/lib/arm-linux/link.res contains output sections; did you forget -T? /usr/lib/codetyphon/lazarus/lcl/units/arm-linux/customdrawn/customdrawnint.o: In function `TCDWIDGETSET__SHOWVIRTUALKEYBOARD': /usr/lib/codetyphon/lazarus/lcl/interfaces/./customdrawn/customdrawnlclintf_android.inc:357:(.text.n_customdrawnint$_$tlazcdcustomfont_$__$$_create$$tlazcdcustomfont+0x4c): dangerous relocation: unsupported relocation /usr/lib/codetyphon/lazarus/lcl/interfaces/./customdrawn/customdrawnlclintf_android.inc:357:(.text.n_customdrawnint$_$tlazcdcustomfont_$__$$_create$$tlazcdcustomfont+0x50): dangerous relocation: unsupported relocation /usr/lib/codetyphon/lazarus/lcl/interfaces/./customdrawn/customdrawnlclintf_android.inc:359:(.text.n_customdrawnint$_$tlazcdcustomfont_$__$$_create$$tlazcdcustomfont+0x68): dangerous relocation: unsupported relocation /usr/lib/codetyphon/lazarus/lcl/interfaces/./customdrawn/customdrawnlclintf_android.inc:360:(.text.n_customdrawnint$_$tlazcdcustomfont_$__$$_create$$tlazcdcustomfont+0x98): dangerous relocation: unsupported relocation /usr/lib/codetyphon/lazarus/lcl/interfaces/./customdrawn/customdrawnlclintf_android.inc:360:(.text.n_customdrawnint$_$tlazcdcustomfont_$__$$_create$$tlazcdcustomfont+0xb4): dangerous relocation: unsupported relocation /usr/lib/codetyphon/lazarus/lcl/interfaces/./customdrawn/customdrawnlclintf_android.inc:360:(.text.n_customdrawnint$_$tlazcdcustomfont_$__$$_create$$tlazcdcustomfont+0xb8): dangerous relocation: unsupported relocation /usr/lib/codetyphon/lazarus/lcl/interfaces/./customdrawn/customdrawnlclintf_android.inc:360:(.text.n_customdrawnint$_$tlazcdcustomfont_$__$$_create$$tlazcdcustomfont+0xec): dangerous relocation: unsupported relocation /usr/lib/codetyphon/lazarus/lcl/interfaces/./customdrawn/customdrawnlclintf_android.inc:360:(.text.n_customdrawnint$_$tlazcdcustomfont_$__$$_create$$tlazcdcustomfont+0xf0): dangerous relocation: unsupported relocation /usr/lib/codetyphon/lazarus/lcl/interfaces/./customdrawn/customdrawnlclintf_android.inc:360:(.text.n_customdrawnint$_$tlazcdcustomfont_$__$$_create$$tlazcdcustomfont+0xf4): dangerous relocation: unsupported relocation /usr/lib/codetyphon/lazarus/lcl/interfaces/./customdrawn/customdrawnlclintf_android.inc:360:(.text.n_customdrawnint$_$tlazcdcustomfont_$__$$_create$$tlazcdcustomfont+0x104): dangerous relocation: unsupported relocation /usr/lib/codetyphon/lazarus/lcl/interfaces/./customdrawn/customdrawnlclintf_android.inc:360:(.text.n_customdrawnint$_$tlazcdcustomfont_$__$$_create$$tlazcdcustomfont+0x108): dangerous relocation: unsupported relocation /usr/lib/codetyphon/lazarus/lcl/interfaces/./customdrawn/customdrawnlclintf_android.inc:357:(.text.n_customdrawnint$_$tlazcdcustomfont_$__$$_destroy+0x3c): dangerous relocation: unsupported relocation /usr/lib/codetyphon/lazarus/lcl/interfaces/./customdrawn/customdrawnlclintf_android.inc:356:(.text.n_customdrawnint$_$tcdwidgetset_$__$$_accumulatingdebugout$crca358b962+0x34): dangerous relocation: unsupported relocation /usr/lib/codetyphon/lazarus/lcl/interfaces/./customdrawn/customdrawnlclintf_android.inc:357:(.text.n_customdrawnint$_$tcdwidgetset_$__$$_accumulatingdebugout$crca358b962+0x44): dangerous relocation: unsupported relocation /usr/lib/codetyphon/lazarus/lcl/interfaces/./customdrawn/customdrawnlclintf_android.inc:357:(.text.n_customdrawnint$_$tcdwidgetset_$__$$_accumulatingdebugout$crca358b962+0x48): dangerous relocation: unsupported relocation /usr/lib/codetyphon/lazarus/lcl/interfaces/./customdrawn/customdrawnlclintf_android.inc:360:(.text.n_customdrawnint$_$tcdwidgetset_$__$$_accumulatingdebugout$crca358b962+0xa0): dangerous relocation: unsupported relocation /usr/lib/codetyphon/lazarus/lcl/interfaces/./customdrawn/customdrawnlclintf_android.inc:360:(.text.n_customdrawnint$_$tcdwidgetset_$__$$_accumulatingdebugout$crca358b962+0xa4): dangerous relocation: unsupported relocation /usr/lib/codetyphon/lazarus/lcl/interfaces/./customdrawn/customdrawnlclintf_android.inc:360:(.text.n_customdrawnint$_$tcdwidgetset_$__$$_accumulatingdebugout$crca358b962+0xac): dangerous relocation: unsupported relocation /usr/lib/codetyphon/lazarus/lcl/interfaces/./customdrawn/customdrawnlclintf_android.inc:360:(.text.n_customdrawnint$_$tcdwidgetset_$__$$_accumulatingdebugout$crca358b962+0xbc): dangerous relocation: unsupported relocation /usr/lib/codetyphon/lazarus/lcl/interfaces/./customdrawn/customdrawnlclintf_android.inc:356:(.text.n_customdrawnint$_$tcdwidgetset_$__$$_cdsetfocustocontrol$twincontrol$twincontrol+0x38): dangerous relocation: unsupported relocation /usr/lib/codetyphon/lazarus/lcl/interfaces/./customdrawn/customdrawnlclintf_android.inc:359:(.text.n_customdrawnint$_$tcdwidgetset_$__$$_cdsetfocustocontrol$twincontrol$twincontrol+0x6c): dangerous relocation: unsupported relocation /usr/lib/codetyphon/lazarus/lcl/interfaces/./customdrawn/customdrawnlclintf_android.inc:359:(.text.n_customdrawnint$_$tcdwidgetset_$__$$_cdsetfocustocontrol$twincontrol$twincontrol+0x80): dangerous relocation: unsupported relocation /usr/lib/codetyphon/lazarus/lcl/interfaces/./customdrawn/customdrawnlclintf_android.inc:360:(.text.n_customdrawnint$_$tcdwidgetset_$__$$_cdsetfocustocontrol$twincontrol$twincontrol+0x9c): dangerous relocation: unsupported relocation /usr/lib/codetyphon/lazarus/lcl/interfaces/./customdrawn/customdrawnlclintf_android.inc:360:(.text.n_customdrawnint$_$tcdwidgetset_$__$$_cdsetfocustocontrol$twincontrol$twincontrol+0xbc): dangerous relocation: unsupported relocation /usr/lib/codetyphon/lazarus/lcl/interfaces/./customdrawn/customdrawnlclintf_android.inc:360:(.text.n_customdrawnint$_$tcdwidgetset_$__$$_cdsetfocustocontrol$twincontrol$twincontrol+0xc4): dangerous relocation: unsupported relocation /usr/lib/codetyphon/lazarus/lcl/interfaces/./customdrawn/customdrawnlclintf_android.inc:360:(.text.n_customdrawnint$_$tcdwidgetset_$__$$_cdsetfocustocontrol$twincontrol$twincontrol+0x100): dangerous relocation: unsupported relocation /usr/lib/codetyphon/lazarus/lcl/interfaces/./customdrawn/customdrawnlclintf_android.inc:360:(.text.n_customdrawnint$_$tcdwidgetset_$__$$_cdsetfocustocontrol$twincontrol$twincontrol+0x128): dangerous relocation: unsupported relocation /usr/lib/codetyphon/lazarus/lcl/interfaces/./customdrawn/customdrawnlclintf_android.inc:360:(.text.n_customdrawnint$_$tcdwidgetset_$__$$_cdsetfocustocontrol$twincontrol$twincontrol+0x144): dangerous relocation: unsupported relocation /usr/lib/codetyphon/lazarus/lcl/interfaces/./customdrawn/customdrawnlclintf_android.inc:360:(.text.n_customdrawnint$_$tcdwidgetset_$__$$_cdsetfocustocontrol$twincontrol$twincontrol+0x14c): dangerous relocation: unsupported relocation /usr/lib/codetyphon/lazarus/lcl/interfaces/./customdrawn/customdrawnlclintf_android.inc:360:(.text.n_customdrawnint$_$tcdwidgetset_$__$$_cdsetfocustocontrol$twincontrol$twincontrol+0x158): dangerous relocation: unsupported relocation /usr/lib/codetyphon/fpc/bin/i386-linux/arm-linux-ld: BFD (GNU Binutils) 2.22 assertion fail elf32-arm.c:8098 /usr/lib/codetyphon/fpc/bin/i386-linux/arm-linux-ld: BFD (GNU Binutils) 2.22 assertion fail elf32-arm.c:8098 /usr/lib/codetyphon/fpc/bin/i386-linux/arm-linux-ld: BFD (GNU Binutils) 2.22 assertion fail elf32-arm.c:8098 /usr/lib/codetyphon/fpc/bin/i386-linux/arm-linux-ld: BFD (GNU Binutils) 2.22 assertion fail elf32-arm.c:8098 /usr/lib/codetyphon/fpc/bin/i386-linux/arm-linux-ld: BFD (GNU Binutils) 2.22 assertion fail elf32-arm.c:8098 /usr/lib/codetyphon/fpc/bin/i386-linux/arm-linux-ld: BFD (GNU Binutils) 2.22 assertion fail elf32-arm.c:8098 /usr/lib/codetyphon/fpc/bin/i386-linux/arm-linux-ld: BFD (GNU Binutils) 2.22 internal error, aborting at elf32-arm.c line 7273 in elf32_arm_add_dynreloc /usr/lib/codetyphon/fpc/bin/i386-linux/arm-linux-ld: Please report this bug. androidlcltest.lpr(37,36) Error: Error while linking androidlcltest.lpr(37,36) Fatal: There were 1 errors compiling module, stopping The really confusing part is that when I first updated the example project built without error. I'm not sure what to do now. Is this a bug or have I done something wrong? Thank you. Regards, Brian |
Please Log in or Create an account to join the conversation. |
Troubles with lclcustomdrawn in AndroidLCLTest 11 years 11 months ago #2845
|
Sir, my suggestion is:
-Remove and build all from CT Center -rebuild only arm-android element, this element is a special arm-linux element PilotLogic Architect and Core Programmer
|
Please Log in or Create an account to join the conversation.
Last edit: by Sternas Stefanos.
|
Troubles with lclcustomdrawn in AndroidLCLTest 11 years 11 months ago #2846
|
Please try to do what sternas suggested, and then read this post. Other should look like this: -dANDROID -Xd -CpARMV6 -FLlibdl.so |
Please Log in or Create an account to join the conversation. |
Troubles with lclcustomdrawn in AndroidLCLTest 11 years 11 months ago #2853
|
Hi,
Installed codetyphon v.3.0 under ubuntu 11.04 (32bit). Have the same error when trying to compile androidlcltest:
When compiling under windows there no errors. |
Please Log in or Create an account to join the conversation. |