Re: [Lazarus] Capturing the output from a command using TPorcess
Hi, instead of using psexec you could try getmac /S pcname. Hope this helps. Ingo Am 20.07.2015 um 21:41 schrieb Richard Mace: Hi All, I hope this question is going to make sense. I am trying to obtain the MAC Address of a remote PC, using psexec \\pcname and running the command ipconfig /all. If I run the psexec command from my machine via a command prompt, ipconfig /all is successfully run on the remote machine, and I can see it's MAC address, however, if I run it via TProcess, in Lazarus, the output I get from TProcess is the output from psexec (successfully run and exited with error code 0) rather than the output from ipconfig. How can I code TProcess, so that it shows me the output from the ipconfig /all command instead? I hope that makes sense? Richard -- ___ Lazarus mailing list Lazarus@lists.lazarus.freepascal.org http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus -- ___ Lazarus mailing list Lazarus@lists.lazarus.freepascal.org http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus
Re: [Lazarus] Release of Lazarus 1.4
Am 23.04.2015 um 10:05 schrieb Michael Schnell: On 04/22/2015 04:59 PM, Mattias Gaertner wrote: On Wed, 22 Apr 2015 16:40:02 +0200 Michael Schnell mschn...@lumino.de wrote: But how to install most easily on Linux (I always use the svn) . cd your/fpc/svn make install INSTALL_PREFIX=/usr I know this and to it often to make use of the current svn version of fpc. Sorry for being unclear. I meant: how to install the non-current fpc 1.2.6. library version (and use it for building/using Lazarus) ? You can download stable versions form svn too (fpc 2.6.4: http://svn.freepascal.org/svn/fpc/tags/release_2_6_4/). Then build and install like the trunk but using a differnt directory. Finaly switch the fpc in Lazarus. -- ___ Lazarus mailing list Lazarus@lists.lazarus.freepascal.org http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus
Re: [Lazarus] TMemo flicker
Am 30.04.2013 07:25, schrieb Jürgen Hestermann: Maybe someone can just try my example program. OK, now I've tested a bit and BeginUpdate/EndUpdate works for me (Win7 x64, FPC and Laz Trunk): procedure TForm1.Button1Click(Sender: TObject); var i:Integer; begin Memo1.Clear; for i := 1 to 40 do begin if odd(i) then Memo1.Append('\') else Memo1.Append('+'); end; for i := 1 to 1000 do begin memo1.Lines.BeginUpdate; Memo1.Lines[Memo1.Lines.Count-1] := ' LAST LINE ---'+IntToStr(i)+'---'; memo1.Lines.EndUpdate; Application.Processmessages; end; Memo1.Lines[memo1.Lines.Count-1] := ' READY '; end; -- regards Ingo -- ___ Lazarus mailing list Lazarus@lists.lazarus.freepascal.org http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus
Re: [Lazarus] TMemo flicker
Am 30.04.2013 10:06, schrieb Michael Van Canneyt: It should be memo1.Lines.BeginUpdate; for i := 1 to 1000 do Memo1.Lines.Add(' LAST LINE ---'+IntToStr(i)+'---'); memo1.Lines.EndUpdate; Application.Processmessages; What you did makes no sense whatsoever. The whole point of beginupdate/endupdate is to mark a list of changes, and to prevent the UI from updating while you do the changes. The use of Add() is easier to understand. Michael. But this way you wouldn't see the progress. Including only Memo1.Lines[Memo1.Lines.Count-1] := ' LAST LINE ---'+IntToStr(i)+'---'; will also include all calculations of TMemo so you prevent flickering and see the progress. This makes sense to me. Your solution of course is mutch faster but I thought seeing the progress is important for Jürgen. Ingo -- ___ Lazarus mailing list Lazarus@lists.lazarus.freepascal.org http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus
Re: [Lazarus] Filtering on date with TDbf
Am 30.01.2012 12:25, schrieb Koenraad Lelong: Hi, Lazarus 0.9.30 I want to filter a TDbf. The field is a date. When I try in Filter in Lazarus : DATUM = '1/1/2011' or DATUM = 1/1/2011 or DATUM = '1.1.2011' In my application : tblTik.Filter:='DATUM='''+DateToStr(XferStart)+; I get an error : Index based on unknown field =. What am I doing wrong ? Regards, Koenraad Lelong. -- ___ Lazarus mailing list Lazarus@lists.lazarus.freepascal.org http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus Hi, IIRC, first of all you need an index based on the field(s) you want to filter. The error is shown because the index DATUM doesn't exists. Here is the real problem, I don't know how to create an index of ftDate. If I try an error is shown because only string and float fields are allowed. But you could convert your database and store all dates as strings. To format the date right you can use procedure TForm1.FormCreate(Sender: TObject); begin DefaultFormatSettings.DateSeparator:='.'; DefaultFormatSettings.ShortDateFormat:='.mm.dd'; ... end; With this lines DateToStr() should convert it right. The filter property wants the name of the filter to compare with, not the name of the field. dbf1.Filter:='INDEXNAME='+QuotedStr(DateToStr(XferStart)); dbf1.Filtered:=true; If the date-field is of ftString, the dates are correctly formatted and the index is build it should work. Hope this helps. regards Ingo -- ___ Lazarus mailing list Lazarus@lists.lazarus.freepascal.org http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus
Re: [Lazarus] Trying to get the svn v ersions of Lazarus and FPC running on Windows
Am 13.05.2011 14:41, schrieb Michael Schnell: (Very astonished that c:\fpc_2 is 143 MB of size and contains hundreds of files), That's pretty normal. On Linux you have these files too. See /usr/lib/fpc and /usr/share/doc/fpc-2.5.1. I do an svn cleanup to be sure I have clean sources and then I would like to compile Lazarus with the new fpc installation, So in the Lazarus source directory I try: C:\fpc\2.4.2\bin\i386-win32\make.exe clean all FPC=c:\fpc_2\bin\i386-win32\ppc386.exe but I get: C:/fpc/2.4.2/bin/i386-win32/rm.exe -f ../units/i386-win32/fcllaz.ppu c:/fpc_2/bin/i386-win32/ppc386.exe -MObjFPC -Scghi -O1 -gl -vewnhi -l -Fu. -FE. -FU../units/i386-win32 -di386 fcllaz.pas Free Pascal Compiler version 2.5.1 [2011/05/13] for i386 Copyright (c) 1993-2011 by Florian Klaempfl and others Target OS: Win32 for i386 Compiling fcllaz.pas Compiling registerfcl.pas Compiling lazaruspackageintf.pas Fatal: Can't find unit process used by RegisterFCL Fatal: Compilation aborted make.exe[1]: *** [fcllaz.ppu] Error 1 make.exe[1]: Leaving directory `C:/Downloads/svn/lazarus/trunk/packager/registration' C:\fpc\2.4.2\bin\i386-win32\make.exe: *** [packager/registration] Error 2 That's because of the missing fpc.cfg. I suppose it tries to find it in c:\fpc_2\bin\i386-win32 as well, but I am not sure. It in fact does not exist that path. Blindly, I copyied it from c:\fpc\2.4.2\bin\i386-win32\ there to. Good idea, just missing one step. Edit the fpc.cfg! At the end of the file are some paths to the libraries which start with C:\fpc\2.4.2 You'll have to edit this lines to C:\fpc_2\ PPU Invalid Version 104 and registerfcl.pas(42,22) Fatal: Cant find unit process used by RegisterFCL (The same problem as when I tried to do make all). This is because the fpc.cfg points to the libs of 2.4.2(see above). regards Ingo -- ___ Lazarus mailing list Lazarus@lists.lazarus.freepascal.org http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus
Re: [Lazarus] Trying to get the svn v ersions of Lazarus and FPC running on Windows
Am 13.05.2011 17:35, schrieb Michael Schnell: Now my problem is that Lazarus crashes when I want to set general options (ctrl-shift-o). I suppose this is due to the language being set to German during the Installation. But I can't change it. And I can't set the debugger path :( . I would try to delete the Lazarus config files (C:\Dokumente und Einstellungen\Benutzer\Lokale Einstellungen\Anwendungsdaten\Lazarus) or use lazarus.exe --pcp=C:\myLazConfig to get an empty config. Ingo -- ___ Lazarus mailing list Lazarus@lists.lazarus.freepascal.org http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus
Re: [Lazarus] Trying to get the svn v ersions of Lazarus and FPC running on Windows
Am 13.05.2011 18:09, schrieb Michael Schnell: I deleted the appropriate lazarus directory and when starting Lazarus I got the configuration menu to set some directories. But this resulted in the same issue. Seems to be a bug. I updated lazarus on my old XP machine and now I also get this AV then trying to open Tool/Options. FPC 2.5.1 r17444 Lazarus 0.9.31 r30721 Ingo -- ___ Lazarus mailing list Lazarus@lists.lazarus.freepascal.org http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus
[Lazarus] Trouble building IDE using lazbuild
Hi list, since some time (IIRC since making the lcl a usual package) I get an error when building the IDE using lazbuild. Errormessage: ... Compiling lazhelpintf.pas Compiling lazlinkedlist.pas Compiling lclmemmanager.pas Compiling lclmessageglue.pas Fatal: Can't find unit Messages used by LCLMessageGlue TExternalToolList.Run Exception: /home/ingo/dev/lazarus/lcl/lclmessageglue.pas(1,1) Fatal: Can't find unit Messages used by LCLMessageGlue ERROR: tool reported error I'm using Ubuntu 10.10 64bit with Gnome(GTK+) FPC 2.5.1 r17306 and Lazarus 0.9.31 r30265. The commands I use look like this: svn up make clean all ./lazbuild -B --pcp=~/dev/lazarus/.lazarus --build-ide= The make command and rebuilding the IDE from inside the IDE are running fine. Only lazbuild fails. Also with FPC 2.4.2 and Lazarus 0.9.30 I have no problems. Any hints? -- regards Ingo -- ___ Lazarus mailing list Lazarus@lists.lazarus.freepascal.org http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus
[Lazarus] A (simple) picture of Lazarus
Hi list, from time to time there is a user (like me about one year ago) confused of how to install Lazarus and where to place all the files. There are some tutorials out there which tell the user to create a special structure of directories and copy files from here to there. But the truth is there are no rules where to place and how to name the base directories. It's highly configurable because of the ability of multiple installations. Today I had some time and made some graphics of my understanding of how Lazarus works. Any comments are welcome. You are free to change and use these graphics on a tutorial or Wiki or what ever you want. -- regards Ingo LazDirs.odg Description: application/vnd.oasis.opendocument.graphics -- ___ Lazarus mailing list Lazarus@lists.lazarus.freepascal.org http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus
Re: [Lazarus] TortoiseSVN help.... error in Installing Lazarus wiki --- there is no download the source option
Am 08.02.2011 19:15, schrieb Peter E Williams: TortoiseSVN_options.png // it shows all of the options and there is not a download nor download the source option nothing like it what the F@CK are you talking about. But it shows an item called SVN Update(2 items above TortoiseSVN) . What do you expect when clicking on an already checked out directory? I guess this item changes into SVN Checkout (or something similar) when you click on an _empty_ directory. Before you say read the manual... I have looked at the online help and there are 8 million 900 and 65 screens to read... okay minor exaggeration for humour. I'm sure Google will guide you to a shorter tutorial how to use this tool. -- Regards Ingo -- ___ Lazarus mailing list Lazarus@lists.lazarus.freepascal.org http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus
Re: [Lazarus] ERROR compiling Lazarus for first time on Windows 7 Ultimate OS. Fatal: Can't find unit system used by AllLCLUnits
Am 26.01.2011 18:53, schrieb Peter Eric Williams: * Win98: Edit autoexec.bat and add the line: PATH=%PATH%;C:\pp\bin\bin\win32 * WinXP/2k: My Computer (Right Click) - Properties - Advanced (Page) - Environment Variables - System Variables - Edit PATH, Add C:\pp\bin\bin\win32 there. Then restart windows. I am using Windows 7 Ultimate and there is no autoexec.bat and no My Computer icon. Extending your PATH variable to the fpc directory: I have looked under Settings / Control Panel / All Control Panel Items and I cannot find any reference to either the autoexec.bat file nor the PATH (or any other) environment variable. Windows 7 and Vista are similar to XP/2k. You'll have to right click on Computer in the start menu and choose Properties . Click on Advanced Settings in the upper left corner of the window. There are the Environment Variables... -- Regards Ingo -- ___ Lazarus mailing list Lazarus@lists.lazarus.freepascal.org http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus
[Lazarus] Error building IDE using LazBuild
Hi list, I just tried to update my trunk-installation and got this: ./lazbuild -B --build-ide= An unhandled exception occurred at $006C907B : Exception : TFPCUnitToSrcCache.GetConfigCache missing TestFilename $006C907B line 8676 of definetemplates.pas $006C92AA line 8707 of definetemplates.pas $006C9425 line 8734 of definetemplates.pas $006C8FE8 line 8667 of definetemplates.pas $0075BB07 line 646 of buildmanager.pas $007628FD line 1922 of buildmanager.pas $00762BD7 line 1948 of buildmanager.pas $005AF2DD line 403 TBuildManager.SetBuildTargetIDE OS=linux CPU=x86_64 WS=gtk2 of lazbuild.lpr $005B23FC line 1019 of lazbuild.lpr $005B42F0 line 1245 of lazbuild.lpr my system: - Ubuntu 10.10 x64 - FPC trunk r16750 - Laz trunk r28961 I always do a make clean all before compiling with lazbuild. r28958 works fine. regards Ingo -- ___ Lazarus mailing list Lazarus@lists.lazarus.freepascal.org http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus
Re: [Lazarus] Error building IDE using LazBuild
Thanks for your reply, but Am 11.01.2011 17:53, schrieb Andreas Schneider: I'm not sure if make clean all always rebuilds lazbuild itself. Just to be on the safe side, you can run make lazbuild. Yes it does. I did what you suggested (an additionally make lazbuild), but still doesn't work. Also you usually don't have to make clean all before building with lazbuild. lazbuild -B --build-ide= should do fine. It's only from time to time that lazbuild itself has to be rebuilt. I know and to be sure I do it always. Only one more minute to wait. ;) I saw Matthias is checking in some things currently. I'll wait a bit and try it later again. Sorry for the noise. -- ___ Lazarus mailing list Lazarus@lists.lazarus.freepascal.org http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus
Re: [Lazarus] Error building IDE using LazBuild
Am 11.01.2011 23:54, schrieb Mattias Gaertner: Fixed. Mattias -- ___ Lazarus mailing list Lazarus@lists.lazarus.freepascal.org http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus Thanks. BTW, is it ok to post this issues here or would it be better to wait some time, lets say 24h, and file a bug report? Ingo -- ___ Lazarus mailing list Lazarus@lists.lazarus.freepascal.org http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus
Re: [Lazarus] Help building Lazarus in Linux64
Am 06.01.2011 23:15, schrieb José Mejuto: interpreting option -Fu/home/joshy/pascal/fpc/lib/fpc/2.5.1/units/x86_64-linux/rtl [0.008] Path /home/joshy/pascal/fpc/lib/fpc/2.5.1/units/x86_64-linux/rtl/ not found Hi. It seems you tried building a 64bit-fpc with make all using a 32bit-fpc. Because the paths mentioned in your home/joshy/.fpc.cfg aren't found it tries reading the /etc/fpc.cfg. Try building fpc with make cycle first. See buildFAQ. -- ___ Lazarus mailing list Lazarus@lists.lazarus.freepascal.org http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus
Re: [Lazarus] No FPC sources on lazarus start....
Am 04.01.2011 20:24, schrieb Bo Berglund: Where should I put the sources? Place and name it how you like it. You'll have to tell Lazarus(Environment/Options/Files) there they are in any case. regards Ingo -- ___ Lazarus mailing list Lazarus@lists.lazarus.freepascal.org http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus
Re: [Lazarus] Can't find unit contnrs used by Masks
Am 09.12.2010 11:46, schrieb Michael Schnell: which fpc /usr/local/bin/fpc /usr/local/bin/fpc Free Pascal Compiler version 2.5.1 [2010/12/03] for i386 Copyright (c) 1993-2010 by Florian Klaempfl /usr/lib/fpc/2.5.1/ppc386 [options] inputfile [options] This doesn't match! /usr/bin/fpc should be called. Though this isn't the root of evil. whereis fpc fpc: /usr/bin/fpc /etc/fpc.cfg /usr/lib/fpc /usr/bin/X11/fpc /usr/local/bin/fpc /usr/local/lib/fpc /usr/share/man/man1/fpc.1.gz Here you see the fpc.cfg is in /etc. Take a look at and check paths are pointing to /usr/lib/... not /usr/local/lib/... Like you mentioned in another mail you just need the second installation to build fpc. But you don't need the hole installation to do this, the ppc386 binary is enough. Regards Ingo -- ___ Lazarus mailing list Lazarus@lists.lazarus.freepascal.org http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus
Re: [Lazarus] Can't build IDE with Lazbuild
Am 04.11.2010 00:45, schrieb Juha Manninen: Yes, sorry. Fixed now in trunk. Juha -- Thanks for quick fixing. Good work. Ingo -- ___ Lazarus mailing list Lazarus@lists.lazarus.freepascal.org http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus
Re: [Lazarus] Can't build IDE with Lazbuild
Am 04.11.2010 16:23, schrieb Mattias Gaertner: On Thu, 4 Nov 2010 12:13:08 -0300 Marcos Douglasm...@delfire.net wrote: 2010/11/4 Michael Van Canneytmich...@freepascal.org: On Thu, 4 Nov 2010, Marcos Douglas wrote: What is the difference to use lazbuild instead of IDEBuild? Normally it is the same, except that lazbuild is a command-line tool. Ok and when is created lazbuild? When I compile the IDE? no make lazbuild Mattias -- ___ Lazarus mailing list Lazarus@lists.lazarus.freepascal.org http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus or make all (IIRC make lazbuild *can* fail after svn update) Ingo -- ___ Lazarus mailing list Lazarus@lists.lazarus.freepascal.org http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus
Re: [Lazarus] Can't build IDE with Lazbuild
Am 04.11.2010 16:11, schrieb Marcos Douglas: On Thu, Nov 4, 2010 at 9:12 AM, Andreas Schneiderak...@gmx.de wrote: On Thu, 4 Nov 2010 08:41:06 -0300, Marcos Douglasm...@delfire.net wrote: What is the difference to use lazbuild instead of IDEBuild? Marcos Douglas You don't have to run the IDE, that's the main advantage. This in turn is great for automation. Right, so I need him. I want to build Lazarus with FPC 2.5.1 (trunk) but compile my programs with FPC 2.4.3. I can use lazbuild with pcp= param to set enviroments configurations to use. Is that correct? Thanks, Marcos Douglas -- ___ Lazarus mailing list Lazarus@lists.lazarus.freepascal.org http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus Yes, you can also specify the compiler with --compiler= See lazbuild -h or manpage for all params. Ingo -- ___ Lazarus mailing list Lazarus@lists.lazarus.freepascal.org http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus
[Lazarus] Can't build IDE with Lazbuild
Hi all, lazbuild -b --build-ide= throws this exception since r28046. An unhandled exception occurred at $0074DF28 : Exception : SetExtraOptions should not be called. $0074DF28 line 543 of buildprofilemanager.pas $005AAD69 line 407 of lazbuild.lpr $005AE03C line 1047 of lazbuild.lpr $005AFF36 line 1273 of lazbuild.lpr My system is Ubuntu 10.10 x64 with fpc 2.5.1 r16300. I always do a make clean all before running lazbuild. svn log shows: r28046 | juha | 2010-11-02 23:30:03 +0100 (Di, 02. Nov 2010) | 1 Zeile Build Lazarus: allow define defines :) regards Ingo -- ___ Lazarus mailing list Lazarus@lists.lazarus.freepascal.org http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus
Re: [Lazarus] Lazarus IDE and fpc.cfg location
Am 22.10.2010 22:53, schrieb patspiper: 3. The directory specified in the environment variable PPC_CONFIG_PATH, and if it is not set, it will look in the etc directory above the compiler directory. (For instance, if the compiler is in /usr/local/bin, it will look in /usr/local/etc) I was experimenting on how to install FPC 2.5.1 alongside of 2.4.0, the config file of which is /etc/fpc.cfg. Putting fpc.cfg in the fpc binary directory did not work whereas it worked when placed in the home folder (.fpc.cfg). Note, the compiler isn't fpc but ppc386/ppcx64. so you have to put the fpc.cfg to basedir/lib/fpc/etc. I have so on my ubuntu. regards Ingo -- ___ Lazarus mailing list Lazarus@lists.lazarus.freepascal.org http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus
Re: [Lazarus] Lazarus Manager
Hi, I just looked over your scripts and have some remarks/questions. Linux-script: echo Please, enter your account user: read NAME There is a variable called $USER. Why not use this? sudo apt-get install -y cvs What is this package for? I don't have this installed on my ubuntu and you don't use it in your script. sudo apt-get install -y alien ... cd /home/$NAME/fpc_tools/fpc_setup wget -c http://mirror.mirimar.net/freepascal/dist/2.4.0/i386-linux/rpm/fpc-2.4.0-1.i386.rpm .. sudo alien -i -c /home/$NAME/fpc_tools/fpc_setup/fpc-2.4.0-1.i386.rpm I don't see a reason for installing an application, downloading a package and converting them, just to get one binary. Binaries for bootstrap can be downloaded from ftp://ftp.freepascal.org/pub/fpc/dist/2.4.0/bootstrap/. Or is there another reason? svn co http://svn.freepascal.org/svn/fpc/trunk fpc cd /home/$NAME/fpc_tools/fpc/ svn up .. cd /home/$NAME/ svn co http://svn.freepascal.org/svn/lazarus/trunk lazarus cd /home/$NAME/lazarus/ svn up Why doing an update after a checkout? Windows-script: wget -c %FPCURL%/%FPCNAME% --directory-prefix=%PATHDEST%\tools\fpc_setup ... echo Copy binutils echo. C: copy %PATHDEST%\fpc\2.4.0_org\bin\i386-win32\ar.exe %PATHDEST%\fpc\binutils\ copy %PATHDEST%\fpc\2.4.0_org\bin\i386-win32\as.exe %PATHDEST%\fpc\binutils\ ... Binaries for bootstrap can be downloaded from ftp://ftp.freepascal.org/pub/fpc/dist/2.4.0/bootstrap/ and binutils can be downloaded from http://svn.freepascal.org/svn/fpcbuild/binaries/i386-win32/. set PATHDEST=C:\Develop ... C: It would be more flexible to use 2 variables e.g. PATHDEST=\Develop and DRIVEDEST=C:. set OLDPATH=%PATH% ... set PATH=%OLDPATH%;%PATHDEST%\fpc\2.4.0_org\bin\i386-win32\ The PATH can be set with set PATH=%PATH%;%PATHDEST%\fpc\2.4.0_org\bin\i386-win32\. There is no need for an additional variable. This were just some things I don't understand why you did it this way. Also I'm very low on bandwidth, so I'm looking what's needed to download. Hope it helps you. regards Ingo -- ___ Lazarus mailing list Lazarus@lists.lazarus.freepascal.org http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus
Re: [Lazarus] Lazarus Manager
Am 04.10.2010 18:08, schrieb Kjow: Hi all, This eMail is a Spin-Off of mailing Build scripts for Freepascal and Lazarus compilation from source Here ( http://wiki.lazarus.freepascal.org/Lazarus_Manager ) I started a project to manage Lazarus/FPC installation from svn sources. In the next weeks/month I will port these script to a multiplatform binary-program. Please, take it as an hobby... I know that it can be improved a lot and there are mistake for sure, but I hope that this project will grow up well :) Regards, Kjow PS A future goal will be implementation of cross-compiling from win/linux/i386/x64/arm to win/linux/i386/x64/arm, with the right support is not so hard. -- ___ Lazarus mailing list Lazarus@lists.lazarus.freepascal.org http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus Hi, you can have a look at http://svn.lazarusforum.de/svn/lazupdater/trunk . I started this project some months ago to handle my updates. It can also do a checkout of FPC and Lazarus, but doesn't install needed dependencies(svn, make, binutils...). It's not finished yet and there is a lot of space for improvements I think. Also documentation and lot of testing has to be done. Maybe this helps you to reach your goal. Ingo -- ___ Lazarus mailing list Lazarus@lists.lazarus.freepascal.org http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus
[Lazarus] Problem using TAsyncProcess.OnReadData
Hi all, I'm trying to use TAsyncProcess and got into trouble on other widgetsets than GTK2. The code below works fine on Ubuntu 10.04 x64 (GTK2) and openSUSE 11.3 i386 (GTK2), but not on openSUSE 11.3 i386 (QT) or Windows7 i386. I played around with the options and other properties, but no message were displayed. It seems OnReadData is never fired. Another thing is, running fpc without parameter works. (Other commands I tried svn up, make all don't work) What I'm doing wrong? Regards Ingo (I know the example isn't perfect, but the message should come up, as it does on GTK2) uses ..., Process; ... procedure TForm1.AsyncProcess1ReadData(Sender: TObject); var s:String; b:DWord; begin s:=''; b:=AsyncProcess1.NumBytesAvailable; if b0 then begin setlength(s, b); AsyncProcess1.Output.Read(s[1], b); ShowMessage(s); end; end; procedure TForm1.Button1Click(Sender: TObject); begin AsyncProcess1.CommandLine:='fpc -iTO'; AsyncProcess1.Options:=[poUsePipes, poStderrToOutPut]; AsyncProcess1.ShowWindow:=swoHIDE; AsyncProcess1.Execute; end; -- ___ Lazarus mailing list Lazarus@lists.lazarus.freepascal.org http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus
Re: [Lazarus] Lazarus installation on Mac plus other thoughts
On 27.07.2010 18:23, Juha Manninen wrote: So it really requires a DVD? No download option? DVD is easiest I think. You can try to download from apple homepage (http://developer.apple.com/technologies/xcode.html), but you'll have to register first. Also you need the right version. IIRC 3.1 for Leopard / Tiger and 3.2 for Snow Leopard. After this you can install fpc-xcode-xxx.pkg, fpc-xxx.pkg (both inside the fpc-xxx.dmg), then the sources of fpc and last lazarus. I downloaded all form: http://www.hu.freepascal.org/lazarus/ regards Ingo -- ___ Lazarus mailing list Lazarus@lists.lazarus.freepascal.org http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus
Re: [Lazarus] Tutorial Compiling/installing FPC and Lazarus from Sources of SVN
On 22.07.2010 16:01, Marcos Douglas wrote: I added a tuturial to compile and install FPC/Lazarus, from sources of SVN, on Windows. Link: http://wiki.freepascal.org/Installing_Lazarus#Compiling.2Finstalling_FPC_and_Lazarus_from_Sources_of_SVN Hi, this is a good thing but I think it won't work as described for 2 reasons. 1st: ppc386.exe isn't part of binutils and you don't describe how to get it but need it.(I don't know an easy way too - except installing fpc by installer) 2nd: IIRC it isn't possible to install fpc in the same directory as the source. (I always create a subdirectory called src or source) The rest seem to be ok. Good work! regards, Ingo -- ___ Lazarus mailing list Lazarus@lists.lazarus.freepascal.org http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus
Re: [Lazarus] Tutorial Compiling/installing FPC and Lazarus from Sources of SVN
On 22.07.2010 18:53, Marcos Douglas wrote: I described in step #1: Dir: c:\freepascal\binutils\i386-win32\ URL: http://svn.freepascal.org/svn/fpcbuild/branches/fixes_2_4/install/binw32 Just open this URL in your preferred browser and see there's no ppc386.exe. You'll have to copy it from somewhere. If you got the FPC from the SVN, you can install anywhere. You're right, I didn't knew that. Ingo -- ___ Lazarus mailing list Lazarus@lists.lazarus.freepascal.org http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus
Re: [Lazarus] Clean Up and Build / Fatal Error: Can't Create object file: units/i386-linux/hello.o
Am 04.06.2010 02:21, schrieb Peter E Williams: File: hello.pp [Read-Only] (/usr/lib/lazarus/0.9.28.2/examples) Hello, if you have installed Lazarus by packagemanager you have no permission to write by default. It's because the package manager uses superuser-rights to install it. You'll have to start Lazarus with superuser-rights to rebuild it or change permission of Lazarus-path. You could also checkout Lazarus from svn to your $HOME and build it there. Regards, Ingo -- ___ Lazarus mailing list Lazarus@lists.lazarus.freepascal.org http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus
Re: [Lazarus] Installing FPC/Lazarus on Windows using SVN, no binaries
Am 03.06.2010 11:35, schrieb Juha Manninen: 5.1 Copy all binaries which do not allready exist from old ..\fpc\bin\i386-win32\ to the new one On Linux I did basically the same thing except for this 5.1. What binaries? On Windows FPC comes with several tools like make, cp, rm... which don't exist on Windows nativly. So when you change the PATH this tools aren't in PATH anymore. -- ___ Lazarus mailing list Lazarus@lists.lazarus.freepascal.org http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus
Re: [Lazarus] Getting and building specific versions
Am 03.06.2010 15:28, schrieb Mark Morgan Lloyd: For the record, can anybody give examples of how to find the version numbers and then get the appropriate one? My experience of svn is about limited to the co command, how do I look at the available tags? Just open http://svn.freepascal.org/svn/lazarus in a webbrowser to see which paths (of stable versions/branches) exists. but then you need to find the FPC version it can compile with - which will probably be the save version used for 0.9.26. A quick grep doesn't show this information in any files near the root of a source archive. Is there something else available via svn? I know that somebody else tried asking a comparable question relating to FPC (Toan Pham on 26th May), so I don't think I'm the only person who doesn't understand this area. In the top of ../branches/fixes_0_9_26/lcl/allunits.pp is a line {$fatal Lazarus requires at least FPC 2.2.0}, but I think later versions will also do it. -- ___ Lazarus mailing list Lazarus@lists.lazarus.freepascal.org http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus
Re: [Lazarus] Installing FPC/Lazarus on Windows using SVN, no binaries
Am 03.06.2010 17:45, schrieb Marcos Douglas: Simply keep them in a separate directory that also has a PATH entry. I have the following under Windows. c:\fpc\binutils\ c:\fpc\version\ One more tip... this should be more explicit in the installation on Windows. It seems that each person makes his way :( I used the Felipe Monteiro de Carvalho method. But his method is more for Lazarus, not FPC, I think. Felipe explained the way to install multiple installations of Lazarus. Greames hint discribes a more elegant way of handling additional tools which are not part of the FPC-Project but needed to build FPC and Lazarus. I discriped the way how I install the SVN-Versions of FPC and Lazarus on a clean System. So you can/have to choose what you need to reach your goal. :-) regards, Ingo -- ___ Lazarus mailing list Lazarus@lists.lazarus.freepascal.org http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus
Re: [Lazarus] Installing FPC/Lazarus on Windows using SVN, no binaries
Am 03.06.2010 17:15, schrieb Juha Manninen: shoKwave wrote: I don't think so. On Linux first you have to check all depending packages (gdk-pixbuf-devel, gtk2-devel, libQt4-devel...) are installed and on some distros packages are named different. Then do all things discriped( without 5.1). And then you have create a symlink to your ppcxxx binary by hand. The first part is true but I didn't create symlinks by hand. make install... made it I guess. I just tested make install to a new diretory but there is no ppc-binary/-link. Maybe we can say: begin if not FileExists('bin/ppci386') then CreatePPCLink; end; :D -- ___ Lazarus mailing list Lazarus@lists.lazarus.freepascal.org http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus
Re: [Lazarus] Installing FPC/Lazarus on Windows using SVN, no binaries
Am 02.06.2010 15:36, schrieb Felipe Monteiro de Carvalho: Actually I have forgotten how to build FPC from SVN and integrate it to Lazarus ... It is on my plans to relearn that, maybe in a couple of days ... Hello, I'm seeking for an easy way since some weeks, too. So maybe I can help. ATM the easiest (only?) way I found is: 1. Download an install a precompiled FPC 2. Download FPC-source from SVN (svn co http://svn.freepascal.org/svn/fpc/trunk fpc) 3. Build FPC (make all) 4. Install FPC (make install INSTALL_PREFIX=x:\path\to\new\fpc ) 5. Change/append the PATH environment varible 5.1 Copy all binaries which do not allready exist from old ..\fpc\bin\i386-win32\ to the new one 5.2 Edit fpc.cfg in the new bin and modify the paths 6. Download Lazarus from SVN (svn co http://svn.freepascal.org/svn/Lazarus/trunk lazarus) 7. Buid Lazarus (make bigide) 8. Open Lazarus and change the paths Or does someone know an easier/better way? Please tell. Regards Ingo -- ___ Lazarus mailing list Lazarus@lists.lazarus.freepascal.org http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus
Re: [Lazarus] TIniFile bug?
Am 18.05.2010 14:13, schrieb Kjow: I have a problem with TIniFile, it doesn't work. Until some revisions ago (2-3 days) no problem, but from yesterday it doesn't work anymore. I had problems with TInifile.ReadString. See http://bugs.freepascal.org/view.php?id=16502 -- ___ Lazarus mailing list Lazarus@lists.lazarus.freepascal.org http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus
Re: [Lazarus] TIniFile bug?
Am 18.05.2010 15:35, schrieb Kjow: 2010/5/18 shoKwaveshokw...@gmx.net: I had problems with TInifile.ReadString. See http://bugs.freepascal.org/view.php?id=16502 TInifile.ReadBool also doesn't work. Maybe all the read-system doesn't works, on WriteInteger/WriteBool it works. ReadBool, ReadInteger, and so on are using ReadString. So it's all based on the same (simple?) ReadString-bug. I've made a patch which works for me, but there may be other side-effects I don't oversee. So someone with more skills should have a look at. -- ___ Lazarus mailing list Lazarus@lists.lazarus.freepascal.org http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus
Re: [Lazarus] main form icon and other things
Am 01.04.2010 09:50, schrieb Alberto Narduzzi: 1. I specify (load, from the object inspector) an icon for the application's main form, but when I compile and run the application, its icon is always the red X icon; no matter what file I load (be it an .ico, or an .xpm). Nothing changes even if I dynamically load it at runtime, in the form's oncreate handler (in this case I can load only an .ico). This thing worked in the previous versions, althou' the correct icon's transparency was obtainable only using an .xpm. 2. I used to start my program minimized in the application's bar (not the tray area) by specifying WindowState := wsMinimized in the oncreate handler, and it all worked; but now this doesn't. To solve the thing I can do a Application.Minimize in the onshow handler, but this causes an annoying flicker (the form is shown in its normal state for a fraction of a second, then minimizes). Hi, 1. Have you seen the possibility to set an icon in project/projectoptions menu? 2. I use Form1.Hide in onShow event and can't see any flicker. Maybe my mashine is to fast? Hope it helps. Ingo -- ___ Lazarus mailing list Lazarus@lists.lazarus.freepascal.org http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus
Re: [Lazarus] Newcomers with Debian based systems
Hans-Peter Diettrich schrieb: If somebody can point out the most promising path to follow, I can report in part 2 what further trouble prevented me from installing a working version of Lazarus that way. It's ridiculous when some tar comes with a bunch of packages, which cannot be installed due to dependency issues. I'd expect at least a README that explains the required order of installation, and/or refers to other resources with according explanations. Hi, I don't know the real way, but i did the following: 1. add the repository deb http://ppa.launchpad.net/ximion/ppa/ubuntu karmic main 2. install fpc 2.4.0 and src (2.5. don't know exactly if i did it, but should be better to check dependencies of the normal 0.9.28-Package) 3. svn checkout of Lazarus in homedir (I used the directory my windowsinstallation and made an update) 4. make all I did this some weeks ago on a Xubuntu 9.10 64bit. -- ___ Lazarus mailing list Lazarus@lists.lazarus.freepascal.org http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus
Re: [Lazarus] Retrieve VersionInfo at runtime
Luiz Americo Pereira Camara schrieb: Is there a way to retrieve the version info that is stored in the project file at runtime? Luiz -- ___ Lazarus mailing list Lazarus@lists.lazarus.freepascal.org http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus Have al look at fpc_src\packages\fcl-base\src\win\fileinfo.pp. Ingo -- ___ Lazarus mailing list Lazarus@lists.lazarus.freepascal.org http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus
Re: [Lazarus] trayicon hide main form icon
Manuel Galeote schrieb: Using Lazarus on Windows. Use a trayicon and have put into the event formresize following form: frmprincipal.Hide; TrayIcon1.Show; Then in the event of trayicon OnDblClick this: frmprincipal.Show; TrayIcon1.Show; The icon trayicon looks and performs its function correctly. The main form icon is always on the taskbar. How I make disappear when the form is minimized?. -- ___ Lazarus mailing list Lazarus@lists.lazarus.freepascal.org http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus I use: Form1.Hide; Form1.ShowInTaskBar:=stNever; TrayIcon1.Show; -- ___ Lazarus mailing list Lazarus@lists.lazarus.freepascal.org http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus
Re: [Lazarus] Jpeg error
SteveG schrieb: Was wondering if anybody could tell me why this image from Google maps fails to load in a standard TImage on a form ? Opens ok on my system (Kubuntu 9.04) with other apps Thanks - SteveG Seems to be the missing feature: http://bugs.freepascal.org/view.php?id=10472 - Ingo -- ___ Lazarus mailing list Lazarus@lists.lazarus.freepascal.org http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus
Re: [Lazarus] DOS charset to UTF-8
Mattias Gärtner schrieb: Zitat von Graeme Geldenhuys graemeg.li...@gmail.com: On 19/10/2009, Graeme Geldenhuys graemeg.li...@gmail.com wrote: Hi, How to I convert a file that contains text in the DOS charset to UTF-8. I need this to work under Linux and Windows. The DOS charset characters used, are for box drawing and arrows. They currently appear on my system (Linux) as follows: ÄÄÄstatementÄÄÄ I found the relevant character mapping tables at the Unicode website - mapping from DOS codepage to unicode characters. The one I am interested in is CP437 to Unicode. http://www.unicode.org/Public/MAPPINGS/VENDORS/MICSFT/PC/ Is such mappings already implemented in Lazarus somewhere? I added it to lcl/lconvencoding.pas. This is also used by the IDE context menu. Mattias -- ___ Lazarus mailing list Lazarus@lists.lazarus.freepascal.org http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus Just a little correction. The comment of the function says: function CP437ToUTF8(const s: string): string; // DOS central europe According to the page http://msdn.microsoft.com/de-de/goglobal/bb964655%28en-us%29.aspx it should be: //DOS US Ingo -- ___ Lazarus mailing list Lazarus@lists.lazarus.freepascal.org http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus
Re: [Lazarus] Version information under Linux
Torsten Bonde Christiansen schrieb: Michael Van Canneyt wrote: Version 2.3.1 of the compiler supports all this on linux. If the compiler supports it, how can the information be extracted at runtime? Regards, Torsten Bonde Christiansen. ___ Lazarus mailing list Lazarus@lists.lazarus.freepascal.org http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus uses FileInfo; var info:TFileVersionInfo; begin info := TFileVersionInfo.Create(nil); info.fileName:=Application.Params[0]; showmessage(info.VersionStrings.Text); end; Works for me under Windows. Regards, Ingo ___ Lazarus mailing list Lazarus@lists.lazarus.freepascal.org http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus