[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

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.

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

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

Re: [fpc-pascal] How To Rewrite/Replace Below MEM And MEMW

2014-05-20 Thread Tomas Hajny
On Tue, May 20, 2014 10:01, nitinjain wrote: Hi Nitin, Could any one help on replacing or rewriting below MEM and MEMW function for 32 bit OS. . . MEM[$B800:offset]:=top_left_corner[style]; . . Have you already tried the recommendations discussed in a recent thread here

Re: [fpc-pascal] Identifier not found MEMW

2014-05-20 Thread nitinjain
Thanks, I used same (Video Unit) but throwing runtime error* Program Received Signal SIGSEGV Segmentation fault*. -- View this message in context: http://free-pascal-general.1045716.n5.nabble.com/Identifier-not-found-MEMW-tp5719166p5719288.html Sent from the Free Pascal - General mailing

Re: [fpc-pascal] How To Rewrite/Replace Below MEM And MEMW

2014-05-20 Thread nitinjain
Thanks Tomas, Yes, I have allready followd the steps which you have given in last post (Video Unit), but it is throwing runtime error that is: *Program Received Signal SIGSEGV Segmentation fault*. -- View this message in context:

Re: [fpc-pascal] How To Rewrite/Replace Below MEM And MEMW

2014-05-20 Thread Tomas Hajny
On Tue, May 20, 2014 12:10, nitinjain wrote: Thanks Tomas, Yes, I have allready followd the steps which you have given in last post (Video Unit), but it is throwing runtime error that is: *Program Received Signal SIGSEGV Segmentation fault*. Have you managed to identify the exact code (line)

Re: [fpc-pascal] Identifier not found MEMW

2014-05-20 Thread Marco van de Voort
In our previous episode, nitinjain said: I used same (Video Unit) but throwing runtime error* Program Received Signal SIGSEGV Segmentation fault*. Did you follow all steps in http://stackoverflow.com/questions/23563834/freepascal-identifier-not-found-memw/23700057#comment36526285_23700057 and

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

[fpc-pascal] fpc.cfg - how to set it so it uses arm embedded as the default target

2014-05-20 Thread Justin Smyth
Hi Folks I've got fpc to compile in a dos box for Arm Embedded using this script fpc -Parm -Tembedded -WpLPC1343FBD48 -Cparmv7m myprogram.pp how do it get the above commands into fpc.cfg ? so I can just type fpc myprogram.pp Kind Regards Justin

Re: [fpc-pascal] fpc.cfg - how to set it so it uses arm embedded as the default target

2014-05-20 Thread Jonas Maebe
On 20 May 2014, at 14:32, Justin Smyth wrote: I’ve got fpc to compile in a dos box for Arm Embedded using this script fpc -Parm -Tembedded -WpLPC1343FBD48 -Cparmv7m myprogram.pp how do it get the above commands into fpc.cfg ? so I can just type fpc myprogram.pp On Windows, create a file

[fpc-pascal] fpc.cfg - how to set it so it uses arm embedded as the default target

2014-05-20 Thread Justin Smyth
I've created this no change , when I run fpc I comes up trying to use ppc386.exe This is my path on my vm PATH=c:\users\sslvpn;C:\lazarusExtras\FPC\2.6.4\bin\arm-embedded;C:\LazarusE xtras\fpc\2.6.4\Source\rtl\units\arm-embedded;C:\LazarusExtras\fpc\2.6.4\Sou

Re: [fpc-pascal] fpc.cfg - how to set it so it uses arm embedded as the default target

2014-05-20 Thread Jonas Maebe
On 20 May 2014, at 15:15, Justin Smyth wrote: I've created this no change , when I run fpc I comes up trying to use ppc386.exe try running fpc with the -va parameter, then it will tell you where it looks for configuration files, which one it uses and the options it parses. Best pipe the

[fpc-pascal] Segmentation Error using VideoBuf

2014-05-20 Thread mokashe....@gmail.com
Hi, I am trying use VideoBuf Variable available in 'Video' unit but getting error *Program Received Signal SIGSEGV Segmentation fault. * -- PROCEDURE blank_window(top_left_x,

Re: [fpc-pascal] fpc.cfg - how to set it so it uses arm embedded as the default target

2014-05-20 Thread Jonas Maebe
On 20 May 2014, at 15:19, Jonas Maebe wrote: On 20 May 2014, at 15:15, Justin Smyth wrote: I've created this no change , when I run fpc I comes up trying to use ppc386.exe try running fpc with the -va parameter, then it will tell you where it looks for configuration files, which one it

Re: [fpc-pascal] fpc.cfg - how to set it so it uses arm embedded as the default target

2014-05-20 Thread Justin Smyth
I get [0.003] Macro defined: WIN32 [0.003] Macro defined: MSWINDOWS [0.003] Macro defined: WINDOWS [0.003] Macro defined: FPC_WINLIKEWIDESTRING [0.003] Macro defined: FPC_NO_GENERIC_STACK_CHECK [0.003] Macro defined: FPC_HAS_WINLIKERESOURCES [0.003] Macro defined: WIN32 [0.003] Macro defined: FPC

Re: [fpc-pascal] Segmentation Error using VideoBuf

2014-05-20 Thread Tomas Hajny
On Tue, May 20, 2014 14:25, mokashe@gmail.com wrote: Hi, I am trying use VideoBuf Variable available in 'Video' unit but getting error *Program Received Signal SIGSEGV Segmentation fault. * . . {* MEM[$B800:(x_offset-1)*2 +(y_offset-1)*160]:=32;

Re: [fpc-pascal] fpc.cfg - how to set it so it uses arm embedded as the default target

2014-05-20 Thread Justin Smyth
I've been thinking about this , I've come up with a solution I'm going to be using this in lazarus , so in the project options when you select arm I think you need to be able to select the chip set to be used. The Chipset can be found by using ppcrossarm.exe -i That will list the chipset and