Re: [fpc-pascal] now i have a very strange behaviour of my arm compiler

2009-04-29 Thread Henry Vermaak
2009/4/29 Benedikt Schindler benischind...@gmx.de: THX ! Now all my problems just walked away. What a bugfix  for the compiler could do :) My first test programm is now running without problems on the Openmoko Freerunner device. good work! see if you can find somewhere on the wiki to put

Re: [fpc-pascal] Re: How to use fpcmake

2009-04-27 Thread Henry Vermaak
2009/4/26 Guillermo Martínez Jiménez gmji...@burdjia.com: From: Graeme Geldenhuys graemeg.li...@g... Subject: Re: [fpc-pascal] How to use fpcmake Hi Guillermo, I struggled with it as well. Henry Vermaak then created an example for me and showed how to use it. The example he did

Re: [fpc-pascal] could not compile lazarus make[2]: *** [lazarus] Killed

2009-04-17 Thread Henry Vermaak
2009/4/17 Benedikt Schindler benischind...@gmx.de: i recompiled the hole fpc with the option -gl and the patch Paul Ishenin mentioned. there is still a problem with programms, that wonna use windows. console prorgamms just work fine. if i try to run a lazarus programm i get this backtrace.

Re: [fpc-pascal] could not compile lazarus make[2]: *** [lazarus] Killed

2009-04-17 Thread Henry Vermaak
2009/4/17 Vincent Snijders vsnijd...@vodafonevast.nl: Henry Vermaak schreef: 596         ldrd r0,[r0] hmm, this looks like the wrong syntax for ldrd, maybe it should be ldr? I don't know the arm instruction set, but this could be a deliberate illegal instruction to test what type of arm

Re: [fpc-pascal] could not compile lazarus make[2]: *** [lazarus] Killed

2009-04-15 Thread Henry Vermaak
2009/4/15 Benedikt Schindler benischind...@gmx.de: - yes there is enough memory how much have you got? i got a crash the other day trying to make another locale by running localedef, and that was on 64MB of memory. had to make a swapfile for it to work. try and compile your projects manually,

Re: [fpc-pascal] could not compile lazarus make[2]: *** [lazarus] Killed

2009-04-15 Thread Henry Vermaak
2009/4/15 Benedikt Schindler benischind...@gmx.de: i got 128MB of RAM and i have a swap file of 250MB. compiling the projects manually works fine. no error from the compiler. That would be all i need, but still the compiled programm don't run. I will now try the patch Paul Ishenin told me.

Re: [fpc-pascal] ARM / SheevaPlug followup

2009-04-15 Thread Henry Vermaak
2009/4/14 Joe Donth jdo...@donth.com: sales pitch I think the SheevaPlug is a great opportunity to promote the use of FPC in an embedded environment./sales pitch just had a look into this, very impressive specs. 1.2GHz processor with 512MB ram and nand flash. i downloaded the development

Re: [fpc-pascal] ARM / SheevaPlug followup

2009-04-14 Thread Henry Vermaak
2009/4/14 Joe Donth jdo...@donth.com: sales pitch I think the SheevaPlug is a great opportunity to promote the use of FPC in an embedded environment./sales pitch I need to figure out how to compile a non-GUI FPC program (helloworld.pp) to run on a SheevaPlug (ARM926EJ-S rev 1 (v5l) )under

Re: [fpc-pascal] ARM / SheevaPlug followup

2009-04-14 Thread Henry Vermaak
2009/4/14 Florian Klaempfl flor...@freepascal.org: Henry Vermaak schrieb: first you need to get fpc to work, which means that you might have to build an eabi compiler, since most distros (even debian) now use eabi (the default arm fpc is oabi). Well, not really. Debian stable is still oabi

Re: fpc-2.3.x abbort compiling at gtk2.pas (was : [fpc-pascal] EABI problems with FPC )

2009-04-07 Thread Henry Vermaak
2009/4/7 Benedikt Schindler benischind...@gmx.de: Hi, i managed to crosscompile a ppcarm for the openmoko device. then i tried to compile the fpc direct on the device. After a long time where everything looks fine he abborted compiling with an error (see below) any reason why you are trying

Re: [fpc-pascal] fpGUI Toolkit source repository migrated to Git

