Re: [Lazarus] Lazbuild and RunTime Packages

2013-07-02 Thread Mattias Gaertner
On Tue, 2 Jul 2013 01:29:43 -0300
silvioprog silviop...@gmail.com wrote:

[...]
   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

--
___
Lazarus mailing list
Lazarus@lists.lazarus.freepascal.org
http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus


Re: [Lazarus] Lazbuild and RunTime Packages

2013-07-01 Thread silvioprog
2013/6/25 Mattias Gaertner nc-gaert...@netcologne.de

 On Tue, 25 Jun 2013 19:43:33 -0300
 silvioprog silviop...@gmail.com 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
--
___
Lazarus mailing list
Lazarus@lists.lazarus.freepascal.org
http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus


[Lazarus] Lazbuild and RunTime Packages

2013-06-25 Thread Leonardo M . Ramé
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?.

-- 
Leonardo M. Ramé
http://leonardorame.blogspot.com

--
___
Lazarus mailing list
Lazarus@lists.lazarus.freepascal.org
http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus


Re: [Lazarus] Lazbuild and RunTime Packages

2013-06-25 Thread 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

--
___
Lazarus mailing list
Lazarus@lists.lazarus.freepascal.org
http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus


Re: [Lazarus] Lazbuild and RunTime Packages

2013-06-25 Thread silvioprog
2013/6/25 Leonardo M. Ramé l.r...@griensu.com

 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
--
___
Lazarus mailing list
Lazarus@lists.lazarus.freepascal.org
http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus


Re: [Lazarus] Lazbuild and RunTime Packages

2013-06-25 Thread Leonardo M . Ramé
On 2013-06-25 17:48:10 -0500, Paul Breneman wrote:
 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.

-- 
Leonardo M. Ramé
http://leonardorame.blogspot.com

--
___
Lazarus mailing list
Lazarus@lists.lazarus.freepascal.org
http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus


Re: [Lazarus] Lazbuild and RunTime Packages

2013-06-25 Thread Mattias Gaertner
On Tue, 25 Jun 2013 18:57:39 -0300
Leonardo M. Ramé l.r...@griensu.com 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

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


--
___
Lazarus mailing list
Lazarus@lists.lazarus.freepascal.org
http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus


Re: [Lazarus] Lazbuild and RunTime Packages

2013-06-25 Thread Mattias Gaertner
On Tue, 25 Jun 2013 19:43:33 -0300
silvioprog silviop...@gmail.com 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


--
___
Lazarus mailing list
Lazarus@lists.lazarus.freepascal.org
http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus