Forum > PDAs and Smartphones
WinCE & archives
CCRDude:
Ok, the first example (communications) is available here (I'll try to keep my installation batch file updated on that blog as well); by now I've read that the Indy FreePascal port is said to work on WinCE as well, but I stopped liking Indy when I received too many complains about apps hanging when a server is not reacting (and even Stop etc. didn't really work) ;) I guess a class with a simple wrapper function with URL, target TStream or TStrings is simple enough and doesn't need an app using it to complete the example? ;)
An example for compression will follow later or tomorrow or so, but somehow I think they're quite too simple to be mentioned on the Wiki page - they're just wrappers really ;)
Thanks for the list of usable svn revisions, oro06 :) I've seen there's also a newer source download (June 29th), so I guess I'll be trying that shortly.
(and yes, of course one stable and one test environment are always a good idea - it was just that the last "stable dev" (June 4th) source wasn't that stable at all with the EFFileOpen bug and I had to use a newer subversion to be able to open files on the Ce device ;) )
Anonymous:
Hi
I tried your batch file and I am getting following error
------------------------------------------------------------------------
Press any key to continue . . .
The necessary files were found, you may now continue.
Press any key to continue . . .
------------------------------------------------------------------------
The cross compiler will now be created...
------------------------------------------------------------------------
'make' is not recognized as an internal or external command,
operable program or batch file.
------------------------------------------------------------------------
If you don't see any error messages, you may now continue.
------------------------------------------------------------------------
Press any key to continue . . .
Please help!
Regards
Sandeep
felipemdc:
Your PATH environmental variable is wrong.
Try adding to the start of the batch file:
PATH=C:\Programas\fpc\bin\i386-win32;C:\Programas\arm
where C:\Programas\arm contains the arm-cross-binutil, and fpc\bin is the 2.0.2 compiler binaries and utils (make for example).
I donĀ“t know if the batch needs other things on the PATH, like Lazarus for example. Maybe it does need.
CCRDude:
The batch file actually sets the path itself before doing any make, just to avoid such problems (well, usually at least):
--- Code: --- set path=%x_armdir%;%x_lazdir%\pp\bin\i386-win32;%x_lazdir%\pp\bin\arm-wince;%APR_ICONV_PATH%
--- End code ---
This uses two environment strings defined at the beginning of the file:
--- Code: ---set x_lazdir=C:\Apps\Lazarus
set x_armdir=C:\Apps\arm
--- End code ---
If you did install Lazarus or the ARM utils into a different place, you need to edit this (second and third line of the batch file). But then, if it hadn't find a Lazarus install in that folder, it would have displayed an error message. Do NOT use trailing backslashes in that definition of paths though.
(btw, make was also a problem why I created this batch file settings the environment path for itself - having Delphi installed, "make" usually called the incompatible one from Borland)
I'm going to try it with the latest download now, time for an update anyway :D
Update: Lazarus-0.9.17-20060702-win32.exe and fpc.zip from June 29th (links from the batch file and the Wiki page), both extracted into a clean folder: compiles quite without problems. startlazarus.exe is not a valid Win32 application it tells me now, but running it through lazarus.exe, I was able to successfully compile my main WinCE project.
Please post the first lines of your batch file, and the paths were you have the ARM and Lazarus stuff (and also make sure the Lazarus sources were extracted properly - not the comment about the pp subfolder!)
Anonymous:
Hello,
I have now a running ARM FPC/Lazarus packet, which was built with CCRDude's batch file. I still had to copy the ARM binutils to the pp\bin\arm-wince directory and I added the -Xi, -Xs, -XX options to the fpc.cfg file in the same directory.
Has anyone built a real application with the WinCE interface?
Regards, Bernd.
Navigation
[0] Message Index
[#] Next page
[*] Previous page