Sign in Join

Live chat for Free Pascal, Lazarus, Delphi and every Pascal programmer.

Mailing lists / lazarus / 2013-05

FPC packagae

7 messages · 2 people · –

Reply by email Subscribe to this list Your subscription

Read-only archive. Use j and k to move between messages.

Antonio Fortuny

Hi Folks.

For one of my projects I use the memdslaz package wich, in turn uses memds.pp which is part of the FPC package fcl-db.
The target program has to run on arm-wince. To get a lazarus package compiled for win32 and/or wince it's easy, compilation target depends on projetc target. But for FCL ?
I've tried this:
D:\Programmes\lazarus\fpc\2.6.1\source\packages\fcl-db>..\..\..\bin\i386-win32\make all OS_TARGET=wince CPU_TARGET=arm
makefile:197: *** The Makefile doesn't support target arm-wince, please run fpcmake first. Stop.

this one runs OK
D:\Programmes\lazarus\fpc\2.6.1\source\packages\fcl-db>..\..\..\bin\i386-win32\make all

The compiler for WinCE has been installed and runs OK: targets run on a PocketPC arm-wince without problems
Any ideas ?
Thanks in advance.

Antonio.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.lazarus.freepascal.org/pipermail/lazarus/attachments/20130502/12a15111/attachment.html>

Reply by email

Michael Van Canneyt
to Antonio Fortuny
Antonio Fortuny wrote 13 lines
Hi Folks. For one of my projects I use the memdslaz package wich, in turn uses memds.pp which is part of the FPC package fcl-db. The target program has to run on arm-wince. To get a lazarus package compiled for win32 and/or wince it's easy, compilation target depends on projetc target. But for FCL ? I've tried this: D:\Programmes\lazarus\fpc\2.6.1\source\packages\fcl-db>..\..\..\bin\i386-win32\make all OS_TARGET=wince CPU_TARGET=arm makefile:197: *** The Makefile doesn't support target arm-wince, please run fpcmake first.? Stop. this one runs OK D:\Programmes\lazarus\fpc\2.6.1\source\packages\fcl-db>..\..\..\bin\i386-win32\make all The compiler for WinCE has been installed and runs OK: targets run on a PocketPC arm-wince without problems Any ideas ?

It is likely that the arm-wince target was diabled, since ARM requires aligned memory access. To my knowledge, the memds package has not been tested/adapted for that.

Michael.

Reply by email

Antonio Fortuny
to Michael Van Canneyt

Le 02/05/2013 16:56, Michael Van Canneyt a ?crit :

Show quoted text 5 lines
It is likely that the arm-wince target was diabled, since ARM requires aligned memory access. To my knowledge, the memds package has not been tested/adapted for that.

This is my first idea, you know. But I can assert that it runs on Win32, ARM-WinCE, and Linux x86_64. The problem is rather simple: when saving a dataset with no data and then reloading it, it blows up when the data portion is loaded (something seem missed by the save part). I'd like to change a little bit and to test. That's why I'd like to recompile with debug information, at least in Win32. But then for ARM-WinCE too.

Antonio.

Show quoted text 9 lines
Michael. -- _______________________________________________ Lazarus mailing list http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.lazarus.freepascal.org/pipermail/lazarus/attachments/20130502/eb82d5f0/attachment.html>

Reply by email

Antonio Fortuny
to Michael Van Canneyt: It is likely that the arm-wince target was diabled, since ARM requires aligned memory…

I've a change in memds.pp and now it works as expected when using SaveToStream and LoadFromStream even when the source dataset is empty. I'd like now to compile the source of fcl-db for ARM-wince. Any ideas on how to do ?

Antonio.

Le 02/05/2013 16:56, Michael Van Canneyt a ?crit :

Show quoted text 37 lines
On Thu, 2 May 2013, Antonio Fortuny wrote: > Hi Folks. > > For one of my projects I use the memdslaz package wich, in turn uses > memds.pp which is part of the FPC package fcl-db. > The target program has to run on arm-wince. To get a lazarus package > compiled for win32 and/or wince it's easy, compilation target depends > on projetc target. But for FCL ? > I've tried this: > D:\Programmes\lazarus\fpc\2.6.1\source\packages\fcl-db>..\..\..\bin\i386-win32\make > all OS_TARGET=wince CPU_TARGET=arm > makefile:197: *** The Makefile doesn't support target arm-wince, > please run fpcmake first. Stop. > > this one runs OK > D:\Programmes\lazarus\fpc\2.6.1\source\packages\fcl-db>..\..\..\bin\i386-win32\make > all > > The compiler for WinCE has been installed and runs OK: targets run on > a PocketPC arm-wince without problems > Any ideas ? It is likely that the arm-wince target was diabled, since ARM requires aligned memory access. To my knowledge, the memds package has not been tested/adapted for that. Michael. -- _______________________________________________ Lazarus mailing list http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.lazarus.freepascal.org/pipermail/lazarus/attachments/20130503/3f159910/attachment.html>

Reply by email

Michael Van Canneyt
to Antonio Fortuny
Antonio Fortuny wrote
I've a change in memds.pp and now it works as expected when using SaveToStream and LoadFromStream even when the source dataset is empty. I'd like now to compile the source of fcl-db for ARM-wince. Any ideas on how to do ?

make CPU_TARGET=arm OS_TARGET=wince

should do it.

if the wince target is missing, run
fpcmake -Tall
in
fcl-db/src/memds

Michael.

Show quoted text 39 lines
Antonio. Le 02/05/2013 16:56, Michael Van Canneyt a ?crit?: On Thu, 2 May 2013, Antonio Fortuny wrote: Hi Folks. For one of my projects I use the memdslaz package wich, in turn uses memds.pp which is part of the FPC package fcl-db. The target program has to run on arm-wince. To get a lazarus package compiled for win32 and/or wince it's easy, compilation target depends on projetc target. But for FCL ? I've tried this: D:\Programmes\lazarus\fpc\2.6.1\source\packages\fcl-db>..\..\..\bin\i386-win32\make all OS_TARGET=wince CPU_TARGET=arm makefile:197: *** The Makefile doesn't support target arm-wince, please run fpcmake first.? Stop. this one runs OK D:\Programmes\lazarus\fpc\2.6.1\source\packages\fcl-db>..\..\..\bin\i386-win32\make all The compiler for WinCE has been installed and runs OK: targets run on a PocketPC arm-wince without problems Any ideas ? It is likely that the arm-wince target was diabled, since ARM requires aligned memory access. To my knowledge, the memds package has not been tested/adapted for that. Michael. -- _______________________________________________ Lazarus mailing list http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus

Reply by email

Antonio Fortuny
to Michael Van Canneyt

Le 03/05/2013 14:29, Michael Van Canneyt a ?crit :

Show quoted text 13 lines
On Fri, 3 May 2013, Antonio Fortuny wrote: > I've a change in memds.pp and now it works as expected when using > SaveToStream and LoadFromStream even when the source dataset is > empty. I'd like now to compile the source of fcl-db for > ARM-wince. > Any ideas on how to do ? make CPU_TARGET=arm OS_TARGET=wince should do it.

Got it.
I did the same with the changed memds.pp (this time with CPU_TARGET=i386 OS_TARGET=win32)and got new memds.ppu and memds.o in fcl-db\units\i386-win32\
Then I copied those two new files into fpc\2.6.1\units\i386-win32\fcl-db\ But when I recompile the project and run it I get the last error back as if the old unit was still there with the old error I've searched into the HD but except those two places there no other files anywhere.

