Re: [Lazarus] netbook? running lazarus on android?

2013-01-28 Thread David Emerson
On 01/26/2013 11:56 PM, Andrew Brunner wrote: Ubuntu is building Arm editions. Have you explored the possibility of Ubuntu on any repurposed device like Samsung? Yeah, I could do ubuntu. Thanks for the suggestion! Thanks also to leledumbo for that clarification - sounds like I cannot rely

[Lazarus] netbook? running lazarus on android?

2013-01-26 Thread David Emerson
I'm in the market for a netbook computer - you know, a low-cost, ultra-portable laptop. I want to use it as an on-the-go development computer (more for editing code, with the capability to compile, maybe slowly) One possibility is to get an android chromebook. Does fpc 2.6 + lazarus work on

[Lazarus] GDB - cannot perform pointer math on incomplete types

2012-12-03 Thread David Emerson
This error message has often befuddled me when debugging. I've got a dynamic array, usually a type that I've created, e.g. type longint_arr = array of longint I'm using the Watch List and want to inspect one of the elements of such an array, e.g. f_list[0]. But I get this error, which I guess

Re: [Lazarus] GDB - cannot perform pointer math on incomplete types

2012-12-03 Thread David Emerson
Original Message From: Martin laza...@mfriebe.de On 04/12/2012 01:54, David Emerson wrote: This error message has often befuddled me when debugging. I've got a dynamic array, usually a type that I've created, e.g. type longint_arr = array of longint I'm using

Re: [Lazarus] GDB - cannot perform pointer math on incomplete types

2012-12-03 Thread David Emerson
Martin wrote: Still if you can get me the log + unit source ? because the IDE in many cases tries to work those out. So I wonder what happens behind the curtains... Hmm I am working on it ... can't really share the sources :( but I am trying to build a miniature version to reproduce

Re: [Lazarus] GDB - cannot perform pointer math on incomplete types

2012-12-03 Thread David Emerson
Still if you can get me the log + unit source ? because the IDE in many cases tries to work those out. So I wonder what happens behind the curtains... I just constructed this program, which allows me to reproduce the issue. I put a breakpoint on the writeln. Watch List items:

Re: [Lazarus] Major flaw with trunk and unit cases

2011-11-05 Thread David Emerson
On Fri 4 Nov 2011, Andrew Brunner wrote: Updated to todays Lazarus from svn/trunk and started work... Only to have my entire project build folder nuked by DoOpenEditorFile fixing case routine... /Developer/Source/Linux/64 was transformed into a binary file and wiped out all sub folders. I

Re: [Lazarus] Major flaw with trunk and unit cases

2011-11-05 Thread David Emerson
, it abandons that scheme. You can see the selected tab (far right) has a slightly lighter color. ~David. On Sat 5 Nov 2011, David Emerson wrote: On Fri 4 Nov 2011, Andrew Brunner wrote: Updated to todays Lazarus from svn/trunk and started work... Only to have my entire project build folder

Re: [Lazarus] Can't find unit LCLProc

2011-11-05 Thread David Emerson
On Sat 5 Nov 2011, Mattias Gaertner wrote: On Fri, 4 Nov 2011 22:22:53 -0700 David Emerson dle...@angelbase.com wrote: I have a unit (sarala_text.pas) which is part of a package (sarala_tools) that uses the LCLProc unit. My package file lists LCLBase as a requirement I am able

Re: [Lazarus] Can't find unit LCLProc

2011-11-05 Thread David Emerson
On Sat 5 Nov 2011, Mattias Gaertner wrote: On Sat, 5 Nov 2011 10:50:04 -0700 David Emerson dle...@angelbase.com wrote: [...] git-svn-id: http://svn.freepascal.org/svn/lazarus/trunk@32710 4005530d-fff6-0310-9dd1-cebe43e6787f Maybe you should update. Recently a better clean up

[Lazarus] Can't find unit LCLProc

2011-11-04 Thread David Emerson
I have a unit (sarala_text.pas) which is part of a package (sarala_tools) that uses the LCLProc unit. My package file lists LCLBase as a requirement I am able to compile the package from the package viewer I can ctrl+click on the unit name LCLProc and it takes me there I can ctrl+click on

[Lazarus] package directory destroyed, replaced with executable of same name

2011-10-05 Thread David Emerson
So I just managed to get svn fpc and svn lazarus installed and running, yay! now the bad news I have a git repo (and lazarus package) called saralatools. I had just compiled and run an example program that uses the package. Somehow lazarus crashed. Now I see that my entire saralatools

Re: [Lazarus] window classes according to WM

2011-09-13 Thread David Emerson
Thanks so much, Andrew. I couldn't possibly wish for a more concise and complete explanation; wish my own research had been as fruitful! Thanks to you, too, Martin. ~David. On Mon 12 Sep 2011, Andrew Haines wrote: On 09/12/11 21:59, David Emerson wrote: Hi all, What is the property

[Lazarus] window classes according to WM

2011-09-12 Thread David Emerson
Hi all, What is the property that determines the window class, as seen by the WM / xorg? I'm asking for the purpose of grouping: I'd like to be able to have distinct groups of windows that the WM will group independently of one another. As an example, looking at the easter/holydays example, if

Re: [Lazarus] Status of GDB and Lazarus/FPC debugging threaded apps

2011-01-10 Thread David Emerson
Andrew Brunner wrote: have to create a VirtualBox with XP on it. I can attest to this being a good idea. virtualbox is fantastic. ~D. -- ___ Lazarus mailing list Lazarus@lists.lazarus.freepascal.org

Re: [Lazarus] Status of GDB and Lazarus/FPC debugging threaded apps

2011-01-10 Thread David Emerson
On Mon 10 Jan 2011, Joost van der Sluis wrote: On Mon, 2011-01-10 at 10:19 -0600, Andrew Brunner wrote: On Mon, Jan 10, 2011 at 9:51 AM, Joost van der Sluis jo...@cnoc.nl wrote: What happens if you kill Lazarus/gdb/your application when the desktop freezes? Do you really have to restart

Re: [Lazarus] invisible break points??

2011-01-07 Thread David Emerson
Thanks a lot for the tip, Graeme. Martin: I'm planning to look into it when I get back to that project where the error is occurring. Thanks for your help as well! Cheers, David On Thu 6 Jan 2011, Graeme Geldenhuys wrote: Op 2011-01-06 22:51, David Emerson het geskryf: Has anyone else seen

Re: [Lazarus] invisible break points??

2011-01-07 Thread David Emerson
I'm attaching some debug output. One of the logs was an execution with no breakpoints (view debug info breakpoints list is empty; also the lpi file has no breakpoints) and in the other execution I created one breakpoint. In the execution with no breakpoints, everything went smoothly. In the

Re: [Lazarus] invisible break points??

2011-01-07 Thread David Emerson
Martin wrote: Hm, I guess part of the problem is that console output of the application does not work well with gdb. It seems to mix with the gdb output the msgs from gdb goes on the same line, as the app's output. There is nothing the IDE can do, it has no chance of identifying the

Re: [Lazarus] invisible break points??

2011-01-07 Thread David Emerson
Pew (piffle.the.cat) wrote: let's actually try helping the OP, Martin. Hey, that's not necessary, man; Martin is very helpful, and I have solved the problem -- or at least I have a very effective workaround -- thanks to his troubleshooting. In fact I think I'm going to post it as a note to

[Lazarus] invisible break points??

2011-01-06 Thread David Emerson
I am having a very strange and frustrating experience with lazarus, in my fpGUI app. When running, after pressing a button in my app which calls a process, the app seems to freeze up. It just sits there, unresponsive. My program has no breakpoints in it. The only way I can get it to move is

Re: [Lazarus] Is there a tool to list all the string literals in your application?

2011-01-04 Thread David Emerson
I am interested in one that parses the source code rather than the executable. Can some development related utility find all the string literals and print out their line numbers? sed -n /'/= source.pas sed -n /'/{=;p} source.pas sed -n /'/{=;s/[^']*\('[^']*'\)[^']*/||| \1 /gp} source.pas I

Re: [Lazarus] new class dependency map generated

2011-01-04 Thread David Emerson
reminds me of this old article: http://web.archive.org/web/20060615055607/http://blogs.zdnet.com/threatchaos/?p=311 A graphical comparison of system calls for a simple page load in apache vs IIS. On Tue 4 Jan 2011, Graeme Geldenhuys wrote: Hi, I just generated a new class dependency map of

