Recent

Author Topic: Installing Lazarus on Linux to compile in linux, win32 and macOS  (Read 25103 times)

Leledumbo

  • Hero Member
  • *****
  • Posts: 8835
  • Programming + Glam Metal + Tae Kwon Do = Me
Re: Installing Lazarus on Linux to compile in linux, win32 and macOS
« Reply #30 on: October 26, 2012, 07:03:28 am »
I come up with another solution, this time it's tested thoroughly and works* 8)

*) at least here, hope on yours too. still, in case, anybody have decent bash knowledge, feel free to modify the script to be better, this quoting stuff makes me %)

UPDATE: Fix a little so that OPT is used instead of CROSSOPT for cpu target same as host
« Last Edit: October 26, 2012, 08:06:59 am by Leledumbo »

BigChimp

  • Hero Member
  • *****
  • Posts: 5740
  • Add to the wiki - it's free ;)
    • FPCUp, PaperTiger scanning and other open source projects
Re: Installing Lazarus on Linux to compile in linux, win32 and macOS
« Reply #31 on: October 26, 2012, 08:28:50 am »
Thanks leledumbo, had a look at the original script and it turns out I'm definitely not a bash guru - no ideas at all about what to change.

One more reason to get more cross compiler support into 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

plakkies

  • New Member
  • *
  • Posts: 16
Re: Installing Lazarus on Linux to compile in linux, win32 and macOS
« Reply #32 on: October 26, 2012, 01:45:55 pm »
I ran that script, don't see a difference. It runs and no visible errors.

Not sure of the next step. but I'm sure there must be one. If I compile some test code it compiles and runs but I can only find a binary for my system.

Im thinking I have to run the step I mentioned in my last post but I still get the same error.

The FPCv2.4.4 is also still bugging me. Im sure the about screen should show V2.6. I have no idea how to make this happen as I though I had installed v2.6. I dont know where the v2.4.4 comes from

Leledumbo

  • Hero Member
  • *****
  • Posts: 8835
  • Programming + Glam Metal + Tae Kwon Do = Me
Re: Installing Lazarus on Linux to compile in linux, win32 and macOS
« Reply #33 on: October 26, 2012, 03:12:42 pm »
Quote
I ran that script, don't see a difference. It runs and no visible errors.
The problem is in my system then, somehow bash lost the variable passed to make. That's why I modify the code to be somewhat redundant, but totally works. If the previous script works for you, good then.
Quote
Not sure of the next step. but I'm sure there must be one. If I compile some test code it compiles and runs but I can only find a binary for my system.
Add -T and -P parameters depending on your target.
Quote
The FPCv2.4.4 is also still bugging me. Im sure the about screen should show V2.6. I have no idea how to make this happen as I though I had installed v2.6. I dont know where the v2.4.4 comes from
As I said earlier: check your symlinks.
« Last Edit: October 26, 2012, 03:14:39 pm by Leledumbo »

plakkies

  • New Member
  • *
  • Posts: 16
Re: Installing Lazarus on Linux to compile in linux, win32 and macOS
« Reply #34 on: October 29, 2012, 05:58:42 am »
Where do I add the -T and -P paramitors?

Sorry I did not see your original post about the symlinks. Where do I find this?

Thanks again for all the help guys. Oh and I did try Typhoon It does not work in linux as far as I can see and when I tried in widows I could not get it to work either. Id rather have as little to do with windows as possible.

plakkies

  • New Member
  • *
  • Posts: 16
Re: Installing Lazarus on Linux to compile in linux, win32 and macOS
« Reply #35 on: October 30, 2012, 01:26:05 pm »
Just noticed the first instruction in the wiki

 []$ cd ~
 []$ svn co http://svn.freepascal.org/svn/fpcbuild/branches/fixes_2_4/install install


Should that not be fixes_2_6 ???

Leledumbo

  • Hero Member
  • *****
  • Posts: 8835
  • Programming + Glam Metal + Tae Kwon Do = Me
Re: Installing Lazarus on Linux to compile in linux, win32 and macOS
« Reply #36 on: October 30, 2012, 04:44:03 pm »
Quote
Where do I add the -T and -P paramitors?
Compiler Options->Code Generation->Target Platform
Quote
Sorry I did not see your original post about the symlinks. Where do I find this?
execute in terminal: ls -l /usr/bin/ppc*

 

TinyPortal © 2005-2018