Recent

Author Topic: How to convert lazarus.win32 into linux-arm  (Read 33819 times)

assembly84

  • New Member
  • *
  • Posts: 31
  • Just Programmer
    • assembly84.net
Re: How to convert lazarus.win32 into linux-arm
« Reply #15 on: February 22, 2014, 07:18:31 pm »
You don't have to change compiler. Fpc automatically does that.

Usually Lazarus builds a new LCL automatically. Which version are you using?

 :D Hi Sir ... I almost completed to build arm-linux with lazarus-win32 LCL..
but still error 
Executing "C:/development/cross/bin/arm-linux/arm-linux-ld.exe" with command line "  -s -Tlinux -Parm --dynamic-linker=/lib/ld-linux-armhf.so.3 --rpath-link C:/development/fpc/lib/arm-linux/rtl/  --gc-sections  -L. -o E:\CODING\LAZARUS\ASSEMBLE\2014\p201402\cross1\lib\arm-linux\cross210 -T E:\CODING\LAZARUS\ASSEMBLE\2014\p201402\cross1\lib\arm-linux\link.res"


 %) thanks for your suggest, I try not to change FPC, but download from http://svn.freepascal.org/svn/lazarus/ using fcupgui.exe instead.

« Last Edit: February 23, 2014, 04:47:31 am by assembly84 »
try to be better

assembly84

  • New Member
  • *
  • Posts: 31
  • Just Programmer
    • assembly84.net
Re: How to convert lazarus.win32 into linux-arm
« Reply #16 on: February 22, 2014, 07:20:27 pm »
Quote
i've  download following from wikilazarus
Again, no idea. I've always built binutils from source myself. Probably the package is incomplete, because you'll actually require a linker script. I have mine in /usr/lib/linkerscripts.

thanks leledumbo,  :D
i have download from :  http://svn.freepascal.org/svn/lazarus/
and look good to compile, btw
 Executing "C:/development/cross/bin/arm-linux/arm-linux-ld.exe" with command line "  -s -Tlinux -Parm --dynamic-linker=/lib/ld-linux-armhf.so.3 --rpath-link C:/development/fpc/lib/arm-linux/rtl/  --gc-sections  -L. -o E:\CODING\LAZARUS\ASSEMBLE\2014\p201402\cross1\lib\arm-linux\cross210 -T E:\CODING\LAZARUS\ASSEMBLE\2014\p201402\cross1\lib\arm-linux\link.res"
   %)
get this error
« Last Edit: February 23, 2014, 04:48:10 am by assembly84 »
try to be better

Leledumbo

  • Hero Member
  • *****
  • Posts: 8746
  • Programming + Glam Metal + Tae Kwon Do = Me
Re: How to convert lazarus.win32 into linux-arm
« Reply #17 on: February 23, 2014, 03:17:34 am »
Quote
thanks leledumbo,  :D
i have download from :  http://svn.freepascal.org/svn/lazarus/
There's no binutils source there. Unless you follow the exact same step as I did, I cannot help. If I say I build binutils from source, you have to do the same.

assembly84

  • New Member
  • *
  • Posts: 31
  • Just Programmer
    • assembly84.net
Re: How to convert lazarus.win32 into linux-arm
« Reply #18 on: February 23, 2014, 04:43:36 am »
Quote
thanks leledumbo,  :D
i have download from :  http://svn.freepascal.org/svn/lazarus/
There's no binutils source there. Unless you follow the exact same step as I did, I cannot help. If I say I build binutils from source, you have to do the same.

Hi LeleDumbo, thanks ... I'd follow your step to make script; Is a FCP.cfg script ? Until now I'm trying to write it, because still have a error.

like here

Using util C:/development/cross/bin/arm-linux/arm-linux-ld.exe
Executing "C:/development/cross/bin/arm-linux/arm-linux-ld.exe" with command line "  -s -Tlinux -Parm --dynamic-linker=C:\development\fpc\lib\arm-linux\ --rpath-link C:/development/fpc/lib/arm-linux/rtl/  --gc-sections  -L. -o E:\CODING\LAZARUS\ASSEMBLE\2014\p201402\cross1\lib\arm-linux\cross210 -T E:\CODING\LAZARUS\ASSEMBLE\2014\p201402\cross1\lib\arm-linux\link.res"
cross210.lpr(22) Error: Error while linking
cross210.lpr(22) Fatal: There were 1 errors compiling module, stopping
Fatal: Compilation aborted
Error: C:\development\fpc\bin\i386-win32\ppcrossarm.exe returned an error exitcode



thanks alot for your suggest
try to be better

Leledumbo

  • Hero Member
  • *****
  • Posts: 8746
  • Programming + Glam Metal + Tae Kwon Do = Me
Re: How to convert lazarus.win32 into linux-arm
« Reply #19 on: February 23, 2014, 05:16:37 am »
Looks like you don't understand what I'm saying. It's useless to continue then.

