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


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

2014-05-20 Thread hawkx
I use fcpup to cross compile from Win64 to Win32 but failed. these was what I
did:

1. download fpcupgui.exe, fpcup64.exe, CrossFPC_binutils_libs.7z from fpcup
site.

2. rename fpcup64.exe to fpcup.exe

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

4. run fpcupgui.exe to cross compile from Win64 to Win32
   fpcurl=http://svn.freepascal.org/svn/fpc/tags/release_2_6_4
   lazurl=http://svn.freepascal.org/svn/lazarus/tags/lazarus_1_2_2/
   fpcuplinkname=""
   lazlinkname=""
   cputarget=i386
   ostarget=win32
   only=FPCBuildOnly,LazarusBuildOnly

5. then I go some error:
   fpcdefs.inc(160,2) Error: User defined: Cross-compiling from systems
without support for an 80 bit extended floating point type to i386 is not
yet supported at this time

6. I found this on world:
  
http://free-pascal-general.1045716.n5.nabble.com/Cross-compiling-Win64-gt-Win32-fails-td5710399.html
   It says I need some files (/rtl/inc/sfpux80.pp and the files it includes)
but I don not found in fpc source files

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?


Please forgive my bad English, thanks!





--
View this message in context: 
http://free-pascal-general.1045716.n5.nabble.com/Can-not-cross-compile-from-Win64-to-Win32-using-fpcup-tp5719282.html
Sent from the Free Pascal - General mailing list archive at Nabble.com.
___
fpc-pascal maillist  -  fpc-pascal@lists.freepascal.org
http://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-pascal