Re: [fpc-pascal] Apache Modules without LResources
Felipe Monteiro de Carvalho wrote: On Mon, Apr 27, 2009 at 9:58 PM, Giovanni Premuda wrote: Is it possible to use fclweb without linking LResources and a lazarus resource file? Why don't you want to have the resource file? Fundamentally because if I could avoid LResources my module could be compiled using only fpc, as I create all my actions programmatically. Ciao, Giovanni ___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org http://lists.freepascal.org/mailman/listinfo/fpc-pascal
Re: [fpc-pascal] Apache Modules without LResources
ABorka wrote: Not sure about this error, but make sure you are using the latest SVN source code for FPC because recently there were multiple bug fixes done in fcl-web I've using fpc 2.2.4 but I downloaded fcl-web from subversion and applied some of your unapplied patches I found on Mantis, which improve Delphi compatibility quite a bit. I believe this is more a problem of TDataModule, though. ___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org http://lists.freepascal.org/mailman/listinfo/fpc-pascal
Re: [fpc-pascal] Apache Modules without LResources
Joost van der Sluis wrote: Op dinsdag 28-04-2009 om 02:58 uur [tijdzone +0200], schreef Giovanni Premuda: Is it possible to use fclweb without linking LResources and a lazarus resource file? One way is without using modules, select 'File-New-Custom CGI Program' from the lazarus-menu. This seems to produce a simple CGI app, not an apache module. Another way is using the 'normal' web-module, but remove it's resource-file. So you have to create all components at run-time. To do that you can simply remove the LResources from the uses-line, and remove the {$I unit1.lrs} line And this is the first thing I tried but the module fails miserably with error: - *Failed to initialize component: No streaming method available which makes me think the module is actually looking for a resource, especially as the module works when i include a stub webmodule resource. * ___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org http://lists.freepascal.org/mailman/listinfo/fpc-pascal
[fpc-pascal] Apache Modules without LResources
Hello, I'm in the process of converting a relatively complex LMS from Delphi to fpc. In Delphi I was using a descendant of TCustomWebDispatcher instead of a TWebModule in order to avoid depending on DFM resources. Is it possible to use fclweb without linking LResources and a lazarus resource file? Thanks , -- Giovanni ___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org http://lists.freepascal.org/mailman/listinfo/fpc-pascal
Re: [fpc-pascal] Workaround for #0011837 (FPC <= 2.2.2 with GTK >= 2.13)
Vincent Snijders wrote: Anybody (also Giovanni Premuda) anyone spread this all over the Lazarus site OK, I had the wrong impression that the lazarus docs where editable only by insiders, as the main site seems to be. So: by posting forum messages Done and submitting news items How? , anybody (also Giovanni Premuda) can edit the Lazarus readmes and release notes on the wiki Done, http://wiki.lazarus.freepascal.org/Installing_Lazarus#Ubuntu_.2F_Debian anybody (also Giovanni Premuda) can request updates of the debian debs in the debian bug tracker. I don't think this is necessary There are no notes on sourceforge to be edited or updated, so nobody can do that. Could be useful Anybody (also Giovanni Premuda) can spread this everywhere else. Done. (Ubuntu Forums) Do you get it? No, I would like to see this as a news item and on the FAQs on the main site. But it looks like you are understimating the importance of this bug: 1. Potential user (i.e. potential contributor) install lazarus. 2. Potential user launches lazarus and sees an ugly interface 3. Potential user searches around and finds out that he can rebuild lazarus with GTK2 interface 4. Potential user rebuilds lazarus and... the rebuild doesn't work 5. Potential user thinks: I knew it was to good to be true 6. Potential user is neither user nor potential anymore Servus, Giovanni ___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org http://lists.freepascal.org/mailman/listinfo/fpc-pascal
Re: [fpc-pascal] Workaround for #0011837 (FPC <= 2.2.2 with GTK >= 2.13)
Vincent Snijders wrote: Yes, anybody can do that. Sorry? I don't get it. Giovanni ___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org http://lists.freepascal.org/mailman/listinfo/fpc-pascal
Re: [fpc-pascal] Workaround for #0011837 (FPC <= 2.2.2 with GTK >= 2.13)
Michalis Kamburelis wrote: In case someone wonders how to workaround this bug http://mantis.freepascal.org/view.php?id=11837 (occurs with GTK >= 2.13.4, e.g. on Ubuntu 8.10 we have GTK 2.14): I found that the quick workaround that works is to pass --noinhibit-exec to ld, that is "-k--noinhibit-exec" to FPC command-line. The ld will then treat unresolved references as mere warnings, and will produce working executable (assuming your program doesn't actually call obsoleted GTK2 functions). Of course, you can also upgrade to FPC from SVN. Above workaround is useful only if you have to stick to released FPC 2.2.2. Can anyone spread this all over the Lazarus site, the Lazarus readmes and release notes, the lazarus debs, sorceforge and everywhere else??? This has been a major block for anyone trying to use Lazarus under Intrepid. Patching fpc is not really the best way to start... :) Giovanni ___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org http://lists.freepascal.org/mailman/listinfo/fpc-pascal
Re: [fpc-pascal] When are used units recompiled? (wiki page added)
Tom Verhoeff ha scritto: This makes it much less attractive to release units without source code. That may be understandable from an open-source perspective, but in teaching I find it useful or even necessary to provide units without source code. IN TEACHING? Btw. no sane commercial Delphi developer has ever considered using a component without source code at least since Delphi 2.0. Look at the offering of component vendors and you will see that they invariably offer source code licenses. Giovanni ___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org http://lists.freepascal.org/mailman/listinfo/fpc-pascal
[fpc-pascal]Apache modules
Is it possible to create Apache (2.0) modules with FPC? I do understand that I have to translate header files myself, but it seems that Apache 2 is multithreaded, at least on Windows. So, will I have reentrancy problems? TIA Giovanni -- Giovanni Premuda - SoftWerk sas Salita S. Matteo 23/2 - 16123 GENOVA Tel. 010 2471222 - Fax. 010 2470822 http://www.softwerk.it ___ fpc-pascal maillist - [EMAIL PROTECTED] http://lists.freepascal.org/mailman/listinfo/fpc-pascal