[Lazarus] That pesky LazarusPackageIntf

2011-01-03 Thread David Emerson
I have had this problem on several different occasions now, and each time it seems to cost me an hour -- sometimes many -- of banging my head against a wall. Despite my repeated attempts to discover a consistent way to resolve it, it remains elusive. The problem is this:

Re: [Lazarus] That pesky LazarusPackageIntf

2011-01-03 Thread David Emerson
Thanks very much for your reply! I am using the debian installation packages in the testing repo, described here: http://wiki.lazarus.freepascal.org/Lazarus_release_version_for_Ubuntu#Long_version:_step_by_step (thanks, Vincent!!) I notice that you mention LCL, and now that you mention it, it is

Re: [Lazarus] That pesky LazarusPackageIntf

2011-01-03 Thread David Emerson
Yes, specially if you mix different versions/revisions. As noted, I'm using the debian packages... I'm quite hopeful that they would be close enough to the same version to work together... Usually this kind of problems are resolved with a full rebuild, cleaning files. Instead searching for

Re: [Lazarus] No FPC sources on lazarus start....

2011-01-03 Thread David Emerson
Sounds like you installed the compiler part, but not the fpc sources. Try here: http://www.freepascal.org/down/source/sources.var On Mon 3 Jan 2011, Bo Berglund wrote: I installed FPC on Win XP-Pro from the 2.4.2 installer. Then I retrieved the lazarus sources from SVN. Then I did make clean

Re: [Lazarus] console output

2010-12-19 Thread David Emerson
thanks, Martin probably Run menu: Run params, launcher application But: http://bugs.freepascal.org/view.php?id=7867 http://bugs.freepascal.org/view.php?id=12172 Under windows you can compile your application with -WC (actually uncheck -WC Gui App on the linker page) You may

[Lazarus] console output

2010-12-18 Thread David Emerson
Hi list, While upgrading, I wiped out my .lazarus folder, and upon getting started again was charmed to see this xterm window that popped up during execution and showed me all the console output. It was great!!! However I hadn't configured the debugger yet; and when I did that, the xterm

[Lazarus] horizontal scrolling in gtk2

2010-12-09 Thread David Emerson
I searched aroud mantis but couldn't find anything about this horizontal scrolling does not work for me in the call stack, locals, and watch list windows. The scrollbar is visible, but disabled (and shows that there is nowhere to scroll, even when window contents extend far beyond the edge and

[Lazarus] open pas file from command line

2010-10-21 Thread David Emerson
Hi there, Suppose I have a lazarus source editor open. I would like to, from my command line shell, issue a command to open a new source in the already-open source editor. Is this possible? Why? If I have a shell open in a directory, it's very quick to tab-complete a file within a directory.

Re: [Lazarus] debian packages now have testing/unstable requirements

2010-04-07 Thread David Emerson
Mattias Gaertner wrote: David Emerson wrote: lazarus packages at hu.freepascal.org are now requiring libatk 1.29.3 (or greater) whereas debian stable has 1.22 AFAIK the libatk dependency is automatically setup by the dpkg tool using the version of the building machine. I asked on oftc's

Re: [Lazarus] debian packages now have testing/unstable requirements

2010-04-07 Thread David Emerson
Vincent Snijders wrote: David Emerson schreef: I asked on oftc's #debian-devel and the advice was to use pbuilder and set up a different environment there to build inside. Clear instructions how to accompplish that would be welcome, kind of like the how to setup a ubuntu repo on the wiki

[Lazarus] debian packages now have testing/unstable requirements

2010-04-06 Thread David Emerson
Hey y'all, I'm disappointed to discover that the lazarus packages at hu.freepascal.org are now requiring libatk 1.29.3 (or greater) whereas debian stable has 1.22 What's the status on this? Is there any chance that this requirement might be relaxed in the future? I tried installing

Re: [Lazarus] scripting lazarus commands from external programs

2010-03-29 Thread David Emerson
Mattias Gaertner wrote: David wrote: I see that in KDE I can drag-n-drop files from konqueror onto the lazarus source editor. What I'd really like to do is drop a file into the source editor from the command line (of an xterm). How would I go about doing so? Select the text in

