Re: [fpc-pascal] Can not cross compile from Win64 to Win32 using fpcup

2014-05-20 Thread Martin Frb

On 20/05/2014 09:28, Reinier Olislagers wrote:

7. Please help me to solve this. I think this can be fixed, because the
Lazarus has its lazarus-1.2.2-fpc-2.6.4-cross-i386-win32-win64.exe, So can
I?

That's a cross compiler from 32 bit to 64 bit. I'd suggest doing the
same with fpcup and using the 32 bit fpcup version to generate a 64 bit
cross compiler which should work flawlessly.



The Lazarus add on package (which allows the 64 bit IDE to compile 32 
bit apps) technically is a normal 32 bit fpc, instead of a cross compiler.

Only the ppc was renamed so it acts as if it was a cross compiler.


___
fpc-pascal maillist  -  fpc-pascal@lists.freepascal.org
http://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-pascal


Re: [fpc-pascal] Can not cross compile from Win64 to Win32 using fpcup

2014-05-20 Thread Marco van de Voort
In our previous episode, Jonas Maebe said:
> >> 3. run fpcupgui.exe and successfully finished.
> >>using fpc svn version 2.6.4
> >>using lazarus svn version 1.2.2
> > FPC 2.6.x does not support cross compiling from win64 to win32 due to
> > the error you found below.
> > AFAIR, it's been fixed in FPC trunk.
> 
> It's not supported in trunk either.

To clarify, there are two issues:

1. Lazarus IDE not behaving properly without SEH (openfiledialog crashing
etc)
2. FPC not supporting   xx => i386 crosscompiling due to the x86 codegen
   using extended which is not support on non x86. (needs softfpu)

___
fpc-pascal maillist  -  fpc-pascal@lists.freepascal.org
http://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-pascal


Re: [fpc-pascal] Can not cross compile from Win64 to Win32 using fpcup

2014-05-20 Thread Jonas Maebe


On 20 May 2014, at 10:28, Reinier Olislagers wrote:


On 20/05/2014 05:56, hawkx wrote:


3. run fpcupgui.exe and successfully finished.
   using fpc svn version 2.6.4
   using lazarus svn version 1.2.2

FPC 2.6.x does not support cross compiling from win64 to win32 due to
the error you found below.
AFAIR, it's been fixed in FPC trunk.


It's not supported in trunk either.


Jonas
___
fpc-pascal maillist  -  fpc-pascal@lists.freepascal.org
http://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-pascal


Re: [fpc-pascal] Can not cross compile from Win64 to Win32 using fpcup

2014-05-20 Thread Reinier Olislagers
On 20/05/2014 05:56, hawkx wrote:
Thanks for your clear description - helps a lot.

> 3. run fpcupgui.exe and successfully finished.
> using fpc svn version 2.6.4
> using lazarus svn version 1.2.2
FPC 2.6.x does not support cross compiling from win64 to win32 due to
the error you found below.
AFAIR, it's been fixed in FPC trunk.

> 7. Please help me to solve this. I think this can be fixed, because the
> Lazarus has its lazarus-1.2.2-fpc-2.6.4-cross-i386-win32-win64.exe, So can
> I?
That's a cross compiler from 32 bit to 64 bit. I'd suggest doing the
same with fpcup and using the 32 bit fpcup version to generate a 64 bit
cross compiler which should work flawlessly.

> Please forgive my bad English, thanks!
No problems at all with your English ;)
___
fpc-pascal maillist  -  fpc-pascal@lists.freepascal.org
http://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-pascal