Forum > General

Compiling applications!

(1/3) > >>

xinyiman:
Question! If I made a program on my Ubuntu 64bit with Lazarus and always wanted to compile 32bit on my machine as I do!?


Same thing if I had the same program on a Windows PC to 32bit and want to compile 64-bit, as I do?

Thanks for any answers!

Leledumbo:
You need a cross-compiler. Please build one yourself from the source since AFAIK no prebuilt binaries exist. How? First, make sure you have the source. Then, type: make all install INSTALL_PREFIX=<your fpc installation dir> CPU_TARGET=i386 (for 32-bit intel). If successful, you'll have ppccross386 in <lib your fpc installation dir>/fpc/<fpc version> folder.

xinyiman:
Despite many attempts I could not! Could you give me more precise information please?

Ñuño_Martínez:
I think Leledumbo was very precise. What didn't you understand?

xinyiman:
First, by what route I run the command:

make all install INSTALL_PREFIX=<your fpc installation dir> CPU_TARGET=i386

Second thing is: ppccross386 in <lib your fpc installation dir>/fpc/<fpc version> folder

Navigation

[0] Message Index

[#] Next page

Go to full version