[Lazarus] scripting lazarus commands from external programs

2010-03-24 Thread David Emerson
I see that in KDE I can drag-n-drop files from konqueror onto the lazarus source editor. What I'd really like to do is drop a file into the source editor from the command line (of an xterm). How would I go about doing so? Thanks, David. -- ___

Re: [Lazarus] Newcomers with Debian based systems

2010-03-16 Thread David Emerson
It also should work for other systems. Some time ago I could install Lazarus from RPM's on openSuse, so why not on Ubuntu from DEB packages? I've been using fpc and debian stable for several years now. I used to download the debs from the freepascal website because the debian stable repo

Re: [Lazarus] floating point mask

2009-12-09 Thread David Emerson
David Emerson wrote: at first I overlooked e+ which is valid for val (string, real) Alexander Klenin wrote: No, it is not: Val('e+', x, d); What I meant is that I first overlooked 'e' and '+' as valid characters that can appear together within a string to be converted to a float

Re: [Lazarus] floating point mask

2009-12-07 Thread David Emerson
You can use any input component, and check e.g. in OnKeyPress whether the resulting string would be valid. If not, reject the input character. You can use any regex library for the check, but IMO that's overkill with a single constant format. In your case I'd use the conversion

Re: [Lazarus] QT binding works!

2009-12-01 Thread David Emerson
function) then Error while linking. any tips from here? Thanks, David On Mon 30 Nov 2009, Phil Hess wrote: David, I believe that refers to Environment | Options, then on the Environment Files tab, look for Lazarus directory. Thanks. -Phil - David Emerson dle...@angelbase.com

Re: [Lazarus] QT binding works!

2009-12-01 Thread David Emerson
zeljko wrote: David Emerson wrote: qt part. I'm getting about 250 messages like this: /usr/local/lib/libqt4intf.so: undefined reference to `QTabBar::moveTab(int, int)' then Error while linking. Yes, you are using old libqt4intf.so and/or old qt libs. Read http

Re: [Lazarus] QT binding works!

2009-12-01 Thread David Emerson
well, I took the dive and upgraded to the testing packages, and ... it works! Nice. Thanks a lot for all the help. Cheers, ~David. -- ___ Lazarus mailing list Lazarus@lists.lazarus.freepascal.org

Re: [Lazarus] trouble with packages~

2009-12-01 Thread David Emerson
the program compiled yet because of code-breaking changes in my libraries... but it looks like it's not having trouble finding the units, as it was before) Thanks Graeme for that hint! ~David. Thanks. -Phil - David Emerson dle...@angelbase.com wrote: I have created a package

Re: [Lazarus] QT binding works!

2009-11-30 Thread David Emerson
I'm sorry for being so dense, but where are these Options? I have looked in Environment Options, Tools Configure Build Lazarus Options, Project Compiler Options ... maybe I missed it? Thanks! David On Tue 24 Nov 2009, Mattias Gaertner wrote: On Tue, 24 Nov 2009 15:12:16 -0800 David

[Lazarus] trouble with packages

2009-11-30 Thread David Emerson
I have created a package called sarala_tools which I'm using in a couple projects. I've found it fun, interesting, and incredibly useful to create packages. All was working great for a while, but now one of my projects has decided that it cannot find one of the units that is part of the

Re: [Lazarus] QT binding works!

2009-11-24 Thread David Emerson
Gaertner wrote: On Mon, 23 Nov 2009 16:37:15 -0800 David Emerson dle...@angelbase.com wrote: Mattias Gaertner wrote: How did you install lazarus? debian packages on http://www.hu.freepascal.org/lazarus/ lazarus-stable The debian package can not recompile the LCL, codetools, synedit

Re: [Lazarus] QT binding works!

2009-11-23 Thread David Emerson
Mattias Gaertner wrote: How did you install lazarus? debian packages on http://www.hu.freepascal.org/lazarus/ lazarus-stable The IDE first checks if the directory $(LazarusDir) is writable. If it is not writable it uses ~/.lazarus/bin/. -- ___

Re: [Lazarus] QT binding works!

2009-11-18 Thread David Emerson
Mattias Gaertner wrote: The debug output window is for the debugger output. The above line is more likely in the 'Messages' window and you can right click it and do 'Save all messages to file'. Ah, thanks, wonderful -- I see now what the problem is: it is trying to build in the root-owned

