Re: [Lazarus] TextHeight in Console App
On 05/14/2013 04:50 PM, Howard Page-Clark wrote: Or create a Lazarus GUI app and implement Form1's OnCreate handler thus: Not all Targets an application might be intended to run on do provide a (supported) GUI API. -Michael -- ___ Lazarus mailing list Lazarus@lists.lazarus.freepascal.org http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus
Re: [Lazarus] ARMV7
Hi, 2013/5/15 leledumbo leledumbo_c...@yahoo.co.id Isn't the error message clear enough? The error is clear, but the solution is not... PPU Loading C:\Develop\fpc\2.7.x\units\arm-android\rtl\system.ppu Trying to use a unit which was compiled with a different FPU mode The compiler tries to load the system unit, but it's compiled with different FPU mode that the one you're targetting with. Try cleaning up your arm-android installation and ensure that second FPC compilation really works. How to clean arm-android installation? When I call make I use: make clean crossall crossinstall OS_TARGET=android CPU_TARGET=arm ...etc error on FPC compiling I haven't tried, but please be verbose about the error. With: CROSSOPT=-CfVFPV3 -OoFASTMATH -CpARMV7 ... ... ... c:\Develop\fpc\2.7.x\rtl\units\arm-android\system.s:59995: Error: lo register required -- `ldmfd r13!,{r4,r15}' c:\Develop\fpc\2.7.x\rtl\units\arm-android\system.s:60007: Error: lo register required -- `stmfd r13!,{r4,r14}' c:\Develop\fpc\2.7.x\rtl\units\arm-android\system.s:60105: Error: lo register required -- `ldmfd r13!,{r4,r15}' c:\Develop\fpc\2.7.x\rtl\units\arm-android\system.s:60167: Error: lo register required -- `ldr r12,[r0]' c:\Develop\fpc\2.7.x\rtl\units\arm-android\system.s:60168: Error: lo register required -- `ldr r12,[r12,#100]' system.pp(379) Error: Error while assembling exitcode 1 system.pp(379) Fatal: There were 2 errors compiling module, stopping Fatal: Compilation aborted make[4]: *** [system.ppu] Error 1 make[4]: Leaving directory `c:/Develop/fpc/2.7.x/rtl/android' make[3]: *** [android_all] Error 2 make[3]: Leaving directory `c:/Develop/fpc/2.7.x/rtl' make[2]: *** [rtl_all] Error 2 make[2]: Leaving directory `c:/Develop/fpc/2.7.x' make[1]: *** [build-stamp.arm-android] Error 2 make[1]: Leaving directory `c:/Develop/fpc/2.7.x' make: *** [crossall] Error 2 c:\Develop\fpc\2.7.x With (but lazarus build error): CROSSOPT=-CfVFPV3 -OoFASTMATH -CpARMV6 ... ... ... Installing package tcl Installation package tcl for target arm-android succeeded Skipped package univint which has been disabled for target arm-android Skipped package unixutil which has been disabled for target arm-android Installing package unzip Installation package unzip for target arm-android succeeded Skipped package users which has been disabled for target arm-android Skipped package utmp which has been disabled for target arm-android Skipped package uuid which has been disabled for target arm-android Skipped package winceunits which has been disabled for target arm-android Skipped package winunits-base which has been disabled for target arm-android Skipped package winunits-jedi which has been disabled for target arm-android Skipped package x11 which has been disabled for target arm-android Skipped package xforms which has been disabled for target arm-android Installing package zlib Installation package zlib for target arm-android succeeded Skipped package zorba which has been disabled for target arm-android Installing package fpc-all Installation package fpc-all for target arm-android succeeded make[4]: Leaving directory `c:/Develop/fpc/2.7.x/packages' make[3]: Leaving directory `c:/Develop/fpc/2.7.x' make[2]: Leaving directory `c:/Develop/fpc/2.7.x' make[1]: Leaving directory `c:/Develop/fpc/2.7.x' c:\Develop\fpc\2.7.x Thank you, Kjow -- ___ Lazarus mailing list Lazarus@lists.lazarus.freepascal.org http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus
Re: [Lazarus] ARMV7
2013/5/15 Kjow antispamm...@gmail.com Hi, 2013/5/15 leledumbo leledumbo_c...@yahoo.co.id Isn't the error message clear enough? The error is clear, but the solution is not... PPU Loading C:\Develop\fpc\2.7.x\units\arm-android\rtl\system.ppu Trying to use a unit which was compiled with a different FPU mode The compiler tries to load the system unit, but it's compiled with different FPU mode that the one you're targetting with. Try cleaning up your arm-android installation and ensure that second FPC compilation really works. How to clean arm-android installation? When I call make I use: make clean crossall crossinstall OS_TARGET=android CPU_TARGET=arm ...etc PS also physically deleting C:\Develop\fpc\2.7.x\units\arm-android directory and recompiling fpc with CROSSOPT=-CfVFPV3 -OoFASTMATH -CpARMV6 I get the same error. -- ___ Lazarus mailing list Lazarus@lists.lazarus.freepascal.org http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus
Re: [Lazarus] ARMV7
also physically deleting C:\Develop\fpc\2.7.x\units\arm-android directory and recompiling fpc with CROSSOPT=-CfVFPV3 -OoFASTMATH -CpARMV6 I get the same error. This is what I actually mean by cleaning up your arm-android installation. If you've done that, then retry: if I use only CROSSOPT=-CfVFPV3 -OoFASTMATH, FPC compiles well and ensure it really compiles. -- View this message in context: http://free-pascal-lazarus.989080.n3.nabble.com/Lazarus-ARMV7-tp4031329p4031335.html Sent from the Free Pascal - Lazarus mailing list archive at Nabble.com. -- ___ Lazarus mailing list Lazarus@lists.lazarus.freepascal.org http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus
[Lazarus] ARMV7 and lazarus
Hi, I'm trying to use lazarus on a PandaBoard (it's ARMV7). In a system with Fedora 18: After installing fpc 2.6.2 for ARM and installing bigide of lazarus 1.0.8, i have this error in source editor before installing lazarus i used codetyphon install for the library dependencies (codetyphon can't install) ***:Draw Caret failed :Client=02847490 X=44 Y=1 W=2 H=-1 False, 02899AC8,02584780 and the error continue in every click in source editor like: ***:Draw Caret failed :Client=02847490 X=80 Y=31 W=2 H=-1 False, 02899AC8,02584780 In systems with Ubuntu 11.10 or 12.04: I did to make lazarus to work. but when i compile and run i can't get a fully working application. In debug: -never check if statement -never check case statement all lines is running the same code used and in win32 and Ubuntu 32 system and working. Thanx Nikos -- ___ Lazarus mailing list Lazarus@lists.lazarus.freepascal.org http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus
Re: [Lazarus] ARMV7
2013/5/15 leledumbo leledumbo_c...@yahoo.co.id also physically deleting C:\Develop\fpc\2.7.x\units\arm-android directory and recompiling fpc with CROSSOPT=-CfVFPV3 -OoFASTMATH -CpARMV6 I get the same error. This is what I actually mean by cleaning up your arm-android installation. If you've done that, then retry: if I use only CROSSOPT=-CfVFPV3 -OoFASTMATH, FPC compiles well and ensure it really compiles. Yes, I'm doing this way. I deleted arm-android directory and recompiled with: make clean crossall crossinstall OS_TARGET=android CPU_TARGET=arm CROSSOPT=-CfVFPV3 -OoFASTMATH -CpARMV6 INSTALL_PREFIX=C:\Develop\fpc\2.7.x PP=c:\Develop\fpc\2.6.0\bin\i386-win32\fpc.exe BINDIR=C:\Android\NDK\android-ndk-r8e\toolchains\arm-linux-androideabi-4.4.3\prebuilt\windows-x86_64\arm-linux-androideabi\bin CROSSBINDIR=C:\Android\NDK\android-ndk-r8e\toolchains\arm-linux-androideabi-4.4.3\prebuilt\windows-x86_64\bin BINUTILSPREFIX=arm-linux-androideabi- ... ... ... Installing package tcl Installation package tcl for target arm-android succeeded Skipped package univint which has been disabled for target arm-android Skipped package unixutil which has been disabled for target arm-android Installing package unzip Installation package unzip for target arm-android succeeded Skipped package users which has been disabled for target arm-android Skipped package utmp which has been disabled for target arm-android Skipped package uuid which has been disabled for target arm-android Skipped package winceunits which has been disabled for target arm-android Skipped package winunits-base which has been disabled for target arm-android Skipped package winunits-jedi which has been disabled for target arm-android Skipped package x11 which has been disabled for target arm-android Skipped package xforms which has been disabled for target arm-android Installing package zlib Installation package zlib for target arm-android succeeded Skipped package zorba which has been disabled for target arm-android Installing package fpc-all Installation package fpc-all for target arm-android succeeded make[4]: Leaving directory `c:/Develop/fpc/2.7.x/ packages' make[3]: Leaving directory `c:/Develop/fpc/2.7.x' make[2]: Leaving directory `c:/Develop/fpc/2.7.x' make[1]: Leaving directory `c:/Develop/fpc/2.7.x' c:\Develop\fpc\2.7.x C:\Develop\fpc\2.7.x\units\arm-android reappeared, Lazarus can't compile: Hint: Start of reading config file C:\Develop\fpc\2.7.x\bin\i386- win32\fpc.cfg Hint: End of reading config file C:\Develop\fpc\2.7.x\bin\i386-win32\fpc.cfg Free Pascal Compiler version 2.7.1 [2013/05/14] for arm Copyright (c) 1993-2013 by Florian Klaempfl and others Target OS: Android for ARMEL Compiling fcllaz.pas PPU Loading C:\Develop\fpc\2.7.x\units\arm-android\rtl\system.ppu Trying to use a unit which was compiled with a different FPU mode PPU Loading C:\Develop\fpc\2.7.x\\units\arm-android\rtl\system.ppu Trying to use a unit which was compiled with a different FPU mode fcllaz.pas(0,0) Fatal: Can not find system used by fcllaz, ppu=..\..\..\fpc\2.7.x\units\arm-android\rtl\system.ppu Same procedure, but with CROSSOPT=-CfSOFT ...etc, everything is ok. -- ___ Lazarus mailing list Lazarus@lists.lazarus.freepascal.org http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus
Re: [Lazarus] TextHeight in Console App
2013/5/15 Michael Schnell mschn...@lumino.de On 05/14/2013 04:50 PM, Howard Page-Clark wrote: Or create a Lazarus GUI app and implement Form1's OnCreate handler thus: Not all Targets an application might be intended to run on do provide a (supported) GUI API. In the case I described it should be really a console App because there is no need of user interaction. So if I need to make a GUI App it would be waste of resource on the server. I really do not understand why I can not make a console App that uses the Graphics unit because in Delphi there is no problem on that. The use of fpimage and fpcanvas units really solves the problem, although I will have to use FreeType libraries, but it is ok. However, it will imply in considerable changes to the original code. -- ___ Lazarus mailing list Lazarus@lists.lazarus.freepascal.org http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus
Re: [Lazarus] ARMV7
2013/5/14 Kjow antispamm...@gmail.com Hi all, I'm trying to build androidlcl test project with ARMV7 VFPV3, but there are problems. [cut] Can I solve both ARMV7 and VFPV3? Well, about ARMV7 I think I have understood now. According to http://en.wikipedia.org/wiki/ARM_architecture I need to pass -CpARMV7A options, indeed in this way FPC compiles well. ( CROSSOPT=-CfVFPV3 -OoFASTMATH -CpARMV7A ) The big issue is that Lazarus won't compile androidlcl test project if FPC is compiled with -CfVFPV3 crossoption... Hint: Start of reading config file C:\Develop\fpc\2.7.x\bin\i386-win32\fpc.cfg Hint: End of reading config file C:\Develop\fpc\2.7.x\bin\i386-win32\fpc.cfg Free Pascal Compiler version 2.7.1 [2013/05/15] for arm Copyright (c) 1993-2013 by Florian Klaempfl and others Target OS: Android for ARMEL Compiling fcllaz.pas PPU Loading C:\Develop\fpc\2.7.x\units\arm-android\rtl\system.ppu Trying to use a unit which was compiled with a different FPU mode PPU Loading C:\Develop\fpc\2.7.x\\units\arm-android\rtl\system.ppu Trying to use a unit which was compiled with a different FPU mode fcllaz.pas(0,0) Fatal: Can not find system used by fcllaz, ppu=..\..\..\fpc\2.7.x\units\arm-android\rtl\system.ppu I tried with CROSSOPT=-CfSOFT -OoFASTMATH -CpARMV7A and it works! Lazarus can build ARMV7A projects, but no luck with VFPV3. -- ___ Lazarus mailing list Lazarus@lists.lazarus.freepascal.org http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus
Re: [Lazarus] TextHeight in Console App
On Wed, May 15, 2013 at 11:02 AM, Edilson Vieira vieira.edil...@gmail.com wrote: 2013/5/15 Michael Schnell mschn...@lumino.de On 05/14/2013 04:50 PM, Howard Page-Clark wrote: Or create a Lazarus GUI app and implement Form1's OnCreate handler thus: Not all Targets an application might be intended to run on do provide a (supported) GUI API. In the case I described it should be really a console App because there is no need of user interaction. So if I need to make a GUI App it would be waste of resource on the server. I really do not understand why I can not make a console App that uses the Graphics unit because in Delphi there is no problem on that. The waste is probably negligible in most situations, since using CGI is a waste in itself (not to mention running Windows). Using Graphics in Delphi will incur (cause) the same kind of overhead as using LCL/Interfaces in a Lazarus app. (If you compile a Delphi application with no VCL dependencies you'll notice the big difference in executable size) (...) -Flávio -- ___ Lazarus mailing list Lazarus@lists.lazarus.freepascal.org http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus
Re: [Lazarus] TextHeight in Console App
On 14.05.2013 16:07, Edilson Vieira wrote: Hi folks! This is my second post. If this is not the correct list please let me know. I am trying to compile a Delphi project with Lazarus. The project is an Image Generation Program, a console program. The error ocurr when I call the method TextHeight of the Canvas property of TBitmap. The error message is (my translation): 'Project TextHeight raised exception External SIGSEGV in file '.\include\lclintf.inc' at line 184.' Could someone help me? Thanks in advance, Edilson. Al I wrong the NoGUI widgetset is intended for such tasks - CGI-like/console graphics processing? regards, Anton -- ___ Lazarus mailing list Lazarus@lists.lazarus.freepascal.org http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus
Re: [Lazarus] TextHeight in Console App
2013/5/15 Flávio Etrusco flavio.etru...@gmail.com On Wed, May 15, 2013 at 11:02 AM, Edilson Vieira vieira.edil...@gmail.com wrote: 2013/5/15 Michael Schnell mschn...@lumino.de On 05/14/2013 04:50 PM, Howard Page-Clark wrote: Or create a Lazarus GUI app and implement Form1's OnCreate handler thus: Not all Targets an application might be intended to run on do provide a (supported) GUI API. In the case I described it should be really a console App because there is no need of user interaction. So if I need to make a GUI App it would be waste of resource on the server. I really do not understand why I can not make a console App that uses the Graphics unit because in Delphi there is no problem on that. The waste is probably negligible in most situations, since using CGI is a waste in itself (not to mention running Windows). Negligible in one program execution maybe. But it makes difference when many executions and many programs take place. Beyond that, this is not a good programming practice. But yes, I am considering this solution (a GUI App). I will have to make some performance tests to see it will be possible. About running Windows, in this case, it is not my choice. Using Graphics in Delphi will incur (cause) the same kind of overhead as using LCL/Interfaces in a Lazarus app. (If you compile a Delphi application with no VCL dependencies you'll notice the big difference in executable size) I really do not know how to do it in Delphi without the Graphics unit. Beyond that the program is up and running. My point here is to port or not from Delphi do Lazarus. I have other applications to consider also. Best regards, Edilson. -- ___ Lazarus mailing list Lazarus@lists.lazarus.freepascal.org http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus
Re: [Lazarus] TextHeight in Console App
On 2013-05-15 15:02, Edilson Vieira wrote: I really do not understand why I can not make a console App that uses the Graphics unit because in Delphi there is no problem on that. In Windows it is not really noticeable, because ALL Windows installations have access to a GUI. You simply don't get Windows (even a server install) that doesn't have a GUI. For a server, that is really a waste of resources. Linux, FreeBSD etc are quite different, where a server install often [really] has no GUI at all (no X11 is installed). So for real console apps, you don't have access to Clipboard, Graphics etc units - because they all depend on a GUI sub-system being available. If you are only going to deploy your app on Windows, then you can indeed setup a LCL package dependency to your console app, include the Graphics unit and use TBitmap. But remember that your app might not have a user interface, bit in still depends on he GUI sub-system, so is not considered a true console application. Just don't expect that application to run under Linux or FreeBSD servers though. This is nothing odd or strange, just things Windows developers often don't realize, because they only know one OS. There knowledge of cross-platform development is often lacking. Regards, - Graeme - -- fpGUI Toolkit - a cross-platform GUI toolkit using Free Pascal http://fpgui.sourceforge.net/ -- ___ Lazarus mailing list Lazarus@lists.lazarus.freepascal.org http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus
Re: [Lazarus] TextHeight in Console App
On 2013-05-15 15:28, Anton Kavalenka wrote: Al I wrong the NoGUI widgetset is intended for such tasks - CGI-like/console graphics processing? The NoGUI widgetset is a terrible idea (work-around), and should be avoided if possible. Regards, - Graeme - -- fpGUI Toolkit - a cross-platform GUI toolkit using Free Pascal http://fpgui.sourceforge.net/ -- ___ Lazarus mailing list Lazarus@lists.lazarus.freepascal.org http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus
Re: [Lazarus] TextHeight in Console App
2013/5/15 Graeme Geldenhuys gra...@geldenhuys.co.uk On 2013-05-15 15:02, Edilson Vieira wrote: I really do not understand why I can not make a console App that uses the Graphics unit because in Delphi there is no problem on that. In Windows it is not really noticeable, because ALL Windows installations have access to a GUI. You simply don't get Windows (even a server install) that doesn't have a GUI. For a server, that is really a waste of resources. Linux, FreeBSD etc are quite different, where a server install often [really] has no GUI at all (no X11 is installed). So for real console apps, you don't have access to Clipboard, Graphics etc units - because they all depend on a GUI sub-system being available. If you are only going to deploy your app on Windows, then you can indeed setup a LCL package dependency to your console app, include the Graphics unit and use TBitmap. But remember that your app might not have a user interface, bit in still depends on he GUI sub-system, so is not considered a true console application. Just don't expect that application to run under Linux or FreeBSD servers though. This is nothing odd or strange, just things Windows developers often don't realize, because they only know one OS. There knowledge of cross-platform development is often lacking. You are right. I am looking forward to have such knowledge because I have the goal to make these apps code portable to, at least, Windows, Linux, MacOS and perhaps iOS also. It has been a very hard work and sometimes a think it is not possible at all! But I will keep trying. Lazarus/FPC has been so far the best promise I have at the moment. Thanks for the info. Regards, Edilson. -- ___ Lazarus mailing list Lazarus@lists.lazarus.freepascal.org http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus
[Lazarus] porting delphi project code
can someone please give me the steps, in simple layman's terms, that are needed to convert a delphi project or application code to Lazarus/FPC? i have never run delphi and have not the first clue other than there is some sort of convertor available... where it is and how to use it are completely unknown to myself... thank you! ;) -- NOTE: No off-list assistance is given without prior approval. Please keep mailing list traffic on the list unless private contact is specifically requested and granted. -- ___ Lazarus mailing list Lazarus@lists.lazarus.freepascal.org http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus
Re: [Lazarus] porting delphi project code
On 15/05/2013 19:19, waldo kitty wrote: can someone please give me the steps, in simple layman's terms, that are needed to convert a delphi project or application code to Lazarus/FPC? i have never run delphi and have not the first clue other than there is some sort of convertor available... where it is and how to use it are completely unknown to myself... Open the Lazarus IDE and you'll see the Tools menu has four conversion menu options relating to Delphi. Looks like you want the second Delphi conversion option: Convert Delphi project to Lazarus project... For simple projects the converter works well if you just accept all the defaults the wizard provides. Your Delphi code is saved unchanged, and the new Lazarus project ends up in a new directory with appropriate new .lpi, .lpr and .lfm files, .pas files adapted to use the LCL and probably substitutions for some Delphi components with their (approximately) equivalent LCL counterparts. -- ___ Lazarus mailing list Lazarus@lists.lazarus.freepascal.org http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus