Sign in Join

Live chat for Free Pascal, Lazarus, Delphi and every Pascal programmer.

Mailing lists / fpc-pascal / 2010-10

Changes in fcl-web

12 messages · 3 people · –

Reply by email Subscribe to this list Your subscription

Read-only archive. Use j and k to move between messages.

leledumbo

Where do these methods go?

protected function TCustWebApplication.WaitForRequest(out ARequest :
TRequest; out AResponse : TResponse) : boolean;
protected procedure TCustWebApplication.EndRequest(ARequest :
TRequest;AResponse : TResponse);
protected procedure TCustWebApplication.DoHandleRequest(ARequest :
TRequest;AResponse : TResponse);

I'd like to improve http://services.cnoc.nl/lazarus/index/fclweb WebDesign package so that it can be compiled with latest svn.

View this message in context: http://free-pascal-general.1045716.n5.nabble.com/Changes-in-fcl-web-tp3239906p3239906.html Sent from the Free Pascal - General mailing list .

Reply by email

Joost van der Sluis
to leledumbo
leledumbo wrote 11 lines
Where do these methods go? protected function TCustWebApplication.WaitForRequest(out ARequest : TRequest; out AResponse : TResponse) : boolean; protected procedure TCustWebApplication.EndRequest(ARequest : TRequest;AResponse : TResponse); protected procedure TCustWebApplication.DoHandleRequest(ARequest : TRequest;AResponse : TResponse); I'd like to improve http://services.cnoc.nl/lazarus/index/fclweb WebDesign package so that it can be compiled with latest svn.

They are up-to-date available in the fppkg repository. See the fppkg wiki page on how to set it up. Then:

fppkg install webdesign

will do the trick. And if not: tell me. Maybe you're the first one who
uses it.

Joost.

Reply by email

Joost van der Sluis
to Joost van der Sluis
Joost van der Sluis wrote 20 lines
On Wed, 2010-10-27 at 20:07 -0700, leledumbo wrote: > Where do these methods go? > > protected function TCustWebApplication.WaitForRequest(out ARequest : > TRequest; out AResponse : TResponse) : boolean; > protected procedure TCustWebApplication.EndRequest(ARequest : > TRequest;AResponse : TResponse); > protected procedure TCustWebApplication.DoHandleRequest(ARequest : > TRequest;AResponse : TResponse); > > I'd like to improve http://services.cnoc.nl/lazarus/index/fclweb WebDesign > package so that it can be compiled with latest svn. They are up-to-date available in the fppkg repository. See the fppkg wiki page on how to set it up. Then: fppkg install webdesign will do the trick. And if not: tell me. Maybe you're the first one who uses it.

Oh, and when they are installed, you can find the lazarus-packages at the location where you've installed the packages.

On linux, this is by default ~/.fppkg/ The lazarus-packages are in share/doc/

Joost.

Reply by email

leledumbo
to Joost van der Sluis
Show quoted text 7 lines
They are up-to-date available in the fppkg repository. See the fppkg wiki page on how to set it up. Then: fppkg install webdesign will do the trick. And if not: tell me. Maybe you're the first one who uses it.

Seems like fppkg doesn't support proxy yet, so I can't download it (I use campus internet which is behind a proxy). Could you please attach it?

View this message in context: http://free-pascal-general.1045716.n5.nabble.com/Changes-in-fcl-web-tp3239906p3240589.html Sent from the Free Pascal - General mailing list .

Reply by email

Joost van der Sluis
to leledumbo
leledumbo wrote 10 lines
> They are up-to-date available in the fppkg repository. See the fppkg > wiki page on how to set it up. Then: > > fppkg install webdesign > > will do the trick. And if not: tell me. Maybe you're the first one who > uses it. Seems like fppkg doesn't support proxy yet, so I can't download it (I use campus internet which is behind a proxy). Could you please attach it?

Good catch. I'll add proxy support.

Files can be downloaded here:
http://www.freepascal.org/repository/embweb-0.9.0-1.zip http://www.freepascal.org/repository/webdesign-0.9.0-1.zip http://www.freepascal.org/repository/lnet-0.6.4-2446.zip

Joost

Reply by email

Joost van der Sluis
to leledumbo
leledumbo wrote
Thanks, I'll try as soon as I , the Gecko and jQuery package can still be used from the last WebDesign package or have the dependencies been dropped?