Re: [Lazarus] QT binding works!

2009-11-16 Thread David Emerson
Mattias Gaertner wrote: make[2]: *** [../../units/i386-linux/qt] Error 1 The important lines are in front of this message. Please send all the messages. This is the only message I see. The debug output window is empty. Perhaps I could get more info by compiling from the command line (as

Re: [Lazarus] cross platform [Re: Lazarus Goal]

2009-11-13 Thread David Emerson
Graeme Geldenhuys wrote: Some quick examples were applications don't follow the look feel rules of the platform, yet users have no problems in using them. * Windows Media Player. * latest Microsoft Office with it's new menu+toolbar design * Pixel image editor. It fakes native look. But

Re: [Lazarus] QT binding works!

2009-11-13 Thread David Emerson
I've done all this, but at the very beginning of the compilation, I get: make[2]: *** [../../units/i386-linux/qt] Error 1 and it gives up. Using debian stable, kde 3.5.9/10. Tried with the packaged lazarus 0.9.28.2-0 as well as svn $ /sbin/ldconfig -p | grep qt libqt4intf.so.5 (libc6)

Re: [Lazarus] QT binding works!

2009-11-12 Thread David Emerson
Juha Manninen wrote: I compiled the whole Lazarus to use QT widgets and it works! Yes. I've been wanting to do the same, though I failed at my previous attempt. What did you do to make it work? Are there guidelines somewhere? What versions are you using? Thanks, David --

Re: [Lazarus] Lazarus debug issues

2009-11-09 Thread David Emerson
On Mon 9 Nov 2009, JoshyFun wrote: This could also happend when you do not full recompile the code and debug an .inc file, as this file may had not been recompiled at all because the .pas one was not modified. I believe this is alleviated when the inc file is properly added to the project or

Re: [Lazarus] debugger crashing

2009-11-08 Thread David Emerson
On Sat 7 Nov 2009, Marc Weustink wrote: Have a look at the debugger output dialog (View-debug windows-debug output). Tell us whats on the lines before it enters the error state. Marc Thanks for the tip, I solved it: the drive was mounted noexec, and the debug output noted permission

[Lazarus] debugger crashing

2009-11-06 Thread David Emerson
I have lazarus installed on another development machine in addition to this one. I haven't used the other much lately, but I fired it up today, and upgraded to laz 0.9.28.2 Much to my chagrin I discovered that I keep getting these debugger has entered the error state messages, which prevent me

[Lazarus] disable JEDI Code Format keymapping

2009-11-03 Thread David Emerson
I have tried and tried and tried, over and over and over again to disable this confounded JEDI Code Format Current Editor Window [Ctrl+D] (as it is shown in options editor key mappings) It seems like no matter what I do -- grab a key, assign it manually, edit the config

Re: [Lazarus] blocking that pesky assembler window

2009-11-03 Thread David Emerson
David Emerson escreveu: whenever a fatal error occurs in my programs, an assembler window pops up. I never use it, and I don't want to see it. I close it dozens (or hundreds) of times every day. How can I make it stop appearing? LAPC +1 Please check today commit about debugger

Re: [Lazarus] blocking that pesky assembler window

2009-10-31 Thread David Emerson
On Thu 29 Oct 2009, JoshyFun wrote: I'm quite sure this problem will be fixed soon (maybe this weekend). Assembler window is intented to appear only when no callstack information is available (no debug information), but currently it appears almost always. It is great to hear that this is on

Re: [Lazarus] more locals: variable values in sub-functions

2009-10-28 Thread David Emerson
On Tue 27 Oct 2009, Martin wrote: But all versions of lazarus can do it, using the stack window. In the stack window you can set the current frame to any stack-frame you want. The local-var window, the hint, and the watches window, will all follow this Thanks, Martin! Works beautifully,

Re: [Lazarus] Lazarus .deb repos!

2009-10-23 Thread David Emerson
Anyone want to team up and set up a debian-style repository for fpc/lazarus? Read the bottom paragraph... On Tue 13 Oct 2009, Peter Williams wrote: My question is this: How can I get MintUpdate to update / upgrade Lazarus automatically -- I suppose using repositories. Is this possible or