Re: [Lazarus] Repository commit statistics. :-)

2009-04-16 Thread Henry Vermaak
2009/4/16 Graeme Geldenhuys graemeg.li...@gmail.com:
 On Thu, Apr 16, 2009 at 9:21 AM, Florian Klaempfl
 flor...@freepascal.org wrote:

  The real name of a submitter goes into the log,
 the person responsible for the commit is known by subversion.

 So you do the same thing but manually - that git does automatically
 for you (and makes it an official feature).  Who knows what statistics
 developers want in the future?  :-)

i think what he means is that you can find out which developer has
made which change (svn blame).  that's useful.  i'm sure git can do
the same.  i can't see the point of shortlog -n, except something you
would present at a management meeting to prove that you're the busiest
developer.

henry

___
Lazarus mailing list
Lazarus@lazarus.freepascal.org
http://www.lazarus.freepascal.org/mailman/listinfo/lazarus


Re: [Lazarus] Git mirror of Lazarus SubVersion repository is available

2009-04-09 Thread Henry Vermaak
2009/4/9 Graeme Geldenhuys graemeg.li...@gmail.com:
 On Thu, Apr 9, 2009 at 5:17 PM, Reenen Laurie rlau...@gmail.com wrote:
 Windows users?

 I am downloading TortoiseGit  (http://code.google.com/p/tortoisegit/)
 as we speak, and will try to get the latest 10 revisions :-)

 See my previous post. Windows is well supported now, so you shouldn't
 have any issues. There is also a Git version for MacOS, but I don't
 know anything more about it.

tortoisegit needs msysgit to be installed.

quoting from the msysgit home page:

Once you installed msysGit, git will be compiled and the repository
will be fetched, so you are good to go. Play with git a little, and
you will find plenty of stuff that is not quite optimal.

it's a bit hard to judge how well it works.  i'll have to try it out
when i boot into windows again (in a couple of months, probably ;)

henry

___
Lazarus mailing list
Lazarus@lazarus.freepascal.org
http://www.lazarus.freepascal.org/mailman/listinfo/lazarus


Re: [Lazarus] USB Commincation with Lazarus and libusb library

2009-04-08 Thread Henry Vermaak
2009/4/8 Henry Vermaak henry.verm...@gmail.com:
 2009/4/8 Sébastien FLOURETTE sebastien.floure...@gmail.com:
 I try that you tell me but the result is not good.

 so what was the result of the libusb test program in c?  do you have
 permissions to use the device?


 Have you got an example of use libusb on Lazarus. Perhaps I have a
 parameters or other is not good.
 If you have can you send me it.

 i already pasted the relevant code, there's nothing else that's
 different in my code.  it works for me in linux.

 you might have to make a test program in c and ask for help on the libusb 
 list.

 henry


___
Lazarus mailing list
Lazarus@lazarus.freepascal.org
http://www.lazarus.freepascal.org/mailman/listinfo/lazarus


Re: [Lazarus] Lazarus and Free Pascal 2.3?

2009-03-20 Thread Henry Vermaak
2009/3/20 Liyuán García Caballero liy...@cav.desoft.cu:
 Hi people

 I need to use version 2.3 of Free Pascal with Lazarus 0.9.26, is it
 possible?

i doubt it.  lazarus trunk appears to work with fpc trunk at the
moment, though.  why do you need fpc trunk?

henry

___
Lazarus mailing list
Lazarus@lazarus.freepascal.org
http://www.lazarus.freepascal.org/mailman/listinfo/lazarus


Re: [Lazarus] Where are the manuals?

2009-03-16 Thread Henry Vermaak
2009/3/16 YanChengyuan yanchengy...@gmail.com:
 hey all!
 lazarus is free and useful,and i'm glad with that.
 but where are the manuals?

there are some here: http://lazarus-ccr.sourceforge.net/docs/

 i do have read some books on Delphi Programming ,but they are for
 newbies,and talked about things like TEdit,TLabel only.how come that i
 know how to use things like TIPHtmlPanel,THtmlBrowserHelpViewerand
 things like that without a manual ? the lazarus wiki isn't useful on this
 matter at all!
 i scanned millions of pages from google to know a little about a
 component,and most of the infomation i got was far outdated.why can not our
 developers write some mannuals while making some components?

a lot of the times the names of properties and methods are
self-explanatory.  otherwise the source is right there in front of you
:)

also look through the examples.  examples/turbopower_ipro/ directory
will give you some ideas.

henry
___
Lazarus mailing list
Lazarus@lazarus.freepascal.org
http://www.lazarus.freepascal.org/mailman/listinfo/lazarus


Re: [Lazarus] GUI frontend to a console application

2009-02-24 Thread Henry Vermaak
2009/2/24 Graeme Geldenhuys graemeg.li...@gmail.com:
 On Tue, Feb 24, 2009 at 2:41 PM, Graeme Geldenhuys
 graemeg.li...@gmail.com wrote:

 For example, Linux has many GUI frontends for programs like makeiso,
 burncd, cdrecord, cvs, mpg123 etc...

 The most obvious example would probably be all the GUI frontends
 available for GDB debugger.  :-)

 I have no clue how to write such a GUI application. Anybody know?

it depends how the back-end works.  your gui would set the options to
the back-end, start it, then read and write from the back-end.  you
can do all of this with tprocess

henry

___
Lazarus mailing list
Lazarus@lazarus.freepascal.org
http://www.lazarus.freepascal.org/mailman/listinfo/lazarus


Re: [Lazarus] fsStayOnTop under windows

2009-01-28 Thread Henry Vermaak
2009/1/28 Luca Olivetti l...@wetron.es:
 En/na Inoussa OUEDRAOGO ha escrit:

 Quote
 How do I create a window that is never covered by any other windows,
 not even other topmost windows?
 Imagine if this were possible and imagine if two programs did this.
 Program A creates a window that is super-topmost and so does Program
 B. Now the user drags the two windows so that they overlap. What
 happens? You've created yourself a logical impossibility. One of those
 two windows must be above the other, contradicting the imaginary
 super-topmost feature.
 /Quote

 Very funny, but it's not the case at hand: I just need the windows of my
 application to always stay on top to the windows of another application.
 I can do it in delphi and lazarus/qt, I just need a hack to do the same
 under win32.

so what happens if the other application wants to be on top of yours?

henry
___
Lazarus mailing list
Lazarus@lazarus.freepascal.org
http://www.lazarus.freepascal.org/mailman/listinfo/lazarus


Re: [Lazarus] fsStayOnTop under windows

2009-01-28 Thread Henry Vermaak
2009/1/28 Luca Olivetti l...@wetron.es:
 En/na Henry Vermaak ha escrit:

 Very funny, but it's not the case at hand: I just need the windows of my
 application to always stay on top to the windows of another application.
 I can do it in delphi and lazarus/qt, I just need a hack to do the same
 under win32.

 so what happens if the other application wants to be on top of yours?

 The other application never wants to be on top of mine. Really.

i'm sure he's saying the same about your application :)  stay on top
is something the window manager should handle, imo.

henry
___
Lazarus mailing list
Lazarus@lazarus.freepascal.org
http://www.lazarus.freepascal.org/mailman/listinfo/lazarus


Re: [Lazarus] Starting default browser

2009-01-27 Thread Henry Vermaak
2009/1/27 Lee Jenkins l...@datatrakpos.com:

 I think I remember there being a discussion not too long ago concerning 
 opening
 the default browser from code.  I can't remember if there was a proven way to
 accomplish on Linux or not.  I would use shellexecute on windows, but am 
 unsure
 about Linux and possible MacOS.

there is an example in the source for that.  personally i'd use the
freedesktop utils for that, e.g. xdg-open 'freepascal.org'.  my debian
variants also have an app called sensible-browser, but i don't know
how common it is.

henry
___
Lazarus mailing list
Lazarus@lazarus.freepascal.org
http://www.lazarus.freepascal.org/mailman/listinfo/lazarus


Re: [Lazarus] fpWeb - Apache Modules

2009-01-23 Thread Henry Vermaak
2009/1/23 Graeme Geldenhuys graemeg.li...@gmail.com:
 On Fri, Jan 23, 2009 at 11:43 AM, Henry Vermaak henry.verm...@gmail.com 
 wrote:

 just for interest sake, have you measured how long it takes to set up
 the connection relative to how long the network transfer takes?  it'll
 obviously be dependant on the connection speed, but i get the feeling
 that it's minimal.

 Yes I have, and so did other users of tiOPF.  The Connect/Disconnect
 part of a database takes considerably longer than retrieving a subset
 of data. And with the way CGI applications work, they

of course, but i mean the internet transfer of the html to the client's browser.

henry
___
Lazarus mailing list
Lazarus@lazarus.freepascal.org
http://www.lazarus.freepascal.org/mailman/listinfo/lazarus


Re: [Lazarus] Linux

2009-01-20 Thread Henry Vermaak
2009/1/20  c...@freemail.hu:
 Hello,

 I have never used Linux before, but it is becoming an important development
 target platform for us now. After installing Ubuntu 8.1 with gnome desktop I
 was quite surprised that the user interface felt quite slugish. The same
 machine with XP works as expected. It is hard to believe for me that Linux
 would be any slower than XP.

this is like saying a ford focus weighs less than a bmw 7-series.
ubuntu does have a lot of stuff you probably don't use and google will
give you tips on getting it faster.  you can always just use another
distro (e.g. debian).  xubuntu is also supposed to be easier on
resources.  there are distros that specifically focus on slower
hardware, too.


 - Is there a way to speed up Ubuntu? (drivers, other GUI ...) (:Yes, I know
 it is not a Lazarus specific question:)
 - What Linux distro's are the recommended targets for Lazarus apps?
 - Is there any real difference from the developers point of view?


there may be some issues with different versions of the widgetset you
choose to use, but i'm sure people on this list will be able to help
you.

henry
___
Lazarus mailing list
Lazarus@lazarus.freepascal.org
http://www.lazarus.freepascal.org/mailman/listinfo/lazarus


Re: [Lazarus] fblib installation

2009-01-10 Thread Henry Vermaak
On 11/01/2009, Paul Parkyn zl3...@paradise.net.nz wrote:
 Hello, I have been trying to install Fblib components. The compile fails
 with
 Compile IDE (without linking) completed
 /usr/bin/ld: cannot find -lfbclient
 /usr/lib/lazarus/ide/lazarus.pp(114,1) Error: Error while linking
 /usr/lib/lazarus/ide/lazarus.pp(114,1) Fatal: There were 1 errors
 compiling module, stopping

 I am using Lazarus 0.9.24 beta, Firebird 2.0 Classic and the Fblib
 package is fblaz 0.7.3.
 Distro is Ubuntu 8.04

you probably need to install a libfbclient-dev package or make a
symlink so you have a file called libfbclient.so.

henry
___
Lazarus mailing list
Lazarus@lazarus.freepascal.org
http://www.lazarus.freepascal.org/mailman/listinfo/lazarus


Re: [Lazarus] Cannot read symbolic link /proc/PID/exe: No such file or directory

2008-12-23 Thread Henry Vermaak
2008/12/23 Roland Turcan k...@rotursoft.sk:
 Hello All,

 I am going to answer to my own question in hope, that it will help
 other people.

 I wanted to decrease the size of executable and therefore I used UPX
 for get it smaller. It really got smaller, my original size was
 about 20MB and after UPX only 5MB.

20MB?  that seems a bit excessive, try and compile with -XX -Xs and
not with -g*.

read this:  http://wiki.freepascal.org/Size_Matters

henry
___
Lazarus mailing list
Lazarus@lazarus.freepascal.org
http://www.lazarus.freepascal.org/mailman/listinfo/lazarus


Re: [Lazarus] WinCE 2.2.3 Snapshot Problem

2008-12-09 Thread Henry Vermaak
2008/12/9  [EMAIL PROTECTED]:
8
 I get the following error message and compilation fails when I try to build a
 new project:

 The system.ppu was not found in the FPC directories. Make sure fpc is 
 installed
 correctly and the fpc.cfg points to the right directory.

 There is a wince-arm system.ppu on my setup at:

 C:\Lazarus\fpc\2.2.3\units\arm-wince\rtl\system.ppu

 And the only fpc.cfg is the vanilla one installed from the snapshot at:

 C:\Lazarus\fpc\2.2.3\bin\i386-win32\fpc.cfg

 I don't know how to proceed from here? Is WinCE 2.2.3 known to be broken at 
 the
 moment? I did try with the 2.3.1 snapshots last week and I couldn't get those
 to work either.

have you had a look at the paths inside the fpc.cfg?  do they point at
the right units?  for example, my fpc.cfg contains this:

