Recent

Author Topic: Having difficulty buidling Lazarus under qemu  (Read 538 times)

Aruna

  • Sr. Member
  • ****
  • Posts: 494
Having difficulty buidling Lazarus under qemu
« on: September 08, 2024, 07:05:11 pm »
Hi, I just installed Debian Bookwork on qemu ( everything works fine). I downloaded the Lazarus source, unzipped it, and ran make:

Code: Text  [Select][+][-]
  1. aruna@debian:~/lazarus$ make
  2. make -IVSPTPSOTO: No such file or directory
  3. Makefile 251: *** The makefile doesn't support target - please run fpcmake first. stop.
When I try to run fpcmake it says command not found. How can I resolve this, please? See the first screenshot attached.

The reason for doing this is to test as many window managers as possible (second screenshot attached)
« Last Edit: September 09, 2024, 01:20:56 am by Aruna »

ccrause

  • Hero Member
  • *****
  • Posts: 958
Re: Having difficulty buidling Lazarus under qemu
« Reply #1 on: September 09, 2024, 11:25:20 am »
If you just unzip the Lazarus archive the compiler will not be registered in the path.  You can specify the location of FPC when invoking make:
Code: Text  [Select][+][-]
  1. ~/lazarus$ make FPC=~/lazarus/bin/x86_64/fpc
Confirm the path for your setup.

Aruna

  • Sr. Member
  • ****
  • Posts: 494
Re: Having difficulty buidling Lazarus under qemu
« Reply #2 on: September 09, 2024, 01:29:22 pm »
If you just unzip the Lazarus archive the compiler will not be registered in the path.  You can specify the location of FPC when invoking make:
Code: Text  [Select][+][-]
  1. ~/lazarus$ make FPC=~/lazarus/bin/x86_64/fpc
Confirm the path for your setup.
Hi @ccrause I forgot to install the compiler (happens to the best of us eh?) And now we have some progress and a new error:
Code: Text  [Select][+][-]
  1. aruna@debian:~/lazarus$ /home/aruna/fpc-3.2.0/bin/fpcmake
  2. Processing Makefile.fpc
  3. Error: Target "linux", package "rtl" not found
  4. aruna@debian:~/lazarus$

ccrause

  • Hero Member
  • *****
  • Posts: 958
Re: Having difficulty buidling Lazarus under qemu
« Reply #3 on: September 09, 2024, 02:50:11 pm »
fpcmake is used to regenerate the MakeFiles. I'm sure this is not what you want to do, since the MakeFiles in the source distribution should be up to date already (except in rare instances when the development branch could be in an inconsistent state).

Can you compile a simple hello world program with FPC? What is the output of the following:
Code: Text  [Select][+][-]
  1. $ echo "program hello; begin writeln('hello'); end." > hello.pp
  2. $fpc -va hello.pp

If you get an error that fpc is not found, you should specify the full path to fpc:
Code: Text  [Select][+][-]
  1. $ /path/to/fpc -va hello.pp
If there is a problem with the compiler setup this should list the problem.

Then go back to the lazarus source folder and run make again. If fpc is not found in the path, remember to add FPC=/path/to/fpc to the make command.

MarkMLl

  • Hero Member
  • *****
  • Posts: 7884
Re: Having difficulty buidling Lazarus under qemu
« Reply #4 on: September 09, 2024, 03:12:07 pm »
32- or 64-bit Bookworm (assuming x86)? You'll need fpc (thr precise version can vary a bit depending on the Lazarus version), build-essential, gdb and libgtk2.0-dev which together will pull in a whole lot of other things... I think that's all and after that you should be able to use a  make all  for the default gtk2 target followed possibly by a  make bigide  for the IDE's bells and whistles.

MarkMLl
MT+86 & Turbo Pascal v1 on CCP/M-86, multitasking with LAN & graphics in 128Kb.
Logitech, TopSpeed & FTL Modula-2 on bare metal (Z80, '286 protected mode).
Pet hate: people who boast about the size and sophistication of their computer.
GitHub repositories: https://github.com/MarkMLl?tab=repositories

Aruna

  • Sr. Member
  • ****
  • Posts: 494
Re: Having difficulty buidling Lazarus under qemu
« Reply #5 on: September 09, 2024, 03:42:30 pm »
32- or 64-bit Bookworm (assuming x86)?
I have a couple of layers running on this. My base system running on bare-metal is Debian Bullseye and I have an instance of QEMU running inside which I have installed Debian Bookworm. And this is what the command line tells me when I ask:
Code: Text  [Select][+][-]
  1. aruna@debian:~$ arch
  2. x86_64
  3.  
  4. aruna@debian:~$ uname -r
  5. 6.1.0-25-amd64
  6.  
  7. aruna@debian:~$ uname -a
  8. Linux debian 6.1.0-25-amd64 #1 SMP PREEMPT_DYNAMIC Debian 6.1.106-3 (2024-08-26) x86_64 GNU/Linux
  9.  
  10. aruna@debian:~$ cat /etc/issue
  11. Debian GNU/Linux 12 \n \l
  12.  
  13. aruna@debian:~$ lsb_release -a
  14. No LSB modules are available.
  15. Distributor ID: Debian
  16. Description:    Debian GNU/Linux 12 (bookworm)
  17. Release:        12
  18. Codename:       bookworm
  19. aruna@debian:~$

You'll need fpc (thr precise version can vary a bit depending on the Lazarus version), build-essential, gdb and libgtk2.0-dev which together will pull in a whole lot of other things... I think that's all and after that you should be able to use a  make all  for the default gtk2 target followed possibly by a  make bigide  for the IDE's bells and whistles.

MarkMLl
I am doing my very best to get there but having a few hiccups here and there... soon :-)

Aruna

  • Sr. Member
  • ****
  • Posts: 494
Re: Having difficulty buidling Lazarus under qemu
« Reply #6 on: September 09, 2024, 03:48:55 pm »
fpcmake is used to regenerate the MakeFiles. I'm sure this is not what you want to do, since the MakeFiles in the source distribution should be up to date already (except in rare instances when the development branch could be in an inconsistent state).
Hi @ccrause the only reason I ran fpcmake is because it asked me to do so. Screenshot attached :-) I have to run for a blood work lab test soon, so will answer your other questions when I get back. Wish me luck. ( can you belive at 64 I am still scared silly of needles :-)

MarkMLl

  • Hero Member
  • *****
  • Posts: 7884
Re: Having difficulty buidling Lazarus under qemu
« Reply #7 on: September 09, 2024, 03:49:23 pm »
These commands

Code: Text  [Select][+][-]
  1. $ cat /etc/os-release
  2.  
  3. $ apt-cache search fpc
  4.  

will show you that it's packing FPC 3.2.2 which should be OK for your purposes, i.e. you can start with standard Debian packages etc. rather than downloading from fpc.org's repo. Apart from that you'll need packages as I've listed already... they're not the "old friends" I invariably install but I think they're an adequate subset.

MarkMLl
MT+86 & Turbo Pascal v1 on CCP/M-86, multitasking with LAN & graphics in 128Kb.
Logitech, TopSpeed & FTL Modula-2 on bare metal (Z80, '286 protected mode).
Pet hate: people who boast about the size and sophistication of their computer.
GitHub repositories: https://github.com/MarkMLl?tab=repositories

 

TinyPortal © 2005-2018