Sign in Join

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

Mailing lists / lazarus / 2013-06

Lazbuild and RunTime Packages

10 messages · 4 people · –

Reply by email Subscribe to this list Your subscription

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

Leonardo M. Ramé
to Leonardo M. Ramé
Leonardo M. Ram? wrote 12 lines
Hi, I'm trying to compile Xidel (http://videlibri.sourceforge.net/xidel.html) on a headless FreeBsd machine, but, as this app requires the run-time package utf8tools I've tried compiling using lazbuild: lazbuild --add-package utf8tools.lpk But I got this: "ERROR: Package utf8tools.lpk is only for runtime." Is there a way to build runtime packages using Lazbuild?.

BTW, I compiled xidel using only fpc following these steps:

1) Remove the {$R *.res} line in xidel.pas
2) Run this:

fpc -Fu../../../components/pascal/import/utf8tools \ -Fu../../../components/pascal/internet/ \
-Fu../../../components/pascal/data/ \
-Fu../../../components/pascal/import/regexpr/source/ \ -Fu../../../../synapse/ -Fu../../../components/pascal/system/ \ -Fu../../../../lazarus/lcl/ -Fi../../../../lazarus/lcl/include \ -Fu../../../../lazarus/components/lazutils/ \
-Fu../../../../lazarus/lcl/widgetset/ xidel.pas

Reply by email

silvioprog
to Leonardo M. Ramé

2013/6/25 Leonardo M. Ram?

Show quoted text 31 lines
On 2013-06-25 18:57:39 -0300, Leonardo M. Ram? wrote: > Hi, I'm trying to compile Xidel > (http://videlibri.sourceforge.net/xidel.html) on a headless FreeBsd > machine, but, as this app requires the run-time package utf8tools I've > tried compiling using lazbuild: > > lazbuild --add-package utf8tools.lpk > > But I got this: > "ERROR: Package utf8tools.lpk is only for runtime." > > Is there a way to build runtime packages using Lazbuild?. > BTW, I compiled xidel using only fpc following these steps: 1) Remove the {$R *.res} line in xidel.pas 2) Run this: fpc -Fu../../../components/pascal/import/utf8tools \ -Fu../../../components/pascal/internet/ \ -Fu../../../components/pascal/data/ \ -Fu../../../components/pascal/import/regexpr/source/ \ -Fu../../../../synapse/ -Fu../../../components/pascal/system/ \ -Fu../../../../lazarus/lcl/ -Fi../../../../lazarus/lcl/include \ -Fu../../../../lazarus/components/lazutils/ \ -Fu../../../../lazarus/lcl/widgetset/ xidel.pas -- Leonardo M. Ram? http://leonardorame.blogspot.com

It would be nice if lazbuild also do:

lazbuild --remove-package utf8tools.lpk
lazbuild --add-rt-package utf8tools.lpk
lazbuild --remove-rt-package utf8tools.lpk

Silvio Cl?cio My public projects - github.com/silvioprog -------------- next part -------------- An HTML attachment was scrubbed... URL: <http://lists.lazarus.freepascal.org/pipermail/lazarus/attachments/20130625/da8aa32b/attachment-0001.html>

Reply by email

Paul Breneman
to Leonardo M. Ramé: Hi, I'm trying to compile Xidel (http://videlibri.sourceforge.net/xidel.html) on a…
Leonardo M. Ram? wrote 12 lines
Hi, I'm trying to compile Xidel (http://videlibri.sourceforge.net/xidel.html) on a headless FreeBsd machine, but, as this app requires the run-time package utf8tools I've tried compiling using lazbuild: lazbuild --add-package utf8tools.lpk But I got this: "ERROR: Package utf8tools.lpk is only for runtime." Is there a way to build runtime packages using Lazbuild?.

Sorry that I can't help with your problem but you've sparked my interest! Xidel looks like a *very* interesting console project.

I've already got a number of Free Pascal mini distributions which use Synapse (which Xidel uses):
http://www.ctrlterm.com/

Maybe I should add FreeBsd releases to the educational project: http://www.turbocontrol.com/helloworld.htm

And then maybe I could add a new page with releases for Xidel? But I see that Xidel needs a little more than just Free Pascal and Synapse. It would seem interesting to see how I can add Lazarus things but still have a small release to compile a console app. Any suggestions?

Reply by email

Leonardo M. Ramé
to Paul Breneman
Paul Breneman wrote 31 lines
On 06/25/2013 04:57 PM, Leonardo M. Ram? wrote: >Hi, I'm trying to compile Xidel >(http://videlibri.sourceforge.net/xidel.html) on a headless FreeBsd >machine, but, as this app requires the run-time package utf8tools I've >tried compiling using lazbuild: > >lazbuild --add-package utf8tools.lpk > >But I got this: >"ERROR: Package utf8tools.lpk is only for runtime." > >Is there a way to build runtime packages using Lazbuild?. > Sorry that I can't help with your problem but you've sparked my interest! Xidel looks like a *very* interesting console project. I've already got a number of Free Pascal mini distributions which use Synapse (which Xidel uses): http://www.ctrlterm.com/ Maybe I should add FreeBsd releases to the educational project: http://www.turbocontrol.com/helloworld.htm And then maybe I could add a new page with releases for Xidel? But I see that Xidel needs a little more than just Free Pascal and Synapse. It would seem interesting to see how I can add Lazarus things but still have a small release to compile a console app. Any suggestions?