2009-04-07 Thread Henry Vermaak
2009/4/7 Vincent Snijders vsnijd...@vodafonevast.nl: Graeme Geldenhuys schreef: On Tue, Apr 7, 2009 at 1:06 PM, Vincent Snijders Will only get the last ten revisions. This has some limitations (you can't push), but is perfectly fine if you wanted to contribute in the form of emailing

Re: [fpc-pascal] EABI problems with FPC

2009-04-06 Thread Henry Vermaak
2009/4/6 ik ido...@gmail.com: Hello, I tried to create an Hello World program in OpenMoko (after creating arm fpc). When I try to compile it, ld gives the following error message: /usr/bin/ld: ERROR: Source object /usr/lib/fpc/2.3.1/units/arm-linux/rtl/system.o has EABI version 0, but

Re: [fpc-pascal] sending signal to child process

2009-03-31 Thread Henry Vermaak
2009/3/31 Tom Carly tom.ca...@commsquare.com: Hi, I found that the problem is coming from the fact that I use process.Options := ProcessB.Options + [poUsePipes]; If I switch that off, process B does execute the signal handling code. Is this a bug or am I missing something? it would be

Re: [fpc-pascal] sending signal to child process

2009-03-30 Thread Henry Vermaak
2009/3/30 Tom Carly tom.ca...@commsquare.com: Hi, I have a process A that starts another process B (with TProcess.Create). I introduced signal handling for SIGHUP, SIGTERM and SIGINT in process A and process B. The signal handling of process A triggers a call to

Re: [fpc-pascal] using fpc on a arm4t system failed

2009-03-23 Thread Henry Vermaak
2009/3/23 Benedikt Schindler benischind...@gmx.de: Hi, is there another precompiled  ppcarm from the version v2.2.x or v2.3.x ? Or exists a maintainer for the arm version? So i could ask him for a debugging version to find the problem. I couldn't debug the problem by my self, because i don't

Re: [fpc-pascal] using fpc on a arm4t system failed

2009-03-23 Thread Henry Vermaak
2009/3/23 Paul Breneman paul2...@brenemanlabs.com: Beni, is there another precompiled  ppcarm from the version v2.2.x or v2.3.x ? Or exists a maintainer for the arm version? So i could ask him for a debugging version to find the problem. I couldn't debug the problem by my self, because i

Re: [fpc-pascal] Including binary data making easy

2009-03-23 Thread Henry Vermaak
2009/3/23 Marco van de Voort mar...@stack.nl: In our previous episode, John Coppens said: I have been using bin2obj for two years now. It works perfectly for me, even though it's a (occasional) two step process. My application changes more than the resource I include. ... and you can add

Re: [fpc-pascal] locale solution for unix systems

2009-03-20 Thread Henry Vermaak
2009/3/20 Marco van de Voort mar...@stack.nl: In our previous episode, Henry Vermaak said: I noticed that I had more direectories in /usr/lib/locale (echh with it's compiles LC_xxx files) than I have /usr/share/118n/locales directory. I've some in /usr/share/local and /usr/local/share

Re: [fpc-pascal] locale solution for unix systems

2009-03-20 Thread Henry Vermaak
2009/3/20 Marco van de Voort mar...@stack.nl: Does the single unix spec define the exact format for these files? Since otherwise they might vary between the 3/4 supported unices (solaris, OS X/FreeBSD and Linux) (OS X and FreeBSD sometimes share details) you are right, according to sus

Re: [fpc-pascal] locale solution for unix systems

2009-03-20 Thread Henry Vermaak
2009/3/20 Marco van de Voort mar...@stack.nl: In our previous episode, Henry Vermaak said: Personally I don't see the use of going this way. Why not simply use iconv? but that's just for char set conversion, how would we get the locale data (like time/date format, etc)?  i guess we have

Re: [fpc-pascal] locale solution for unix systems

2009-03-20 Thread Henry Vermaak
2009/3/20 Marco van de Voort mar...@stack.nl: In our previous episode, Henry Vermaak said: Because the textmode versions might not be installed on all systems, the compiled versions might be OS specific, and if they ever change for linux distributions you have another problem at your hand

Re: [fpc-pascal] locale solution for unix systems

2009-03-20 Thread Henry Vermaak
2009/3/20 Bart bartjun...@gmail.com:  Note that a bulky read externally alternative won't be enabled by default  in FPC anyway, so it doesn't even alleviate the need to include clocale  issue. The point is if in this case it is worth the trouble if most people then  happily link to X or

Re: [fpc-pascal] locale solution for unix systems

2009-03-20 Thread Henry Vermaak
2009/3/20 Marco van de Voort mar...@stack.nl: Are they guaranteed default installed on most OSes ? It's pretty hard to parse something that is not there. Also start inventorizing all possible solutions on all possible distro's and OSes. no, none of my embedded systems have the definition

Re: [fpc-pascal] locale solution for unix systems

2009-03-20 Thread Henry Vermaak
2009/3/20 Graeme Geldenhuys graemeg.li...@gmail.com: Part of using fpGUI Toolkit is to greatly minimise library dependencies (compared to other GUI toolkits like GTK, QT, LCL etc.). This allows fpGUI based apps to run on a lot more bare boned systems and platforms (new and old). but fpgui

Re: [fpc-pascal] locale solution for unix systems

2009-03-19 Thread Henry Vermaak
2009/3/19 Bart bartjun...@gmail.com: I'm not talking about the compiled binary files, I am talking about  the text based locale files. On my Linux Ubuntu 7.10 system they are  include in the 'locales' package and are install in the following  directory location:   /usr/share/i18n/locales/*  

Re: [fpc-pascal] locale solution for unix systems

2009-03-19 Thread Henry Vermaak
2009/3/19 Marco van de Voort mar...@stack.nl: In our previous episode, Bart said:  usr/share/i18n/locales/wo_SN  /usr/share/i18n/locales/xh_ZA I noticed that I had more direectories in /usr/lib/locale (echh with it's compiles LC_xxx files) than I have /usr/share/118n/locales directory.

Re: [fpc-pascal] ACPI WakeUp

2009-03-17 Thread Henry Vermaak
2009/3/16 Milan Marusinec mi...@marusinec.sk: Hello, Does anybody have pascal source for programatical WakeUp in standby mode through ACPI interfaces ? which os? on linux you can use the rtc alarm to wake up after a specific time, i don't know if there's another way. on my system it's:

Re: [fpc-pascal] ACPI WakeUp

2009-03-17 Thread Henry Vermaak
2009/3/17 Henry Vermaak henry.verm...@gmail.com: you can read the source of rtcwake, too, which does more or less the same thing, i think. and read rtc.txt in your kernel source. henry ___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org http

Re: [fpc-pascal] If ShellExecute(0, 'open', PChar(ExecuteName), '', '', 0) = 32 Then

2009-01-28 Thread Henry Vermaak
2009/1/28 vmars vm...@rgv.rr.com: I tried many combinations of %COMSPEC% /c Del2Pas.bat ExecuteName := ('C:\\WINDOWS\\system32\\cmd.exe ' + AppPathExe + 'Del2Pas.bat'); ExecuteName := ('%COMSPEC%/c Del2Pas.bat'); and many more! but still: Unable to open

Re: [fpc-pascal] My favourite missing feature

2008-12-22 Thread Henry Vermaak
2008/12/22 Mark Morgan Lloyd markmll.fpc-pas...@telemetry.co.uk: .8 IF cells[2, dateTime] = /(\d\d)\/(\d\d)\/((\d\d)?\d\d)\s.*/i THEN BEGIN i thought for a moment you were trying to draw some nice ascii art :) henry ___ fpc-pascal maillist -

Re: [fpc-pascal] Bootstrapping FPC for x86_64

2008-11-24 Thread Henry Vermaak
2008/11/24 Graeme Geldenhuys [EMAIL PROTECTED]: Hi, I setup a new 64bit server in our company, running Ubuntu 8.04 LTS (64bit). I want to us it as a 64bit testbed for our applications. So I want to compile 64bit version of our software. I installed all the usual compiler requirements:

Re: [fpc-pascal] Cannot run mplayer with TProcess when options is poUsePipes in Windows

2008-11-10 Thread Henry Vermaak
2008/11/10 Dusan Halicky [EMAIL PROTECTED]: Following code works in linux, but not in windows. In windows program freeze, or I don't see mplayer. Thanks. program bug; {$mode objfpc}{$H+} uses Classes, SysUtils, Process; begin with TProcess.Create(nil) do try //Options := [];

Re: [fpc-pascal] debugging version of RTL

2008-11-09 Thread Henry Vermaak
2008/11/9 Marc Santhoff [EMAIL PROTECTED]: Hi, how can I build the RTL and other packages containing debug symbols? Is it sufficient to do sth. like: cd rtl edit Makefile.fpc setting -gl as compiler option make clean allinstall you can pass OPT=-gl -O- to make instead of editing the

Re: [fpc-pascal] CGI upload app

2008-11-04 Thread Henry Vermaak
2008/11/4 Graeme Geldenhuys [EMAIL PROTECTED]: On 11/4/08, Leonardo M. Ramé [EMAIL PROTECTED] wrote: If you checkout Powtils from svn at http://powtils.googlecode.com/svn/dev you'll find an example inside examples/upload-file. Thanks, but all the example directories are empty. :-( i can

Re: [fpc-pascal] How to auto create the $fpctarget directory

2008-10-01 Thread Henry Vermaak
On 01/10/2008, Graeme Geldenhuys [EMAIL PROTECTED] wrote: Hi, How can I auto create the $fpctarget directory? Just specifying ../lib/$fpctarget/ and then compiling the project doesn't create the needed directory, and I get the following build error. I gather the compiler itself doesn't

Re: [fpc-pascal] Help converting h-file

2008-09-23 Thread Henry Vermaak
2008/9/20 Koenraad Lelong [EMAIL PROTECTED]: --8-- Regarding my Arcom ( board : it's a Viper 400 M64 F32. I purchased the Linux dev. kit with the LCD, which contains all you need to develop in C. I'm using fpc :-). excellent. i've got a vulcan, which is big-endian (with fpu), and a quantum

Re: [fpc-pascal] Help converting h-file

2008-09-23 Thread Henry Vermaak
2008/9/21 Felipe Monteiro de Carvalho [EMAIL PROTECTED]: There are some possibilities to increase the speed of your lazarus software: * Use gtk 1 * Use Qt 4 (needs a commercial license for non-gpl software) * Improving the fpgui interface to Lazarus and use that. You can test the existing

Re: [fpc-pascal] Re: Use Free Pascal on Pandora handheld game console

2008-09-18 Thread Henry Vermaak
On 18/09/2008, Jonas Maebe [EMAIL PROTECTED] wrote: See also the messages titled How hard is it to port FPC to AIX on http://lists.freepascal.org/lists/fpc-devel/2008-September/thread.html (classified under the wrong thread, because they were posted starting with a rely to another thread).

Re: [fpc-pascal] TThread.WaitFor not returning?

2008-09-17 Thread Henry Vermaak
On 17/09/2008, Graeme Geldenhuys [EMAIL PROTECTED] wrote: On 9/17/08, [EMAIL PROTECTED] [EMAIL PROTECTED] wrote: When you call synchronize from inside of you thread, this sends a message to application thread with the procedure that will be used to synchronize AND WAIT FOR a response from

Re: [fpc-pascal] Help converting h-file

2008-09-17 Thread Henry Vermaak
On 17/09/2008, Koenraad Lelong [EMAIL PROTECTED] wrote: Thanks, but I do have -Fl/opt/arcom/arm-linux/lib/* in the script and /opt/arcom/arm-linux/lib contains a libc.a, libc.so, libc.so.6 and a libc-2.3.3.so. I tried with -Fl/opt/arcom/arm-linux/lib with the same result. libc.a contains

Re: [fpc-pascal] Embedding a Video Player into a Linux/FP/GTK2 Application ?

2008-06-22 Thread Henry Vermaak
2008/6/21 Graeme Geldenhuys [EMAIL PROTECTED]: 2008/6/20 Henry Vermaak [EMAIL PROTECTED]: mplayer has a -wid option that takes a window id in which to embed itself. i haven't tried this, though. Wow!!! That is such a cool idea. I just tried it with a simple fpGUI one form application. Used

Re: [fpc-pascal] Embedding a Video Player into a Linux/FP/GTK2 Application ?

2008-06-20 Thread Henry Vermaak
2008/6/20 T. Guilleminot [EMAIL PROTECTED]: Hi ! I'd like to be able to embed a video player (preferably MPlayer) into a Freepascal/GTK2 application (on Linux) in order to display some video or webcam flows. mplayer has a -wid option that takes a window id in which to embed itself. i

Re: [fpc-pascal] FPC_ARMEL system calls

2008-06-05 Thread Henry Vermaak
2008/6/4 Florian Klaempfl [EMAIL PROTECTED]: I've fixed some stuff, so it should work with -O2 as well. thanks, it works here now. henry ___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org

Re: [fpc-pascal] FPC_ARMEL system calls

2008-06-05 Thread Henry Vermaak
2008/6/4 Florian Klaempfl [EMAIL PROTECTED]: I've fixed some stuff, so it should work with -O2 as well. won't the startup code need to change for eabi? i can at least see a problem with the exit syscall there that won't work with eabi. henry ___

Re: [fpc-pascal] FPC_ARMEL system calls

2008-06-05 Thread Henry Vermaak
2008/6/4 Nataraj S Narayan [EMAIL PROTECTED]: Hi Henry, Luca I got a 'ppcarm' after compiling the fpc-svn. I copied the pparm to the qemu-system-arm emulated machine and tried to compile a Helloworld.pas. fpc showed some errors related to FPU and stopped. Then i copied many *.o and *.ppu

Re: [fpc-pascal] FPC_ARMEL system calls

2008-06-05 Thread Henry Vermaak
2008/6/5 Luca Olivetti [EMAIL PROTECTED]: Henry Vermaak escribió: why don't you just cross-compile your program? because it's too darn difficult? (not that native compiling is an easy walkbut see my problems trying to cross-compile the gtk2 hello program) my best (and uneducated) guess

Re: [fpc-pascal] FPC_ARMEL system calls

2008-06-04 Thread Henry Vermaak
2008/6/4 Luca Olivetti [EMAIL PROTECTED]: Could you send me your compiled hello program? sent in private. henry ___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org http://lists.freepascal.org/mailman/listinfo/fpc-pascal

Re: [fpc-pascal] FPC_ARMEL system calls

2008-06-04 Thread Henry Vermaak
for info: the problem here is that the arm eabi compiler (and/or rtl) must be built with -O- to work. henry ___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org http://lists.freepascal.org/mailman/listinfo/fpc-pascal

Re: [fpc-pascal] FPC_ARMEL system calls

2008-06-03 Thread Henry Vermaak
2008/6/3 Henry Vermaak [EMAIL PROTECTED]: 2008/6/3 Henry Vermaak [EMAIL PROTECTED]: 2008/6/3 Henry Vermaak [EMAIL PROTECTED]: more info (everything compiled with -dFPC_ARMEL -O- -gl): [EMAIL PROTECTED]:~/source/armtest$ qemu-arm armtest Error: Bad syscall: 90004c qemu: unhandled CPU

Re: [fpc-pascal] FPC_ARMEL system calls

2008-06-03 Thread Henry Vermaak
2008/6/3 Luca Olivetti [EMAIL PROTECTED]: the syscall number should be put in r7 Also the alignment of the parameters in the registers is different. Of course I cannot make head or tails of syscall.inc, so it's possible that everything is already done as it should be. mov r7, r0 puts the

Re: [fpc-pascal] FPC_ARMEL system calls

2008-06-02 Thread Henry Vermaak
2008/6/2 Luca Olivetti [EMAIL PROTECTED]: En/na Luca Olivetti ha escrit: En/na Florian Klaempfl ha escrit: How did you get the native start compiler? http://freepascal.org/down/arm/linux.var (it's 2.2.0) Well, this is the point :) This is not an armel compiler. You need to cross compile

Re: [fpc-pascal] FPC scripting suport

2008-05-28 Thread Henry Vermaak
2008/5/28 Damien Gerard [EMAIL PROTECTED]: i386 linux and win32. powerpc-darwin also works. Is i386-darwin planned ? not that i know of (not by me, anyway). won't be too hard for someone with reasonable x86 assembler knowledge. henry ___

Re: [fpc-pascal] Sharing memory between applications

2008-05-20 Thread Henry Vermaak
2008/5/20 Andreas Berger [EMAIL PROTECTED]: I need to share memory between applications and wanted to know if FPC has this implemented. Today I use the windows CreateFileMapping function, but this is windows specific. Another thing: To synchronize the shared memory I use a mutex which can be

Re: [fpc-pascal] Re: Can you knock my socks off ? Can you mimic Skybuck's/Delphi's Major Breakthrough for code path and memory structure selection ?

2008-02-12 Thread Henry Vermaak
On 12/02/2008, Milan Marusinec [EMAIL PROTECTED] wrote: Googling for term Skyfuck Flying gives an enormous number of postings to various mailing lists all over the world. I think this guy is trying to create a Guiness record in posting per year or something silly like that ... just google

Re: [fpc-pascal] Notice: Possible copyright infringements in FPC code base

2008-01-15 Thread Henry Vermaak
On 15/01/2008, Michael Van Canneyt [EMAIL PROTECTED] wrote: -- 8 -- As far as I can judge: They count on us to play things fair, and let us handle it to our own judgement for the moment, but said that if we undertook no action, they would take the necessary steps to protect their IP. We have

Re: [fpc-pascal] Capture HeadTrace output to file?

2007-11-30 Thread Henry Vermaak
On 30/11/2007, Graeme Geldenhuys [EMAIL PROTECTED] wrote: On 30/11/2007, Marco van de Voort [EMAIL PROTECTED] wrote: ./something out.log That didn't work... ./something.sh log.txt 21 will redirect both stdout and stderr to log.txt. a useful trick... Regards, - Graeme -

Re: [fpc-pascal] cdecl or stdcall on WinCE for ARM

2007-11-23 Thread Henry Vermaak
On 23/11/2007, Adrian Veith [EMAIL PROTECTED] wrote: Hi, what is the right calling convention for using system libraries on wince for ARM ? I wrote a pascal wrapper for a system dll and used stdcall for the calling convention - and the program worked. I changed to cdecl - and the program

Re: [fpc-pascal] Is there some binary packet for ARM version 2.2

2007-11-15 Thread Henry Vermaak
On 15/11/2007, josepascual [EMAIL PROTECTED] wrote: Hi Everyone, I was searching for some binary packet for arm-linux and/or win32-arm for last release (2.2), but I have only found snapshot before release 2.2. Can anyone post me any link to some fpc binary packet for crosscompiling to arm

Re: [fpc-pascal] fast text processing

2007-10-31 Thread Henry Vermaak
On 31/10/2007, Graeme Geldenhuys [EMAIL PROTECTED] wrote: That was fun!!! :-0 So what's the task for tomorrow? ;-) for tomorrow the homework is: improve fpc regexp capability and get fpc in the top 5 on the regex-dna shootout ratings ;) Regards, - Graeme - henry

Re: [fpc-pascal] Dynamic linking variables

2007-10-25 Thread Henry Vermaak
On 25/10/2007, ik [EMAIL PROTECTED] wrote: Hello List, I'm binding FAM/GAM to Pascal, and I do it in two flavors: static and dynamic linking (depending on the define). I found out that I require to link two variables with the library. How can dynamic link a variable using FPC ? on unix you

Re: [fpc-pascal] cprt0

2007-08-01 Thread Henry Vermaak
On 01/08/07, Carsten Bager [EMAIL PROTECTED] wrote: Is there anyboddy how knows where to find a startup file (cprt0.as) for uclibc (Arm on linux). look at crt1.s in this directory: http://uclibc.org/cgi-bin/viewcvs.cgi/trunk/uClibc/libc/sysdeps/linux/arm/ i have no idea how this ties into

Re: [fpc-pascal] What should I use for ARM EABI?

2007-07-16 Thread Henry Vermaak
On 16/07/07, josepascual [EMAIL PROTECTED] wrote: Hi everyone, I can build fpc for arm 2.2 (ver 2.1.5) and I can build 2.3.1 for with -Ce -CfSOFT options. I have a board with a ARM EABI systems, and I'd like to develop some programs with freepascal for ARM. Which should I use 2.2_beta or

Re: [fpc-pascal] DateToStr in arm does not work!

2007-07-04 Thread Henry Vermaak
On 04/07/07, josepascual [EMAIL PROTECTED] wrote: negative number problem is not in float operation but in format or strings subsystem. try this new example: program floattest; uses sysutils; var a,b,c,d,e:double; begin a:=0.5; b:=0.3; writeln(format('%5.3f',[a*b])); a:=-0.5; c:=a*b;

Re: [fpc-pascal] DateToStr in arm does not work!

2007-07-03 Thread Henry Vermaak
On 03/07/07, josepascual [EMAIL PROTECTED] wrote: Hi Everyone; Please, can someone test this program and write to the list if it works in arm-linux. program datetostr_test; uses sysutils; begin writeln(datetostr(now)); end. works for me, using svn 7929, compiled for arm little endian

Re: [fpc-pascal] DateToStr in arm does not work!

2007-07-03 Thread Henry Vermaak
On 03/07/07, Bernd Mueller [EMAIL PROTECTED] wrote: Are you sure? If I remember right, using softfloat in conjunction with fpc means, that the compiler never emits floating point operations. All the floating point is going through the softfpu unit. This means, *if* you have a fpu, you waste

Re: [fpc-pascal] Mac losing Carbon support in 64bit Leopard

2007-06-15 Thread Henry Vermaak
On 15/06/07, Jonas Maebe [EMAIL PROTECTED] wrote: You don't really have to do that, Apple already did that: http://developer.apple.com/documentation/Cocoa/Reference/ObjCRuntimeRef/ And those routines can be used to build an Objective Pascal on top, to make interfacing easier. And for

Re: [fpc-pascal] Mac losing Carbon support in 64bit Leopard

2007-06-15 Thread Henry Vermaak
On 15/06/07, Henry Vermaak [EMAIL PROTECTED] wrote: On 15/06/07, memsom [EMAIL PROTECTED] wrote: allegedly still hear-say. Is it even possible/practical to use Cocoa to build a GUI and then use Pascal code to do the logic? you can try and build all your functionality into an fpc dynamic lib

Re: [fpc-pascal] put data to stdout (fpc vs. gcc)

2007-06-13 Thread Henry Vermaak
On 13/06/07, [EMAIL PROTECTED] [EMAIL PROTECTED] wrote: Hi I wrote two programs one in C and one in Freepascal. The program read a variable of a library and write it to stdout. I will put it into a file: (#: ./dataprog file.dat). I use printf in the C and writeln in Freepascal. The

Re: [fpc-pascal] FPC only 32 bits?

2007-06-07 Thread Henry Vermaak
On 07/06/07, Francisco Reyes [EMAIL PROTECTED] wrote: I thought I already had cross compiled. I posted earlier what I used: cd fpc gmake distclean # next all on one line gmake all install CPU_TARGET=x86_64 OS_TARGET=freebsd CROSSBINDIR=/vol2/fp-amd/fpc/cross/bin BINUTILSPREFIX=x86_64-freebsd

Re: [fpc-pascal] FPC only 32 bits?

2007-06-07 Thread Henry Vermaak
On 07/06/07, Francisco Reyes [EMAIL PROTECTED] wrote: So I copy /usr/bin/as to /vol2/fp-amd/fpc/crossbin and name it x86_64-freebsd-as? Did that. no, this is wrong. there is a reason that they have the prefix. you need to get the cross binutils that cross assembles and cross links from

Re: [fpc-pascal] FPC only 32 bits?

2007-06-07 Thread Henry Vermaak
On 07/06/07, Francisco Reyes [EMAIL PROTECTED] wrote: I have read it a few times, but it is likely that something that is obvious to more experienced users is not clear to someone new like myself. o.k., no problems, we all gotta learn ;) on which platform are you compiling on at the moment?

Re: [fpc-pascal] Get Timestamp since 1970 (linux)

2007-06-04 Thread Henry Vermaak
On 04/06/07, TOUZEAU DAVID [EMAIL PROTECTED] wrote: Dear Is there a function that help me to calculate seconds since 1970 year ? exactly the same of this command : /bin/date +%s -d 20070103 this will do what you want?: function LocalToEpoch( year: Word; month: Word; day: Word; hour:

Re: [fpc-pascal] Steps to achieve i386-wince

2007-05-15 Thread Henry Vermaak
On 15/05/07, Marco van de Voort [EMAIL PROTECTED] wrote: This is generally a fairly easy process on *nix, and a horrible, hair-pulling one on Windows. (which is why we provide a set that we were lucky to create after sacrificing several chickens to various MinGW gods with some associated

Re: [fpc-pascal] some problem in SVN FPC for arm linux (v 2.3.1)

2007-05-08 Thread Henry Vermaak
On 04/05/07, Helmut Hartl [EMAIL PROTECTED] wrote: Well - that was what i would like to do - I thougt i try it using libc, as i hade some old code who was doing it just that way. But also the following: program nslu_test; {$mode objfpc}{$H+} {$linklib c} begin writeln('Hello'); end.

Re: [fpc-pascal] some problem in SVN FPC for arm linux (v 2.3.1)

2007-05-08 Thread Henry Vermaak
On 08/05/07, Helmut Hartl [EMAIL PROTECTED] wrote: Well - Thank you - It now works and i got libc, sockets, ssl and much of our code to run on the SLUG (I am really happy with possibilities of the crossarm compiler!!) Now we have strange problems with range errors and so on, needs further

Re: [fpc-pascal] some problem in SVN FPC for arm linux (v 2.3.1)

2007-05-08 Thread Henry Vermaak
On 08/05/07, Florian Klaempfl [EMAIL PROTECTED] wrote: What libc do you use? i've got libc-2.3.90.so, but if i look at the downloads, the makefile used a version 2.3.4 from 2005-06-27 (and patched it a couple of times, no doubt). henry ___

Re: RV: [fpc-pascal] Program exited with code 01

2007-05-07 Thread Henry Vermaak
On 07/05/07, josepascual (almudi) [EMAIL PROTECTED] wrote: $ ./hello_eabi_arm -bash: ./ hello_eabi_arm: No such file or directory ... ... ... (gdb) run Starting program: /tmp/hello_eabi_arm /bin/bash: /tmp/hello_eabi_arm: No such file or directory so the file doesn't exist. did it not

Re: [fpc-pascal] some problem in SVN FPC for arm linux (v 2.3.1)

2007-05-04 Thread Henry Vermaak
On 04/05/07, Helmut Hartl [EMAIL PROTECTED] wrote: But a you predicted :-( i now have problems linking against an external library. I want to use unit dynlibs to dynamically load the libc.so.6 on the NLSU2 (i have done this under i386 linux sucessfully) why do you want to load libc

Re: [fpc-pascal] some problem in SVN FPC for arm linux (v 2.3.1)

2007-05-02 Thread Henry Vermaak
On 02/05/07, Helmut Hartl [EMAIL PROTECTED] wrote: Hello, there might be a problem with your binutils. are you sure you're using the right binutils for your device? what device are you using, exactly? What binutils for crosscompiling are you using for the NSLU2? Where do you

Re: [fpc-pascal] Some class or units

2007-05-02 Thread Henry Vermaak
have a look at syncobjs semaphores inside? ipc (in the rtl) implements semaphores for linux. haven't used it, but i have used semaphores in win32. maybe you can just ifdef? henry ___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org

Re: [fpc-pascal] some problem in SVN FPC for arm linux (v 2.3.1)

2007-05-01 Thread Henry Vermaak
You need to build and install the current (from 2.3.1) fpcmake first. SVN version? or which? I can build snv version but install. cd utils/fpcm make clean all sudo make install then try making the cross compiler again. henry ___ fpc-pascal

Re: [fpc-pascal] some problem in SVN FPC for arm linux (v 2.3.1)

2007-05-01 Thread Henry Vermaak
On 01/05/07, josepascual (almudi) [EMAIL PROTECTED] wrote: I have done it, I'm going to svn/fpc/ directory and I run fpcmake -Tarm-linux. question: a) should I run fpcmake -pw -Tarm-linux? b) or should I run fpcmake -rpw -Tarm-linux? (recursive) c) or only fpcmake -Tarm-linux fpcmake -rTall

Re: [fpc-pascal] some problem in SVN FPC for arm linux (v 2.3.1)

2007-05-01 Thread Henry Vermaak
On 01/05/07, josepascual (almudi) [EMAIL PROTECTED] wrote: I have downloaded SVN version for 2.1.3. I have no patch anything as other times before, I'm compiling with -CfSOFT (I want to generate a ppcrossarm eabi) make clean crossall CPU_TARGET=arm OS_TARGET=linux

Re: [fpc-pascal] some problem in SVN FPC for arm linux (v 2.3.1)

2007-05-01 Thread Henry Vermaak
On 01/05/07, Henry Vermaak [EMAIL PROTECTED] wrote: On 01/05/07, josepascual (almudi) [EMAIL PROTECTED] wrote: I have downloaded SVN version for 2.1.3. I have no patch anything as other times before, I'm compiling with -CfSOFT (I want to generate a ppcrossarm eabi) make clean crossall

Re: [fpc-pascal] some problem in SVN FPC for arm linux (v 2.3.1)

2007-05-01 Thread Henry Vermaak
On 01/05/07, josepascual (almudi) [EMAIL PROTECTED] wrote: I'm using a ARM920T (at91rm9200) with arm core ARMv4T My toolchain is from http://www.freaknet.org/martin/crosstool/packages/ armv4t-crosstool-linux-gnueabi 4.1.1 4.1.1 2.5 6.5 48.7 MiB 49.0 MiB The libraries are compiled for, and

Re: [fpc-pascal] some problem in SVN FPC for arm linux (v 2.3.1)

2007-05-01 Thread Henry Vermaak
On 01/05/07, josepascual (almudi) [EMAIL PROTECTED] wrote: ... ... make: *** [crossinstall] Error 2 any suggestion? nope, i had this problem, too and couldn't fix it. but, you will probably find that you can use your /usr/lib/fpc/2.3.1/ppcrossarm now. Jose Pascual henry

Re: [fpc-pascal] some problem in SVN FPC for arm linux (v 2.3.1)

2007-05-01 Thread Henry Vermaak
hi jose Yes, there is it, I'm begining to use it. (to optain ppcrossarm I have had to delete all the problematic asm lines in arm.inc and mathu.inc) thank you henry, florian made a change to those files today. it would be nice if you can test the change by doing svn update and then

Re: [fpc-pascal] Fcp for arm linux for EABI

2007-04-26 Thread Henry Vermaak
On 26/04/07, Daniël Mantione [EMAIL PROTECTED] wrote: The version 2.0.4 on the Free Pascal web page is able to use softfloat. are you supposed to compile the rtl for softfloat, too? Daniël henry ___ fpc-pascal maillist -

Re: [fpc-pascal] Fcp for arm linux for EABI

2007-04-26 Thread Henry Vermaak
hi jose On 26/04/07, Henry Vermaak [EMAIL PROTECTED] wrote: On 26/04/07, Daniël Mantione [EMAIL PROTECTED] wrote: The version 2.0.4 on the Free Pascal web page is able to use softfloat. are you supposed to compile the rtl for softfloat, too? i don't remember 2.0.4 working on softfloat

Re: [fpc-pascal] Fcp for arm linux for EABI

2007-04-26 Thread Henry Vermaak
another thing that's important to do when you're using svn is edit compiler/systems/i_linux.pas. go to the arm_linux section and remove the tf_smartlink_sections from the flags. you can also edit the endianness of the target here (endian_little or endian_big). see for example my diff for my

Re: [fpc-pascal] Fcp for arm linux for EABI

2007-04-25 Thread Henry Vermaak
On 25/04/07, Jose Pascual [EMAIL PROTECTED] wrote: Hi, hello I'll appreciate from you any answer to next questions: Is Fpc for arm linux compatible with EABI? Is Fpc for arm FP hardware or soft-float? it depends what you compile it for. i'd guess that the pre-compiled one is for fpu.

Re: [fpc-pascal] Fcp for arm linux for EABI

2007-04-25 Thread Henry Vermaak
On 25/04/07, Jose Pascual [EMAIL PROTECTED] wrote: Hi, hello I'll appreciate from you any answer to next questions: Is Fpc for arm linux compatible with EABI? Is Fpc for arm FP hardware or soft-float? it depends what you compile it for. i'd guess that the pre-compiled one is for fpu.

[fpc-pascal] arm and negative float

2007-04-11 Thread Henry Vermaak
i've been playing around with some arm boards for a while now and i managed to port some of our software fairly successfully. linking to our c libraries works well and it's amazing how much less fuss it was to cross compile the pascal sources. i did find a couple of issues, though. i thought

Re: [fpc-pascal] arm and negative float

2007-04-11 Thread Henry Vermaak
[...] 2) BoolToStr returns '0' for False and '-1' for True... [...] That was intentional change in r5744. Changelog says * booltostr now D7 compat. so that's it... You have to pass 2nd argument true for BoolToStr now to get 'False' or 'True' results (or whatever you set in TrueBoolStrs).

Re: [fpc-pascal] writing device driver using FPC

2007-04-06 Thread Henry Vermaak
just to chime in here, libusb is probably the easiest way to go here. we've been using the ftdi and cypress chips under windows and linux with (almost) the same code (pascal and c). got them to work on arm, too :) have a look at the libusb mailing list, as they're going through some api changes

Re: [fpc-pascal] multi threading under Linux

2007-03-23 Thread Henry Vermaak
On 23/03/07, Graeme Geldenhuys [EMAIL PROTECTED] wrote: Hi, Anybody know how I can see the amount of threads running in a process under Linux? I don't mean programmatically in Free Pascal, I mean an external tool. Something like 'top' or 'ps aux' or Gnome System Monitor, etc.. ps -eLf

[fpc-pascal] Re: softfloat bug?

2007-03-15 Thread Henry Vermaak
update: this happens if i try FloatToStrf of any negative number. works with positive numbers, though. henry ___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org http://lists.freepascal.org/mailman/listinfo/fpc-pascal

Re: [fpc-pascal] arm big endian questions and info

2007-03-14 Thread Henry Vermaak
On 14/03/07, Marc Santhoff [EMAIL PROTECTED] wrote: Sorry for stumbling into this thread. May I ask what type of hardware you're using? linksys nslu2. www.nslu2-linux.org. very neat piece of kit - and you can choose what kind of an os you want to flash onto it. 2xusb2 ports and 1xeth.

[fpc-pascal] softfloat bug?

2007-03-14 Thread Henry Vermaak
hi everyone fpc with softfloat seems to work quite well on arm (le). i've run into a strange problem, though. i've got code that looks like this: writeln(stderr, 'gain is ', round(scan.avge.tip.gain * 100)); writeln(stderr, 'gain is ', format('%.0f', [scan.avge.tip.gain * 100])); sometimes

Re: [fpc-pascal] arm big endian questions and info

2007-03-13 Thread Henry Vermaak
On 12/03/07, Terry Kemp [EMAIL PROTECTED] wrote: ... FWIW I have a prototype industrial evaporator running using a NSLU2 as the controller. I am using a 2.0.5 fpc-armbe compiler with the endian_big define set. The only issue I have is with float so I had to use fixed point for analog data. It

<    1   2   3   4   5   >