Forum > Linux
Dependencies issue
backprop:
Latest installation of clean KDE Neon and "official" deb files for FPC and Lazarus
Installation passed fine, however run default empty app, this is shown:
--- Code: ---Compile Project, Target: /home/test/project1: Success, Warnings: 2
project1.lpr(24,1) Warning: "crtbeginS.o" not found, this will probably cause a linking failure
project1.lpr(24,1) Warning: "crtendS.o" not found, this will probably cause a linking failure
--- End code ---
Somewhere at this forum Is wrote build-essential need to be installed in order to fix this issue. And it is, however this warning is still shown. Probably some other devel libraries need to be installed now.
Whoever making these deb files always missing to add all required dependencies inside installation process in order to work correctly with basic installation.
Is it ever this will be handled properly which should allow installation, compilation and running without any issues?
cdbc:
Hi
PCLinuxOS here and that shows the same 2 warnings, but I've never had any problems with it...
Regards Benny
lainz:
--- Quote from: backprop on December 15, 2024, 01:51:56 pm ---Latest installation of clean KDE Neon and "official" deb files for FPC and Lazarus
Installation passed fine, however run default empty app, this is shown:
--- Code: ---Compile Project, Target: /home/test/project1: Success, Warnings: 2
project1.lpr(24,1) Warning: "crtbeginS.o" not found, this will probably cause a linking failure
project1.lpr(24,1) Warning: "crtendS.o" not found, this will probably cause a linking failure
--- End code ---
Somewhere at this forum Is wrote build-essential need to be installed in order to fix this issue. And it is, however this warning is still shown. Probably some other devel libraries need to be installed now.
Whoever making these deb files always missing to add all required dependencies inside installation process in order to work correctly with basic installation.
Is it ever this will be handled properly which should allow installation, compilation and running without any issues?
--- End quote ---
In Project Options, Paths, add the path where the libraries are located in your system.
Fred vS:
--- Quote from: backprop on December 15, 2024, 01:51:56 pm ---Installation passed fine, however run default empty app, this is shown:
--- Code: ---Compile Project, Target: /home/test/project1: Success, Warnings: 2
project1.lpr(24,1) Warning: "crtbeginS.o" not found, this will probably cause a linking failure
project1.lpr(24,1) Warning: "crtendS.o" not found, this will probably cause a linking failure
--- End code ---
--- End quote ---
The problem comes because the linker does not find those files.
The most easy is to find where are those files with this:
--- Code: Bash [+][-]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";}};} ---$ find /usr/ -name crtbeginS.o
I get this:
--- Code: Pascal [+][-]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";}};} ---/usr/lib/gcc/x86_64-linux-gnu/12/crtbeginS.o
And then, add this fpc parameter for compilation:
-Fu/usr/lib/gcc/x86_64-linux-gnu/12 or (works also) -Fl/usr/lib/gcc/x86_64-linux-gnu/12
[EDIT] @Lainz: oops, sorry you did it faster...
backprop:
Current version of GNU C++ with new distro is 13. And during initial configuration, Lazarus do not search for these files, but probably use predefined paths. That is not quite intuitive.
Navigation
[0] Message Index
[#] Next page