Recent

Author Topic: Small virtual machine to cross compile FPC  (Read 28305 times)

DonAlfredo

  • Hero Member
  • *****
  • Posts: 1149
Re: Small virtual machine to cross compile FPC
« Reply #45 on: September 10, 2015, 07:38:09 am »
Ok. Found it !

FPCUP is expecting the dynamic loader (ld-Linux.so.2) at /usr/lib/ld-Linux.so.2
But its not there.
A link is present in /lib
Another link is present in /lib/i386-linux-gnu

The real file is here: /lib/i386-linux-gnu/ld-2.19.so

So, just create a symlink from /lib/ld-linux.so.2 -> /usr/lib/ld-Linux.so.2

And off you go !
Good luck !!

DonAlfredo

  • Hero Member
  • *****
  • Posts: 1149
Re: Small virtual machine to cross compile FPC
« Reply #46 on: September 10, 2015, 05:39:21 pm »
I have updated fpcup.
Should work now on Debian, without the need of manually adding links !

Paul Breneman

  • Sr. Member
  • ****
  • Posts: 290
    • Control Pascal
Re: Small virtual machine to cross compile FPC
« Reply #47 on: September 16, 2015, 04:22:11 am »
I have updated fpcup.
Should work now on Debian, without the need of manually adding links !

