Forum > General
Having difficulty buidling Lazarus under qemu
Aruna:
Hi, I just installed Debian Bookwork on qemu ( everything works fine). I downloaded the Lazarus source, unzipped it, and ran make:
--- Code: Text [+][-]window.onload = function(){var x1 = document.getElementById("main_content_section"); if (x1) { var x = document.getElementsByClassName("geshi");for (var i = 0; i < x.length; i++) { x[i].style.maxHeight='none'; x[i].style.height = Math.min(x[i].clientHeight+15,306)+'px'; x[i].style.resize = "vertical";}};} ---aruna@debian:~/lazarus$ makemake -IVSPTPSOTO: No such file or directoryMakefile 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)
ccrause:
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 [+][-]window.onload = function(){var x1 = document.getElementById("main_content_section"); if (x1) { var x = document.getElementsByClassName("geshi");for (var i = 0; i < x.length; i++) { x[i].style.maxHeight='none'; x[i].style.height = Math.min(x[i].clientHeight+15,306)+'px'; x[i].style.resize = "vertical";}};} ---~/lazarus$ make FPC=~/lazarus/bin/x86_64/fpcConfirm the path for your setup.
Aruna:
--- Quote from: ccrause 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 [+][-]window.onload = function(){var x1 = document.getElementById("main_content_section"); if (x1) { var x = document.getElementsByClassName("geshi");for (var i = 0; i < x.length; i++) { x[i].style.maxHeight='none'; x[i].style.height = Math.min(x[i].clientHeight+15,306)+'px'; x[i].style.resize = "vertical";}};} ---~/lazarus$ make FPC=~/lazarus/bin/x86_64/fpcConfirm the path for your setup.
--- End quote ---
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 [+][-]window.onload = function(){var x1 = document.getElementById("main_content_section"); if (x1) { var x = document.getElementsByClassName("geshi");for (var i = 0; i < x.length; i++) { x[i].style.maxHeight='none'; x[i].style.height = Math.min(x[i].clientHeight+15,306)+'px'; x[i].style.resize = "vertical";}};} ---aruna@debian:~/lazarus$ /home/aruna/fpc-3.2.0/bin/fpcmakeProcessing Makefile.fpcError: Target "linux", package "rtl" not foundaruna@debian:~/lazarus$
ccrause:
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 [+][-]window.onload = function(){var x1 = document.getElementById("main_content_section"); if (x1) { var x = document.getElementsByClassName("geshi");for (var i = 0; i < x.length; i++) { x[i].style.maxHeight='none'; x[i].style.height = Math.min(x[i].clientHeight+15,306)+'px'; x[i].style.resize = "vertical";}};} ---$ echo "program hello; begin writeln('hello'); end." > hello.pp$fpc -va hello.pp
If you get an error that fpc is not found, you should specify the full path to fpc:
--- Code: Text [+][-]window.onload = function(){var x1 = document.getElementById("main_content_section"); if (x1) { var x = document.getElementsByClassName("geshi");for (var i = 0; i < x.length; i++) { x[i].style.maxHeight='none'; x[i].style.height = Math.min(x[i].clientHeight+15,306)+'px'; x[i].style.resize = "vertical";}};} ---$ /path/to/fpc -va hello.ppIf 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:
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
Navigation
[0] Message Index
[#] Next page