[Lazarus] Free Pascal / Lazarus calling conventions
Hi guys, Just a stupid question, but is the Lazarus calling conventions documented anywhere? Is it different from Delphi calling conventions? When calling external c functions from libraries, does one need any special declarations like in Delphi to tell it to use c-style calling conventions? Related (it was actually Bo's question that got me thinking about this... how easy/difficult would it be to write Linux drivers in Object Pascal, but in a way that C/C++ programs can also use it? Or for that matter (since Lazarus has been ported to Haiku) it might be easier to write drivers for Haiku in Pascal rather than C? Maybe speed things up a bit? Cheers, Chavoux -- ___ Lazarus mailing list Lazarus@lists.lazarus.freepascal.org http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus
Re: [Lazarus] conditionals for detecting hardware platforms?
Hi Bo, From: Bo Berglund> I am programming with FreePascal and Lazarus towards a Raspberry Pi2 > target platform. Doing so on the RPi2 itself is possible and basically > works fine, except that the system is a bit sluggish at times and > there are other inconveniences as well. > So I moved to a Linux Mint 17.3 Mate system in a virtual computer > (VMWare) on my Windows7 PC instead. > > So I need to put some kind of conditional into my code to redirect the > GPIO calls to some simulator I will have to build. (I am assuming that > there is no such thing available already of course). > Another way (which might be easier?) is to look at the GPIO driver code (API) on the Raspberry and write a "fake driver" (.so file?) on the Linux system with the same name, API etc. of the Raspberry GPIO driver (I assume that there is a driver, so forgive me if I am wrong). Since you want to build a simulator in any case, this might be a better option that will not require you to do anything funny in your actual application code? Regards, Chavoux -- ___ Lazarus mailing list Lazarus@lists.lazarus.freepascal.org http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus
Re: [Lazarus] [PATCH] components/turbopower_ipro: added the Iphttpbroker and its example
> From: Graeme GeldenhuysI think it is safe to say we would all love such a solution for Object > Pascal too. But unfortunately C is an overwhelmingly popular language, > and most core functionality of an OS or library is implemented in it. > Personally I agree that LCL was implemented the wrong way (not custom > drawn), but I also need to correct you, or at least point out that even > though fpGUI Toolkit implements ALL widgets in pure Object Pascal, and > even has its own Object Pascal 2D graphics library for sub-pixel > anti-aliased drawing, it too relies on external libraries. How else is > fpGUI going to talk to X11, Win32, OS/2 etc. At some point it needs to > talk to the windowing system of the OS (which is most likely implement > in C, as some library). fpGUI's dependencies are magnitudes smaller than > LCL, but there are still dependencies - you simply can't avoid that, > other than implement a whole OS, windowing system, window manager etc in > Object Pascal too. Personally, I am very interested in developing a 3D Window Manager for Linux using Object Pascal. I am still not sure if I would need to work at the level of OpenGL (and if there are Object Pascal wrappers for all OpenGL functions) or if there are higher-level tools in Lazarus that could be used to write a true 3D Window Manager / Desktop Environment for Linux? Any ideas? Unfortunately I also do not currently have time to look at this in more detail, so probably only in 2017. Just saying that I am seriously interested in using Lazarus/Object Pascal at such a lower level if possible (and it might even be ported to be cross-platform later, depending on which underlying API it would use). And now I am totally off-topic. But if anybody else would be interested in something like this, please contact me... at least we can start looking at what options are available. The other option I am considering instead of Object Pascal is C++, which will probably have a good interface to OpenGL. Any 3D game programmers that used Object Pascal looking for a new challenge? Cheers, Chavoux -- ___ Lazarus mailing list Lazarus@lists.lazarus.freepascal.org http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus
Re: [Lazarus] Detecting when decompiler is running
Hi On 4 December 2015 at 18:14,wrote: > > > I'd like to hear from others about their anti hacking tools ... ;) > In addition to some good points already made, I would refer you to an old and still good article at: http://71.6.196.237/fravia/protec.htm ( http://www.woodmann.com/fravia/protec.htm). This was written from the cracker's perspective. Keep in mind that often it is the challenge of cracking a program, rather than making money or "stealing" a program that drives the real cracker (somebody else often uses his work in order to try to make money or claim fame), E.g. I have reverse engineered legally bought copies of programs that I paid for in order to see how they did some kind of protection (essentially to learn what you are asking from us here) or occasionally to skip the inconvenience of having to insert a CD just in order to start a program). I have also once been hit by the other side of not cracking a program when the original CD got scratched and my legally bought program became useless because I had no backup CD. So whatever protection you use, also keep in mind the fact that it might inconvenience your legitimate users enough that they might stop using your program (e.g. I will never buy ARC GIS, because a broken dongle, just as the GIS data for my thesis had to be analysed, made it impossible to use and I then discovered powerful Open Source GIS's: GRASS and qGIS which can do all and more for no money, but with a steeper learning curve). Happy hacking! Chavoux -- ___ Lazarus mailing list Lazarus@lists.lazarus.freepascal.org http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus
[Lazarus] Lazarus for mobile development?
Hi guys, I need to know if I can use Lazarus for mibile development on Android, Windows mobile and iOS (iPhone)? I currently use a program (written in Delphi, I think) that runs only on Android and Windows mobile (and Palm OS?) called CyberTracker, which uses MS access (.MDB) files to store both the data and the structure of the app which will run on the mobile device. It is easy to use for creating an app for data collection with GPS readings and pictures. Unfortunately it does'nt run on iPhones (and I have users who need Mac and iPhone versions). Would Lazarus be a good choice to write native apps for these mobile devices? I have done some mobile development in Visual Studio in the past, but only for Wndows devices. (And I have done some real embedded development in C and assembler, but have almost no knowledge of the best cross-platform mobile development options). Thanks for any advice or useful links! Cheers, Chavoux -- ___ Lazarus mailing list Lazarus@lists.lazarus.freepascal.org http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus
Re: [Lazarus] An online package manage
Hi Juha On Mon, Aug 10, 2015 at 5:29 PM, Michael Van Canneyt mich...@freepascal.org wrote: - As part of the build instructions, dependencies between packages but also between units can (and must) be specified. Why is that? Unit dependencies are already specified in uses sections of the units themselves. The most important reason I can think of is that you can and should specify the version of the units that will be used? I.e. it could depend on code in a newer version of a unit that is not available in an older version (that you might already have installed) or the other way round (old code that got dropped in new versions - less likely, but possible)? Cheers, Chavoux -- ___ Lazarus mailing list Lazarus@lists.lazarus.freepascal.org http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus
[Lazarus] How to access libraries from other languages?
Hi guys, The recent threat on Raspberry libraries made me think. I remember that it was possible in Delphi to access .ddl libraries written in C or C++ (a bit more work) by wrapping them and using a far call? I did this a while ago, so not clear on the details anymore. Typically I would write a driver etc. for hardware in C/C++ and then have a Delphi wrapper class that I could use to access the hardware. I assume this is still possible in Lazarus? Are there any tutorials etc. or will the old Delphi methods still work? Will this also work with Linux .so files? For that matter, are there any other way for Lazarus to get direct access to the hardware (except maybe use inline assembler)? Thanks for bringing me back up to speed! Cheers, Chavoux -- ___ Lazarus mailing list Lazarus@lists.lazarus.freepascal.org http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus
[Lazarus] Embedded/small database
Hi guys, I asked advice a long time ago on a small/embedded database that could be used for a desktop application and distributed by CD as part of the application.I got a variety of answers including mySQL, sqlite and others. At the time I was very partial to somehow using postgreSQL, because I had had good experiences with it in the past and also because of postGIS (the application should include a spatial/GIS component). But it looks like setting up postgreSQL with a pre-existing database from the CD and all the actual data, taking into account whether the desktop already has postgreSQL installed and simply the size of postgreSQL (and running it as a service), makes it not such a good fit for my application. I want the app to be simple and quick to install and use for end-users. I have decided to go with good old dbase (.dbf files), simply because this is what many GIS's use, at least for their non-spatial data. I have three questions: 1. What is your opinion on dbase for this use case? It will be a personal Decision Support System/Expert System that will use a combination of pre-compiled data (stored in the database during installation) and data entered by the user (added to the database during use). I would like things like referential integrity etc. to work as it should in a database, even though it is small. What would be you alternatives and why? 2. What tool would you recommend for actually creating the database, integrity etc.? I used Borland Database Engine all those years ago (it came with Delphi), but suppose there should be better (and open source) options now. MyDBF Studio? Or something else? 3. I see on the wiki that there are still issues with the TDbf component for Lazarus. What would be the best option to access the .DBF files? (And why?) Thanks again, Chavoux -- ___ Lazarus mailing list Lazarus@lists.lazarus.freepascal.org http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus
[Lazarus] 3D desktop written in Lazarus
Hi Lazarus Gurus, This is a follow-up on a previous question RE OpenGL components for Lazarus. In addition to learning openGL,what I really want to do is write a 3D desktop environment for Linux (in Lazarus, if possible). Since OpenGL is also available for Windows and Lazarus can cross-compile, it might be possible to port to Windows later on (but not a priority: I'd rather port it to Haiku first). 1. What I want instead of a typical Desktop, is a 3D (like FPS game) interface where the menu items (populated from a standard Debian/Fluxbox menu file) are represented by e.g. books (for files) or 3D objects (for tools) etc. and the menu groups are represented by different rooms/doors for example. 2. Ideally it should be written so that it is easy for graphic designers to customize. 3. But when you click on a specific program icon/object, it should open a regular GTK/QT window with everything working as normal (maybe with special customizable window decorations indicating the kind of program). 4. The HUD should function as a kind of shortcut to frequently used programs. 5. In addition, it should be possible to navigate by keyboard alone (using shortcuts and/or text auto-completion). 6. Oh, and it will be Open Source, obviously. So I have a number of questions: 1. Does anybody know of a QT-based desktop environment that is lighter than KDE (and not dependant on full KDE libraries)? 2. Is there an easy way to integrate OpenGL and X on Lazarus (either via GTK or QT)? 3. I assume that creating the actual environment will be easier using a full Lazarus Game Engine rather than only OpenGL Lazarus components. However, should there be any difference in difficulty between accessing the menu and opening a normal window from a game engine as compared to a Lazarus OpenGL component? If there is anybody who has the time, interest, (experience?), and/or more nifty ideas for this, please contact me. For me this will be mostly a learning process, but I also think it can be the start of something nifty and useful. Cheers, Chavoux -- ___ Lazarus mailing list Lazarus@lists.lazarus.freepascal.org http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus
[Lazarus] OpenGL
Hi Lazarati I have two questions: 1. Have there ever been a Free Pascal implementation of OpenGL? I would like to learn OpenGL and was wondering if I will be forced to use C++/C or if there are other options. 2. I know there are (or have been) various OpenGL Lazarus components (e.g. GLScene, NX etc) and game engines? (JEDI SDL != OpenGL?). Which would you advice me to install/use for learning OpenGL and why? I am not asking for a flame-war, so please state when it is just your opinion or else give a reason. 3. Ultimately I would like to be able to write and use a game engine based on OpenGL (in Pascal if possible) including sound etc. Thanks Chavoux -- ___ Lazarus mailing list Lazarus@lists.lazarus.freepascal.org http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus
Re: [Lazarus] How to access C and C++ libraries?
Thanks everybody! The two links were just what I needed. And some parts were faintly familiar. :-) Cheers Chavoux -- ___ Lazarus mailing list Lazarus@lists.lazarus.freepascal.org http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus
[Lazarus] How to access C and C++ libraries?
Hi everybody! Years ago I used Delphi (on Windows) to access a C or C++ API (for talking directly with embedded device) and I can remember that there were a number of gotchas (e.g. the calling convention had to be changed form Pascal to something else (extern?) etc. ). Now I am wondering about writing a simple Lazarus GUI to the Telegram API (all C header files, AFAICT) on Linux (and maybe Windows, if not too difficult to port). Any gotchas to keep in mind for using C and C++ libraries from Lazarus/Free Pascal (on Linux and maybe Windows) or good guides? Thanks Chavoux -- ___ Lazarus mailing list Lazarus@lists.lazarus.freepascal.org http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus
[Lazarus] TFindDialog
Hi everybody I think I am missing something, but reading through the TFindDialog help file I still cannot figure it out: How do I specify which text (or component) must be searched? What I actually want to do, is to search through all files in a directory for a specific string (the one in FindDialog.FindText) (The current open file is in a TlpHtmlPanel). Currently I am calling a TAsyncProcess in order to open a console and run grep from the commandline, but there must be a better way? Even if I have to open all the files one by one in an invisible TMemo to search through each one. Or is there a way to pipe the output of a TAsyncProcess (grep) back into a TMemo? Cheers Chavoux -- ___ Lazarus mailing list Lazarus@lists.lazarus.freepascal.org http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus
[Lazarus] Database and installation
Hi all I have used Lazarus with PostgreSQL in a client-server setup before. It worked very well when I installed it at a client. I have also written desktop Delphi programs using Paradox as database and InstallShield as the installer before, which worked very well for distributing programs on CD (or DVD). What would be the best Lazarus equivalent for this purpose? I.e. a program with a pre-existing, populated database that can be distributed on (and installed from) a CD or DVD by users. If I use PostgreSQL it would need to see if the Postgres RDMS has already been installed on the desktop, install it if not, populate the PostgreSQL database with the data on the CD and install the program itself (with possibly adding a shortcut depending on the window manager used). I have never studied .deb (much less) .rpm packages in detail, so I am not sure if all of this functionality can be packed in there. And I am not really looking forward to writing InstallShield from scratch for Windows if there is a better alternative. Any ideas? Thanks Chavoux -- ___ Lazarus mailing list Lazarus@lists.lazarus.freepascal.org http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus
Re: [Lazarus] Subroutine ?
Hi Mattias On 31 July 2013 11:00, lazarus-requ...@lists.lazarus.freepascal.org wrote: TComponent does not have Enabled. So the above code does not work. TControl has Enabled. Disabling a control (e.g. no focus, some widgetsets draw them gray) automatically disables child controls. So the easiest way to disable all controls on a form is to set Form1.Enabled:=false. Mattias Just a related question on this: What happens afterwards when I say Form1.Enabled:=true; ? If some controls were enabled beforehand and some were disabled, will this be remembered or will I need to enable them one-by-one or will all controls be enabled by default? Cheers Chavoux -- ___ Lazarus mailing list Lazarus@lists.lazarus.freepascal.org http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus
Re: [Lazarus] Lazarus, Jedi etc.
Hi Mark On 16 July 2013 09:47, lazarus-requ...@lists.lazarus.freepascal.org wrote: Send Lazarus mailing list submissions to lazarus@lists.lazarus.freepascal.org From: Mark Morgan Lloyd markmll.laza...@telemetry.co.uk snip If it really is so bad, why have so many developers- in particularly web developers- clasped it to their bosom? For two main reasons: 1. It is (used to be) fast compared to other DB's while still handling fairly large amounts of data. 2. Data integrity was not important to them (or they wanted to do all their data checking on the web interface side by hand and considered it as overkill or an unneeded resource drag on the DB side). I have heard enough horror stories of data corruption in mySQL to agree that it is in many ways still a toy DB and not a real RDBMS. However, when data integrity is not that important and DB speed is a bigger priority, it still has a role IMHO... at least it is a better choice than using text files for storing your data. Cheers Chavoux -- ___ Lazarus mailing list Lazarus@lists.lazarus.freepascal.org http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus
Re: [Lazarus] Lazarus, Jedi etc.
Hi Henry On 16 July 2013 10:28, lazarus-requ...@lists.lazarus.freepascal.org wrote: From: Henry Vermaak henry.verm...@gmail.com snip If it really is so bad, why have so many developers- in particularly web developers- clasped it to their bosom? Probably not, no, given that it's used by wikipedia, google, twitter, etc. It just seems like Graeme and Michael are complaining that it doesn't default to strict mode (i.e. traditional mode in mysql parlance). Lots of credibility lost if people rant about something that they can actually configure the way they like. Of the three examples updates happen relatively infrequently on wikipedia, so transactional integrity is not really important at all. And in both the other examples speed, rather than data integrity, is the priority (i.e. if google misses a search result or two, does it really matter? or if I miss a tweet now and then, does it really matter?). Speed is important, however for these applications. This is where mySQL shines. Michael Schnell mschn...@lumino.de I seem to find out that this discussion is about experts making fun on each other, just wasting some bandwidth :-) . I hope not! It really depends on what you want from the DB. If speed, rather than data integrity is your priority, then mySQL is a good choice (plus part of LAMP : although here I would advise you to use Python rather than PHP). But if you are working with financial data, it is a really bad idea and you need a proper RDMS. Cheers Chaovux -- ___ Lazarus mailing list Lazarus@lists.lazarus.freepascal.org http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus
[Lazarus] Lazarus update
Hi guys I am still running lazarus v.1.0 RC, basically because I installed a bunch of components (mostly 3D - GLScene, OpenGL, etc) and I can no longer remember which ones came as part of Lazarus and which ones I had to install myself (I am also a bit afraid that updating lazarus and fpc might break something). Is there any way to record all currently installed components (Lazarus inbuilt and self-installed) and automatically re-install them when updating Lazarus? Would it be difficult to write a bash script (or .bat file on windows) that can do this (if it does not already exist in Lazarus)? In the same vein: any specific components to recommend for 3D game development in Lazarus/free-pascal? FYI I am running Lazarus on Debian stable (Mepis 11), so I normally use .deb files for installing fpc and lazarus, (but not for components). Thanks Chavoux -- ___ Lazarus mailing list Lazarus@lists.lazarus.freepascal.org http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus
Re: [Lazarus] Lazarus update
Hi Mattias Thanks... that looks really easy! I just want to confirm that this will work the same when I install from .deb file instead of compiling from source? Cheers Chavoux -- ___ Lazarus mailing list Lazarus@lists.lazarus.freepascal.org http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus
[Lazarus] Free-pascal question
Hi all This might be slightly off-topic... I have some fpc -related questions: 1. How good is Lazarus/fpc for embedded programming (compared to C)? It will probably be on a (custom-made) device with ARM/Atmel-based chipset (with or without an OS - will this make a difference?). 2. I remember that the original Turbo Pascal (and Delphi) could use in-line (i386) assembler. Is this still possible with Lazarus/free-pascal and for other chipsets like Atmel/ARM? Thanks Chavoux -- ___ Lazarus mailing list Lazarus@lists.lazarus.freepascal.org http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus
Re: [Lazarus] Free-pascal question
Hi Michael On 7 March 2013 12:11, Michael Schnell mschn...@lumino.de wrote: On 03/07/2013 10:45 AM, Chavoux Luyt wrote: 1. How good is Lazarus/fpc for embedded programming (compared to C)? It will probably be on a (custom-made) device with ARM/Atmel-based chipset (with or without an OS - will this make a difference?). What exactly do you mean by embedded ? I am not going to build the hardware myself, but will probably (help to) program the device. It will be a programmable GPS collar, so I am not sure what the engineers are going to include. But to answer your questions: Possible definitions include: - (hard) real-time Probably not necessary. It will need a real-time clock, though. - direct hardware access Yes, this will be needed. - interrupt programming Yes, probably. I want to include an accelerator meter and it should send a hardware interrupt to tell the device to take a GPS reading. - code in Flash memory (for diskless low-cost hardware) Definitely diskless to fit in a GPS collar. - no OS Although an OS will probably make things easier, low power consumption will be the most (?) important requirement. An OS that runs all the time (or use too much power to boot up every time it receives a hardware interrupt) will probably not work (even if an open-source OS exists for a specific chipset). - no GUI (for headless low-cost hardware) Yes! (If there is an OS, it might be possible to have a web interface and embedded web server for settings etc., though). - memory space efficiency (for low-cost hardware) Yes! It needs to store at least 2160 GPS data points (in addition to the main program itself and any configuration settings). - speed efficiency (for low-cost hardware) Yes! - cross compiling Yes, the development will be done on Linux (either fpc or c cross-compiler) and written to the device using whatever pins/connectors are available (probably USB and possibly wireless/UHF - this will depend on hardware design) - remote debugging Will depend on the chipset and hardware design... can this be done using fpc? .Thanks Chavoux -- ___ Lazarus mailing list Lazarus@lists.lazarus.freepascal.org http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus
Re: [Lazarus] Free-pascal question
Hi Reinier On 7 March 2013 13:18, Reinier Olislagers reinierolislag...@gmail.com wrote: On 7-3-2013 11:57, Chavoux Luyt wrote: Will depend on the chipset and hardware design... can this be done using fpc? fpc list please. I am not currently a member of that list. Should I join fpc-Pascal or fpc-devel to ask this? (I assume it is one of the lists found on this page: http://www.freepascal.org/maillist.var)? Regards Chavoux -- ___ Lazarus mailing list Lazarus@lists.lazarus.freepascal.org http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus
Re: [Lazarus] Free-pascal question
Hi On 7 March 2013 15:20, Graeme Geldenhuys gra...@geldenhuys.co.uk wrote: On 2013-03-07 12:33, Michael Schnell wrote: While fpc officially does support Cross compiling, it is no especially easy to get it working (see the appropriate Wiki articles) All it takes is a bit of practice with the installation. Alternatively, use CodeTyphon [http://www.pilotlogic.com/sitejoom/index.php/codetyphon]. CodeTyphon is a repackaged FPC Lazarus with lots of cross-compiling options all built-in, plus every component you could ever wish for. It is like the Studio version of Lazarus. :) Quite impressive actually. Thanks Graeme, I'll have a look. Lazarus uses gdb for debugging. If you don't use an OS (such as Linux) on the target, you can't use the GNU created gdb receiver (either gdb or gdbserver). You could also debug using a debugserver and the dbugintf unit included with FPC. Making it communicate over TCP shouldn't be too hard, and is on my todo list. FPC includes a rudimentary console debug server, and LCL and fpGUI versions also exist, which are much better. Or use a well-placed oscilloscope. ;-) I have done a few embedded projects in the past (using C/assembler) where that was my only debugging tool... not so much fun for a programmer, but a good learning experience. Unfortunately, I don't have my own oscilloscope (they are really expensive), but I hope one of the engineers will have one. Cheers Chavoux -- ___ Lazarus mailing list Lazarus@lists.lazarus.freepascal.org http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus
Re: [Lazarus] Problems with Lazarus
Hi Johann I have had similar issues in the past. I would really be nice if (like Delphi) there was a setting in the Tools/Options window where you could set (or at least see) the paths to all the units used by Lazarus as well as a separate setting for the paths to all the units used by the current project. Nothing stops Lazarus from reading and writing this information from the .cfg file. B.T.W. since I finally got a bunch of 3D components installed in Lazarus and did not want to go through all the trouble of re-installing them, I am still using Lazarus 1.0 RC1, with fpc-2.6.0 on a Debian-based system (at least until I run into a problem where I really need an update). As an alternative, try running fp-2.6.0 from the commandline. I am not sure if it will solve your problem with the missing unit/path, but if you ever used the original Borland Turbo Pascal, you will feel right at home. And it is much faster than Lazarus. I think for the kind of project you are looking at, it might be the better choice. Cheers Chavoux On 19 February 2013 10:17, Johann Spies johann.sp...@gmail.com wrote: My endeavour to return to Pascal is getting to the point of frustration: 1. Although I found that sometimes I have to tell Lazarus to scan the fpcsource to be able to find installed units, it still happens that from time to time I cannot compile something because a unit cannot be found. Today it is *Can't find unit AvgLvlTree ... check if package LazUtils is in the dependencies I have read the wiki and FAQ about this type of problems but that did not help at all. Both fpc and lazarus cannot find the unit despite the fact that I did a rerun of fpcmkcfg adn despite that the following shows the unit is there: locate -i avglvltree /home/js/.lazarus/lib/LazUtils/lib/x86_64-linux/avglvltree.o /home/js/.lazarus/lib/LazUtils/lib/x86_64-linux/avglvltree.ppu /usr/share/lazarus/1.0.6/components/lazutils/avglvltree.pas /usr/share/lazarus/1.0.6/components/lazutils/lib/x86_64-linux/avglvltree.o /usr/share/lazarus/1.0.6/components/lazutils/lib/x86_64-linux/avglvltree.ppu /usr/share/lazarus/1.0.6/docs/xml/lazutils/avglvltree.xml /usr/share/lazarus/1.0.6/test/lazutils/testavglvltree.pas js@artikel ~/p/pascal sudo fpcmkcfg /tmp/fpc.cfg *2. My second problem is not that serious but Lazarus as an editor is extremely slow. It reminds me of the reason why I do not use Eclipse for other projects and normally prefer Emacs or Vim. Unfortunately the fpc-ide is not debug-enabled and I do not know how to enable it. I have recompiled the sources and according to what I understand of the configuration in the sources debug should be enabled. There must be some way to get around these type of frustrations. Any help? Regards Johann PS. I am working with Lazarus 1.0.6 and fpc-2.6.0-7 on Debian. I have downloaded the packages from the Lazarus site and removed all standard Debian freepascal-related packages from my system. -- Because experiencing your loyal love is better than life itself, my lips will praise you. (Psalm 63:3) -- ___ 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] Problems with Lazarus - off-topic question
Hi Mattias On 19 February 2013 11:12, Mattias Gaertner nc-gaert...@netcologne.dewrote: snip On some Linux the QT version is faster. Unfortunately there is no debian package for that. But compiling it is easy. Is there anywhere where it is explained how this was done? The original Delphi language was pretty much a Pascal wrapper around the Windows API (that would probably just convert the Pascal-style calls to (far) c-style calls and then link to the various windows .dll's)? How does this convert into QT (or GTK for that matter)? Is there a document that explains this? I assume this translation and linking is done by Lazarus and is not built into fpc? Thanks Chavoux -- ___ Lazarus mailing list Lazarus@lists.lazarus.freepascal.org http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus
Re: [Lazarus] Problems with Lazarus - off-topic question
Thanks Mattias Sven! On 19 February 2013 11:43, Mattias Gaertner nc-gaert...@netcologne.dewrote: snip See here: http://wiki.freepascal.org/Qt_Interface#Quick_start_guide_for_Linux snip http://wiki.freepascal.org/LCL_Internals Sven Barth pascaldra...@googlemail.com via lists.lazarus.freepascal.org: If you want to take a look at the API bindings just look at $fpcsrc/rtl/win/windows.pp for the Windows API and $fpcsrc/packages/gtk2/src for the GTK+ API. I will have a look! Cheers Chavoux -- ___ Lazarus mailing list Lazarus@lists.lazarus.freepascal.org http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus
Re: [Lazarus] Communication with PostgreSQL
Hi Johann I wasn't going to comment since this is for a command-line program. But what version of Lazarus do you have (and on which version of Debian)? I ask because the Debian Lazarus packages are notoriously out of date. (E.g. Lazarus 1.0+ has been out for a while, but not available from the main Debian repositories for my Debian stable - based distro). I had to install the .deb package from the Lazarus web site instead. Cheers Chavoux -- ___ Lazarus mailing list Lazarus@lists.lazarus.freepascal.org http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus
Re: [Lazarus] Undo/Redo in Form Designer
Hi When I click the Save all button, don't Lazarus save only the files that have changed since the last save? In that case, a snapshot needs only store the information that will be saved when the Save all button is clicked (and this information should be known somewhere in Lazarus). AFAIK that will be diffs of the .pas, .lfm and possibly the .lrs files of the current unit/form (and possibly of the project file and other units if changes were made to more than 1 unit). The point I am trying to make is that partial diffs of only the files that were actually changed (in memory), will work. How far back do we want undo/redo to go? Do we want to be able to revert to a state from before the last Save all? Do we want to revert to changes done before Lazarus was closed the previous time (i.e. should these changes be saved when the project is closed)? Cheers Chavoux -- ___ Lazarus mailing list Lazarus@lists.lazarus.freepascal.org http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus
Re: [Lazarus] Lazarus support for Sorting is completely inadequate.
This is where one would want generics... I am not sure if this is implemented in Object Pascal yet (but it is part of C++ and other languages). I remember it being on the wish list for Delphi for a long time, but don't know if it ever got implemented? It would be nice if all Lazarus components could use a single fpc library for its sorting. Cheers Chavoux On 1 December 2012 19:23, Avishai avishai.g...@gmail.com wrote: you could just write a single comparison function, for the languages you have... That is assuming you know in advance what language will be used. If you don't, then what? I can send someone a '.po' but I can't change the Sort method if it isn't already in code. What sort method should I include for Japanese??? On Sat, Dec 1, 2012 at 7:21 PM, Benito van der Zander ben...@benibela.de wrote: you could just write a single comparison function, for the languages you have... -- Shalom, Avishai avishai.g...@gmail.com אבישי גוֹר -- ___ 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] Updating Lazarus
Hi Mattias On 21 November 2012 09:34, Mattias Gaertner nc-gaert...@netcologne.dewrote: On Tue, 20 Nov 2012 13:27:54 +0200 Chavoux Luyt chav...@gmail.com wrote: Hi all I just wanted to make confirm that I am correct: If I update Lazarus (using apt on debian-based system) I will need to reinstall all the extra components (glScene) that I have currently installed? Yes. Well, actually if you keep your configuration (~/.lazarus) and upgrade to a newer version the list of installed packages is still there and you only need to recompile. You don't have to open every package. Thanks, that will already help a lot. Cheers Chavoux -- ___ Lazarus mailing list Lazarus@lists.lazarus.freepascal.org http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus
Re: [Lazarus] Updating Lazarus
Hi all I just wanted to make confirm that I am correct: If I update Lazarus (using apt on debian-based system) I will need to reinstall all the extra components (glScene) that I have currently installed? That is the way it would have worked with Delphi, but Delphi updates were much less frequent. Thanks Chavoux -- ___ Lazarus mailing list Lazarus@lists.lazarus.freepascal.org http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus
Re: [Lazarus] How do you install Lazarus on Debian?
Hi Howard On 8 November 2012 21:26, Howard Lee Harkness howard.lee.harkn...@gmail.com wrote: I'm a relative n00b at Linux admin stuff, but I'd really like to be able to run Lazarus on the Debian system I've just inherited at my new contract. I have done a checkout of the Lazarus svn repository per the instructions in http://wiki.freepascal.org/Getting_Lazarus. But when I execute make in the lazarus directory, I just get a bunch of error messages. Do you have a specific reason why you want to install Lazarus from source (svn)? In general I find it easier in Debian to download the .deb files and install from there. Normally these will also ensure that the prerequisite packages (e.g. fpc) are also installed. HTH Chavoux -- ___ Lazarus mailing list Lazarus@lists.lazarus.freepascal.org http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus
Re: [Lazarus] How do you install Lazarus on Debian?
Hi Howard On 8 November 2012 21:49, Howard Lee Harkness howard.lee.harkn...@gmail.com wrote: I was not able to find the deb files. How do you download them? When I did a search for lazarus install on debian, I got a list of installation instructions for everything except Debian -- and directions for doing a source checkout and build. BTW, I missed the part about needing to configure fpc and fpc-packages before doing the make. After an apt-get install fpc, make appears to be running just fine in the lazarus directory. Now to figure out how to start it up... The instructions for Ubuntu found herehttp://wiki.freepascal.org/Install_on_Ubuntu_from_.deb_filesshould work pretty much the same for Debian (i.e. download from sourceforge). Also note that for the latest version it seems that there are no longer so many small .deb files, but IIRC just the fpc, fpc-source and lazarus packages. A better way IMHO (but a bit more long-winded) is to create a local debs directory (I have mine in my home directory) to which you download all .deb files, then create a line deb file:/path/to/local/directory/debs ./ in your /etc/apt/sources.list file. As root run the following commands in the debs directory (I put them together in an executable script): ls *deb override dpkg-scanpackages . ./override | gzip -c -9 Packages.gz Then run aptitude update or apt-get update (or do update from Synaptic) and the local .deb packages should be visible in your package manager to be installed as usual. I must warn you though, that Ubuntu .deb packages don't always work on Debian (e.g. because some dependencies are just not available), but at least for lazarus and fpc it worked without problems. I also could not get the deb http://www.hu.freepascal.org/lazarus/ lazarus-stable universe to work in my sources.list file (or the available version was way to old). HTH Chavoux -- ___ Lazarus mailing list Lazarus@lists.lazarus.freepascal.org http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus
[Lazarus] How to include nxPascal: newby question
Hi guys How do I add the nxPascal directory (or other units (.pas files)) to the Lazarus source directory? I assumed that I had to add it to Tools-Options-Environment-Files-FPC Source Directory (or should it be added to the Lazarus directory instead?), but then it replaces the /usr/share/fpcsrc/$(FPCVER)/ directory instead of adding nxPascal to the source path? The help file doesn't really say much more. I remember that I could add a project specific source path as well as an environment-wide source path in Delphi. In this case I want the nxPascal units to be available to all projects. Thanks Chavoux -- ___ Lazarus mailing list Lazarus@lists.lazarus.freepascal.org http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus
Re: [Lazarus] How to include nxPascal: newby question
Thanks Mattias On 14 October 2012 23:04, Mattias Gaertner nc-gaert...@netcologne.dewrote: On Sun, 14 Oct 2012 22:44:29 +0200 Chavoux Luyt chav...@gmail.com wrote: Hi guys How do I add the nxPascal directory (or other units (.pas files)) to the Lazarus source directory? snip Do you mean to all your projects or really to all projects? Sorry, I mean available to all my projects. Recommended way: Create a package, add your shared sources and then add the package to any project that needs the units. Ahh. I downloaded the nxPascal source files (all .pas units) and I don't think they are currently in a package. The demos that come with it has the .pas files in its uses clause... If I put them all in a package, how do I include the package in the demos (if it is not a visual component)? Another way, but can create conflicts: Add the -Fu parameter to your /etc/fpc.cfg. Should the Options menu item not read the options from and write them back to the /etc/fpc.cfg file? Cheers Chavoux -- ___ Lazarus mailing list Lazarus@lists.lazarus.freepascal.org http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus
Re: [Lazarus] Please define delphi compatibility
Guys I think we might be getting slightly off-track. Am I right in saying that the consensus seems to be that Delphi compatibility is basically one-way? I.e. from Delphi to Lazarus, but not necessarily the other way round? If we make extensions to the the IDE that does not exist in Delphi, I can see no other option. The only alternative I can think of is if we keep for example a Delphi compatible TDBNavigator without the ImageList that can be used by those who want to be able to port their Lazarus project to Delphi. (So we might have a Delphi compatible tab for those components where the default Lazarus components have been improved/extended in ways that cannot be ported back to Delphi. (Or alternatively put all the extended components in their own tab instead). Is this worth the while? Cheers Chavoux P.S. I am speaking just as a Lazarus user and not the one (or more) who would need to implement this compatibility. :-) -- ___ Lazarus mailing list Lazarus@lists.lazarus.freepascal.org http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus
Re: [Lazarus] Please define delphi compatibility
I would also like some clarification on this question. I think personally that it should be a one-way conversion process... i.e. it should be possible to port/import any Delphi project into Lazarus without problems, but not necessarily the other way round. One possible way to implement it is to create the exact same base class for all the Delphi components and then have the Lazarus (LCL) components inherit from these base classes.The descendent classes can then have all the nice-to-have feature like extra properties etc. that we want in Lazarus (or just be an exact copy of its parent class if no change is required). In this case it might even be possible to port back from Lazarus to Delphi, as long as you only use the base class components and not the LCL inherited classes. But I think FPC might have a similar problem with the Delphi language that has already changed a bit from the original. What is the the situation on that side? Cheers Chavoux -- ___ Lazarus mailing list Lazarus@lists.lazarus.freepascal.org http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus
Re: [Lazarus] Close Project means Close Project!
Hi On 19 September 2012 09:01, Martin laza...@mfriebe.de wrote: On 18/09/2012 22:19, Juha Manninen wrote: The right fix would be to clear the last opened project memory when a project is closed. Then a new project would be created when Lazarus starts next time. I didn't look at the code now but it should be relatively easy. If you provide a patch, I can apply it. Actually I like and the current behaviour.. I have open last project ay start option enabled. And I often find myself testing something on a New and not saved project. Even if I stop working and close the IDE, the saved project I .worked on will be back Maybe the solution is simply to change the default settings? I think most people (myself included) would like a closed project to stay closed when Lazarus restarts. It is also the usual behaviour in other IDE's. Then those who like the current setting can still change it? Cheers Chavoux -- ___ Lazarus mailing list Lazarus@lists.lazarus.freepascal.org http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus
Re: [Lazarus] Stable islands: testing stability
+1 On 17 September 2012 07:39, Reinier Olislagers reinierolislag...@gmail.comwrote: MML's post on stable islands has made me think. Below some ideas for discussion: If we want to know whether a certain combination of OS+FPC+Lazarus+packages is stable, we: 1. should ask the user 2. don't trust him completely though and we should get measurements Short-term action = I suggest we can create a Lazarus GUI that - asks the user how stable he thinks Lazarus is - collects test measurement data (see below) The GUI can then display the results, save them for the user's own use (import in database etc), and upload to a central web page The GUI could run these tests: - compiler test suite. Custom test code; results available as XML, IIRC. - FPC database tests (e.g. for bufdataset, memds, sdfdataset, perhaps test Firebird embedded, sqlite, as well as any specified in the user's database.ini). These are fpcunit tests; can spit out e.g. XML - any other fpc tests written with fpcunit - Lazarus non-GUI tests (can't remember what data format these have) Medium-term action == - Have FPC report not only version but also SVN revision (much like lazarus does in help/about) so that data can be used to pinpoint exactly what version is used if checked out from SVN (e.g. trunk) - Write small cross platform database application to collect, read in test results into database; useful for user's own use - Similar but for a central web site. Web page with results could be done much like the compiler test suite page - Extend FPC fpcunit tests for packages (both in coverage and number of packages tested) - Extend Lazarus non-GUI tests (e.g. fill stringgrid, save as csv, load from csv, compare grid contents). Perhaps even a policy/behaviour change: no new units accepted without relevant tests (of course where feasible) - Extend packages so that there is a self-test possibility: the GUI mentioned above) and/or IDE shoul run unit tests in the packages and get the resutls. Example: Lazreport creates sample report, outputs to file, and compares file contents with expected contents Extending the test suites etc. would aid in regression testing as long as attention is paid to the trend in test faults. What do you think? Thanks, Reinier -- ___ 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] Lazbuild on IBM Power6 (OpenSuse Linux)
Hi Leonardo On 17 September 2012 13:53, Leonardo M. Ramé l.r...@griensu.com wrote: On 2012-09-17 09:18:22 +, Mark Morgan Lloyd wrote: Leonardo M. Ramé wrote: I've installed FPC 2.7.1 from sources and Lazarus also from sources. Just one question: Are you sure Lazarus works with FPC2.7.1? I got the idea that it only works with FPC2.6? I might be wrong and it might not be a problem when installing from source, though. Just an idea to check. Cheers Chavoux -- ___ Lazarus mailing list Lazarus@lists.lazarus.freepascal.org http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus
Re: [Lazarus] Proprietary vs Open Source mentality
Hi guys On 3 September 2012 02:34, Craig Peterson cr...@scootersoftware.com wrote: I don't think it's an open source vs closed source mentality. It's quite possible that Uwe can't open source it; in the post you linked he even mentions that he used knowledge of the compiler internals to implement it. snip I think we are missing the point here. It was not so much about Uwe himself as about the difference in mindset between open source and shareware/freeware. Personally I think many freeware programmers first want to see how popular their component/program is with the hope of later selling it (or selling a non-free de luxe version) once it gets popular enough. That is why they want to keep the source closed (not saying that this is the reason behind Uwe's decision). But at the same time they loose out on the benefit of having other programmers improving their product free of charge. I think the point was that the proprietary mindset is in general not a productive way of thinking. If you are not making money from something anyway, why not share the source code? Then others may learn from you and (especially if you hate writing documentation) understand exactly how to use your program/component and in addition, actually improve your code if they want to add extra features (that you might find useful in turn). Also, when you loose interest or don't have time for the project any more, there will be probably be somebody to continue with it. Regards Chavoux -- ___ Lazarus mailing list Lazarus@lists.lazarus.freepascal.org http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus
Re: [Lazarus] Components dcu?
Hi Michael On 29 August 2012 09:50, Michael Schnell mschn...@lumino.de wrote: On 08/28/2012 04:23 PM, Chavoux Luyt wrote: I remember reading a long time ago that Lazarus has to be rebuilt whenever a new component is added. I know that this is not necessary in Delphi. Recompiling is just part of the normal process of installing a package that provides one or more visual components. I feel you hardly notice it if you don't look too close and just click OK. :-) . So what is the problem ? My real problem was getting my Delphi Components to work in Lazarus without breaking the whole IDE. It seems like the best thing to do is to just backup the lazarus executable before trying to add the new component? Regards Chavoux -- ___ Lazarus mailing list Lazarus@lists.lazarus.freepascal.org http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus
[Lazarus] Components dcu?
Hi guys I remember reading a long time ago that Lazarus has to be rebuilt whenever a new component is added. I know that this is not necessary in Delphi. Can someone explain why? Or refer me to the right documentation (or code). Is this a FPC problem or Lazarus specific? What I really want to know is how much work is it going to be to get Lazarus to install new components without recompiling? If it is possible, I would like to help getting this to work in Lazarus. What magic is Delphi using? I assume that somehow Delphi dynamically link the .dcu object files? Are there any open source IDE' s that can add new components without needing a rebuilt? Thanks Chavoux -- ___ Lazarus mailing list Lazarus@lists.lazarus.freepascal.org http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus
Re: [Lazarus] Components dcu?
Thanks for the link guys! On 28 August 2012 16:51, Graeme Geldenhuys gra...@geldenhuys.co.uk wrote: As Mattias suggested, read the wiki page to fully understand the issue (or non-issue). Coming from a Delphi background (where developers can't rebuild the IDE), it must sound like a daunting task, but it fact it is no different to compiling your own projects. Lazarus IDE even includes a menu item in the Tools menu to help facilitate the process. Once you have done it a handful of times, it becomes a no-brainer. Plus it's not like you install new components every day either. I read through the wiki, but it seems like they only discuss the possibilities. Nothing has been done yet? Do we actually know how Delphi did it (on the wiki it looks like we are still guessing)? I wrote a few components for Delphi and would like to import them into Lazarus. I just thought it would be nice to do it without needing to recompile Lazarus every-time (and if I made a stuff-up my whole IDE will not be dysfunctional). Cheers Chavoux -- ___ Lazarus mailing list Lazarus@lists.lazarus.freepascal.org http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus
Re: [Lazarus] Delphi post-XE3 roadmap
Sorry for a newbie question, but how is FPC connected to gcc anyways? Doesn't it translate the (object) pascal code directly into the various machine languages for the different platforms (Or into assembler and then machine language)? Pascal, only needs a one-pass compiler, making it by nature much faster to compile than C based languages, so why would FPC use anything C or C++ (except for external function calls to the OS API)? -- ___ Lazarus mailing list Lazarus@lists.lazarus.freepascal.org http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus
Re: [Lazarus] ImagesforLazarus problem
Hi Mattias On 14 August 2012 11:17, Mattias Gaertner nc-gaert...@netcologne.de wrote: Can you test with Lazarus 1.0 RC1? I installed 1.0 RC1 and it is working without problems now. Thanks! Cheers Chavoux -- ___ Lazarus mailing list Lazarus@lists.lazarus.freepascal.org http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus
[Lazarus] Newbie linking question...
Hi guys When I try to install a new package (glScene), everything seems to compile fine, only to stop with a fatal error: /usr/bin/ld: warning: ../link.res contains output sections; did you forget -T? /usr/bin/ld: cannot find -lXxf86vm lazarus.pp(133,1) Error: Error while linking lazarus.pp(133,1) Fatal: There were 1 errors compiling module, stopping what is this lXxf86vm file? I have installed the new Lazarus (lazarus_1.0RC1-0_i386.deb and fpc_2.6.0-120728.deb). Thanks in advance Chavoux -- ___ Lazarus mailing list Lazarus@lists.lazarus.freepascal.org http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus
Re: [Lazarus] Newbie linking question...
Thanks Daniel On 13 August 2012 19:12, Daniel Gaspary dgasp...@gmail.com wrote: I believe you are using ubuntu, and this is happening because a missing library. Try to install the following package: libxxf86vm-dev sudo apt-get install libxxf86vm-dev I am actually using Debian, but that solved the problem. Cheers Chavoux -- ___ Lazarus mailing list Lazarus@lists.lazarus.freepascal.org http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus
[Lazarus] Right tool for the job?
Hi guys I am thinking of writing a new (3D) window manager for linux using OpenGL/glScene in Lazarus. Do you think it is the right tool for the job, or should I rather look at something else using C or C++ directly with openGL? Thanks! Chavoux -- ___ Lazarus mailing list Lazarus@lists.lazarus.freepascal.org http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus
Re: [Lazarus] Right tool for the job?
Hi Graeme On 8 August 2012 10:20, Graeme Geldenhuys graemeg.li...@gmail.com wrote: The Object Pascal language is 100% fine for just about any task GUI app, Console app, CGI / Web app, Services/Daemon apps etc. There are already a few X11 window managers implemented using Object Pascal. XPDE (implemented using Kylix 3), fpwm (available on SourceForge which first used fpGUI Toolki, but not sure what it uses now) etc. I have also seen some window managers implemented using SDL (projects also available on SourceForge), and FPC includes SDL bindings out of the box. Thanks for the answer. While I am very comfortable with the Object Pascal language, I know that the original Delphi was in many case simply a very thin layer over the Windows API (sometimes simply a Pascal translation). That is why I was not so sure about its use on Linux (especially for 3D). I just want to confirm that SDL bindings you talk about is not the same as the JEDI SDL tools? Or does the JEDI SDL components make use of these existing bindings? Thanks again Chavoux -- ___ Lazarus mailing list Lazarus@lists.lazarus.freepascal.org http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus
[Lazarus] ImagesforLazarus problem
Hi Everybody When I want to compile (and install) the ImagesforLazarus package, I get an error: Error: Duplicate identifier IMAGESFORLAZARUS I am trying to install the glScene package and need this package to be installed first. Any ideas why? In the source code I see this: { This file was automatically created by Lazarus. Do not edit! This source is only used to compile and install the package. } unit ImagesforLazarus; interface uses IS THIS CORRECT?-ImagesforLazarus, LazBMP, LazJPG, LazPNG, LazPNM, LazTGA, LazXPM, LazarusPackageIntf; Is it correct for the unit to use itself? If I comment out the ImagesforLazarus part, and then recompile the unit, it asks to reload file from disk and then simply ignore the file I just saved, reverting back to the original file somehow. (If I say to ignore the files from disk, it still gives me this same error message). Thanks Chavoux -- ___ Lazarus mailing list Lazarus@lists.lazarus.freepascal.org http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus