Forum > General
Trying to compile a small program for Linux Mint
regressist:
Hi all,
I am surely asking idiotic questions, sorry for that. I run Lazarus on a virtual machine with win XP. I do not know much the tool but I am able to compile a simple program written by me to perform some enormous computations with integers, no input, output is just a bunch on numbers on screen and in a text file. No class, graphics, etc. just basic. I am able to compile for windows without a glitch.
Now I have at hand a spare desktop with Linux Mint (which for me is totally new subject), I would like to compile also for that.
I went into Project options and set as target OS Linux. The cpu for linux is i5-7200 anyway I left default for family and cpu.
When I click OK I get the error:
The project uses target OS=linux and CPU=i386.
The system.ppu for this target was not found in the FPC binary directories
Make sure fpc is installed correctly for this target and the fpc.cfg contains the right directories.
Please let me know if you have the time
Thanks in advance to whomever will reply
Josh:
Hi
If you left them on default, then the project should run as is; on nearly all platforms.
I suspect you have a 64bit Os, 64 Bit Laz and FPC and then your telling it to compile and run an 32 bit application(I386),boom.
This can work if you also install the 64-32bit cross compiler.
Thaddy:
Maybe you need multiarch installed for mint, but since I am not a fan of mint (because it is not so "mint", it one of the most problematic big distro's ) You have to check that yourself. Or you need the correct compiler, as mentioned: if multiarch is not installed on a 64 bit system, 32 bit binaries won't work without multiarch. In that case you install 64 bit Lazarus and 64 bit Fpc as mentioned before.
Handoko:
@regressist
Were you running Lazarus on Windows and trying to generate binary for Linux? If yes, then you have to prepare the cross compiler first. You can search the wiki or forum about preparing the cross compiler.
Bart:
It's easier to just run Lazarus on Linux Mint and compile the code there.
Bart
Navigation
[0] Message Index
[#] Next page