# searchpath for units and other system dependent things
-FuC:\FPC\2.2.3/units/$FPCTARGET/
-FuC:\FPC\2.2.3/units/$FPCTARGET/*
-FuC:\FPC\2.2.3/units/$FPCTARGET/rtl


you should have something similar.

henry
___
Lazarus mailing list
Lazarus@lazarus.freepascal.org
http://www.lazarus.freepascal.org/mailman/listinfo/lazarus


Re: [Lazarus] WinCE 2.2.3 Snapshot Problem

2008-12-09 Thread Henry Vermaak
2008/12/9  [EMAIL PROTECTED]:
 Thanks Henry,

 My search paths match yours:

 # searchpath for units and other system dependent things
 -Fuc:\Lazarus\fpc\2.2.3/units/$FPCTARGET/
 -Fuc:\Lazarus\fpc\2.2.3/units/$FPCTARGET/*
 -Fuc:\Lazarus\fpc\2.2.3/units/$FPCTARGET/rtl

 The fpc.cfg is the default one installed by the snapshot. I have also searched
 the system for any other fpc.cfg files that might have got in the way.

o.k.  have you changed the compiler path to be used (in environment
options)?  you have to choose the ppcrossarm.exe.

henry
___
Lazarus mailing list
Lazarus@lazarus.freepascal.org
http://www.lazarus.freepascal.org/mailman/listinfo/lazarus


Re: [Lazarus] What is current status of fpGUI?

2008-12-09 Thread Henry Vermaak
2008/12/9 Aleksa Todorovic [EMAIL PROTECTED]:
 Hi, all!

 In the team I am part of, we are evaulating several GUI frameworks for
 our next project. One of the options (and I hope one we will choose,
 since other member of the team are more into some C++ solution) is to
 use Lazarus with fpGUI. We need fpGUI, because we need our GUI to be
 skinnable. Now, here are questions I have:

 1) Does fpGUI in current version supports creation of skinnable applications?

not at the moment, but it is planned.  (according to graeme - not sure
which one of the clones is working on that).


 2) I've followed instructions on
 http://wiki.lazarus.freepascal.org/fpGUI_Interface, but I got this
 error when I try to compile Lazarus with fpGUI:

 fpguiint.pp(42,12) Fatal: Can't find unit fpgfx used by fpguiint

the fpgui unit names have changed recently, so that needs to be fixed.

henry
___
Lazarus mailing list
Lazarus@lazarus.freepascal.org
http://www.lazarus.freepascal.org/mailman/listinfo/lazarus


Re: [Lazarus] [joke] Explanation about the Lazarus logo

2008-11-29 Thread Henry Vermaak
2008/11/29 svaa [EMAIL PROTECTED]:
 What's that animal?

 It's not a cheetah or a cat. I think it could be some kind of feline
 baby, perhaps a baby lynx.

it's probably a leopard cub, not a cheetah.

henry
___
Lazarus mailing list
Lazarus@lazarus.freepascal.org
http://www.lazarus.freepascal.org/mailman/listinfo/lazarus


Re: [Lazarus] Finding out the Hostname of the Computer.

2008-11-27 Thread Henry Vermaak
2008/11/27 Dave Coventry [EMAIL PROTECTED]:
 Hi,

 I'm trying to get the name of the computer my app is running on.

try: http://www.freepascal.org/docs-html/rtl/unix/gethostname.html

henry
___
Lazarus mailing list
Lazarus@lazarus.freepascal.org
http://www.lazarus.freepascal.org/mailman/listinfo/lazarus


Re: [Lazarus] How to unset bookmarks in the editor?

2008-11-25 Thread Henry Vermaak
2008/11/25 Graeme Geldenhuys [EMAIL PROTECTED]:
 Hi,

 I've set two bookmarks using Ctrl+1 and Ctrl+2 (luckily only two). :-)
  But now for the life of me I can't unset them!  In Delphi I can
 simply press Ctrl+1 again while I'm on the (1) bookmark and it will
 toggle (set/unset) the bookmark.  But Lazarus clearly doesn't do that
 - toggle bookmarks.

which delphi are you using?  i can vaguely recall that you can't unset
them in delphi 7, but i may be mistaken.

henry
___
Lazarus mailing list
Lazarus@lazarus.freepascal.org
http://www.lazarus.freepascal.org/mailman/listinfo/lazarus


Re: [Lazarus] How to unset bookmarks in the editor?

2008-11-25 Thread Henry Vermaak
2008/11/25 Graeme Geldenhuys [EMAIL PROTECTED]:
 On Tue, Nov 25, 2008 at 3:27 PM, Henry Vermaak [EMAIL PROTECTED] wrote:

 which delphi are you using?  i can vaguely recall that you can't unset
 them in delphi 7, but i may be mistaken.

 Yup, you are mistaken. ;-)  I'm using Delphi 7. I can set *and* unset
 them with Ctrl+number.

heh, maybe i was thinking about that new awesome version of delphi
i've been using lately.  it's called lazarus :)

henry
___
Lazarus mailing list
Lazarus@lazarus.freepascal.org
http://www.lazarus.freepascal.org/mailman/listinfo/lazarus


Re: [Lazarus] libusb access from Lazarus

2008-11-24 Thread Henry Vermaak
2008/11/22 Mark Morgan Lloyd [EMAIL PROTECTED]:
 Henry Vermaak wrote:
 2008/11/21 Mark Morgan Lloyd [EMAIL PROTECTED]:
 Mark Morgan Lloyd wrote:
 I notice that http://wiki.lazarus.freepascal.org/Hardware_Access#libusb
 lists three sets of libusb headers from Uwe Zimmermann, Johann Glaser
 and Joe Jared.
 This page also mentions that there are specific interface files
 available for FTDI devices- does anybody know where they can be found
 these days?

 there is a libftdi (that uses libusb), but it's not really worth
 depending on, so it's better to read the source (one relatively small
 c file) and use it directly through libusb.  i had to use a usb snoop
 program under windows to get things working properly, though.  better
 to go with a cypress chip, i'd say...

 Thanks Henry, got that. One of the things I'm due to be asked about is
 recoding some RS232 monitoring stuff, and I was wondering whether there
 was any magic I was missing.

the ftdi chip is practically a usb to serial converter, so you can
actually use that.  if you look at their windows dll api, you'll see
that they've got a set of functions that mimic the windows serial
functions.  otherwise there are serial comms units for fpc (but i
haven't used any of them).

henry
___
Lazarus mailing list
Lazarus@lazarus.freepascal.org
http://www.lazarus.freepascal.org/mailman/listinfo/lazarus


Re: [Lazarus] Error during linkage editing

2008-11-23 Thread Henry Vermaak
2008/11/23 Arí Ricardo Ody [EMAIL PROTECTED]:
 I'm running lazarus 0.9.26 under Mandriva 2008 Spring Free.

 I'm receivng the error:

  /usr/bin/ld: cannot find -lglib

 during linkage editing.

 I think there's one or more libraries missing(or, at least, a symbolic link). 
 How can I discover what is the trouble? Can someone of you explain a 
 step-by-step way of solve it?


it means there is a symbolic link missing.  -lglib means it's trying
to link against libglib.so.  you can fix this by installing a package
like libglib-dev, or similar.

henry

___
Lazarus mailing list
Lazarus@lazarus.freepascal.org
http://www.lazarus.freepascal.org/mailman/listinfo/lazarus


Re: [Lazarus] libusb access from Lazarus

2008-11-21 Thread Henry Vermaak
2008/11/21 Mark Morgan Lloyd [EMAIL PROTECTED]:
 Mark Morgan Lloyd wrote:
 I notice that http://wiki.lazarus.freepascal.org/Hardware_Access#libusb
 lists three sets of libusb headers from Uwe Zimmermann, Johann Glaser
 and Joe Jared.

 This page also mentions that there are specific interface files
 available for FTDI devices- does anybody know where they can be found
 these days?

there is a libftdi (that uses libusb), but it's not really worth
depending on, so it's better to read the source (one relatively small
c file) and use it directly through libusb.  i had to use a usb snoop
program under windows to get things working properly, though.  better
to go with a cypress chip, i'd say...

henry
___
Lazarus mailing list
Lazarus@lazarus.freepascal.org
http://www.lazarus.freepascal.org/mailman/listinfo/lazarus


Re: [Lazarus] Build number in my application

2008-11-19 Thread Henry Vermaak
2008/11/19 Graeme Geldenhuys [EMAIL PROTECTED]:
 Hi,

 My current project is in SubVersion.  I user the SubVersion revision
 number as my Build number in my project version. Currently I use a
 revision.inc file which I have to manually edit from time to time (I'm
 lazy doing after every commit).

 Is there a way I can somehow tell Lazarus to automatically populate
 that file with the correct revision number *before* each compile?

before each compile, you can execute a program (see
lazarus/tools/svn2revisioninc.pas) that puts the revision number in a
revision.inc, or something.  see the compilation tab of compiler
options.  you can obviously use this method in a Makefile, too (like
lazarus does).

henry
___
Lazarus mailing list
Lazarus@lazarus.freepascal.org
http://www.lazarus.freepascal.org/mailman/listinfo/lazarus


Re: [Lazarus] Build number in my application

2008-11-19 Thread Henry Vermaak
2008/11/19 Graeme Geldenhuys [EMAIL PROTECTED]:

 ---[ getrevision.sh ]---
 #!/bin/sh
 svnversion -n  revision.inc
 [ end  ]


 I can run getrevision.sh from the console without problems...

that's because the your shell knows how to run scripts?  maybe you
need to put sh getrevision.sh in the edit box.

henry
___
Lazarus mailing list
Lazarus@lazarus.freepascal.org
http://www.lazarus.freepascal.org/mailman/listinfo/lazarus


Re: [Lazarus] Performance of GTK 2 and CE

2008-11-14 Thread Henry Vermaak
2008/11/14 Mark Morgan Lloyd [EMAIL PROTECTED]:
 Graeme Geldenhuys wrote:

 Excellent. :-)  Could you pass on those changes to extrafpc.cfg, so I
 can add it in.

 Working from memory, -Fu../lib becomes -Fu../lib/sparc-linux

the extrafpc.cfg files still need to be changed for the examples, i think.

it should be something along the lines of -Fu../lib/$fpctarget/fpgui

henry
___
Lazarus mailing list
Lazarus@lazarus.freepascal.org
http://www.lazarus.freepascal.org/mailman/listinfo/lazarus


Re: [Lazarus] Performance of GTK 2 and CE

2008-11-12 Thread Henry Vermaak
2008/11/11 Aleš Katona [EMAIL PROTECTED]:
 Now don't get me wrong.. there's nothing wrong on going to other solutions 
 (even ones which have cost as products) if your situation warrants it. I have 
 also sometimes used different solutions where time didn't permit to fix the 
 various FPC/Lazarus problems (for commercial projects).

 What I don't like is when people try to sort of blackmail their problems 
 into attention by statements like you did before regarding we'll be forced 
 to go elsewhere. This isn't a demand driven development model, bugs are 
 fixed on personal mood/itch basis, not on someone customer needs (although 
 majority and critical bugs obviously get more attention).

 So if you think your money/time is best spent elsewhere, fine, but don't make 
 a crybaby out of the decision. If you decide to stay and help with the 
 problem then even better of course :)

i think you are misunderstanding mark, here.  the fact that he is
taking the time to test and write detailed emails _is_ his
contribution.  the hardest part of solving the problem is pinpointing
it, in many cases.  this problem might not even be related to lazarus,
i guess.

henry

___
Lazarus mailing list
Lazarus@lazarus.freepascal.org
http://www.lazarus.freepascal.org/mailman/listinfo/lazarus


Re: [Lazarus] libusb access from Lazarus

2008-11-12 Thread Henry Vermaak
2008/11/12 Mark Morgan Lloyd [EMAIL PROTECTED]:

 Thanks Henry, noted in particular openusb. ARM is one of the platforms
 I'm being asked about, as is SPARC- the latter could obviously be a
 challenge if there are embedded endianness issues anywhere.

hmm, i've used libusb on a big endian arm system without problems,
too, but the program was written in c, since i couldn't get any joy
out of fpc for armeb.  the stable libusb (0.1.12) has been present on
all the embedded systems i've worked with, so you can't really go
wrong.  if you are planning to do complicated things, then writing a
driver is obviously the best way to go.

henry
___
Lazarus mailing list
Lazarus@lazarus.freepascal.org
http://www.lazarus.freepascal.org/mailman/listinfo/lazarus


Re: [Lazarus] Performance of GTK 2 and CE

2008-11-12 Thread Henry Vermaak
2008/11/12 Mark Morgan Lloyd [EMAIL PROTECTED]:
 Mark Morgan Lloyd wrote:

 I then copied the application over to the PDA again. The program load
 time (i.e. from tapping the icon to the start of drawing the window) was
 much better, but disappointingly the execution speed was not observably
 different, i.e. it still took a second to draw the window.

 I've sent Andy over the same test program that I've been running under
 Linux. Apart from (possibly) the high-precision timer there's nothing
 special in there so he should be able to compile and run it.

 If he sees performance problems with my code, i.e. it's a basic
 drawing-speed issue rather than something application-specific, is there
 any other WinCE/PocketPC user who could take both the source and binary
 by direct email in an attempt to see what's going wrong?

you can send it my way.  i've got an acer n30 that i've used with
lazarus before, so it wouldn't hurt testing on that.

henry
___
Lazarus mailing list
Lazarus@lazarus.freepascal.org
http://www.lazarus.freepascal.org/mailman/listinfo/lazarus


Re: [Lazarus] libusb access from Lazarus

2008-11-12 Thread Henry Vermaak
2008/11/11 Mark Morgan Lloyd [EMAIL PROTECTED]:
 I notice that http://wiki.lazarus.freepascal.org/Hardware_Access#libusb
 lists three sets of libusb headers from Uwe Zimmermann, Johann Glaser
 and Joe Jared.

 Does anybody have any experience of or preference for one or the other
 of these, in particular when not working on x86?

i used the one by Uwe Zimmermann (the api is quite stable - at least
if you're using the 0.1.12 version, which hasn't been updated a lot).
i've got it working on arm-linux without any problems (iirc).  if
you're interested in doing isochronous or asynchronous i/o, you might
want to go with the latest devel branch (or even openusb, which is
another project altogether).  there is libusb-compat library that
wraps the devel version to make porting very easy, but i've never had
the need for it.

henry
___
Lazarus mailing list
Lazarus@lazarus.freepascal.org
http://www.lazarus.freepascal.org/mailman/listinfo/lazarus


Re: [Lazarus] using two versions of RTL from lazarus

2008-11-09 Thread Henry Vermaak
2008/11/9 Marc Santhoff [EMAIL PROTECTED]:
 Hi,

 I'd like to use two version of the fpc libraries from inside lazarus,
 one RTL for release/normal usage and another one compiled with debugging
 symbols included.

 How can I use lazarus to switch between those two?

easiest is probably to install the ppu files to different locations,
then invent a custom define and add it to your fpc.cfg to switch
between different versions (where the -Fu paths are defined).

you don't really need to do this if you are just worried about debug
info, since you can strip the debug info afterwards.

henry
___
Lazarus mailing list
Lazarus@lazarus.freepascal.org
http://www.lazarus.freepascal.org/mailman/listinfo/lazarus


Re: [Lazarus] Performance of GTK 2 and CE

2008-11-07 Thread Henry Vermaak
2008/11/7 Henry Vermaak [EMAIL PROTECTED]:
 2008/11/7 Mark Morgan Lloyd [EMAIL PROTECTED]:
 Felipe Monteiro de Carvalho wrote:

 Maybe your device has very little memory, and the executable fills it.
 Did you strip before moving the executable to the PDA?

 Just in case Andy isn't familiar with this, how's it done on CE?

 compile with -Xs or manually run arm-wince-strip --strip-unneeded on the exe.

in lazarus there is Strip Symbols From Executable (-Xs) in the
linker tab under compiler options.

henry
___
Lazarus mailing list
Lazarus@lazarus.freepascal.org
http://www.lazarus.freepascal.org/mailman/listinfo/lazarus


Re: [Lazarus] Performance of GTK 2 and CE

2008-11-07 Thread Henry Vermaak
2008/11/7 Felipe Monteiro de Carvalho [EMAIL PROTECTED]:
 All it is doing is drawing some standard edit boxes and buttons on the
 screen. The PDA I tried it on is an XDA Stellar.

 Well, I can't think of why this kinds of things would be slow. They
 shouldn't, just simple as that.

i agree.  i have never seen this sluggishness myself, but it might be
related to a certain widget or part of code.  we won't be able to tell
without further information or an isolated testcase.

henry
___
Lazarus mailing list
Lazarus@lazarus.freepascal.org
http://www.lazarus.freepascal.org/mailman/listinfo/lazarus


Re: [Lazarus] PPC: SynEditFoldedView giving parameter syntax error

2008-11-06 Thread Henry Vermaak
2008/11/6 Martin Friebe [EMAIL PROTECTED]:

 I am trying to find the right IFDEF, to make sure it compiles for powerpc.
 I believe it would be

 {$IFDEF CPUM68K} {$INLINE OFF} {$ENDIF}

 Brad, could you see, if that works for you?

see http://www.freepascal.org/docs-html/prog/progap7.html for list of
pre-defines.

should that not be {$ifdef cpupowerpc} ?

henry
___
Lazarus mailing list
Lazarus@lazarus.freepascal.org
http://www.lazarus.freepascal.org/mailman/listinfo/lazarus


Re: [Lazarus] SubVersion vs Git

2008-11-05 Thread Henry Vermaak
2008/11/5 Reenen Laurie [EMAIL PROTECTED]:
 Git has - like several other linux applications - a crappy name.  I dunno if
 it is a dirty word, but it sounds like one.

in the u.k. we use it like bastard, e.g. linus is an old git.

henry
___
Lazarus mailing list
Lazarus@lazarus.freepascal.org
http://www.lazarus.freepascal.org/mailman/listinfo/lazarus


Re: [Lazarus] Getting started with WinCE/Windows Mobile

2008-11-01 Thread Henry Vermaak
2008/11/1 Andy Lawrie [EMAIL PROTECTED]:
 I'm a long term Delphi user but completely new to Lazarus/fpc. I'm looking
 at Lazarus as a means of programming a Windows Mobile Pocket PC in a
 language I already know.

 I found some information on installing a WinCE development system, and I
 understand I need the basic Windows Lazarus install plus an add-on install
 for WinCE. It was stated I had to have exactly the same fpc version for each
 of them.

 I have found and installed lazarus-0.9.26-fpc-2.2.2-win32.exe, but the only
 file I can locate for what I think is the WinCE add-on is
 lazarus-0.9.23-fpc-2.2.1-20070916-cross-arm-wince-win32.exe

 Can anybody advise me what I should install please?

have a look at the snapshot page:

http://www.hu.freepascal.org/lazarus/

henry
___
Lazarus mailing list
Lazarus@lazarus.freepascal.org
http://www.lazarus.freepascal.org/mailman/listinfo/lazarus


Re: [Lazarus] 0.9.26 (FPC 2.2.2) on Slackware and Debian

2008-10-30 Thread Henry Vermaak
On 30/10/2008, Mark Morgan Lloyd [EMAIL PROTECTED] wrote:

 Thanks Andrew, I'll work on it. Is there a way of deducing what packages
 need to be installed rather than trying anything that looks relevant? So
 far I'm working through package dependencies of the Debian Lazarus and
 FPC packages.

these are the basic dependencies for gtk1:

http://packages.debian.org/sid/lazarus-ide

gtk2 dev packages should be easy to guess.  this deb package will have
to change though, since gtk2 is now the default widgetset on linux.

henry
___
Lazarus mailing list
Lazarus@lazarus.freepascal.org
http://www.lazarus.freepascal.org/mailman/listinfo/lazarus


Re: [Lazarus] 0.9.26 (FPC 2.2.2) on Slackware and Debian

2008-10-30 Thread Henry Vermaak
On 30/10/2008, Mark Morgan Lloyd [EMAIL PROTECTED] wrote:

 Thanks Henry. I sorted out the gtk1 dependencies some while ago but in
 this case I'm specifically interested in gtk2, which is why I'm hesitant
 to simply splurge Debian's lazarus package onto the system.

 In part this goes back to the menu problem I mentioned a few days ago,
 the fact that this doesn't occur on gtk2 is a big incentive to migrate
 to it where possible.

i see.  i personally just tend to build a package and wait for ld to
spit out something like '-lsomelib not found', then i go and install
libsomelib-dev and try and build again.  it doesn't really take long,
since you don't have to make clean every time, so it will just link.
and lazarus doesn't depend on many packages anyway.

good luck

henry
___
Lazarus mailing list
Lazarus@lazarus.freepascal.org
http://www.lazarus.freepascal.org/mailman/listinfo/lazarus


Re: [Lazarus] wince - system.ppu

2008-10-28 Thread Henry Vermaak
On 28/10/2008, [EMAIL PROTECTED] [EMAIL PROTECTED] wrote:

 I would love it if there would be also a linux wince crosscompiler ...

this might not be that hard to build.  you can use the binutils
provided by the cegcc project.

henry
___
Lazarus mailing list
Lazarus@lazarus.freepascal.org
http://www.lazarus.freepascal.org/mailman/listinfo/lazarus


Re: [Lazarus] Rotated text ?

2008-10-24 Thread Henry Vermaak
On 24/10/2008, Michael Van Canneyt [EMAIL PROTECTED] wrote:

 This one I could have found myself :-)

 But what I meant:
 There is no property in the LCL that can be checked ?


i think you can use WidgetSet.LCLPlatform (unit interfacebase).

henry
___
Lazarus mailing list
Lazarus@lazarus.freepascal.org
http://www.lazarus.freepascal.org/mailman/listinfo/lazarus


Re: [Lazarus] Main menu hiding

2008-10-20 Thread Henry Vermaak
On 20/10/2008, Mark Morgan Lloyd [EMAIL PROTECTED] wrote:

 I could see the description and wasn't expecting great things, but was
 rather feverishly looking for an alternative to gtk 1.

 When I have time I'll try a different distro on the test machine which
 hopefully will allow me to get gtk 2 working. However I'd be very
 reluctant to move from Debian since It's probably the best choice when
 working on multiple architectures- I've got x86, ARM and SPARC here.

i'm not sure i follow here.  i've been running lazarus gtk2 under
debain testing for more than a year.

the menu hiding thing i don't understand either, but you can do it
manually on gtk2 with gtk_widget_hide(PGtkWidget(MainMenu.Handle));
and show again with gtk_widget_show.  you can see if it's visible with
gtk_widget_visible (surprise).

(i've gone back to debian from ubuntu, fwiw)

henry
___
Lazarus mailing list
Lazarus@lazarus.freepascal.org
http://www.lazarus.freepascal.org/mailman/listinfo/lazarus


Re: [Lazarus] Using the build_html.sh script on Mac OS X doesn't work [solution inside]

2008-10-15 Thread Henry Vermaak
On 15/10/2008, John Stoneham [EMAIL PROTECTED] wrote:
 On Wed, Oct 15, 2008 at 10:10 AM, Henry Vermaak
 [EMAIL PROTECTED]wrote:

 yes, maybe it's getting confused by the multiple -e.  have you tried
 sed 's/\(\.pp\|\.pas\)\b//g'?  that sed should probably only run once,
 too (on the output of the ls).


 Yeah, I figured it was the sed command that was the problem. The thing is,
 there is no need to use sed there anyway, since bash string processing
 handles removing those two extensions in a much simpler manner, as my fix
 shows.

yes, i know about that way, since i use bash, but i thought it was
bash specific?  have you tested with other shells?  you can also use
basename to remove suffixes.

henry
___
Lazarus mailing list
Lazarus@lazarus.freepascal.org
http://www.lazarus.freepascal.org/mailman/listinfo/lazarus


Re: [Lazarus] GTK2 is now the default widgetset

2008-10-08 Thread Henry Vermaak
On 07/10/2008, Graeme Geldenhuys [EMAIL PROTECTED] wrote:
 On Tue, Oct 7, 2008 at 10:38 PM, Henry Vermaak [EMAIL PROTECTED]
 wrote:

 looks good.  heh, when i'm bored in my lunch break i head to the pub :)

 You're from Stellenbosch right?  ;-)   Anyway, I have no pubs near our
 office.  :-(

i work in the english countryside, plenty of pubs here (there's 2 in
the village).  i sadly don't get to visit them that often (and the
beer isn't that well kept in one of them :( )

henry
___
Lazarus mailing list
Lazarus@lazarus.freepascal.org
http://www.lazarus.freepascal.org/mailman/listinfo/lazarus


Re: [Lazarus] Help for process

2008-10-08 Thread Henry Vermaak
On 08/10/2008, wile64 [EMAIL PROTECTED] wrote:
 I have responce :-)

 If this test don't work in command line progam output.txt, not work in
 Tprocess (idem for input)

things like re-direction of output and globbing is a feature of your
shell and it won't be interpreted by the tprocess.  this is a common
mistake people make with tprocess.

henry
___
Lazarus mailing list
Lazarus@lazarus.freepascal.org
http://www.lazarus.freepascal.org/mailman/listinfo/lazarus


Re: [Lazarus] GTK2 is now the default widgetset

2008-10-07 Thread Henry Vermaak
On 07/10/2008, Graeme Geldenhuys [EMAIL PROTECTED] wrote:
 the Raize font again. :-)  I've been postponing this for ages, because
 to a lot of effort. Before I manually drew all Raize characters in
 FontForge so I could generate bitmap fonts for linux GTK1. Now I'll
 have to try and make truetype fonts for GTK2.

try the terminus font, i use it for everything source related (and
terminal) since it's very clean and easy on the eyes.  you'll have to
`apt-get install console-terminus xfonts-terminus`.

henry
___
Lazarus mailing list
Lazarus@lazarus.freepascal.org
http://www.lazarus.freepascal.org/mailman/listinfo/lazarus


Re: [Lazarus] GTK2 is now the default widgetset

2008-10-07 Thread Henry Vermaak
On 07/10/2008, Graeme Geldenhuys [EMAIL PROTECTED] wrote:
 BTW:
 Did you see the example custom theme an screenshot I posted in fpGUI
 newsgroup. A quick and dirty theme (without using images), that kinda
 gives the look you were going for.  I was bored in my lunch break. :-)

looks good.  heh, when i'm bored in my lunch break i head to the pub :)

henry
___
Lazarus mailing list
Lazarus@lazarus.freepascal.org
http://www.lazarus.freepascal.org/mailman/listinfo/lazarus


Re: [Lazarus] [Lazarus 0012254]: Code tools bug: with Code completition

2008-10-03 Thread Henry Vermaak
On 30/09/2008, Luca Olivetti [EMAIL PROTECTED] wrote:

 Done
 http://bugs.freepascal.org/view.php?id=12269


hmm, i see this bug report is closed, but i'm still getting errors
that are related to this.

when i ctr-click on a unit in my uses clause, it doesn't find units in
different directories from the unit i'm clicking on, even thought i've
added all the paths to the source files in my compiler options (under
Other Sources).  is this known?  this obviously makes the code
completion almost unusable.

what i should probably explain is that these units don't get compiled,
since they are already built and the ppu/o files are in a directory i
specified under Other Unit Files in the compiler options.

the project compiles fine, though.

henry
___
Lazarus mailing list
Lazarus@lazarus.freepascal.org
http://www.lazarus.freepascal.org/mailman/listinfo/lazarus


Re: [Lazarus] [Lazarus 0012254]: Code tools bug: with Code completition

2008-10-03 Thread Henry Vermaak
On 03/10/2008, Mattias Gaertner [EMAIL PROTECTED] wrote:
 On Fri, 3 Oct 2008 13:29:35 +0100

 The bug 12269 is about not clearing a cache. For example
 opening a file via find declaration, closing it, and opening the file
 again via find declaration.
 It has nothing to do with 'units not found'.

sorry, i correlated the two issues because both caused my identifier
completion to fail.

 what i should probably explain is that these units don't get compiled,
 since they are already built and the ppu/o files are in a directory i
 specified under Other Unit Files in the compiler options.

 Please run the project / compiler options / test. Does it show
 warnings / errors?

no warnings (except duplicate ppu for apache units in fpc), the
project builds fine.  it's a similar situation as with fpc having its
compiled units in one place, and the source in another.  so i specify
the unit dir as /path/to/compiledunits/$(TargetCPU)-$(TargetOS), and i
specify the path to all the source so the ide can find it for
completion, etc.

it just seems to be that it doesn't find the source if it's in a
different directory to the source of the unit you are clicking on
(does that make sense?).

henry
___
Lazarus mailing list
Lazarus@lazarus.freepascal.org
http://www.lazarus.freepascal.org/mailman/listinfo/lazarus


Re: [Lazarus] [Lazarus 0012254]: Code tools bug: with Code completition

2008-10-03 Thread Henry Vermaak
On 03/10/2008, Mattias Gaertner [EMAIL PROTECTED] wrote:
 the unit dir as /path/to/compiledunits/$(TargetCPU)-$(TargetOS),

 The macros are normal. But this looks like an absolute path. Maybe you
 meant compiledunits/$(TargetCPU)-$(TargetOS), relative to your package?

it is absolute, but it's the right dir (and the compilation works, for
both archs).

 and i
 specify the path to all the source so the ide can find it for
 completion, etc.

 What do you mean with specify?

i add all source paths to the Other Sources (used only by IDE not compiler).

 In lazarus you use packages to specify paths. You hardly write paths
 yourself in the edit/combo boxes of the IDE.

the package in question (fpgui) doesn't play well when i cross
compile.  it compiles the whole package every time i switch compiler
(i386 to arm), which is annoying.  doing it this way it will find the
compiled fpgui units for whichever arch, and just compile my project.
this works well, so no problems there.


 You can see the search paths via source editor / popup menu / file
 settings / unit info. The 'unit path' is given to the compiler, the
 'source path' is an addition for the IDE. Both are normally defined by
 the compiler options.

i've had a look at this unit info and all the paths are there and correct.

as i've said, it does find some of the units i ctrl-click on.  but it
seems random and i _think_ it only finds source in the same directory
as the file i'm clicking on.

henry
___
Lazarus mailing list
Lazarus@lazarus.freepascal.org
http://www.lazarus.freepascal.org/mailman/listinfo/lazarus


Re: [Lazarus] Pasic Ide - previously named Lightsarus

2008-08-24 Thread Henry Vermaak
2008/8/24 Ciprian Mustiata [EMAIL PROTECTED]:
 The PasicIde team

do you pronounce this the same as pesticide?  just joking.

how do i try this out in linux?

henry
___
Lazarus mailing list
Lazarus@lazarus.freepascal.org
http://www.lazarus.freepascal.org/mailman/listinfo/lazarus


Re: [Lazarus] Running and compiling Pasic IDE on Linux

2008-08-24 Thread Henry Vermaak
2008/8/24 Ciprian Mustiata [EMAIL PROTECTED]:
   Hi Henry,


  I was tested this setup on OpenSuse 11, but if you have another distribution 
 it should run as well:

 1.  Be sure that you have installed mono. Run in your terminal: mono and if 
 it is not found as command look on your distribution how to install mono. For 
 instance on Debian based distros is: apt-get install mono, on RedHat based: 
 yum install mono, etc.
  1b) You may take the source code and make:  configure  make  su (switch as 
 root) and make install
 2. run it as: mono Pasic.exe. Some distribuitions offer a sub-bundle of mono, 
 and skips parts like Windows.Forms from it. You should install them 
 separately if you will get a System.Windows.Forms exception

 To compile it you should download RemObjects Oxygene, then go to where you 
 found the project named: Pasic.oxygene in the source-code and write in the 
 command line:
 mono path to Oxygene.exe compiler Pasic.oxygene

 It should generate in bin/Release/Pasic.exe compatible executable.


thanks, i'll try.

henry
___
Lazarus mailing list
Lazarus@lazarus.freepascal.org
http://www.lazarus.freepascal.org/mailman/listinfo/lazarus


Re: [Lazarus] Capture video in linux

2008-08-13 Thread Henry Vermaak
On 13/08/2008, Alejandro Pérez [EMAIL PROTECTED] wrote:
 Hello all,

 Does anyone know how to capture a video or a single frame of a webcam
 with Lazarus in Linux? I have the webcam working and know I would like
 that my application capture frames or a video.

if your webcam has a video4linux driver, then you can use the v4l api.
 look here:

http://linuxtv.org/v4lwiki/index.php/Main_Page


 There is a simple example to start with?


there are examples in the spec.  they are in c, so not hard to translate.

henry

___
Lazarus mailing list
Lazarus@lazarus.freepascal.org
http://www.lazarus.freepascal.org/mailman/listinfo/lazarus


Re: [Lazarus] Capture video in linux

2008-08-13 Thread Henry Vermaak
On 13/08/2008, Henry Vermaak [EMAIL PROTECTED] wrote:

 if your webcam has a video4linux driver, then you can use the v4l api.
  look here:

 http://linuxtv.org/v4lwiki/index.php/Main_Page


if you don't feel like working through this, there are many frame
grabbing apps out there.  and i think some libraries like gstreamer
and sane also have v4l capabilities.
___
Lazarus mailing list
Lazarus@lazarus.freepascal.org
http://www.lazarus.freepascal.org/mailman/listinfo/lazarus


Re: [Lazarus] Help needed with Lazarus errors (refer attached file)

2008-07-31 Thread Henry Vermaak
2008/7/31 Peter Williams [EMAIL PROTECTED]:

 Hello Fellow Lazarus programmers,

 I'm trying to compile a fairly complicated Lazarus project which I converted
 from Delphi 7 Second Edition.

 The attached txt file (3KB) contains the Lazarus compiler message errors and
 the relevant code from the unit MyIniFiles.pas

 NB - the file MyIniFiles.pas was created by copying the Borland Delphi 5
 file IniFiles.pas and adding some procedures etc etc to it and resaving it
 as MyIniFiles.pas (note: that was years ago!). The purpose of it is to
 create  read  write .ini files (e.g. same as has been used in Micro$oft
 Windowz).

lazarus already has ini file support (uses inifiles;).  then you can
use TIniFile for reading/writing.

henry
___
Lazarus mailing list
Lazarus@lazarus.freepascal.org
http://www.lazarus.freepascal.org/mailman/listinfo/lazarus


Re: [Lazarus] writeln to stdout in windows?

2008-07-29 Thread Henry Vermaak
2008/7/29 Seth Grover [EMAIL PROTECTED]:
 hm. if i compile with -WC, then it opens up a separate console window
 (even though I also have windows gui application, -WG, checked) and
 the writeln goes to that console window.

 that's not what i want, though... if i run from the command line, i
 want to see the messages written to the console. if i just run the
 executable from the windows gui, i don't want to see a console, but i
 don't want the writeln's to raise an exception.

you can find out whether you program is run from the console by using
the GetStdHandle function.  it returns 0 if it's a gui app.

see: http://msdn.microsoft.com/en-us/library/ms683231(VS.85).aspx

it's tricky to do, but you can detect and attach to the console an app
is run from, but you can't use writeln.  look at this code (not tested
on fpc):

program guiconsole;

uses
  Forms, Windows, SysUtils,
  main in 'main.pas' {Form1};

{$R *.res}

const
  ATTACH_PARENT_PROCESS = DWORD(-1);

function AttachConsole(dwProcessId: DWORD): BOOL; stdcall; external
kernel32 name 'AttachConsole';


var
  h: THandle;
  dum: Cardinal;
  msg1: String = 'You''re running this from a command window!';

begin
  h := GetStdHandle(STD_OUTPUT_HANDLE);
  if h = 0
then begin
  Application.Initialize;
  Application.CreateForm(TForm1, Form1);
  Application.Run;
end
else if h  INVALID_HANDLE_VALUE
  then begin
AttachConsole(ATTACH_PARENT_PROCESS);
h := GetStdHandle(STD_OUTPUT_HANDLE);
if (h = 0) or (h = INVALID_HANDLE_VALUE)
  then MessageBox(0, PChar(Format('GetStdHandle error!
%d', [h])), 'Error', MB_OK);
sleep(1000);
if not WriteConsole(h, pchar(msg1), length(msg1), dum, nil)
  then MessageBox(0, PChar(Format('WriteConsole error!
%d', [h])), 'Error', MB_OK);

{AllocConsole();
Writeln('You''re running this from a command window!'); }
  end
  else MessageBox(0, PChar(Format('GetStdHandle error! %d',
[h])), 'Error', MB_OK);
end.

using writeconsole is a pain, though.  i don't know if there's any way
of making fpc use the attached console as stdout.  i'll let you
experiment...

henry
___
Lazarus mailing list
Lazarus@lazarus.freepascal.org
http://www.lazarus.freepascal.org/mailman/listinfo/lazarus


Re: [Lazarus] handy svn update script

2008-07-28 Thread Henry Vermaak
2008/7/28 Graeme Geldenhuys [EMAIL PROTECTED]:
 Hi,

 Below is a svn update script for *nix based systems.  I often want to
 check the logs after I did a update, to see what changed. I then sit
 with the problem, that I can't remember the revision I upgraded from.

i often use svn log -r head:base to see if i really want to update and rebuild.

henry
___
Lazarus mailing list
Lazarus@lazarus.freepascal.org
http://www.lazarus.freepascal.org/mailman/listinfo/lazarus


Re: [Lazarus] Color setup of the Form1: TForm1

2008-06-17 Thread Henry Vermaak
2008/6/17 Paul Csanyi [EMAIL PROTECTED]:

 I read now the GTK Tutorial at:
 http://www.gtk.org/tutorial1.2/gtk_tut-21.html


this is a good place to get info:

http://developer.gnome.org/arch/gtk/themes.html

with the section Resource Files most relevant to you.

henry
___
Lazarus mailing list
Lazarus@lazarus.freepascal.org
http://www.lazarus.freepascal.org/mailman/listinfo/lazarus


Re: [Lazarus] Color setup of the Form1: TForm1

2008-06-17 Thread Henry Vermaak
2008/6/17 Paul Csanyi [EMAIL PROTECTED]:

 OK so I can to change Form1 Color when I setup in the Compiler Options
 the LCL Widget Type to 'gtk 2' for a project?

 I setup this but still can't to change Form1 Color in Object
 Inspector.


you'll have to recompile your lazarus (or at least lcl) for gtk2.

make clean all LCL_PLATFORM=gtk2

will give you a full gtk2 lazarus.  you might have to install some of
the gtk devel libs.

see: http://wiki.lazarus.freepascal.org/GTK2_Interface

henry
___
Lazarus mailing list
Lazarus@lazarus.freepascal.org
http://www.lazarus.freepascal.org/mailman/listinfo/lazarus


Re: [Lazarus] Color setup of the Form1: TForm1

2008-06-17 Thread Henry Vermaak
2008/6/17 Paul Csanyi [EMAIL PROTECTED]:

 I follow this howto and have recompiled LCL for GTK2.

 I have installed libgtk2.0-dev.

 The Lazarus restarted after Recompilation.

 Still I can't to change Form1 Color. Why?


maybe you haven't compiled your app for gtk2 widgetset?  works here...

henry
___
Lazarus mailing list
Lazarus@lazarus.freepascal.org
http://www.lazarus.freepascal.org/mailman/listinfo/lazarus


Re: [Lazarus] on ARM Linux ,SoftFloat and EABI issues

2008-06-05 Thread Henry Vermaak
2008/6/5 Nataraj S Narayan [EMAIL PROTECTED]:
 Hi Henry

 Please give me the exact command used by you for compiling.


here's a script.  change the params as you need.

henry


buildarm.sh
Description: Bourne shell script
___
Lazarus mailing list
Lazarus@lazarus.freepascal.org
http://www.lazarus.freepascal.org/mailman/listinfo/lazarus


Re: [Lazarus] on ARM Linux ,SoftFloat and EABI issues

2008-05-31 Thread Henry Vermaak
2008/5/31 Nataraj S Narayan [EMAIL PROTECTED]:
 Henry,

 Thanks for the suggestions. Will try cross compiling. I cross compile using
 /home/nataraj/arm-2008q1/arm-none-linux-gnueabi-.

 Freepascal wiki says to install fpc for the native x86 machine first.
 Then go for fpc-arm version 2.0.4. Which version of fpc should i install
 in native host - 2.2.0 or 2.0.4? Also, for cross compiling 2.0.4 ,how do
 i specify the said cross bin utils ?

i use trunk to cross compile for arm, but i think fixes_2_2 will also
work.  you should use 2.2.0 as a starting compiler (but 2.0.4) also
works for me.

you have to tell the build system where your binutils are
(BINUTILSDIR=/home/nataraj/arm-2008q1/) and what prefix you use
(BINUTILSPREFIX=arm-none-linux-gnueabi-).  then you need to use
CROSSOPT=-CfSOFT for the softfloat business.

all the packages get built for me, it just dies near the end of make
crossinstall.

the buildfaq contains good info (thanks to marco):
www.stack.nl/~marcov/buildfaq.pdf

henry
___
Lazarus mailing list
Lazarus@lazarus.freepascal.org
http://www.lazarus.freepascal.org/mailman/listinfo/lazarus


Re: [Lazarus] on ARM Linux ,SoftFloat and EABI issues

2008-05-30 Thread Henry Vermaak
2008/5/30 Nataraj S Narayan [EMAIL PROTECTED]:
 Hi Florian and other friends

 I am involved in porting existing C code to Arm Linux for AT91SAM9263 Ek
 board with 340x220 display. I need to write lots of console kinda apps.

 I am using a qemu-system-arm emulated  Armel Debian machine on a
 Debian x86 Lenny distro for writing code. I installed
 fpc-2.2.0.arm-linux.tar on the emulated linux.
 Which compiling a simple helloworld.pas , i get the classic error of
 System.o  being EABI 0 while target is EABI 4.

 I have got the svn download of fpc, and trying to compile it in the
 emulated machine for ARM for the past 2 days.  I have given :-

 make clean all ARCH=arm OPT=-CfSoft.

the makefiles use CPU_TARGET, but this shouldn't be necessary when
you're compiling natively (or inside an emulator, even).

i'd recommend going the cross compile route (since i know that works
with trunk).  just compile binutils (./configure --target arm) and
compile fpc with:

make crossall CPU_TARGET=arm CROSSOPT=-CfSOFT

you can use other envvars, too, just inspect the makefile if you're
brave, or read the buildfaq for some good info.

henry
___
Lazarus mailing list
Lazarus@lazarus.freepascal.org
http://www.lazarus.freepascal.org/mailman/listinfo/lazarus


Re: [Lazarus] Sprite example

2008-05-13 Thread Henry Vermaak
2008/5/12 Mattias Gaertner [EMAIL PROTECTED]:
 On Mon, 12 May 2008 17:14:49 +0200
  Lord Satan [EMAIL PROTECTED] wrote:

   On Mon, 12 May 2008 10:01:22 -0300
   Either fix it or remove it, I don't care. But having non-working examples 
 in Lazarus is a
   really bad choice. Looks like Patrick Shepherd was the only one
   understanding what I was talking about.

  Is it still that bad after my change?

looks nice on gtk2 now :)

henry
___
Lazarus mailing list
Lazarus@lazarus.freepascal.org
http://www.lazarus.freepascal.org/mailman/listinfo/lazarus


Re: [Lazarus] Handy script for Firebird users

2008-04-30 Thread Henry Vermaak
2008/4/30 Graeme Geldenhuys [EMAIL PROTECTED]:
 Joost van der Sluis wrote:
   And you didn't write it in Pascal because ?
  
   Joost

  Because the deployment PC's will not have FPC on them.
  Ummm... Then again, it takes all the parameters it needs for
  customization. Also, if I make it a console app, it will be
  cross-platform to. :)

  How to you handle standard input like was done in the script?

  copy-

 echo -n Creating the database $database ...
  ${ISQL}  EOF
  set sql dialect 3;
  CREATE DATABASE $database;
  commit;
  EOF
  if [ ! $? = 0 ]; then
echo Failed.
  else
echo Done.
  fi
  end-

it's just feeding the sql program a string (heredoc), then checking
the result.  you don't need to do anything special to transcribe this
to pascal :)

henry
___
Lazarus mailing list
Lazarus@lazarus.freepascal.org
http://www.lazarus.freepascal.org/mailman/listinfo/lazarus


Re: [Lazarus] How to find position in TMemo.lines

2008-04-16 Thread Henry Vermaak
On 16/04/2008, Jon Foster [EMAIL PROTECTED] wrote:
 I'm trying to determine where the which line in a TMemo the cursor is
  on. In Delphi I could use CaretPos. I didn't find anything in the
  documentation for TMemo that indicated there was any way to do this. Is
  there some way to determine the cursor position within the lines
  property of a TMemo?


err, this is probably a hack, but you can use pos(lineending,
memo.lines.text) in a loop to count how many newlines before you get
to memo.selstart.  then rposex(lineending, memo.lines.text,
memo.selstart) to find how far you are in the line you are.  works in
gtk2, at least (can send code if i don't make sense :).

henry
___
Lazarus mailing list
Lazarus@lazarus.freepascal.org
http://www.lazarus.freepascal.org/mailman/listinfo/lazarus