Yes, thank you very much!  The Debian LXDE VM on this page (http://wiki.freepascal.org/Small_Virtual_Machines) now works with fpcup!

Hopefully tomorrow I can try the ReactOS VM.
Regards,
Paul Breneman
www.ControlPascal.com

jc99

  • Hero Member
  • *****
  • Posts: 536
    • My private Site
Re: Small virtual machine to cross compile FPC
« Reply #48 on: November 14, 2015, 04:57:24 pm »
Hi Paul,

Have you had any luck on the ReactOS & fpcup -Issue ?
In ReactOS i desperatly miss the SMB-drive-mapping-support.
I think that I have to wait for the 0.4 version.

Greetings
JC
OS: Win XP x64, Win 7, Win 7 x64, Win 10, Win 10 x64, Suse Linux 13.2
Laz: 1.4 - 1.8.4, 2.0
https://github.com/joecare99/public
'~|    /''
,_|oe \_,are
If you want to do something for the environment: Twitter: #reduceCO2 or
https://www.betterplace.me/klimawandel-stoppen-co-ueber-preis-reduzieren

Paul Breneman

  • Sr. Member
  • ****
  • Posts: 290
    • Control Pascal
Re: Small virtual machine to cross compile FPC
« Reply #49 on: November 18, 2015, 01:46:32 am »
Have you had any luck on the ReactOS & fpcup -Issue ?

Today I tried 69923 (the 60 MB version, not the msvc version) from here:
http://iso.reactos.org/bootcd/

I no longer get the "blue-screen-of-death" but fpcup never completes.
Regards,
Paul Breneman
www.ControlPascal.com

Paul Breneman

  • Sr. Member
  • ****
  • Posts: 290
    • Control Pascal
Re: Small virtual machine to cross compile FPC
« Reply #50 on: May 19, 2016, 08:57:33 pm »
I think that I have to wait for the 0.4 version.

I just tested the ReactOS 0.4.1 version and things work much better.  I also updated the ReactOS section of the wiki page: http://wiki.freepascal.org/Small_Virtual_Machines#ReactOS_virtual_machine
« Last Edit: May 19, 2016, 08:59:37 pm by Paul Breneman »
Regards,
Paul Breneman
www.ControlPascal.com

Paul Breneman

  • Sr. Member
  • ****
  • Posts: 290
    • Control Pascal
Re: Small virtual machine to cross compile FPC
« Reply #51 on: May 23, 2016, 06:15:36 pm »
I have updated fpcup.
Should work now on Debian, without the need of manually adding links !

I just added a new section to this wiki page and I've been trying to get fpcup working on TinyCoreLinux: http://wiki.freepascal.org/Small_Virtual_Machines#Levinux_virtual_machine


Is there any hope?  Regardless, Levinux sure is fun!
Regards,
Paul Breneman
www.ControlPascal.com

Paul Breneman

  • Sr. Member
  • ****
  • Posts: 290
    • Control Pascal
Re: Small virtual machine to cross compile FPC
« Reply #52 on: June 03, 2017, 01:31:02 pm »
This section was updated for the recent ReactOS 0.4.5 release:
http://wiki.freepascal.org/Small_Virtual_Machines#ReactOS_virtual_machine
Regards,
Paul Breneman
www.ControlPascal.com

Paul Breneman

  • Sr. Member
  • ****
  • Posts: 290
    • Control Pascal
Re: Small virtual machine to cross compile FPC
« Reply #53 on: July 29, 2019, 06:08:28 pm »
Win10 makes console mode linux simple and fast!

I just added: https://wiki.freepascal.org/Small_Virtual_Machines#Windows_WSL_and_WSL2

Regards,
Paul Breneman
www.ControlPascal.com

Thaddy

  • Hero Member
  • *****
  • Posts: 9188
Re: Small virtual machine to cross compile FPC
« Reply #54 on: July 29, 2019, 06:17:43 pm »
Yes it does. I have installed a Debian user space. Once you could only install Ubuntu, but that limitation has gone.
Both FPC and Lazarus can be compiled under WSL. It is not a VM, though, it actually runs native.
It is somewhat limited, though, since it is confined to user space Linux.
also related to equus asinus.

avra

  • Hero Member
  • *****
  • Posts: 1717
    • Additional info
Re: Small virtual machine to cross compile FPC
« Reply #55 on: July 29, 2019, 11:55:45 pm »
Win10 makes console mode linux simple and fast!
Only if you do not already use VMware or VirtualBox. If you want WSL2 then you will have to choose between WSL2 OR VMs. You can not use both in the same Win10 session. Bummer. Main thing for WSL2 was to bring Docker support, but I will not use WSL2 if I have to say goodbye to my VMs. I think this is a very nasty way of M$ to make  VMware and VBox users switch over to M$ camp.
« Last Edit: July 30, 2019, 12:00:05 am by avra »
ct2laz - Conversion between Lazarus and CodeTyphon
bithelpers - Bit manipulation for standard types
pasettimino - Siemens S7 PLC lib

julkas

  • Sr. Member
  • ****
  • Posts: 416
  • KISS principle / Lazarus 2.0.0 / FPC 3.0.4
Re: Small virtual machine to cross compile FPC
« Reply #56 on: July 30, 2019, 08:56:28 am »
Win10 makes console mode linux simple and fast!

I just added: https://wiki.freepascal.org/Small_Virtual_Machines#Windows_WSL_and_WSL2
Offtopic quest. About what console mode linux are you talking ?
procedure mulu64(a, b: QWORD; out clo, chi: QWORD); assembler;
asm
  mov rax, a
  mov rdx, b
  mul rdx
  mov [clo], rax
  mov [chi], rdx
end;

PascalDragon

  • Hero Member
  • *****
  • Posts: 674
  • Compiler Developer
Re: Small virtual machine to cross compile FPC
« Reply #57 on: July 30, 2019, 09:03:49 am »
Yes it does. I have installed a Debian user space. Once you could only install Ubuntu, but that limitation has gone.
I use it with ArchLinux :D

Both FPC and Lazarus can be compiled under WSL. It is not a VM, though, it actually runs native.
The VM part is correct for WSL, but not for WSL2 as there they're running the whole kernel in a Hyper-V VM.

It is somewhat limited, though, since it is confined to user space Linux.
Again, not true anymore for WSL2. Though to be honest: when you really need to develop something in kernel you do that either with a dedicated hardware or a dedicated VM.

Win10 makes console mode linux simple and fast!

I just added: https://wiki.freepascal.org/Small_Virtual_Machines#Windows_WSL_and_WSL2
Offtopic quest. About what console mode linux are you talking ?
If you want to run GUI applications on WSL you need to install a X11 server for Windows and have WSL use that to display any GUI. So by default you're restricted to command line applications only.

Thaddy

  • Hero Member
  • *****
  • Posts: 9188
Re: Small virtual machine to cross compile FPC
« Reply #58 on: July 30, 2019, 09:12:47 am »
I forgot to read the WSL2 documentation properly it seems. Thanks for the corrections. I indeed assumed WSL.
also related to equus asinus.

julkas

  • Sr. Member
  • ****
  • Posts: 416
  • KISS principle / Lazarus 2.0.0 / FPC 3.0.4
Re: Small virtual machine to cross compile FPC
« Reply #59 on: July 30, 2019, 09:27:28 am »
Yes it does. I have installed a Debian user space. Once you could only install Ubuntu, but that limitation has gone.
I use it with ArchLinux :D

Both FPC and Lazarus can be compiled under WSL. It is not a VM, though, it actually runs native.
The VM part is correct for WSL, but not for WSL2 as there they're running the whole kernel in a Hyper-V VM.

It is somewhat limited, though, since it is confined to user space Linux.
Again, not true anymore for WSL2. Though to be honest: when you really need to develop something in kernel you do that either with a dedicated hardware or a dedicated VM.

Win10 makes console mode linux simple and fast!

I just added: https://wiki.freepascal.org/Small_Virtual_Machines#Windows_WSL_and_WSL2
Offtopic quest. About what console mode linux are you talking ?
If you want to run GUI applications on WSL you need to install a X11 server for Windows and have WSL use that to display any GUI. So by default you're restricted to command line applications only.
I don't know about WSL. I always use putty and mc for VM console access. Putty has SSH, X11 port mapping so you can integrate it with XMing (if needed).
procedure mulu64(a, b: QWORD; out clo, chi: QWORD); assembler;
asm
  mov rax, a
  mov rdx, b
  mul rdx
  mov [clo], rax
  mov [chi], rdx
end;