Re: [Lazarus] Android Pascal?
Michael Schnell a écrit : On 10/02/2010 05:14 PM, Osvaldo Filho wrote: http://github.com/zed-0xff/android-pascal Great, But is an interpreter really appropriate ? IMHO, running real Lazarus application on an Android device would be much more attractive :) -Michael Maybe this is the easiest way. For example thanks to SL4A (scripting Layer for Android), PHP is now available on Android, but the interesting thing is the API coming with this project. Thanks to it, you can create standard Android user interfaces from a PHP library. http://www.phpforandroid.net/ Thierry B. -- ___ Lazarus mailing list Lazarus@lists.lazarus.freepascal.org http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus
Re: [Lazarus] Build scripts for Freepascal and Lazarus compilation from source
Frank Church a écrit : On 3 October 2010 10:25, Frank Church vfcli...@gmail.com mailto:vfcli...@gmail.com wrote: I have posted an article and some code on some bash scripts I have developed to install FPC and Lazarus from source at http://devblog.brahmancreations.com/content/build-scripts-for-installing-freepascal-and-lazarus-from-source. Any comments and tips are well come. Today I have add a few notes and comments to the script to help those new to FPC/Lazarus compilation and some of the Linux tools involved to understand what is going on. Regards Here is for example the scrip I use on Windows. I use TortoiseSVN command line tools : @echo on set BASEDRV=c: set FPCNEWVERSION=2.5.1 set FPCOLDVERSION=2.4.3 set BASEINSTALL=%BASEDRV%\programs\fpc set FPCBASEDIR=%BASEINSTALL%\%FPCNEWVERSION% set SRCDIR=%BASEINSTALL%\fpsrc\%FPCNEWVERSION% set PPCNAME=ppc386 set FPCTARGET=i386-win32 set FPCSTART=%BASEINSTALL%\%FPCOLDVERSION%\bin\%FPCTARGET%\%PPCNAME% set LOGDIR=%BASEDRV%\programs set INSTALLDIR=%FPCBASEDIR% set BINUTILSDIR=C:\programs\Binutils @REM opts. @REM set OPTS=-gl -dSAX_HTML_DEBUG -dUSE_MINGW_GDB set OPTS=-gl @REM set COMMONOPTS=UPXPROG=echo COPYTREE=echo OPT=%OPTS% GINSTALL=myinst.exe set COMMONOPTS=UPXPROG=echo COPYTREE=echo OPT=%OPTS% @REM Lazarus variables set LAZSRCDIR=%BASEDRV%\programs\lazarus_FPC_svn @REM OPTSLAZ=-g- -O2 -CX -XX -WG set OPTSLAZ= set COMMONOPTSLAZ=OPT=%OPTSLAZ% set LAZCONFDIR=%USERPROFILE%\Local Settings\Application Data\lazarus @rem === invariant part === %BASEDRV% del %LOGDIR%\build_fpc_log.txt del %LOGDIR%\install_fpc_log.txt del %LOGDIR%\install_laz_log.txt @REM DPC sources svnupdate TortoiseProc.exe /command:update /path:%SRCDIR%\ /closeonend:1 @REM some files may be modified after build. I do a revert for this @REM but this need to answer TortoiseProc.exe message box. TortoiseProc.exe /command:revert /path:%SRCDIR%\ /closeonend:1 cd %SRCDIR% Path=%BINUTILSDIR%;%Path% @REM * Build FPC *** make clean all %COMMONOPTS% FPC=%FPCSTART% 1 %LOGDIR%\build_fpc_log.txt 21 REM clean previous build rmdir /S /Q %FPCBASEDIR%\doc rmdir /S /Q %FPCBASEDIR%\examples rmdir /S /Q %FPCBASEDIR%\msg rmdir /S /Q %FPCBASEDIR%\units rmdir /S /Q %FPCBASEDIR%\bin @REM Add GNU tools and fpc.cfg to /bin/i386-win32 TortoiseProc.exe /command:update /path:%BINUTILSDIR%\ /closeonend:1 tortoiseproc.exe /command:dropexport /droptarget:%FPCBASEDIR%\bin /path:%BINUTILSDIR% cd %FPCBASEDIR%\bin rename Binutils %FPCTARGET% cd %SRCDIR% copy %BASEINSTALL%\fpc.cfg %FPCBASEDIR%\bin\%FPCTARGET%\fpc.cfg @REM INSTALL FPC ** make install %COMMONOPTS% INSTALL_PREFIX=%INSTALLDIR% FPC=%SRCDIR%\compiler\%PPCNAME% 1 %LOGDIR%\install_fpc_log.txt 21 make clean NUL @REM ** INSTALL LAZARUS * @REM svn update de LAZARUS TortoiseProc.exe /command:update /path:%LAZSRCDIR%\ /closeonend:1 @REM some files may be modified after build. I do a revert for this @REM but this need to answer TortoiseProc.exe message box. TortoiseProc.exe /command:revert /path:%LAZSRCDIR%\ /closeonend:1 @REM Delete previous UNITS directory s rmdir /S /Q %LAZSRCDIR%\units @REM ** Compil/install LAZARUS * cd %LAZSRCDIR% make clean all %COMMONOPTSLAZ% FPC=%INSTALLDIR%\bin\%FPCTARGET%\fpc.exe 1 %LOGDIR%\install_laz_log.txt 21 REM delete previous config dir. rmdir /S /Q %LAZCONFDIR% PAUSE -- ___ Lazarus mailing list Lazarus@lists.lazarus.freepascal.org http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus
Re: [Lazarus] Installing fpc 2.4.0 on lazarus 0.9.28
Le 16/10/2010 18:15, Joost van der Sluis a écrit : Yes, but you have to use Lazarus 0.9.28.2. And you have to compile Lazarus yourself. It's really simple: install fpc 2.4.0 and download Lazarus'sources. Then do 'make all' in the Lazarus directory. Joost Why the requirement to this specific linux distro? Thierrybo -- ___ Lazarus mailing list Lazarus@lists.lazarus.freepascal.org http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus
Re: [Lazarus] tooltip debugger shows incorrect data
Le 16/10/2010 17:15, Joost van der Sluis a écrit : Ah, now I see what you're problem is. You're trying to access indexed-strings. I've spend quite some time fixing that. It works now if you use Dwarf-3, fpc 2.5.1 and Fedora 13. So if you really can't do without, just switch to Fedora and you're done. ;) Is this a requirement on Fedora or a recent gdb build? Thierrybo -- ___ Lazarus mailing list Lazarus@lists.lazarus.freepascal.org http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus
Re: [Lazarus] Dual installation of FPC
Le 22/10/2010 13:48, patspiper a écrit : The question remains how to handle the paths and fpc.cfg so that Lazarus can use both FPC versions on demand (by changing the compiler path and FPC source directory entries). The best is to put all you fpcs under a root directory. Then in you ~/.fpc.cfg, just use $FPCVERSION so that it matches all versions. For example : # searchpath for units and other system dependent things -Fu/home/thierrybo/Sys/local/opt/fpc/$FPCVERSION/lib/fpc/$FPCVERSION/units/$FPCTARGET -Fu/home/thierrybo/Sys/local/opt/fpc/$FPCVERSION/lib/fpc/$FPCVERSION/units/$FPCTARGET/* -Fu/home/thierrybo/Sys/local/opt/fpc/$FPCVERSION/lib/fpc/$FPCVERSION/units/$FPCTARGET/rtl Thierry B. -- ___ Lazarus mailing list Lazarus@lists.lazarus.freepascal.org http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus
Re: [Lazarus] Dual installation of FPC
Le 22/10/2010 21:27, patspiper a écrit : On 10/22/2010 09:39 PM, Thierry B. wrote: The best is to put all you fpcs under a root directory. Then in you ~/.fpc.cfg, just use $FPCVERSION so that it matches all versions. For example : # searchpath for units and other system dependent things -Fu/home/thierrybo/Sys/local/opt/fpc/$FPCVERSION/lib/fpc/$FPCVERSION/units/$FPCTARGET -Fu/home/thierrybo/Sys/local/opt/fpc/$FPCVERSION/lib/fpc/$FPCVERSION/units/$FPCTARGET/* -Fu/home/thierrybo/Sys/local/opt/fpc/$FPCVERSION/lib/fpc/$FPCVERSION/units/$FPCTARGET/rtl Thierry B. That would require using FPC/Lazarus with root privileges...not recommended Uhm, I should have not used a root directory but a base directory in you home folder instead. No need to run Lazarus as root. I solved the fpc.cfg issue anyway by having the 2.4.0 config file in /etc, and 2.5.1's config file in ~/.fpc.cfg However, another idea just came to my mind: Can #IFDEF within fpc.cfg be used to test the value of $FPCVERSION? This would allow conditional paths. -- ___ 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] Dual installation of FPC
Le 23/10/2010 10:22, patspiper a écrit : Uhm, I should have not used a root directory but a base directory in you home folder instead. No need to run Lazarus as root. And I did not check out the directories you mentioned thoroughly, as they indeed are in /home. So what you are saying is correct. However if you install FPC official release through Debian packages, you're pretty much stuck with an FPC installation in the root folder (which needs root privileges to be rebuilt). Correct, but after some times you are comfortable with compiling multiple versions from sources/subversion and you can get rid off of your linux distribution Lazarus package, so this not a problem anymore. The oldest source I use is the fixes branche for the latest release (0.9.28). Thierry B. -- ___ Lazarus mailing list Lazarus@lists.lazarus.freepascal.org http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus
Re: [Lazarus] Dual installation of FPC
Le 23/10/2010 20:44, patspiper a écrit : Fair enough. But how do you go by defining the paths? As far as I understand, the following two paths should be in the $PATH env variable: basedir/lib/fpc/$FPCVERSION basedir/bin or in your case: /home/thierrybo/Sys/local/opt/fpc/$FPCVERSION/lib/fpc/$FPCVERSION /home/thierrybo/Sys/local/opt/fpc/$FPCVERSION/bin This is only needed if you build programs with freepascal, without Lazarus. If you use Lazarus to build all your freepascal programs, you only need to tell lazarus which freepascal compiler to use in environment options (compiler path). When this compiler run, it will find correct library with the above paths in ~/.fpc.cfg, as $FPCVERSION will be replaced with 2.5.1 or 2.4.3 for example. Here is for my directory layout: http://a.yfrog.com/img291/7176/screenshot004jb.png Thierry B. -- ___ Lazarus mailing list Lazarus@lists.lazarus.freepascal.org http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus
Re: [Lazarus] Dual installation of FPC
Le 24/10/2010 00:58, patspiper a écrit : I tried your method, but had to point to ppc386 in compiler path instead of fpc to make it work. But still the IDE complained about not finding fpcres, which is usually in the path (/usr/bin). I forgot about fpcres. If you installed FPC through Debian packages, it is in fp-utils. If you only build it in you home directory, then copy/symlink it in /usr/bin/ from your local freepascal /bin/frcres directory. For ppc386 i don't know, it's trange as fpc should detect your platform and use the right compiler. Here is what I use in one Lazarus setup : Lazarus directory : /home/thierrybo/Sys/local/opt/lazarus_svn/ Compiler path : /home/thierrybo/Sys/local/opt/fpc/2.4.3/bin/fpc FPC source directory : /home/thierrybo/Sys/local/opt/fpc/fpsrc/2.4.3/ Thierry B. -- ___ Lazarus mailing list Lazarus@lists.lazarus.freepascal.org http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus
Re: [Lazarus] Dual installation of FPC
Le 24/10/2010 12:01, patspiper a écrit : On 10/24/2010 11:14 AM, Thierry B. wrote: For ppc386 i don't know, it's trange as fpc should detect your platform and use the right compiler. Here is what I use in one Lazarus setup : The platform should be detected indeed. However how will it find out which ppc386 to use (each FPC version has a ppc386)? -- It will only use those in the same directory as the fpc you set in Lazarus Compiler path. Following my previous post as I set : Compiler path : /home/thierrybo/Sys/local/opt/fpc/2.4.3/bin/fpc it will look only in Compiler path : /home/thierrybo/Sys/local/opt/fpc/2.4.3/bin/ Again, this works only if you use Lazarus to build all your freepascal programs, and have no fpc stuff in my path : PATH=/home/thierrybo/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/opt/lampp/bin Thierry B. -- ___ Lazarus mailing list Lazarus@lists.lazarus.freepascal.org http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus
Re: [Lazarus] Dual installation of FPC
Le 24/10/2010 20:20, patspiper a écrit : So you have put ppc386 in the same folder as the fpc executable? My ppc386 is in .../fpc/2.5.1/lib/fpc/2.5.1 whereas fpc is in fpc/2.5.1/bin Argl, you are right to insist. After each freepascal build from source, , you have to link fpcres as I did AND link /fpc/X.X.X/lib/fpc/X.X.X/ppcXXX to /fpc/X.X.X/bin/ppcXXX (although I did only once for fpcres). As I use a script to build FPC and Lazarus (inspired from various sources here), I forgotten this step. Here is an excerpt ake clean all $COMMONOPTS PP=$FPCSTART ${LOGDIR}/build_fpc_log.txt 21 if [ ! $? = 0 ] ; then echo Grrr, failed again else make install $COMMONOPTS INSTALL_PREFIX=$INSTALLDIR PP=$SRCDIR/compiler/$PPCNAME ${LOGDIR}/install_fpc_log.txt 21 if [ ! $? = 0 ] ; then echo INSTALL failed | tee -a ${LOGDIR}/outcome.txt else ln --symbolic $INSTALLDIR/lib/fpc/$FPCNEWVERSION/$PPCNAME $INSTALLDIR/bin/$PPCNAME - echo Everything _should_ be fine.| tee -a ${LOGDIR}/outcome.txt fi fi Thierry B. -- ___ Lazarus mailing list Lazarus@lists.lazarus.freepascal.org http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus
Re: [Lazarus] Indy with Lazarus, what is the latest state?
Le 25/10/2010 20:11, Bo Berglund a écrit : I have been using Indy a lot in Delphi so when now looking at what can be done with FPC/Lazarus I am interested in the way Indy can be used. I found the Wiki page: http://wiki.lazarus.freepascal.org/Indy_with_Lazarus from which I came to the Indy page: http://www.indyproject.org/Sockets/fpc/index.en.aspx Here it is stated that the latest version is indy-10.2.0.3 from Nov 2007! Can this really be true? Is there no later version available? Or maybe the Indy-for-FPC has died? Here is an excerpt of Atozed newsgroup (no web mirror) : - Koriolan koriolan_...@o2.pl wrote in message news:fa9ea523feb7e340koriolan_...@o2.pl... Where is the Indy 9 for freepascal/lazarus ? There isn't one. Indy 9 never supported FPC. The Indy 9 for freepascal is http://www.indyproject.org/Sockets/fpc/index.en.aspx That is for Indy 10, not Indy 9. That is an old page anyway. Support for FPC was merged into the main Indy 10 codebase a long time ago. Follow the links on the main Indy website to the Indy 10 (Tiburon branch) code, and compile the FPC packages in it. -- Remy Lebeau (TeamB) --- Le 08/09/2010 11:43, thierrybo a écrit : Hi, sorry to enter this old thread. Is https://svn.atozed.com:444/svn/Indy10/branches/Tiburon folder the only choice ? I saw some FPC code in https://svn.atozed.com:444/svn/Indy10/trunk folder also. What are the differences between them ? Thierrybo Sorry, I just saw the note on http://www.indyproject.org/Sockets/Download/svn.EN.aspx : Note: The trunk folder in the Indy 10 repository has an old version. The Tiburon branch contain the current version for now. This will be resolved in a later version when Indy 10's Unicode functionality has been completed. -- thierrybo thierrybotho...@yahoo.fr wrote in message news:7a965c0cadbde340thierrybotho...@yahoo.fr... Sorry, I just saw the note on http://www.indyproject.org/Sockets/Download/svn.EN.aspx : That note is outdated. The trunk was recently updated, but the website has not been updated yet. -- Remy Lebeau (TeamB) --- thierrybo thierrybotho...@yahoo.fr wrote in message news:1f326ff9acbde340thierrybotho...@yahoo.fr... Is https://svn.atozed.com:444/svn/Indy10/branches/Tiburon folder the only choice ? I saw some FPC code in https://svn.atozed.com:444/svn/Indy10/trunk folder also. What are the differences between them ? The trunk was recently updated to contain the Tiburon code that shipped with Embarcadero's new RAD Studio XE release. The code in the Tiburon branch contains newer code that is not in the Trunk yet. -- Remy Lebeau (TeamB) -- ___ Lazarus mailing list Lazarus@lists.lazarus.freepascal.org http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus
Re: [Lazarus] Indy with Lazarus, what is the latest state?
Le 26/10/2010 14:43, Vincent Snijders a écrit : I am mostly interested in Lazarus for cross-platform use so if it is only possible to use Indy10 with Lazarus/fpc on Windows then I am out of luck here... :-( Please read Marco message carefully, I read it as: Indy 9 is for windows only Indy 10 is cross platform. Yes, I was speaking about Lazarus package only... -- ___ Lazarus mailing list Lazarus@lists.lazarus.freepascal.org http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus
[Lazarus] lazarus.pp(127, 1) Error: Can't call the linker, switching to external linking
Hi, Just to know what I did before: - install a new ubuntu 10.04 32 bits (virtual box) - downloaded freepascal 2.4.0 bootstrap binary for linux from freepascal site - downloaded freepascal 2.4 fixes branch - build and install in my home directory using 2.4.0 bootstrap binary - symlink /fpc/2.4.3/lib/fpc/2.4.3/ppc386 to /fpc/2.4.3/bin/ppc386 - created ~/.fpc.cfg with: samplecfg ~/Sys/local/opt/fpc/2.4.3/lib/fpc/2.4.3 HOME/.fpc.cfg - symlink /fpc/2.4.3/bin/fpcres to /usr/bin/fpcres Freepascal is fully working now. Then : - download lazarus latest sources from trunk - from lazarus source directory : make clean all Compiling resource ../units/i386-linux/lazarus.or lazarus.pp(127,1) Error: Can't call the resource compiler /home/ubuntu/Sys/local/opt/fpc/2.4.3/bin/fpcres, switching to external mode lazarus.pp(127,1) Fatal: There were 1 errors compiling module, stopping Fatal: Compilation aborted[/quote] I read that there was a bug about ulimit in 2.4.0 but was fixed in 2.4.3 so what have I missed? Thierry B. -- ___ Lazarus mailing list Lazarus@lists.lazarus.freepascal.org http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus
Re: [Lazarus] Windows Explorer context menu plug-in with fpc?
Le 19/11/2010 15:48, Bo Berglund a écrit : On Fri, 19 Nov 2010 07:45:51 -0600, Paul Breneman list2...@brenemanlabs.com wrote: Embarcadero's web site seems to be down at the moment, but there is a little copied from a message on one of there forums from 1 Feb 2010: At http://cc.embarcadero.com/Item/27554 you can find the source code for a shell extension which can be compiled to a 64bit library using Free Pascal / Lazarus. The source code is compatible with Delphi 7 and better, too. If you don't already use www.codenewsfast.com you might search on it for explorer shell extension 64 and you'll find several threads about this. This site found the posting and it is located in newsgroup: embarcadero.public.delphi.thirdpartytools.general I am keeping many of these newsgroups in my Free Agent archive, but unfortunately I did not subscribe to this particular one before, so i need to connect to embarcadero to geth the update and now it seems like they have shut down the site (maybe it is the scheduled server maintenance on Nov 19, 7PM Pacific that has kicked in early?). The post references the link above and it is dead at the moment... Just have to wait, I guess. http://demo.ovh.com/zip/12d5e9bc202817635121fca08623e95b -- ___ Lazarus mailing list Lazarus@lists.lazarus.freepascal.org http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus
Re: [Lazarus] Windows Explorer context menu plug-in with fpc?
Le 22/11/2010 20:30, Bo Berglund a écrit : On Fri, 19 Nov 2010 15:48:07 +0100, Bo Berglund bo.bergl...@gmail.com wrote: On Fri, 19 Nov 2010 07:45:51 -0600, Paul Breneman list2...@brenemanlabs.com wrote: Embarcadero's web site seems to be down at the moment, but there is a little copied from a message on one of there forums from 1 Feb 2010: At http://cc.embarcadero.com/Item/27554 you can find the source code for a shell extension which can be compiled to a 64bit library using Free Pascal / Lazarus. The source code is compatible with Delphi 7 and better, too. If you don't already use www.codenewsfast.com you might search on it for explorer shell extension 64 and you'll find several threads about this. This site found the posting and it is located in newsgroup: embarcadero.public.delphi.thirdpartytools.general I am keeping many of these newsgroups in my Free Agent archive, but unfortunately I did not subscribe to this particular one before, so i need to connect to embarcadero to geth the update and now it seems like they have shut down the site (maybe it is the scheduled server maintenance on Nov 19, 7PM Pacific that has kicked in early?). The post references the link above and it is dead at the moment... Just have to wait, I guess. --- Following reply has been hanging in my out-box for a few days --- I continued my search and lo-and-behold! I found this link: http://www.gnostice.com/nl_article.asp?id=168t=Copy_File_Path_and_Name_using_Windows_Explorer_Context_Menu_Extensions or as tiny: http://tinyurl.com/33yu62g There was explained what position in the registry to use in order to integrate your command to the Explorer context menu. And it works! I have now added UltraEdit and one of my own utilities to the pop-up menu in Explorer. :-D Now I only want to know how to expand this into having a multi-line menu to the right of the pop-up menu. But it looks like there is some hope also here, because there is an example delivered with Delphi7 (and probably also in later versions) in the Demos folder: $DELPHI\Demos\ActiveX\ShellExt This has an example, which I have as yet not opened, on how to make a plug-in dll probably with menus. Of course once embarcadero wakes up I can look at that link too for the FPC compatible code. Do you donwloaded the zip at url I posted herre yesterday ? You have the complete thread as well as the source project. Thierrybo -- ___ Lazarus mailing list Lazarus@lists.lazarus.freepascal.org http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus