Re: [Lazarus] Indy package install
On Sat, 14 Nov 2009 18:39:39 + Howard Page-Clark h...@talktalk.net wrote: Hi I'm trying to install Indy 10.2.0.3 in Lazarus under WinXP. I've followed the readme, and the indylaz.lpk compiles OK, but then will not install in the IDE with the error: C:\lazarus\ide\lazarus.pp(1,1) Fatal: Can't find unit IdGlobal used by IdAboutVCL However the unit IdGlobal is there, freshly compiled exactly where Compiler Options for Package indylaz 10.2.0.3 Other unit files specifies. Anyone know what I'm doing wrong? Compile IDE with -vut, this way the compiler prints what files it finds: See 'Advanced Build Options'. Start IDE with command line parameter --debug-log=log.txt. Mattias -- ___ Lazarus mailing list Lazarus@lists.lazarus.freepascal.org http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus
[Lazarus] gdk_pixbuf
Hi, I started to experiment some more and installed the latest OpenSuse 11.2. It is really cool otherwise (look at the latest KDE, wow), but when I build Lazarus for GTK2 widgets I get error: Compiling lazarus.pp Linking ../lazarus /usr/bin/ld: warning: ../link.res contains output sections; did you forget -T? /usr/bin/ld: cannot find -lgdk_pixbuf-2.0 lazarus.pp(126,1) Error: Error while linking lazarus.pp(126,1) Fatal: There were 1 errors compiling module, stopping However, I have installed gdk_pixbuf. When I run ldconfig as root, see... # ldconfig -p | grep gdk_pixbuf libgvplugin_gdk_pixbuf.so.5 (libc6) = /usr/lib/graphviz/libgvplugin_gdk_pixbuf.so.5 libgvplugin_gdk_pixbuf.so (libc6) = /usr/lib/graphviz/libgvplugin_gdk_pixbuf.so libgdk_pixbuf_xlib.so.2 (libc6) = /usr/lib/libgdk_pixbuf_xlib.so.2 libgdk_pixbuf_xlib.so (libc6) = /usr/lib/libgdk_pixbuf_xlib.so libgdk_pixbuf_xlib-2.0.so.0 (libc6) = /usr/lib/libgdk_pixbuf_xlib-2.0.so.0 libgdk_pixbuf.so.2 (libc6) = /usr/lib/libgdk_pixbuf.so.2 libgdk_pixbuf.so (libc6) = /usr/lib/libgdk_pixbuf.so libgdk_pixbuf-2.0.so.0 (libc6) = /usr/lib/libgdk_pixbuf-2.0.so.0 Last line should be the one Lazarus needs I think. Who has Linux? What name the lib has there? What means warning: ../link.res contains output sections; did you forget -T? Earlier there was an error for missing X11 lib but installing X11-devel package helped. Maybe I will try deleting and reloading the whole Lazarus source. I even installed FPC 2.4.0 RC1 but still get the same error. (I had to ignore a dependency for libtinfo.so.5 but that is not a problem. Seems to affect the text IDE only, not the compiler). Other ideas? Juha Manninen -- ___ Lazarus mailing list Lazarus@lists.lazarus.freepascal.org http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus
Re: [Lazarus] gdk_pixbuf
Hello Juha, perhaps you have to do ln -s libgdk_pixbuf-2.0.so.0 libgdk_pixbuf-2.0.so in /usr/lib as root. Regards, Stephan -- ___ Lazarus mailing list Lazarus@lists.lazarus.freepascal.org http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus
Re: [Lazarus] cross platform [Re: Lazarus Goal]
Unfortunately this brings up the idea of aesthetic, Consider the Preferences dialog in Mac Leopard's Mail client: http://web.fastermac.net/~MacPgmr/Lazarus/Screenshots/mail_prefs.jpg http://web.fastermac.net/%7EMacPgmr/Lazarus/Screenshots/mail_prefs.jpg I don't think this dialog has a lot do to with aesthetic. It looks cheap to me. The Icons look like randomly collected from the net. No common height or color style, strange vertical alignment (see RSS). Vertical alignment is almost inexistent anyway. Look at the checkboxes vs. the comboboxes. comboboxes blue green red don't even have the same distance Nah, really... ;-) -- ___ Lazarus mailing list Lazarus@lists.lazarus.freepascal.org http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus
Re: [Lazarus] gdk_pixbuf
On Sun, 15 Nov 2009 12:32:29 +0200 Juha Manninen juha.manni...@phnet.fi wrote: Hi, I started to experiment some more and installed the latest OpenSuse 11.2. It is really cool otherwise (look at the latest KDE, wow), but when I build Lazarus for GTK2 widgets I get error: Compiling lazarus.pp Linking ../lazarus /usr/bin/ld: warning: ../link.res contains output sections; did you forget -T? /usr/bin/ld: cannot find -lgdk_pixbuf-2.0 lazarus.pp(126,1) Error: Error while linking lazarus.pp(126,1) Fatal: There were 1 errors compiling module, stopping However, I have installed gdk_pixbuf. When I run ldconfig as root, see... # ldconfig -p | grep gdk_pixbuf libgvplugin_gdk_pixbuf.so.5 (libc6) = /usr/lib/graphviz/libgvplugin_gdk_pixbuf.so.5 libgvplugin_gdk_pixbuf.so (libc6) = /usr/lib/graphviz/libgvplugin_gdk_pixbuf.so libgdk_pixbuf_xlib.so.2 (libc6) = /usr/lib/libgdk_pixbuf_xlib.so.2 libgdk_pixbuf_xlib.so (libc6) = /usr/lib/libgdk_pixbuf_xlib.so libgdk_pixbuf_xlib-2.0.so.0 (libc6) = /usr/lib/libgdk_pixbuf_xlib-2.0.so.0 libgdk_pixbuf.so.2 (libc6) = /usr/lib/libgdk_pixbuf.so.2 libgdk_pixbuf.so (libc6) = /usr/lib/libgdk_pixbuf.so libgdk_pixbuf-2.0.so.0 (libc6) = /usr/lib/libgdk_pixbuf-2.0.so.0 It's missing: libgdk_pixbuf-2.0.so (libc6) = /usr/lib/libgdk_pixbuf-2.0.so Last line should be the one Lazarus needs I think. Who has Linux? What name the lib has there? This is installed by the libgtk2.0-dev under debian/ubuntu. Under Fedora 11 the packages are called gtk2-devel glibc-devel. I don't know how it is called under OpenSuSE. What means warning: ../link.res contains output sections; did you forget -T? See here: http://lists.freepascal.org/lists/fpc-devel/2009-May/016828.html Earlier there was an error for missing X11 lib but installing X11-devel package helped. Maybe I will try deleting and reloading the whole Lazarus source. I even installed FPC 2.4.0 RC1 but still get the same error. (I had to ignore a dependency for libtinfo.so.5 but that is not a problem. Seems to affect the text IDE only, not the compiler). Mattias -- ___ Lazarus mailing list Lazarus@lists.lazarus.freepascal.org http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus
Re: [Lazarus] run-time vs desgin-time packages
On Sat, 14 Nov 2009 17:31:07 + Martin laza...@mfriebe.de wrote: Mattias Gaertner wrote: On Sat, 14 Nov 2009 17:27:07 +0200 ik ido...@gmail.com wrote: Hello, I'm trying to explain desgin-time vs run-time packages, and it seems that I don't really fully understand them myself. Desgin time are packages that changes the IDE or adds components etc... Run-time are used only when compiling the program itself. That much I understand (I hope). However, I can't install run-time packages, so how does Lazarus knows about them ? See http://wiki.lazarus.freepascal.org/Lazarus_Packages#Design_Time_vs_Run_Time_package This link seems to assume that a package is always either design, or runtime or both? Correct. AFAIK: in delphi you can have the same package as onr runtime, and one design time package. Same under lazarus. You can duplicate code and write any redundancy you like. But I don't recommend it. That is you have TMyComponent. Instead of having any if csDesigning in ComponetFlags you have a designtime package (containing your component,with all tghe cdesign code, and maybe prop-editors or the like) and you have your runtime package, that has the same component, but without csdesign code. That's possible. But I have hardly seen such duplication. Now yes: the ide only needs to know about the design package, in order for you to put the component on your page. = but in this case the IDE would add the design time package as package/unit requirements to your project. And it should not. It should add the runtime package instead. Then the run time package provides the design time package (Package Editor / Options / Provides). Maybe that is something that can be archive with build-modes? While compilng the IDE, you use the design-time build mode. While compiling an application you use the run-time build-mode. (The packages must have the ppu for both build-modes in it's unit directory). Mattias -- ___ Lazarus mailing list Lazarus@lists.lazarus.freepascal.org http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus
Re: [Lazarus] gdk_pixbuf
On Sunday 15 November 2009 12:42, Juha Manninen wrote: I managed to compile it finally. I had to make the sym-links you mentioned and then some more: ln -s libgobject-2.0.so.0libgobject-2.0.so ln -s libglib-2.0.so.0libglib-2.0.so ln -s libgthread-2.0.so.0libgthread-2.0.so ln -s libgmodule-2.0.so.0libgmodule-2.0.so ln -s libcairo.so.2 libcairo.so Someone should fix this issue. Is it a Mandrive / OpenSuse issue or FPC issue, I don't know? If you installed devel packages, and there's no symlinks then it's your distro problem, but if you didn't install devel packages then you are bug :) FC11 had such bug (no needed symlinks, but devel packages installed) somewhere around beta 1. zeljko -- ___ Lazarus mailing list Lazarus@lists.lazarus.freepascal.org http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus
[Lazarus] Astronomy Software
For what it is worth I have created a project on SourceForge (http://sourceforge.net/projects/messier/) with my Astronomy Program. It is a basic Observing Planning and Logging Program. It is of course written in Lazarus (I converted it from Delphi) and got most of the Algorithyms from Practical Astronomy with Your Calculator By Peter Duffet-Smith. There are two major things I would like to add to it: 1. Using a report generator instead of Printer.Canvas.TextOut Statements. 2. I would like to merge it with Planetarium Program. I could do this with Cartes Du Ciel 2.76, but not the newer SkyChart and since my primary audience is going to be Linux Users, I really don't want to use a Windows App. Terry -- ___ Lazarus mailing list Lazarus@lists.lazarus.freepascal.org http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus
Re: [Lazarus] gdk_pixbuf
On sunnuntai, 15. marraskuuta 2009 14:40:24 zeljko wrote: If you installed devel packages, and there's no symlinks then it's your distro problem, but if you didn't install devel packages then you are bug :) FC11 had such bug (no needed symlinks, but devel packages installed) somewhere around beta 1. I had at least gdk_pixbuf devel package installed but not many other devel packages. Actually only the library is needed for Lazarus compilation but the devel package adds some sym-links for them. I have no energy to investigate this more. It works now. Juha Manninen -- ___ Lazarus mailing list Lazarus@lists.lazarus.freepascal.org http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus
Re: [Lazarus] Astronomy Software
Terry, I've found that generating reports as raw RTF and then viewing them with your user's word processor is a good cross-platform solution and lets you use the full power of RTF, which is supported by all word processors. Tools are here: http://web.fastermac.net/~MacPgmr/XDev/XDevStatus.html#RTF On Mac it would be a lot easier since all you have to do is provide a print mechanism and the OS X Print dialog automatically gives you print preview and save to PDF, but the other platforms don't have that. Why limit your app to the teeny tiny world of Linux tinkerers? Don't you think the Win/Mac communities could benefit from your app? It's not really that difficult to maintain a single code base that supports Delphi on Windows and Lazarus on all platforms. Thanks. -Phil - Terry A. Haimann te...@haimannonline.com wrote: For what it is worth I have created a project on SourceForge (http://sourceforge.net/projects/messier/) with my Astronomy Program. It is a basic Observing Planning and Logging Program. It is of course written in Lazarus (I converted it from Delphi) and got most of the Algorithyms from Practical Astronomy with Your Calculator By Peter Duffet-Smith. There are two major things I would like to add to it: 1. Using a report generator instead of Printer.Canvas.TextOut Statements. 2. I would like to merge it with Planetarium Program. I could do this with Cartes Du Ciel 2.76, but not the newer SkyChart and since my primary audience is going to be Linux Users, I really don't want to use a Windows App. Terry -- ___ 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
[Lazarus] Last post to fpc list, please / cross posted to lazarus list [Re: [fpc-pascal] Lazarus]
Since this is purely lazarus related, I cross post this, and set reply-to to lazarus list. @Rainer: You can read relevant posts in the archive: http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus Rainer Stratmann wrote: Am Sunday 15 November 2009 20:03:21 schrieb Martin: Interesting. I almost never want to search the entire text (at least not with the normal search). If I want to search the entire text, I much prefer find in files (all open units), because it displays the results in a nice list. Martin Why do you want to search 'from cursor'? The feature 'find in files' is interesting. I did not use it before. If for example I am at the first relevant instance of an identifier. e.g a procedure-local variable, and I am at it's declaration. If the same word occurs earlier in the text, it is a different variable, belonging to a different procedure. Truth is I use the find dialog very seldom. If I need to search I do a incremental search (search as you type) via ctrl-e = it does a better highlighting If I need to do a replace (usually limited to one procedure) I used to use the find/replace, but now I use syncro-mode (select block, press icon on gutter / or select and ctrl-j) Of course, not every search is starting from the cursor, but as I said, then I use find in files. The find dialog is (if used at all) reserved to find the next occurrence And if I ever really want to use find, from top of file, I save myself the need of changing the option, I use: ctrl-home ctrl-f and I search from cursor But it all comes down to personal likings. : I did it may way ... Martin -- ___ Lazarus mailing list Lazarus@lists.lazarus.freepascal.org http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus
Re: [Lazarus] gdk_pixbuf
On sunnuntai, 15. marraskuuta 2009 12:57:45 Mattias Gaertner wrote: What means warning: ../link.res contains output sections; did you forget -T? See here: http://lists.freepascal.org/lists/fpc-devel/2009-May/016828.html Ok. After reading I still don't know how to get rid of the warning. Juha -- ___ Lazarus mailing list Lazarus@lists.lazarus.freepascal.org http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus
Re: [Lazarus] Astronomy Software
Terry A. Haimann wrote: For what it is worth I have created a project on SourceForge (http://sourceforge.net/projects/messier/) with my Astronomy Program. It is a basic Observing Planning and Logging Program. It is of course written in Lazarus (I converted it from Delphi) and got most of the Algorithyms from Practical Astronomy with Your Calculator By Peter Duffet-Smith. There are two major things I would like to add to it: 1. Using a report generator instead of Printer.Canvas.TextOut Statements. 2. I would like to merge it with Planetarium Program. I could do this with Cartes Du Ciel 2.76, but not the newer SkyChart and since my primary audience is going to be Linux Users, I really don't want to use a Windows App. I am curious to know why you can merge it with Cartes Du Ciel 2.76, but not 3. 0.x.x ? (I presume that is what you mean) John -- ___ Lazarus mailing list Lazarus@lists.lazarus.freepascal.org http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus
Re: [Lazarus] gdk_pixbuf
yes, perhaps the FPC and/or Lazarus installer can determine the OS it is being installed on and it can create these links as necessary? that may require root access, though... some may not want to provide that... especially if it is an install for only one user... I think this is not a good idea. Developers MUST take care of the system's internals. It should not be problem for a responsible developer (hey, it is just a devel package). On windows systems, developers tends to ignore fundamental principles. Unix, Linux, etc. requires some background. That is why unix-like systems are more reliable than windows systems: unix's developers know unix, windows developers don't know windows. Gustavo ps: excuse my english -- ___ Lazarus mailing list Lazarus@lists.lazarus.freepascal.org http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus
Re: [Lazarus] gdk_pixbuf
On Mon, 16 Nov 2009 01:03:15 +0200 Juha Manninen juha.manni...@phnet.fi wrote: On sunnuntai, 15. marraskuuta 2009 12:57:45 Mattias Gaertner wrote: What means warning: ../link.res contains output sections; did you forget -T? See here: http://lists.freepascal.org/lists/fpc-devel/2009-May/016828.html Ok. After reading I still don't know how to get rid of the warning. It means: the warning is just a warning and the FPC devels will live with it. You can not get rid of it. Mattias -- ___ Lazarus mailing list Lazarus@lists.lazarus.freepascal.org http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus
Re: [Lazarus] gdk_pixbuf
Gustavo Enrique Jimenez schrieb: Developers MUST take care of the system's internals. It should not be problem for a responsible developer (hey, it is just a devel package). On windows systems, developers tends to ignore fundamental principles. Unix, Linux, etc. requires some background. That is why unix-like systems are more reliable than windows systems: unix's developers know unix, windows developers don't know windows. Developers should care of their code, while system maintenance is the job of administrators. A system administrator may be available in a company, but not for a private (desktop) system. Thus a private system is as reliable as its user is, when it comes to system administration tasks. DoDi -- ___ Lazarus mailing list Lazarus@lists.lazarus.freepascal.org http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus