Re: [Lazarus] Android LCL example with 2.7.1

2013-03-07 Thread Sven Barth
Am 07.03.2013 07:25, schrieb Mattias Gaertner: On Thu, 7 Mar 2013 07:07:07 +0100 Sven Barth pascaldra...@googlemail.com wrote: Am 06.03.2013 23:53 schrieb Mattias Gaertner nc-gaert...@netcologne.de: On Wed, 06 Mar 2013 15:48:43 +0100 Sven Barth pascaldra...@googlemail.com wrote: Hello

Re: [Lazarus] Android LCL example with 2.7.1

2013-03-07 Thread Sven Barth
Am 06.03.2013 23:28, schrieb leledumbo: Nice news Sven, so now I can drop the hacked 2.5.1? Exactly. Just follow the instructions at http://wiki.freepascal.org/Android to generate a 2.7.1 compiler for arm-android (of course with a bit of /dev/brain0 applied ;) ). Also possible is

Re: [Lazarus] What's External: SIGFPE?

2013-03-07 Thread leledumbo
Could anyone explain what's SIGFPE? SIGFPE stands for SIGnal Floating Point Exception, that is caused by a probably invalid operation involving floating points. Why there is a SetExceptionMask? Probably to override the same thing already done by (implicitly used) libraries, e.g. gtk2 Why a

Re: [Lazarus] What's External: SIGFPE?

2013-03-07 Thread Xiangrong Fang
2013/3/7 leledumbo leledumbo_c...@yahoo.co.id Because setting the mask means telling the processor to generate (or not to generate? I forgot) SIGFPE for the given operations. e.g. exZeroDivide may trigger SIGFPE if there's a division by zero with floating point operation. How to trace? You

Re: [Lazarus] What's External: SIGFPE?

2013-03-07 Thread Kostas Michalopoulos
Most likely it is your GTK+ theme. Many GTK+ themes and theme engines abuse floating point calculations which go unnoticed normally since the vast majority of C/C++ programs do not check for them. The solution is to do something like (IIRC): SetExceptionMask([]); Which disables all floating

[Lazarus] Free-pascal question

2013-03-07 Thread Chavoux Luyt
Hi all This might be slightly off-topic... I have some fpc -related questions: 1. How good is Lazarus/fpc for embedded programming (compared to C)? It will probably be on a (custom-made) device with ARM/Atmel-based chipset (with or without an OS - will this make a difference?). 2. I remember that

Re: [Lazarus] Free-pascal question

2013-03-07 Thread Sven Barth
Am 07.03.2013 10:45, schrieb Chavoux Luyt: 1. How good is Lazarus/fpc for embedded programming (compared to C)? It will probably be on a (custom-made) device with ARM/Atmel-based chipset (with or without an OS - will this make a difference?). I can't tell you how good or bad it is, but there

Re: [Lazarus] Free-pascal question

2013-03-07 Thread Graeme Geldenhuys
On 2013-03-07 09:45, Chavoux Luyt wrote: This might be slightly off-topic... I have some fpc -related questions: 1. How good is Lazarus/fpc for embedded programming (compared to C)? FPC works just fine for embedded programming. I haven't tried LCL for such tasks, simply because LCL is to fat

Re: [Lazarus] Free-pascal question

2013-03-07 Thread Michael Schnell
On 03/07/2013 10:45 AM, Chavoux Luyt wrote: 1. How good is Lazarus/fpc for embedded programming (compared to C)? It will probably be on a (custom-made) device with ARM/Atmel-based chipset (with or without an OS - will this make a difference?). What exactly do you mean by embedded ? Possible

Re: [Lazarus] Free-pascal question

2013-03-07 Thread Sven Barth
Am 07.03.2013 11:11, schrieb Michael Schnell: Others are experimenting with Android (on ARM-Linux) or devices like Raspberry Pi (extremely cheap ARM-Linux device constructed for educational use). Note: for Android the new native android target in 2.7.1 should be used (currently supports

Re: [Lazarus] Free-pascal question

2013-03-07 Thread Michael Schnell
On 03/07/2013 11:28 AM, Sven Barth wrote: Note: for Android the new native android target in 2.7.1 should be used I understand this is the JVM compiler. Correct ? -Michael -- ___ Lazarus mailing list Lazarus@lists.lazarus.freepascal.org

[Lazarus] History Window?

2013-03-07 Thread Graeme Geldenhuys
Hi, I accidentally pressed Ctrl+Alt+H and it brought up a History window. See attached image. Pressing F1 didn't bring up any help (using Lazarus 1.0.6). What is that window used for? Regards, - Graeme - -- fpGUI Toolkit - a cross-platform GUI toolkit using Free Pascal

Re: [Lazarus] Free-pascal question

2013-03-07 Thread Sven Barth
Am 07.03.2013 11:35, schrieb Michael Schnell: On 03/07/2013 11:28 AM, Sven Barth wrote: Note: for Android the new native android target in 2.7.1 should be used I understand this is the JVM compiler. Correct ? No, you're wrong. Since a few weeks native android support was merged to trunk. When

Re: [Lazarus] Free-pascal question

2013-03-07 Thread Chavoux Luyt
Hi Michael On 7 March 2013 12:11, Michael Schnell mschn...@lumino.de wrote: On 03/07/2013 10:45 AM, Chavoux Luyt wrote: 1. How good is Lazarus/fpc for embedded programming (compared to C)? It will probably be on a (custom-made) device with ARM/Atmel-based chipset (with or without an OS -

Re: [Lazarus] Free-pascal question

2013-03-07 Thread Reinier Olislagers
On 7-3-2013 11:57, Chavoux Luyt wrote: Will depend on the chipset and hardware design... can this be done using fpc? fpc list please. I'm sure having this kind of information there would be helpful both to current subscribers and people searching the fpc list later. Having it in the Laz list

Re: [Lazarus] Android LCL example with 2.7.1

2013-03-07 Thread Samuel Herzog
Hello, any estimate when the Lazarus daily snapshots will contain fpc 2.7.1. Regards, Sam Von: Sven Barth pascaldra...@googlemail.com An: lazarus@lists.lazarus.freepascal.org Gesendet: 9:35 Donnerstag, 7.März 2013 Betreff: Re: [Lazarus] Android LCL example

Re: [Lazarus] Free-pascal question

2013-03-07 Thread Chavoux Luyt
Hi Reinier On 7 March 2013 13:18, Reinier Olislagers reinierolislag...@gmail.com wrote: On 7-3-2013 11:57, Chavoux Luyt wrote: Will depend on the chipset and hardware design... can this be done using fpc? fpc list please. I am not currently a member of that list. Should I join fpc-Pascal

Re: [Lazarus] Android LCL example with 2.7.1

2013-03-07 Thread Felipe Monteiro de Carvalho
But why is -CpARMV6 a problem? It is correct. The default is ARMv4 which is not supported by Android, so we change it to ARMv6. Looks like a compiler bug or change in the code generator? Also, was the default changed? More details should appear by finding the exact assembler instruction which

Re: [Lazarus] Free-pascal question

2013-03-07 Thread Sven Barth
Am 07.03.2013 12:32, schrieb Chavoux Luyt: Hi Reinier On 7 March 2013 13:18, Reinier Olislagers reinierolislag...@gmail.com wrote: On 7-3-2013 11:57, Chavoux Luyt wrote: Will depend on the chipset and hardware design... can this be done using fpc? fpc list please. I am not currently a

[Lazarus] Error while compiling

2013-03-07 Thread Ivo Carrajola
Hello, When i try to compile a a simple project, the linker complains: Linking demo /usr/bin/ld: warning: link.res contains output sections; did you forget -T? /usr/local/lib64/libX11.a(xcb_io.o): In function `process_responses': (.text+0x4f9): undefined reference to

Re: [Lazarus] Android LCL example with 2.7.1

2013-03-07 Thread Dejan Boras
Think it's a problem because the android emu up to android 2.3 (api level 9) uses ARMv5, not ARMv6. On Thu, Mar 7, 2013 at 12:33 PM, Felipe Monteiro de Carvalho felipemonteiro.carva...@gmail.com wrote: But why is -CpARMV6 a problem? It is correct. The default is ARMv4 which is not supported

Re: [Lazarus] Android LCL example with 2.7.1

2013-03-07 Thread Felipe Monteiro de Carvalho
On Thu, Mar 7, 2013 at 9:05 AM, Dejan Boras de.jean.7...@gmail.com wrote: Think it's a problem because the android emu up to android 2.3 (api level 9) uses ARMv5, not ARMv6. ARMv5 and v6 are nearly identical and I´ve never seen a real device that uses ARMv5, all low end use v6. Also I tested

Re: [Lazarus] History Window?

2013-03-07 Thread Martin
On 07/03/2013 10:45, Graeme Geldenhuys wrote: Hi, I accidentally pressed Ctrl+Alt+H and it brought up a History window. See attached image. Pressing F1 didn't bring up any help (using Lazarus 1.0.6). What is that window used for? F1 should bring you to the wiki

Re: [Lazarus] Free-pascal question

2013-03-07 Thread Michael Schnell
On 03/07/2013 11:57 AM, Chavoux Luyt wrote: Although an OS will probably make things easier, low power consumption will be the most (?) important requirement. If power consumption is a very major issue, the best possible arch that somewhere is in reach is the PIC32 which in fact is a MIPS

Re: [Lazarus] Android LCL example with 2.7.1

2013-03-07 Thread Sven Barth
Am 07.03.2013 12:33, schrieb Felipe Monteiro de Carvalho: But why is -CpARMV6 a problem? It is correct. The default is ARMv4 which is not supported by Android, so we change it to ARMv6. Looks like a compiler bug or change in the code generator? Also, was the default changed? The default for

Re: [Lazarus] Free-pascal question

2013-03-07 Thread Graeme Geldenhuys
On 2013-03-07 12:33, Michael Schnell wrote: While fpc officially does support Cross compiling, it is no especially easy to get it working (see the appropriate Wiki articles) All it takes is a bit of practice with the installation. Alternatively, use CodeTyphon

Re: [Lazarus] History Window?

2013-03-07 Thread Graeme Geldenhuys
On 2013-03-07 12:19, Martin wrote: The debugger keeps track of the last 25 times the app stopped. (e.g. breakpoint, finished step). Nice. Thanks for the explanation. There is also a breakpoint, that will not stop, but take a snapshot. So if you have a focus sensitive app, you can

[Lazarus] [FEATURE] Improves the project inspector

2013-03-07 Thread silvioprog
Hello, Please see: http://bugs.freepascal.org/view.php?id=24010 Thank you! -- Silvio Clécio My public projects - github.com/silvioprog -- ___ Lazarus mailing list Lazarus@lists.lazarus.freepascal.org

Re: [Lazarus] Error while compiling

2013-03-07 Thread leledumbo
Installing libx11-dev should automatically install libxcb-dev (which is the one you miss) -- View this message in context: http://free-pascal-lazarus.989080.n3.nabble.com/Lazarus-Error-while-compiling-tp4029732p4029741.html Sent from the Free Pascal - Lazarus mailing list archive at

Re: [Lazarus] Ubuntu 12.10 install problem

2013-03-07 Thread appjaws
Hi, I am running lazarus on amd64bit kubuntu 12.10 with kde 4.9.5 This is what I did to get the latest versions. I downloaded the following rpm versions from the lazarus and freepascal sites. fpc_2.6.0-2.fc17_amd64.rpm fpc-doc_2.6.0-2.fc17_amd64.rpm fpc-src_2.6.0-2.fc17_amd64.rpm

Re: [Lazarus] Free-pascal question

2013-03-07 Thread Chavoux Luyt
Hi On 7 March 2013 15:20, Graeme Geldenhuys gra...@geldenhuys.co.uk wrote: On 2013-03-07 12:33, Michael Schnell wrote: While fpc officially does support Cross compiling, it is no especially easy to get it working (see the appropriate Wiki articles) All it takes is a bit of practice with the

Re: [Lazarus] Ok I give up!

2013-03-07 Thread waldo kitty
On 3/5/2013 13:01, Jürgen Hestermann wrote: I just recently installed a snapshot version of Lazarus on Windows (I cannot copy the version number from the about window because I cannot select text. Why?). right click on the help window where the graphic is ;) --

[Lazarus] SQLite - disk I/O error only on virtual machine

2013-03-07 Thread Krzysztof
Hi, I noticed strange behavior when running application on virtualbox linux mint 14 64bit machine. This occur only when I attach second database to sqlite3connection and then call SQLTransaction.Commit. This is my code: try FConn := TMySqlite3Connection.Create(Self); FConn.Transaction