Show quoted text 62 lines
if the wince target is missing, run fpcmake -Tall in fcl-db/src/memds Michael. > > Antonio. > > Le 02/05/2013 16:56, Michael Van Canneyt a ?crit : > > > On Thu, 2 May 2013, Antonio Fortuny wrote: > > Hi Folks. > > For one of my projects I use the memdslaz package wich, > in turn uses memds.pp which is part of the FPC package fcl-db. > The target program has to run on arm-wince. To get a > lazarus package compiled for win32 and/or wince it's easy, > compilation target depends on projetc target. But for > FCL ? > I've tried this: > D:\Programmes\lazarus\fpc\2.6.1\source\packages\fcl-db>..\..\..\bin\i386-win32\make > all OS_TARGET=wince CPU_TARGET=arm > makefile:197: *** The Makefile doesn't support target > arm-wince, please run fpcmake first. Stop. > > this one runs OK > D:\Programmes\lazarus\fpc\2.6.1\source\packages\fcl-db>..\..\..\bin\i386-win32\make > all > > The compiler for WinCE has been installed and runs OK: > targets run on a PocketPC arm-wince without problems > Any ideas ? > > > It is likely that the arm-wince target was diabled, since ARM > requires aligned memory access. > To my knowledge, the memds package has not been tested/adapted > for that. > > Michael. > > > -- > _______________________________________________ > Lazarus mailing list > > http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus > > > > -- _______________________________________________ Lazarus mailing list http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.lazarus.freepascal.org/pipermail/lazarus/attachments/20130503/deedfa3d/attachment.html>

Reply by email

Antonio Fortuny
to Antonio Fortuny

I solved the problem this way:
- copy memds.pp into the project folder
- complie the project: memds.o and ppu in the project's -FU folder
- copy new .o and .ppu into "fpc\2.6.1\units\i386-win32\fcl-db\" tests are OK.
i'll do the same for arm/wince

Antonio.

Le 03/05/2013 15:03, Antonio Fortuny a ?crit :

Show quoted text 94 lines
Le 03/05/2013 14:29, Michael Van Canneyt a ?crit : > > > On Fri, 3 May 2013, Antonio Fortuny wrote: > >> I've a change in memds.pp and now it works as expected when using >> SaveToStream and LoadFromStream even when the source dataset is >> empty. I'd like now to compile the source of fcl-db for >> ARM-wince. >> Any ideas on how to do ? > > make CPU_TARGET=arm OS_TARGET=wince > > should do it. Got it. I did the same with the changed memds.pp (this time with CPU_TARGET=i386 OS_TARGET=win32)and got new memds.ppu and memds.o in fcl-db\units\i386-win32\ Then I copied those two new files into fpc\2.6.1\units\i386-win32\fcl-db\ But when I recompile the project and run it I get the last error back as if the old unit was still there with the old error I've searched into the HD but except those two places there no other files anywhere. > > if the wince target is missing, run fpcmake -Tall > in > fcl-db/src/memds > > > Michael. >> >> Antonio. >> >> Le 02/05/2013 16:56, Michael Van Canneyt a ?crit : >> >> >> On Thu, 2 May 2013, Antonio Fortuny wrote: >> >> Hi Folks. >> >> For one of my projects I use the memdslaz package wich, >> in turn uses memds.pp which is part of the FPC package fcl-db. >> The target program has to run on arm-wince. To get a >> lazarus package compiled for win32 and/or wince it's easy, >> compilation target depends on projetc target. But for >> FCL ? >> I've tried this: >> D:\Programmes\lazarus\fpc\2.6.1\source\packages\fcl-db>..\..\..\bin\i386-win32\make >> all OS_TARGET=wince CPU_TARGET=arm >> makefile:197: *** The Makefile doesn't support target >> arm-wince, please run fpcmake first. Stop. >> >> this one runs OK >> D:\Programmes\lazarus\fpc\2.6.1\source\packages\fcl-db>..\..\..\bin\i386-win32\make >> all >> >> The compiler for WinCE has been installed and runs OK: >> targets run on a PocketPC arm-wince without problems >> Any ideas ? >> >> >> It is likely that the arm-wince target was diabled, since ARM >> requires aligned memory access. >> To my knowledge, the memds package has not been tested/adapted >> for that. >> >> Michael. >> >> >> -- >> _______________________________________________ >> Lazarus mailing list >> >> http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus >> >> >> >> > > > -- > _______________________________________________ > Lazarus mailing list > > http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus -- _______________________________________________ Lazarus mailing list http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.lazarus.freepascal.org/pipermail/lazarus/attachments/20130503/f00d35e0/attachment-0001.html>

Reply by email