Forum > Windows (32/64)

Cross compiling

(1/2) > >>

robsean:
Hello everyone:

I've been working on cross compiling recently .

Now I have some problems. Can you help me solve them?

The first question is:From win32 to win64
Refer to:
https://wiki.freepascal.org/Cross_compiling#From_win32_to_win64
https://www.freepascal.org/docs-html/current/prog/progsu220.html#x333-349000F.3.2
I typed in the command line:
make all OS_TARGET=win64 CPU_TARGET=x86_64
then,I got a mistake

The second question is:From win32 to linux
Refer to:
http://www.stack.nl/~marcov/buildfaq.pdf
https://www.freepascal.org/docs-html/current/prog/progsu220.html#x333-349000F.3.2
I typed in the command line:
make all OS_TARGET=linux CPU_TARGET=x86_64
then,I got a mistake

I typed in the command line:
make OS_TARGET=linux all
then,I got a mistake

PascalDragon:

--- Quote from: robsean on April 29, 2021, 05:25:51 am ---Now I have some problems. Can you help me solve them?
--- End quote ---

You need to execute the make all in the top level directory (in your case the fpc-3.2.0 one), not the compiler one.

ccrause:

--- Quote from: PascalDragon on April 29, 2021, 09:24:08 am ---
--- Quote from: robsean on April 29, 2021, 05:25:51 am ---Now I have some problems. Can you help me solve them?
--- End quote ---

You need to execute the make all in the top level directory (in your case the fpc-3.2.0 one), not the compiler one.

--- End quote ---
That means Appendix F.3.2 of the programmers guide needs to be updated. The instructions start with cd compiler.

Edit: Bug report: https://bugs.freepascal.org/view.php?id=38822

robsean:

--- Quote from: PascalDragon on April 29, 2021, 09:24:08 am ---
--- Quote from: robsean on April 29, 2021, 05:25:51 am ---Now I have some problems. Can you help me solve them?
--- End quote ---

You need to execute the make all in the top level directory (in your case the fpc-3.2.0 one), not the compiler one.

--- End quote ---
Thank you.
Now,From win32 to win64 has been successful.

But,There are still some problems From win32 to linux

I typed in the command line:
make all OS_TARGET=linux CPU_TARGET=x86_64
then,I got a mistake


I typed in the command line:
make all OS_TARGET=linux
then,I got a mistake

ccrause:

--- Quote from: ccrause on April 29, 2021, 09:43:54 am ---
--- Quote from: PascalDragon on April 29, 2021, 09:24:08 am ---
--- Quote from: robsean on April 29, 2021, 05:25:51 am ---Now I have some problems. Can you help me solve them?
--- End quote ---

You need to execute the make all in the top level directory (in your case the fpc-3.2.0 one), not the compiler one.

--- End quote ---
That means Appendix F.3.2 of the programmers guide needs to be updated. The instructions start with cd compiler.

Edit: Bug report: https://bugs.freepascal.org/view.php?id=38822

--- End quote ---
Feedback from Marco in the bug report:
--- Quote ---The example for cross-compile in the manual is "make cycle"
--- End quote ---

So the OP should be able to build the compiler in the compiler folder by using the command make cycle ..., if the other problems are also fixed of course.

Navigation

[0] Message Index

[#] Next page

Go to full version