assembly84

  • New Member
  • *
  • Posts: 31
  • Just Programmer
    • assembly84.net
Re: How to convert lazarus.win32 into linux-arm
« Reply #20 on: February 23, 2014, 05:40:00 am »
Looks like you don't understand what I'm saying. It's useless to continue then.

Sorry Sir, I think, I do not understand .. %)
try to be better

BigChimp

  • Hero Member
  • *****
  • Posts: 5740
  • Add to the wiki - it's free ;)
    • FPCUp, PaperTiger scanning and other open source projects
Re: How to convert lazarus.win32 into linux-arm
« Reply #21 on: February 23, 2014, 11:34:50 am »
Quote
i've  download following from wikilazarus
Again, no idea. I've always built binutils from source myself. Probably the package is incomplete, because you'll actually require a linker script. I have mine in /usr/lib/linkerscripts.
Well, I seem to be able to cross compile from win32=>arm-linux without linker script. See the fpcup wiki page on how I set things up (and which binutils I used).

@assembly84: cross compiling is a complicated subject. It's much easier to compile directly on the device if you can. If you are still interested in cross compiling, please read all the relevant wiki pages on cross compiling. AFAIR, linker scripts are covered there, too.
Want quicker answers to your questions? Read http://wiki.lazarus.freepascal.org/Lazarus_Faq#What_is_the_correct_way_to_ask_questions_in_the_forum.3F

Open source including papertiger OCR/PDF scanning:
https://bitbucket.org/reiniero

Lazarus trunk+FPC trunk x86, Windows x64 unless otherwise specified

assembly84

  • New Member
  • *
  • Posts: 31
  • Just Programmer
    • assembly84.net
Re: How to convert lazarus.win32 into linux-arm
« Reply #22 on: February 27, 2014, 08:10:06 am »
Quote
i've  download following from wikilazarus
Again, no idea. I've always built binutils from source myself. Probably the package is incomplete, because you'll actually require a linker script. I have mine in /usr/lib/linkerscripts.
Well, I seem to be able to cross compile from win32=>arm-linux without linker script. See the fpcup wiki page on how I set things up (and which binutils I used).

@assembly84: cross compiling is a complicated subject. It's much easier to compile directly on the device if you can. If you are still interested in cross compiling, please read all the relevant wiki pages on cross compiling. AFAIR, linker scripts are covered there, too.

thanks BigChimp, please help me about Reff Link about linkerscripts etc ?
last try with [i386-win32] to [linux-arm] ==> still error on linux-arm-ld.exe to open link  ld-arm-linux.o3

thanks alot !
try to be better

BigChimp

  • Hero Member
  • *****
  • Posts: 5740
  • Add to the wiki - it's free ;)
    • FPCUp, PaperTiger scanning and other open source projects
Re: How to convert lazarus.win32 into linux-arm
« Reply #23 on: February 27, 2014, 09:10:13 am »
If you used the way fpcup does the cross compile (same binutils, no linker script, same fpc.cfg settings) there should be no problem.

I'd suggest you try fpcup.
Want quicker answers to your questions? Read http://wiki.lazarus.freepascal.org/Lazarus_Faq#What_is_the_correct_way_to_ask_questions_in_the_forum.3F

Open source including papertiger OCR/PDF scanning:
https://bitbucket.org/reiniero

Lazarus trunk+FPC trunk x86, Windows x64 unless otherwise specified

assembly84

  • New Member
  • *
  • Posts: 31
  • Just Programmer
    • assembly84.net
Re: How to convert lazarus.win32 into linux-arm
« Reply #24 on: March 02, 2014, 06:48:54 pm »
If you used the way fpcup does the cross compile (same binutils, no linker script, same fpc.cfg settings) there should be no problem.

I'd suggest you try fpcup.

Thanks BigChimp,  I had try to build using fpcup_linux_x86, use no linkerscript,
but lazarus failed to load "interfaces.ppu" ?

Running on i386-linux --> arm-linux


try to be better

BigChimp

  • Hero Member
  • *****
  • Posts: 5740
  • Add to the wiki - it's free ;)
    • FPCUp, PaperTiger scanning and other open source projects
Re: How to convert lazarus.win32 into linux-arm
« Reply #25 on: March 03, 2014, 08:55:37 am »
Does this help:
http://forum.lazarus.freepascal.org/index.php/topic,23787.msg142538.html#msg142538

?

Again: please post in one thread if you have problems. Please open a new thread if you have a different problem than the original thread covers.

See the first link in my signature for more details.

Thanks.
Want quicker answers to your questions? Read http://wiki.lazarus.freepascal.org/Lazarus_Faq#What_is_the_correct_way_to_ask_questions_in_the_forum.3F

Open source including papertiger OCR/PDF scanning:
https://bitbucket.org/reiniero

Lazarus trunk+FPC trunk x86, Windows x64 unless otherwise specified

 

TinyPortal © 2005-2018