Yes, it's a great tool. I stumbled upon it after days of trying to parse a very complex HTML page using sed/grep/awk without success.

I really don't know why the developer (Benito van der Zander) added those Lazarus dependencies when Xidel easily could be compiled using only FPC. Maybe some of us can bring some help by polishing it.

P.S.: If you want the FreeBsd 9.1 64bits executable, I can send it to you, it's 3.7Mb.

Reply by email

Mattias Gaertner
to Leonardo M. Ramé: Hi, I'm trying to compile Xidel (http://videlibri.sourceforge.net/xidel.html) on a…
Show quoted text 6 lines
Hi, I'm trying to compile Xidel (http://videlibri.sourceforge.net/xidel.html) on a headless FreeBsd machine, but, as this app requires the run-time package utf8tools I've tried compiling using lazbuild: lazbuild --add-package utf8tools.lpk

The --add-package options installs a package into the IDE.

But I got this: "ERROR: Package utf8tools.lpk is only for runtime." Is there a way to build runtime packages using Lazbuild?.

lazbuild utf8tools.lpk

Mattias

Reply by email

Paul Breneman
to silvioprog: 2013/6/25 Leonardo M. Ram? It would be nice if lazbuild also do: lazbuild…
silvioprog wrote 40 lines
2013/6/25 Leonardo M. Ram? > On 2013-06-25 18:57:39 -0300, Leonardo M. Ram? wrote: >> Hi, I'm trying to compile Xidel >> (http://videlibri.sourceforge.net/xidel.html) on a headless FreeBsd >> machine, but, as this app requires the run-time package utf8tools I've >> tried compiling using lazbuild: >> >> lazbuild --add-package utf8tools.lpk >> >> But I got this: >> "ERROR: Package utf8tools.lpk is only for runtime." >> >> Is there a way to build runtime packages using Lazbuild?. >> > > BTW, I compiled xidel using only fpc following these steps: > > 1) Remove the {$R *.res} line in xidel.pas > 2) Run this: > > fpc -Fu../../../components/pascal/import/utf8tools \ > -Fu../../../components/pascal/internet/ \ > -Fu../../../components/pascal/data/ \ > -Fu../../../components/pascal/import/regexpr/source/ \ > -Fu../../../../synapse/ -Fu../../../components/pascal/system/ \ > -Fu../../../../lazarus/lcl/ -Fi../../../../lazarus/lcl/include \ > -Fu../../../../lazarus/components/lazutils/ \ > -Fu../../../../lazarus/lcl/widgetset/ xidel.pas > > -- > Leonardo M. Ram? > http://leonardorame.blogspot.com It would be nice if lazbuild also do: lazbuild --remove-package utf8tools.lpk lazbuild --add-rt-package utf8tools.lpk lazbuild --remove-rt-package utf8tools.lpk

I didn't get your second message Leonardo (yet - maybe I will later), but I see that it answers my question of how to compile Xidel with just FPC. Thanks!

Reply by email

silvioprog
to Mattias Gaertner

2013/6/25 Mattias Gaertner

Show quoted text 13 lines
On Tue, 25 Jun 2013 19:43:33 -0300 silvioprog wrote: >[...] > It would be nice if lazbuild also do: > > lazbuild --remove-package utf8tools.lpk > lazbuild --add-rt-package utf8tools.lpk > lazbuild --remove-rt-package utf8tools.lpk Do what? Mattias

--remove-package - Remove package from IDE;
--add-rt-package - Add RT package into IDE; (I saw "lazbuild utf8tools.lpk" on next e-mail, seems that this command do same)
--remove-rt-package - Remove RT package from IDE; (Currently, I need to delete the package folder, because Lazarus keeps finding the package)

Sorry for my delay and my english please.

Silvio Cl?cio My public projects - github.com/silvioprog -------------- next part -------------- An HTML attachment was scrubbed... URL: <http://lists.lazarus.freepascal.org/pipermail/lazarus/attachments/20130702/c482d91d/attachment.html>

Reply by email

Mattias Gaertner
to silvioprog
[...] > > It would be nice if lazbuild also do: --remove-package - Remove package from IDE;

Yes, that's missing.

--add-rt-package - Add RT package into IDE; (I saw "lazbuild utf8tools.lpk" on next e-mail, seems that this command do same)

If you want to compile a package then yes, you should use "lazbuild name.lpk".

--remove-rt-package - Remove RT package from IDE; (Currently, I need to delete the package folder, because Lazarus keeps finding the package)
I'm not sure why you need this. If lazbuild can not find a package then
compiling will fail.

Mattias

Reply by email