[lazarus] help: postgres on upgrading build script to do cross-builds too
For the deb cross building scripts to build for arm-wince I'm starting from the regular building script and just extending it to do cross building. Applying this (slightly dodgy, in-progress) diff: Index: create_fpc_deb.sh === --- create_fpc_deb.sh (revision 13066) +++ create_fpc_deb.sh (working copy) @@ -105,25 +105,20 @@ # architecture dependent stuff Arch=`dpkg --print-architecture` -if [ $Arch = i386 ]; then - ppcbin=ppc386 -else - if [ $Arch = amd64 ]; then - ppcbin=ppcx64 - else - if [ $Arch = powerpc ]; then - ppcbin=ppcppc - else - if [ $Arch = sparc ]; then - ppcbin=ppcsparc - else - echo $Arch is not supported. - exit -1 - fi - fi - fi +CPU_TARGET=${CPU_TARGET:-$Arch} +case $CPU_TARGET in + i386) ppcbin=ppc386;; + amd64) ppcbin=ppcx64;; + powerpc) ppcbin=ppcppc;; + sparc) ppcbin=ppcsparc;; + arm) ppcbin=ppcarm;; + *) echo $CPU_TARGET is not supported. + exit -1;; +esac + +if [ $CPU_TARGET != $Arch ] +then TARGET_SUFFIX=$CPU_TARGET- fi - #-- # setup variables @@ -204,7 +199,7 @@ # build fpc mkdir -p $FPCBuildDir/etc cd $FPCSrcDir - make clean all + make clean all ${CPU_TARGET:+CPU_TARGET=$CPU_TARGET} OS_TARGET=wince mkdir -p $DebianInstallDir make install INSTALL_PREFIX=$DebianInstallDir cd - I also install: dpkg -i binutils-multiarch pocketpc-binutils pocketpc-gas pocketpc-sdk and then do: sudo ln -s /usr/bin/arm-wince-pe-as /usr/bin/arm-wince-as I then build with: CPU_TARGET=arm ./create_fpc_deb.sh fpc /home/sam/lazarus/fpc/ but it fails on the postgres modules: dbf_pgfile.pas(795,23) Error: Identifier not found LockFile dbf_pgfile.pas(809,23) Error: Identifier not found UnlockFile Any hints, or hints on making it not build postgres? ... ... make[5]: Entering directory `/tmp/fpc_patchdir/fpc/packages/fcl-db/src/sqldb/postgres' /tmp/fpc_patchdir/fpc/compiler/ppcrossarm -Twince -Parm -XParm-wince- -Xr -Ur -Xs -O2 -n -S2 -Fu/tmp/fpc_patchdir/fpc/rtl/units/arm-wince -Fu/tmp/fpc_patchdir/fpc/packages/base/postgres/units/arm-wince -FE. -FU/tmp/fpc_patchdir/fpc/packages/fcl-db/units/arm-wince -Fl/usr/lib/gcc/arm-wince-pe/3.4.2 -Flinclude -Fl/etc/ld.so.conf.d/*.conf -Fl/usr/lib/atlas -darm -dRELEASE pqconnection.pp make[5]: Leaving directory `/tmp/fpc_patchdir/fpc/packages/fcl-db/src/sqldb/postgres' make -C sqlite all make[5]: Entering directory `/tmp/fpc_patchdir/fpc/packages/fcl-db/src/sqldb/sqlite' /tmp/fpc_patchdir/fpc/compiler/ppcrossarm -Twince -Parm -XParm-wince- -Xr -Ur -Xs -O2 -n -S2 -Fu/tmp/fpc_patchdir/fpc/rtl/units/arm-wince -Fu/tmp/fpc_patchdir/fpc/packages/base/sqlite/units/arm-wince -FE. -FU/tmp/fpc_patchdir/fpc/packages/fcl-db/units/arm-wince -darm -dRELEASE sqlite3conn.pp make[5]: Leaving directory `/tmp/fpc_patchdir/fpc/packages/fcl-db/src/sqldb/sqlite' make[4]: Leaving directory `/tmp/fpc_patchdir/fpc/packages/fcl-db/src/sqldb' make -C src/dbase all make[4]: Entering directory `/tmp/fpc_patchdir/fpc/packages/fcl-db/src/dbase' /tmp/fpc_patchdir/fpc/compiler/ppcrossarm -Twince -Parm -XParm-wince- -Xr -Ur -Xs -O2 -n -S2 -Sh -Fu/tmp/fpc_patchdir/fpc/rtl/units/arm-wince -FE. -FU/tmp/fpc_patchdir/fpc/packages/fcl-db/units/arm-wince -darm -dRELEASE dbf.pas dbf_pgfile.pas(795,23) Error: Identifier not found LockFile dbf_pgfile.pas(809,23) Error: Identifier not found UnlockFile dbf_pgfile.pas(918) Fatal: There were 2 errors compiling module, stopping Fatal: Compilation aborted make[4]: *** [dbf.ppu] Error 1 make[4]: Leaving directory `/tmp/fpc_patchdir/fpc/packages/fcl-db/src/dbase' make[3]: *** [src/dbase_all] Error 2 make[3]: Leaving directory `/tmp/fpc_patchdir/fpc/packages/fcl-db' make[2]: *** [fcl-db_all] Error 2 make[2]: Leaving directory `/tmp/fpc_patchdir/fpc/packages' make[1]: *** [packages_fcl_all] Error 2 make[1]: Leaving directory `/tmp/fpc_patchdir/fpc' make: *** [build-stamp.arm-wince] Error 2 _ To unsubscribe: mail [EMAIL PROTECTED] with unsubscribe as the Subject archives at http://www.lazarus.freepascal.org/mailarchives
Re: [lazarus] Serial Comm Support Windows
Stephano schrieb: Jeff Steinkamp wrote: I know there is a serial unit for Linux/Unix, but is there similar support for serial communications for the Windows Platform? http://www.luisdigital.com/programacion/fpc/serial.pp May I add this to the rtl? _ To unsubscribe: mail [EMAIL PROTECTED] with unsubscribe as the Subject archives at http://www.lazarus.freepascal.org/mailarchives
Re: [lazarus] FPDoc or PasDoc?
On Fri, 30 Nov 2007, Graeme Geldenhuys wrote: On 30/11/2007, Michael Van Canneyt [EMAIL PROTECTED] wrote: Use of XML, tight documentation editor support in lazarus. Lazarus now offers tooltips which it gets from the fpdoc sources. And you can refer to the existing fpdoc-documented units of the FCL/RTL/Lazarus. Michael is 100% correct. Those are all good points, especially the new tooltip/fpdoc integration in the latest Lazarus. The downside is keeping the docs in sync with the code while refactoring. It takes a bit more effort, but I much prefer the fpdoc output to pasdoc. The good definitely outweighs the bad. And, if all goes well, really soon there'll be a wysiwyg editor for fpdoc. Michael. _ To unsubscribe: mail [EMAIL PROTECTED] with unsubscribe as the Subject archives at http://www.lazarus.freepascal.org/mailarchives
Re: [lazarus] FPDoc or PasDoc?
On 01/12/2007, Michael Van Canneyt [EMAIL PROTECTED] wrote: And, if all goes well, really soon there'll be a wysiwyg editor for fpdoc. Oh boy Santa read my wishlist letter! :-) Regards, - Graeme - ___ fpGUI - a cross-platform Free Pascal GUI toolkit http://opensoft.homeip.net/fpgui/ _ To unsubscribe: mail [EMAIL PROTECTED] with unsubscribe as the Subject archives at http://www.lazarus.freepascal.org/mailarchives
Re: [lazarus] App Localization
I'm not sure what I should do with this unit. How is this related to the TTranslateString support in the IDE? As a first step to determine whether all TTranslateString a Form can be read as I also did a test with TWriter.OnWriteStringProperty. Or find the active form in the IDE? Thanks -- Laurent. My Components: http://wiki.lazarus.freepascal.org/Wile64 French Forum : http://lazforum-fr.tuxfamily.org/index.php
Re: [lazarus] help: postgres on upgrading build script to do cross-builds too
Sam Liddicott wrote: dbf_pgfile.pas(795,23) Error: Identifier not found LockFile dbf_pgfile.pas(809,23) Error: Identifier not found UnlockFile dbf_pgfile.pas(918) Fatal: There were 2 errors compiling module, stopping It's impossible to lock files under windows ce? What is the API? Isn't it a multi-tasking operation system? Anyway, locking was already possible under DOS... Micha _ To unsubscribe: mail [EMAIL PROTECTED] with unsubscribe as the Subject archives at http://www.lazarus.freepascal.org/mailarchives
Re: [lazarus] App Localization
On Sat, 1 Dec 2007 11:22:31 +0100 wile64 [EMAIL PROTECTED] wrote: I'm not sure what I should do with this unit. How is this related to the TTranslateString support in the IDE? As a first step to determine whether all TTranslateString a Form can be read as I also did a test with TWriter.OnWriteStringProperty. Do you know, that the IDE already uses this to write the TTranslateString properties to a file? You just need to setup Project / Project Options / i18n / PO file directory. Then the TTranslateString properties will be extracted from the form on every 'save' and will be automatically written to a .po file. Or find the active form in the IDE? Mattias _ To unsubscribe: mail [EMAIL PROTECTED] with unsubscribe as the Subject archives at http://www.lazarus.freepascal.org/mailarchives
Re: [lazarus] FPDoc or PasDoc?
Graeme Geldenhuys schrieb: On 01/12/2007, Michael Van Canneyt [EMAIL PROTECTED] wrote: And, if all goes well, really soon there'll be a wysiwyg editor for fpdoc. Oh boy Santa read my wishlist letter! :-) I'm working on it, I'm working on it... Please be patient ;) - Sebastian _ To unsubscribe: mail [EMAIL PROTECTED] with unsubscribe as the Subject archives at http://www.lazarus.freepascal.org/mailarchives
Re: [lazarus] FPDoc or PasDoc?
On 01/12/2007, Michael Van Canneyt [EMAIL PROTECTED] wrote: I think this is a rather daunting task, the fpdoc engine is tightly intertwined with the XML format and data structures. It might be easier to do a preprocessing step, to convert insert your favourite format here to XML as understood by fpdoc. We can integrate this preprocessing in FPDoc if you want. OK, I think you miss understood what I want to do The documentation will still be stored in the same XML files that 'makeskel' generates. What I want to implement is interchangeable formatting syntax used in the short and descr tags eg: A current fpDoc description file using Simple HTML for formatting module name=gui_dialogs shortVarious idialogs/i used by fpGUI based applications./short descrHere is bbold/b text and iitalics/i text./descr I want to be able to support Creole 1.0 wikitext formatting as follows... module name=gui_dialogs shortVarious //dialogs// used by fpGUI based applications./short descrHere is **bold** text and //italics// text./descr See the XML structure stays the same, it's only how you format your content that changes. This way I can very easily incorporate the loads of Javascript based WYSIWIG editors with a CGI application, so users could edit documentation via their web browsers. Then once 'fpdoc' generates HTML output, this is where the new parameter will come into play. Or select the current HTML engine or the Creole wikitext formatting engine to output HTML pages. Regards, - Graeme - ___ fpGUI - a cross-platform Free Pascal GUI toolkit http://opensoft.homeip.net/fpgui/ _ To unsubscribe: mail [EMAIL PROTECTED] with unsubscribe as the Subject archives at http://www.lazarus.freepascal.org/mailarchives
Re: [lazarus] FPDoc or PasDoc?
On Sat, 1 Dec 2007, Graeme Geldenhuys wrote: On 01/12/2007, Michael Van Canneyt [EMAIL PROTECTED] wrote: I think this is a rather daunting task, the fpdoc engine is tightly intertwined with the XML format and data structures. It might be easier to do a preprocessing step, to convert insert your favourite format here to XML as understood by fpdoc. We can integrate this preprocessing in FPDoc if you want. OK, I think you miss understood what I want to do The documentation will still be stored in the same XML files that 'makeskel' generates. What I want to implement is interchangeable formatting syntax used in the short and descr tags Yes, I understood this. My remark remains, nevertheless :-) Michael. _ To unsubscribe: mail [EMAIL PROTECTED] with unsubscribe as the Subject archives at http://www.lazarus.freepascal.org/mailarchives
Re: [lazarus] OSX : Copy and Paste bug..
On Nov 30, 2007 10:20 AM, Dominique Louis [EMAIL PROTECTED] wrote: If you copy and paste some text with an @ sign in it, for example passing the address of something, when you paste that code somewhere else the @ sign is changed into a . Not a big bug, but an annoying one nevertheless. When you want to ask or report something concerning Lazarus on Mac OS X, please specify which widget set (gtk, gtk2, Qt, Carbon) do you use. Tom _ To unsubscribe: mail [EMAIL PROTECTED] with unsubscribe as the Subject archives at http://www.lazarus.freepascal.org/mailarchives
Re: [lazarus] App Localization
On Sat, 1 Dec 2007 14:02:03 +0100 wile64 [EMAIL PROTECTED] wrote: 2007/12/1, Mattias Gaertner [EMAIL PROTECTED]: On Sat, 1 Dec 2007 11:22:31 +0100 wile64 [EMAIL PROTECTED] wrote: I'm not sure what I should do with this unit. How is this related to the TTranslateString support in the IDE? As a first step to determine whether all TTranslateString a Form can be read as I also did a test with TWriter.OnWriteStringProperty. Do you know, that the IDE already uses this to write the TTranslateString properties to a file? You just need to setup Project / Project Options / i18n / PO file directory. Then the TTranslateString properties will be extracted from the form on every 'save' and will be automatically written to a .po file. Or find the active form in the IDE? Yes, Yes, I know. Once the file .po Create, it is necessary to create the resourcestrings... The goal is to create its resourcestring automatically! Can you elaborate why you need resourcestrings for the properties? Mattias _ To unsubscribe: mail [EMAIL PROTECTED] with unsubscribe as the Subject archives at http://www.lazarus.freepascal.org/mailarchives
Re: [lazarus] App Localization
Can you elaborate why you need resourcestrings for the properties? Mattias To use it with TranslateUnitResourceStrings and translate my application. Thanks, -- Laurent. My Components: http://wiki.lazarus.freepascal.org/Wile64 French Forum : http://lazforum-fr.tuxfamily.org/index.php
Re: [lazarus] App Localization
On Sat, 1 Dec 2007 14:21:46 +0100 wile64 [EMAIL PROTECTED] wrote: Can you elaborate why you need resourcestrings for the properties? Mattias To use it with TranslateUnitResourceStrings and translate my application. Using resourcestrings would assign every string property twice. The LCL form reader has a built in translator. You just need to setup LRSTranslator (unit lresources.pp). You can find an example in lcl/defaulttranslator.pas, but it only reads .mo files. We need a translator class using the po files directly. For example by using the TPOFile of lcl/translations.pas. Can you do that? Mattias _ To unsubscribe: mail [EMAIL PROTECTED] with unsubscribe as the Subject archives at http://www.lazarus.freepascal.org/mailarchives
Re: [lazarus] App Localization
Using resourcestrings would assign every string property twice. The LCL form reader has a built in translator. You just need to setup LRSTranslator (unit lresources.pp). You can find an example in lcl/defaulttranslator.pas, but it only reads .mo files. We need a translator class using the po files directly. For example by using the TPOFile of lcl/translations.pas. Can you do that? Mattias Ah this is something that is of interest, I will watch. Thanks Mattias, You are the best ;-) -- Laurent. My Components: http://wiki.lazarus.freepascal.org/Wile64 French Forum : http://lazforum-fr.tuxfamily.org/index.php
Re: [lazarus] Serial Comm Support Windows
- Original Message - From: Florian Klaempfl [EMAIL PROTECTED] To: lazarus@miraclec.com Sent: Saturday, December 01, 2007 02:38 Subject: Re: [lazarus] Serial Comm Support Windows Stephano schrieb: Jeff Steinkamp wrote: I know there is a serial unit for Linux/Unix, but is there similar support for serial communications for the Windows Platform? http://www.luisdigital.com/programacion/fpc/serial.pp May I add this to the rtl? I do not think that will be a problem, although I was not the one who posted that link. After looking at the content of the file, it look quite similar to the serial.pas using I use with windows on Delphi. Jeff _ To unsubscribe: mail [EMAIL PROTECTED] with unsubscribe as the Subject archives at http://www.lazarus.freepascal.org/mailarchives
Re: [lazarus] FPDoc or PasDoc?
On 01/12/2007, Michael Van Canneyt [EMAIL PROTECTED] wrote: On 01/12/2007, Michael Van Canneyt [EMAIL PROTECTED] wrote: I think this is a rather daunting task, the fpdoc engine is tightly intertwined with the XML format and data structures. It might be easier to do a preprocessing step, to convert insert your favourite format here to XML as understood by fpdoc. We can integrate this preprocessing in FPDoc if you want. OK, I think you miss understood what I want to do The documentation will still be stored in the same XML files that 'makeskel' generates. What I want to implement is interchangeable formatting syntax used in the short and descr tags Yes, I understood this. My remark remains, nevertheless :-) I'll have a look at that part of fpdoc in more detail. If I need to create a preprocessing step, it wouldn't be difficult. The wikitext to html code I currently have is purely driven by event handlers hooked into the parser (OnListBegin, OnListItem, OnContext etc.), so generating xml instead of xhtml should be a simple process. Thanks for the heads up. Regards, - Graeme - ___ fpGUI - a cross-platform Free Pascal GUI toolkit http://opensoft.homeip.net/fpgui/ _ To unsubscribe: mail [EMAIL PROTECTED] with unsubscribe as the Subject archives at http://www.lazarus.freepascal.org/mailarchives
Re: [lazarus] Re: Lazarus-0.9.24: SIGSEGV in TOpenDialog
It's a Win32 API function: http://msdn2.microsoft.com/en-us/library/aa363362.aspx Outputs a string to the debugger. Lazarus is able to catch those messages, although the output in Lazarus is pretty dirty, and is somehow difficult to read. I supposed DebugLn would work the same way, but no :( Hope someday DebugLn will be connected to the debbuger. Regards! 2007/11/30, Mattias Gaertner [EMAIL PROTECTED]: On Fri, 30 Nov 2007 10:27:43 -0600 Marco Alvarado [EMAIL PROTECTED] wrote: I saw the backtraces for the first time when testing the application from GDB. And now that makes me remember something I wanted to ask: I activate the Debug output window, but it doesn't show the lines generated by DebugLn(). Nope, debugger output is the internal logging of the lazarus debugger. But when I ran the application from GDB, the output of DebugLn() was shown. Consoleoutput is not (yet?) shown. What you can do is start lazarus from a xterm. Then all is logged in that terminal. I'm not sure if that's completely right, because OutputDebugString() works, but DebugLn() doesn't work. How is that possible? What is OutputDebugString? Mattias _ To unsubscribe: mail [EMAIL PROTECTED] with unsubscribe as the Subject archives at http://www.lazarus.freepascal.org/mailarchives _ To unsubscribe: mail [EMAIL PROTECTED] with unsubscribe as the Subject archives at http://www.lazarus.freepascal.org/mailarchives
[lazarus] Lazarus on Fedora 8
The switch from Fedora 7 to 8 seems to have revealed some problems. The same lazarus executable looks fine on 7, but on 8 has two issues: 1. The font used for menus and dialog boxes is now a rather larger font (?Arial) and is clearly not using the gtk2 theme settings. I suspect this is because the gtk1 theme info is no longer installed but I can't identify the appropriate files. Any ideas? 2. The font used for displaying source code looks rather worse - it does not show reserved words in bold, for example. Changing the font via the environment options does not seem to help. Has anybody else had this problem? Colin Western _ To unsubscribe: mail [EMAIL PROTECTED] with unsubscribe as the Subject archives at http://www.lazarus.freepascal.org/mailarchives
Re: [lazarus] Before After Compilation Comandline Execute
On Fri, 30 Nov 2007 10:06:11 -0500 Lee Jenkins [EMAIL PROTECTED] wrote: Marc Weustink wrote: Vincent Snijders wrote: Lee Jenkins schreef: Lazarus 0.9.24 Referring to Project Compiler Options Compilation..., When I place a command in Execute After, it will actually be executed before. The inverse is true for Execute Before. Should I log this? I did a couple of cursory searches on mantis and didn't see anything. Yes, please create a bug report. HUH, when did this happen ? I used Execute before a lot when working to .24 (and it worked) Marc Not sure Marc. I upgraded from 0.9.22 a few days ago and after reading about UPX and STRIP I thought it might be nice to take my simple application of 16.5 MB and shrink it a bit so I placed the following in Execute After: c:\lazarus\fpc\2.2.0\bin\i386-win32\strip.exe --strip-all $(TargetFile) It didn't work so after a few tries I placed the above commandline in the Execute Before field and it worked and message window reports: Just looks like the group boxes for each are switched since Execute Before is placed in the lower portion of the dialog while Execute After is located in the upper portion of the dialog. Somehow the captions of the groupboxes were switched. I fixed that in svn 13108. Mattias _ To unsubscribe: mail [EMAIL PROTECTED] with unsubscribe as the Subject archives at http://www.lazarus.freepascal.org/mailarchives
Re: [lazarus] App Localization
On Sat, 1 Dec 2007 15:07:21 +0100 wile64 [EMAIL PROTECTED] wrote: Using resourcestrings would assign every string property twice. The LCL form reader has a built in translator. You just need to setup LRSTranslator (unit lresources.pp). You can find an example in lcl/defaulttranslator.pas, but it only reads .mo files. We need a translator class using the po files directly. For example by using the TPOFile of lcl/translations.pas. Can you do that? Mattias Ah this is something that is of interest, I will watch. Thanks Mattias, You are the best ;-) The main problem is getting the .po files, especially on inherited forms, where the strings come from multiple .po files. Somehow the IDE must gather all .po files of all packages used by the project and collect them all into the i18n directory of the project. Mattias _ To unsubscribe: mail [EMAIL PROTECTED] with unsubscribe as the Subject archives at http://www.lazarus.freepascal.org/mailarchives
[lazarus] Moving selected components
Hello, When designing forms it is possible to move selected components with the ctrl-arrow key's (this moves them 1 pixel). In delphi you can also move them with the ctrl-shift-arrows to move them 8 pixels, i would like to add that option but i cannot find the appropriate form/place. Anybody have some quick pointers on where to look? Thanks, Marius _ To unsubscribe: mail [EMAIL PROTECTED] with unsubscribe as the Subject archives at http://www.lazarus.freepascal.org/mailarchives
Re: [lazarus] Re: Lazarus-0.9.24: SIGSEGV in TOpenDialog
Marco Alvarado wrote: It's a Win32 API function: http://msdn2.microsoft.com/en-us/library/aa363362.aspx Outputs a string to the debugger. Lazarus is able to catch those messages, although the output in Lazarus is pretty dirty, and is somehow difficult to read. Correction, lazarus does not catch that output. It's gdb which does. Lazarus doesn't intrepret these mesages, so you will find them among other debugger output. I don't call this support, it just happens to be there. I supposed DebugLn would work the same way, Nope, it is a replacement for writeln, for cases where there is no stdout. but no :( Hope someday DebugLn will be connected to the debbuger. It won't. And since I cannot destinct gdb output from console output, there is no way to show the output on the console (like debugln output). Marc _ To unsubscribe: mail [EMAIL PROTECTED] with unsubscribe as the Subject archives at http://www.lazarus.freepascal.org/mailarchives
Re: [lazarus] Before After Compilation Comandline Execute
Mattias Gaertner wrote: On Fri, 30 Nov 2007 10:06:11 -0500 Lee Jenkins [EMAIL PROTECTED] wrote: Marc Weustink wrote: Vincent Snijders wrote: Lee Jenkins schreef: Lazarus 0.9.24 Referring to Project Compiler Options Compilation..., When I place a command in Execute After, it will actually be executed before. The inverse is true for Execute Before. Should I log this? I did a couple of cursory searches on mantis and didn't see anything. Yes, please create a bug report. HUH, when did this happen ? I used Execute before a lot when working to .24 (and it worked) Marc Not sure Marc. I upgraded from 0.9.22 a few days ago and after reading about UPX and STRIP I thought it might be nice to take my simple application of 16.5 MB and shrink it a bit so I placed the following in Execute After: c:\lazarus\fpc\2.2.0\bin\i386-win32\strip.exe --strip-all $(TargetFile) It didn't work so after a few tries I placed the above commandline in the Execute Before field and it worked and message window reports: Just looks like the group boxes for each are switched since Execute Before is placed in the lower portion of the dialog while Execute After is located in the upper portion of the dialog. Somehow the captions of the groupboxes were switched. I fixed that in svn 13108. Aahh... your right :) Since I use that option since the day you could optionally use it, I don't look at the captions anymore. Marc _ To unsubscribe: mail [EMAIL PROTECTED] with unsubscribe as the Subject archives at http://www.lazarus.freepascal.org/mailarchives
Re: [lazarus] help: postgres on upgrading build script to do cross-builds too
Micha Nelissen wrote: Sam Liddicott wrote: dbf_pgfile.pas(795,23) Error: Identifier not found LockFile dbf_pgfile.pas(809,23) Error: Identifier not found UnlockFile dbf_pgfile.pas(918) Fatal: There were 2 errors compiling module, stopping It's impossible to lock files under windows ce? What is the API? Isn't it a multi-tasking operation system? Anyway, locking was already possible under DOS... I didn't recognize them as API calls, but you are quite right: http://msdn2.microsoft.com/en-us/library/aa365202.aspx http://msdn2.microsoft.com/en-us/library/aa365715.aspx I'll see what can be done. Thanks Sam
Re: [lazarus] OSX : Copy and Paste bug..
Hi Tom, this is an IDE bug, and I think the only way the IDE runs on Mac OS X is gtk at the moment, though someone was working on porting the whole thing to Carbon. Dominique. Tom Gregorovic wrote: On Nov 30, 2007 10:20 AM, Dominique Louis [EMAIL PROTECTED] wrote: If you copy and paste some text with an @ sign in it, for example passing the address of something, when you paste that code somewhere else the @ sign is changed into a . Not a big bug, but an annoying one nevertheless. When you want to ask or report something concerning Lazarus on Mac OS X, please specify which widget set (gtk, gtk2, Qt, Carbon) do you use. Tom _ To unsubscribe: mail [EMAIL PROTECTED] with unsubscribe as the Subject archives at http://www.lazarus.freepascal.org/mailarchives
Re: [lazarus] App Localization
The main problem is getting the .po files, especially on inherited forms, where the strings come from multiple .po files. Somehow the IDE must gather all .po files of all packages used by the project and collect them all into the i18n directory of the project. Mattias Yes, I see what you mean, 1. The files collected should be placed in a file :-( 2. The IDE amends unit DefaultTranslator to put the files :-( 3. Create a component DefaultTranslator with StringsList for files :-) 4. hummm... -- Laurent. My Components: http://wiki.lazarus.freepascal.org/Wile64 French Forum : http://lazforum-fr.tuxfamily.org/index.php
Re: [lazarus] Moving selected components
The place is: EnvironmentEditor OptionsKey MappingsDesigner CommandsMove component one... But as you may notice, does not have the option Move component eight... Wanderlan
Re: [lazarus] Moving selected components
Thank you, but i wasn't after these, the PgUp and PgDn move the components in the z-order. What i'm after is the lazarus source file/unit where the components are moved (horizontal or vertical) in the designer. But i'm lost in the sources and can't seem to find it.. Wanderlan Santos dos Anjos wrote: The place is: EnvironmentEditor OptionsKey MappingsDesigner CommandsMove component one... But as you may notice, does not have the option Move component eight... Wanderlan _ To unsubscribe: mail [EMAIL PROTECTED] with unsubscribe as the Subject archives at http://www.lazarus.freepascal.org/mailarchives
Re: [lazarus] Moving selected components
On Sat, 1 Dec 2007 20:34:55 -0300 Wanderlan Santos dos Anjos [EMAIL PROTECTED] wrote: The place is: EnvironmentEditor OptionsKey MappingsDesigner CommandsMove component one... But as you may notice, does not have the option Move component eight... 'Move component one forward/back' changes the z-order of the selection, not the x,y coords. When designing forms it is possible to move selected components with the ctrl-arrow key's (this moves them 1 pixel). In delphi you can also move them with the ctrl-shift-arrows to move them 8 pixels, i would like to add that option but i cannot find the appropriate form/place. Anybody have some quick pointers on where to look? Some things are easier to implement than to explain. I implemented it. Mattias _ To unsubscribe: mail [EMAIL PROTECTED] with unsubscribe as the Subject archives at http://www.lazarus.freepascal.org/mailarchives
Re: [lazarus] Fatal: Can't find unit *** used by Lazarus when build lazarus with my own package
On Thu, 29 Nov 2007 16:13:18 +0300 Andrey Gusev [EMAIL PROTECTED] wrote: I have tried to install my own Component's package, which use (also myown) runtime package: Lazarus - lazCal(TCalendarGraphic component) - BllCore(runtime support). At lazarus building i got BllCore.pas(74,12) Fatal: Can't find unit Bllcore used by Lazarus. In which path (from many tunables in lazarus) i must prescript BllCore's units directory. BllCore, BllMath (also used by lazCal), lazCal packages was all compiled (separately) succesfully. Has this been fixed? Mattias _ To unsubscribe: mail [EMAIL PROTECTED] with unsubscribe as the Subject archives at http://www.lazarus.freepascal.org/mailarchives
Re: [lazarus] Re: Lazarus-0.9.24: SIGSEGV in TOpenDialog
So, is there any other option appart from DebugLn(), that works? Regards! -Marco 2007/12/1, Marc Weustink [EMAIL PROTECTED]: Marco Alvarado wrote: It's a Win32 API function: http://msdn2.microsoft.com/en-us/library/aa363362.aspx Outputs a string to the debugger. Lazarus is able to catch those messages, although the output in Lazarus is pretty dirty, and is somehow difficult to read. Correction, lazarus does not catch that output. It's gdb which does. Lazarus doesn't intrepret these mesages, so you will find them among other debugger output. I don't call this support, it just happens to be there. I supposed DebugLn would work the same way, Nope, it is a replacement for writeln, for cases where there is no stdout. but no :( Hope someday DebugLn will be connected to the debbuger. It won't. And since I cannot destinct gdb output from console output, there is no way to show the output on the console (like debugln output). Marc _ To unsubscribe: mail [EMAIL PROTECTED] with unsubscribe as the Subject archives at http://www.lazarus.freepascal.org/mailarchives _ To unsubscribe: mail [EMAIL PROTECTED] with unsubscribe as the Subject archives at http://www.lazarus.freepascal.org/mailarchives
Re: [lazarus] Moving selected components
SVN'ed, compiled and i see i was looking in the wrong directory :P My bad. It nudges real nice now Mattias (cleans up the previous code also) Thanks Marius _ To unsubscribe: mail [EMAIL PROTECTED] with unsubscribe as the Subject archives at http://www.lazarus.freepascal.org/mailarchives
[lazarus] Docking
While developing i noticed i'm looking frequently for lost windows like the search results and i end up resizing ad moving the editor window to get back to the window. So i started looking for docking and i found an anchordocking example but couldn't get that to work (or didn't understand how it worked). Later, i came across the following docking panel from the Open Perl IDE released under MPL license. It has been written in object pascal and it contains a dockingpanel.pas, that has been ported into the the examples i found on torry. I have no idea how this docking compares to the one used in the samples. Open Perl IDE: http://open-perl-ide.sourceforge.net/ Ported + examples (including compiled demo): http://www.torry.net/pages.php?s=79 (DockPanel Professional v.3.1) Would this be a usable/reliable docking mechanisme for Lazarus? (Its not really a big issue, but i do truely miss window docking) Greetings, Marius _ To unsubscribe: mail [EMAIL PROTECTED] with unsubscribe as the Subject archives at http://www.lazarus.freepascal.org/mailarchives