Recent

Author Topic: trouble to install and buld lazarus into Raspberry Pi --  (Read 6875 times)

assembly84

  • New Member
  • *
  • Posts: 31
  • Just Programmer
    • assembly84.net
trouble to install and buld lazarus into Raspberry Pi --
« on: September 05, 2014, 10:51:10 am »
Hi All .. I have trouble to install and buld  lazarus into Raspberry Pi board --

I'd run with :
Code: [Select]
sudo apt-get install lazarus ==> NOW it did not work for any package  again

Then I try to run with

 
Code: [Select]
./fpcup_linux_armhf --verbose --inifile=settings.ini --inisection=general

after give
Code: [Select]
fpcopt=set default as is explain on text which include it i do not know which opt is the correct

then i try to run with
Code: [Select]
./fpcup_linux_armhf --verbose 

so it did not work again

please help me ... hiks !
« Last Edit: September 05, 2014, 10:52:44 am by assembly84 »
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: trouble to install and buld lazarus into Raspberry Pi --
« Reply #1 on: September 05, 2014, 10:57:58 am »
No idea what you mean regarding
Code: [Select]
fpcopt=set default as is explain on text which include it
Could you explain a bit more (exact messages/references to documentation etc).

You mean that you need to set ARMHF mode? Yes, ok, but in that case I suggest you read the fpcup wiki page on ARMHF compilation and use the correct section in the ini file (described there).
If necessary you can copy the section into a file of your own, edit it and use that.
That makes it easier to use.

Note that (with fpcup and also with regular fpc sources), ARMHF is only supported with FPC trunk (2.7.1) so make sure you set --fpcurl to the correct value. (--fpcurl=trunk IIRC, please see the fpcup wiki page for details).

Quote
so it did not work again
I and others are not mind readers. Please post exact error messages so we can understand what went wrong...
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: trouble to install and buld lazarus into Raspberry Pi --
« Reply #2 on: September 05, 2014, 11:49:47 am »
Thanks alot BigChimp
i think found whats an error...
 i try to compile with 
Code: [Select]
  fpcopt= --dARMHF in FPC 2.6.2 --

by now i try to do this with 
Code: [Select]
fpcopt= -darm only ..
so far ./fpcup_linux_armhf still running
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: trouble to install and buld lazarus into Raspberry Pi --
« Reply #3 on: September 05, 2014, 11:52:22 am »
So you're now compiling for ARM softfloat instead of ARM hardfloat? That's not an error, that's your decision...

Note: IIRC, this won't work if you have a hardfloat OS like raspbian...
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: trouble to install and buld lazarus into Raspberry Pi --
« Reply #4 on: September 05, 2014, 12:00:23 pm »
heheheh  ::) BigChimp many thanks; how is a good methods to download lazarus into raspberry board ?

because i can not download with
Code: [Select]
sudo apt-get install lazarus again ?

now i try to use  with
Code: [Select]
fpcup_linux_armhf  --verbose to do this ?

hehehehee  :o   When you will come to my country, BigBro ?

try to be better

assembly84

  • New Member
  • *
  • Posts: 31
  • Just Programmer
    • assembly84.net
Re: trouble to install and buld lazarus into Raspberry Pi --
« Reply #5 on: September 05, 2014, 12:46:04 pm »
Thanks BigChimp;
at last .. i try to make a fresh image for Raspberry ,
then continue to try  :-[

Code: [Select]
sudo apt-get update
sudo apt-get install fpc
sudo apt-get install lazarus

seem's is working, but just wait. ..
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: trouble to install and buld lazarus into Raspberry Pi --
« Reply #6 on: September 05, 2014, 12:47:58 pm »
Right. What about this - but haven't tried this, don't own a Pi, your pizza might eat your noodles and your country may disappear...

Edit your ini file to include at least
Code: [Select]
fpcurl=http://svn.freepascal.org/svn/fpc/trunk
; if using armhf, you MUST specify -dFPC_ARMHF in the FPC options;
; specifying in crossopt is not enough.
fpcopt="-dFPC_ARMHF -CaEABIHF -CpARMV6 -CfVFPV2"

See
http://wiki.lazarus.freepascal.org/fpcup#Linux_ARM_cross_compiler
where that is described in case of an ARMHF crosscompiler
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

dogriz

  • Full Member
  • ***
  • Posts: 126
Re: trouble to install and buld lazarus into Raspberry Pi --
« Reply #7 on: September 06, 2014, 10:22:05 am »
...
Code: [Select]
sudo apt-get update
sudo apt-get install fpc
sudo apt-get install lazarus

seem's is working, but just wait. ..

I made a clean NOOBS install yesterday and cannot install fpc or lazarus from repository because of some unmet dependences!?
Weird.

Edit: It looks like there were some problems with binutils version. Fixed, now it installs.
« Last Edit: September 06, 2014, 10:41:07 am by dogriz »
FPC 3.2.2
Lazarus 2.2.4
Debian x86_64, arm

BigChimp

  • Hero Member
  • *****
  • Posts: 5740
  • Add to the wiki - it's free ;)
    • FPCUp, PaperTiger scanning and other open source projects
Re: trouble to install and buld lazarus into Raspberry Pi --
« Reply #8 on: September 06, 2014, 11:12:43 am »
Thanks for posting.

Edit: It looks like there were some problems with binutils version. Fixed, now it installs.

Would be nice if you could update
http://wiki.lazarus.freepascal.org/Lazarus_on_Raspberry_Pi
where needed so other users don't need to search for [whatever the problem was and whatever you did to fix it]
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

dogriz

  • Full Member
  • ***
  • Posts: 126
Re: trouble to install and buld lazarus into Raspberry Pi --
« Reply #9 on: September 10, 2014, 10:14:04 pm »
Would be nice if you could update
http://wiki.lazarus.freepascal.org/Lazarus_on_Raspberry_Pi
where needed so other users don't need to search for [whatever the problem was and whatever you did to fix it]
Well, aptitude did it for me - downgraded binutils to version 2.22-8. I didn't do anything else and I don't know how to do it "by hand".
FPC 3.2.2
Lazarus 2.2.4
Debian x86_64, arm

rdohmen

  • Newbie
  • Posts: 3
Re: trouble to install and buld lazarus into Raspberry Pi --
« Reply #10 on: September 19, 2014, 03:06:19 pm »
Hi,

What would be the command to downgrade the binutils? Some parameter after 'sudo aptitude'?

thanks,

René


dogriz

  • Full Member
  • ***
  • Posts: 126
Re: trouble to install and buld lazarus into Raspberry Pi --
« Reply #11 on: October 28, 2014, 07:27:19 pm »
Hi,

What would be the command to downgrade the binutils? Some parameter after 'sudo aptitude'?

thanks,

René

Press "." for a few times to see how aptitude offers to resolve dependencies and in the end press "!" and do the install. I don't know other way.  :-[
FPC 3.2.2
Lazarus 2.2.4
Debian x86_64, arm

 

TinyPortal © 2005-2018