Geckoport was commented-out, because it only worked on Windows. Now it works on other platforms too, I'll add a fpmake package for it.

The jQuery package also doesn't have a fpmake package yet. I'll add that too.

Joost.

Reply by email

Joost van der Sluis
to leledumbo
leledumbo wrote 5 lines
> Geckoport was commented-out, because it only worked on Windows. Now it > works on other platforms too, I'll add a fpmake package for it. So, in the download package you attach, what would the html previewer be instead of Gecko?

There is none, altough if you use qt, you can use WebKit. (There's a define for that)

You can also download geckoport (svn-version, see the wiki) and set a define so that Gecko is used.

Joost.

Reply by email

Julio C. Taborda
to Joost van der Sluis: Oh, and when they are installed, you can find the lazarus-packages at the location where…

Hi Joost,

Joost van der Sluis wrote 8 lines
> They are up-to-date available in the fppkg repository. See the fppkg > wiki page on how to set it up. Then: > > fppkg install webdesign > > will do the trick. And if not: tell me. Maybe you're the first one > who uses it.

I just tried to install webdesign package and I get the following error: Using latest version of fpc 2.5.1 from svn.

~$ fppkg install webdesign -v
[webdesign] Dependency on package rtl <none>, installed 2.5.1-1, available - (OK) [webdesign] Dependency on package fcl-base <none>, installed 2.5.1-1, available - (OK) [webdesign] Dependency on package fcl-xml <none>, installed 2.5.1-1, available - (OK) [webdesign] Dependency on package fcl-web <none>, installed 2.5.1-1, available - (OK) [webdesign] Dependency on package lnet <none>, installed 0.6.4-2446, available 0.6.4-2446 (OK) [webdesign] CurrentDir: "/home/jctaborda/.fppkg/build/webdesign" [webdesign] Unzipping "/home/jctaborda/.fppkg/archives/webdesign-0.9.0-1.zip" [webdesign] CurrentDir: "/home/jctaborda/.fppkg/build/webdesign" [webdesign] Executing: "/usr/bin/fpc -n -Fu/usr/lib/fpc/2.5.1/units/i386-linux/hash/ -Fu/usr/lib/fpc/2.5.1/units/i386-linux/paszlib/ -Fu/usr/lib/fpc/2.5.1/units/i386-linux/fcl-process/ -Fu/usr/lib/fpc/2.5.1/units/i386-linux/fpmkunit/ -Fu/usr/lib/fpc/2.5.1/units/i386-linux/rtl/ -FUbuild_fpmake_4CCD62701A56 -vi -O2 -XXs fpmake.pp" Target OS: Linux for i386
Compiling fpmake.pp
Linking fpmake
/usr/bin/ld: warning: link.res contains output sections; did you forget -T? 41 lines compiled, 0.8 sec
[webdesign] CurrentDir: "/home/jctaborda/.fppkg/build/webdesign" [webdesign] Executing: "fpmake build --nofpccfg --verbose --compiler=/usr/bin/fpc --cpu=i386 --os=linux --prefix=/home/jctaborda/.fppkg/ --localunitdir=/home/jctaborda/.fppkg/lib/fpc/2.5.1/units/i386-linux/ --globalunitdir=/usr/lib/fpc/2.5.1/units/i386-linux/" Compiling package webdesign
Creating output dir "units/i386-linux"
Compiling target fphtmlcomp
Executing command "/usr/bin/fpc -n -Tlinux -FUunits/i386-linux -Fu/usr/lib/fpc/2.5.1/units/i386-linux/rtl -Fu/usr/lib/fpc/2.5.1/units/i386-linux/fcl-base -Fu/usr/lib/fpc/2.5.1/units/i386-linux/fcl-xml -Fu/usr/lib/fpc/2.5.1/units/i386-linux/fcl-web -Sm fphtmlcomp.pp" Fatal: Can't find unit db used by fphtml
Fatal: Compilation aborted
Error: /usr/bin/ppc386 returned an error exitcode (normal if you did not specify a source file to be compiled) The installer encountered the following error:
External command "/usr/bin/fpc" failed with exit code 1 The FPC Package tool encountered the following error: [webdesign] Execution of FPMake build failed

Reply by email

Joost van der Sluis
to Julio C. Taborda
Julio C. Taborda wrote
I just tried to install webdesign package and I get the following error: Using latest version of fpc 2.5.1 from svn.
Show quoted text 28 lines
~$ fppkg install webdesign -v [webdesign] Dependency on package rtl <none>, installed 2.5.1-1, available - (OK) [webdesign] Dependency on package fcl-base <none>, installed 2.5.1-1, available - (OK) [webdesign] Dependency on package fcl-xml <none>, installed 2.5.1-1, available - (OK) [webdesign] Dependency on package fcl-web <none>, installed 2.5.1-1, available - (OK) [webdesign] Dependency on package lnet <none>, installed 0.6.4-2446, available 0.6.4-2446 (OK) [webdesign] CurrentDir: "/home/jctaborda/.fppkg/build/webdesign" [webdesign] Unzipping "/home/jctaborda/.fppkg/archives/webdesign-0.9.0-1.zip" [webdesign] CurrentDir: "/home/jctaborda/.fppkg/build/webdesign" [webdesign] Executing: "/usr/bin/fpc -n -Fu/usr/lib/fpc/2.5.1/units/i386-linux/hash/ -Fu/usr/lib/fpc/2.5.1/units/i386-linux/paszlib/ -Fu/usr/lib/fpc/2.5.1/units/i386-linux/fcl-process/ -Fu/usr/lib/fpc/2.5.1/units/i386-linux/fpmkunit/ -Fu/usr/lib/fpc/2.5.1/units/i386-linux/rtl/ -FUbuild_fpmake_4CCD62701A56 -vi -O2 -XXs fpmake.pp" Target OS: Linux for i386 Compiling fpmake.pp Linking fpmake /usr/bin/ld: warning: link.res contains output sections; did you forget -T? 41 lines compiled, 0.8 sec [webdesign] CurrentDir: "/home/jctaborda/.fppkg/build/webdesign" [webdesign] Executing: "fpmake build --nofpccfg --verbose --compiler=/usr/bin/fpc --cpu=i386 --os=linux --prefix=/home/jctaborda/.fppkg/ --localunitdir=/home/jctaborda/.fppkg/lib/fpc/2.5.1/units/i386-linux/ --globalunitdir=/usr/lib/fpc/2.5.1/units/i386-linux/" Compiling package webdesign Creating output dir "units/i386-linux" Compiling target fphtmlcomp Executing command "/usr/bin/fpc -n -Tlinux -FUunits/i386-linux -Fu/usr/lib/fpc/2.5.1/units/i386-linux/rtl -Fu/usr/lib/fpc/2.5.1/units/i386-linux/fcl-base -Fu/usr/lib/fpc/2.5.1/units/i386-linux/fcl-xml -Fu/usr/lib/fpc/2.5.1/units/i386-linux/fcl-web -Sm fphtmlcomp.pp" Fatal: Can't find unit db used by fphtml Fatal: Compilation aborted Error: /usr/bin/ppc386 returned an error exitcode (normal if you did not specify a source file to be compiled) The installer encountered the following error: External command "/usr/bin/fpc" failed with exit code 1 The FPC Package tool encountered the following error: [webdesign] Execution of FPMake build failed

Oh, yes, that's true. There's a bug in fpcmake which generates invalid dependency-files. That leads to problems with a mixed fpmake/fpcmake setup.

You can solve this by installing fcl-web using fppkg also (instead of using the normal 'make install'. Make the packages/fcl-web directory the current directory on a command prompt and do 'fppkg install'.

Tomorrow I'll change the webdesign package. (Problem is that it depends on fcl-web, which depends on fcl-db. So the fcl-db unit-path has to be included. But because the dependency from fcl-web on fcl-db isn't detected, this isn't done. I'll add a direct dependency on fcl-db to the fcl-web package to solve this temporary)

Joost.

Reply by email

leledumbo
to Joost van der Sluis: There is none, altough if you use qt, you can use WebKit. (There's a define for that) You…

After installing all components, I try to open one of the examples (from 03-12 version of webdesign package) and I got: ERROR: There are more GeckoComponentsShutdown then GeckoComponentsStartup.

And how do I use the components actually? The examples have lfm consisting of THtml containing THead etc. But I can't make THtml as parent of THead in the designer.

View this message in context: http://free-pascal-general.1045716.n5.nabble.com/Changes-in-fcl-web-tp3239906p3244666.html Sent from the Free Pascal - General mailing list .

Reply by email