Re: [lazarus] Search paths
I'm still running into a little trouble here developing a console cgi application. I created a package Pow for powutils, added all units etc etc. The lazarus packages systems asked for the paths, all well.. Compiled and ready to go.. All units nice in a lib path as it should be. And from inside lazarus everything is fine. I depend a lot on batch files and othe rscripts to create and install my programs. So outside lazarus i'm using the command line with fpc -S2cgi --gl -vewnhi -l -Fu. mycgiprogram. Now the compiler cannot find powutils or LazarusPackageIntf. So i need to add both paths again to the fpc.cfg (and the situation is pretty much the same as before i started with the packages) Is this normal, or i'm i overlooking something? How can i share the nice package idea's with the compiler? Greetings, Marius Vincent Snijders wrote: Marius schreef: Vincent Snijders wrote: Create a package for the units. Should i create a (dummy) package to add search paths to lazarus??? No a real package to gather compiler options for a set of units. Installing and recompiling the whole ide just to add a few paths sounds kind of stupid. (The tools do not contain any design stuff). Then again if this works it saves me a lot of typing You don't need to rebuild the IDE, just create one package per directory and add the package to the project in the project inspector. Vincent _ To unsubscribe: mail [EMAIL PROTECTED] with unsubscribe as the Subject archives at http://www.lazarus.freepascal.org/mailarchives _ To unsubscribe: mail [EMAIL PROTECTED] with unsubscribe as the Subject archives at http://www.lazarus.freepascal.org/mailarchives
Re: [lazarus] Search paths
On Sat, 02 Feb 2008 17:30:16 +0100 Marius [EMAIL PROTECTED] wrote: I'm still running into a little trouble here developing a console cgi application. I created a package Pow for powutils, added all units etc etc. The lazarus packages systems asked for the paths, all well.. Compiled and ready to go.. All units nice in a lib path as it should be. And from inside lazarus everything is fine. I depend a lot on batch files and othe rscripts to create and install my programs. So outside lazarus i'm using the command line with fpc -S2cgi --gl -vewnhi -l -Fu. mycgiprogram. Now the compiler cannot find powutils or LazarusPackageIntf. So i need to add both paths again to the fpc.cfg (and the situation is pretty much the same as before i started with the packages) Is this normal, or i'm i overlooking something? How can i share the nice package idea's with the compiler? lazbuild yourproject.lpi Mattias _ To unsubscribe: mail [EMAIL PROTECTED] with unsubscribe as the Subject archives at http://www.lazarus.freepascal.org/mailarchives
Re: [lazarus] Search paths
On Sat, 2 Feb 2008, Marius wrote: I'm still running into a little trouble here developing a console cgi application. I created a package Pow for powutils, added all units etc etc. The lazarus packages systems asked for the paths, all well.. Compiled and ready to go.. All units nice in a lib path as it should be. And from inside lazarus everything is fine. I depend a lot on batch files and othe rscripts to create and install my programs. So outside lazarus i'm using the command line with fpc -S2cgi --gl -vewnhi -l -Fu. mycgiprogram. Now the compiler cannot find powutils or LazarusPackageIntf. So i need to add both paths again to the fpc.cfg (and the situation is pretty much the same as before i started with the packages) Is this normal, or i'm i overlooking something? How can i share the nice package idea's with the compiler? There are 2 ways: When lazarus compiles a project, it leaves a file yourproject.compiled this xml file contains the complete commandline to compile your project. You can test the compiler command-line in the compiler options, that should give you the complete command-line as well. Michael. Greetings, Marius Vincent Snijders wrote: Marius schreef: Vincent Snijders wrote: Create a package for the units. Should i create a (dummy) package to add search paths to lazarus??? No a real package to gather compiler options for a set of units. Installing and recompiling the whole ide just to add a few paths sounds kind of stupid. (The tools do not contain any design stuff). Then again if this works it saves me a lot of typing You don't need to rebuild the IDE, just create one package per directory and add the package to the project in the project inspector. Vincent _ To unsubscribe: mail [EMAIL PROTECTED] with unsubscribe as the Subject archives at http://www.lazarus.freepascal.org/mailarchives _ To unsubscribe: mail [EMAIL PROTECTED] with unsubscribe as the Subject archives at http://www.lazarus.freepascal.org/mailarchives _ To unsubscribe: mail [EMAIL PROTECTED] with unsubscribe as the Subject archives at http://www.lazarus.freepascal.org/mailarchives
Re: [lazarus] Search paths
lazbuild yourproject.lpi Mattias So that was the whole trickery (i never used lazbuild before) Thanks! _ To unsubscribe: mail [EMAIL PROTECTED] with unsubscribe as the Subject archives at http://www.lazarus.freepascal.org/mailarchives
Re: [lazarus] Search paths
I keep learning from my mistakes, i did not even what the .compiled was and why it was there. Now i can turn the .compiled with little effort into a batch file! Thanks. Michael Van Canneyt wrote: Is this normal, or i'm i overlooking something? How can i share the nice package idea's with the compiler? There are 2 ways: When lazarus compiles a project, it leaves a file yourproject.compiled this xml file contains the complete commandline to compile your project. You can test the compiler command-line in the compiler options, that should give you the complete command-line as well. Michael. _ To unsubscribe: mail [EMAIL PROTECTED] with unsubscribe as the Subject archives at http://www.lazarus.freepascal.org/mailarchives
Re: [lazarus] Search paths
On 02/02/2008, Marius [EMAIL PROTECTED] wrote: I keep learning from my mistakes, i did not even what the .compiled was and why it was there. Now i can turn the .compiled with little effort into a batch file! The .compiled is a neat trick. :-) But you have a 3rd option as well. Use a extra config file with FPC. example: -[ extrafpc.cfg ]- -FUunits -Fu../../../lib -Xs -XX -CX [ end ]-- The above can contain whatever paths and command line options you need. Then add it to the fpc as a parameter. The @ sign means it uses the default fpc.cfg file and then adds whatever is in extrafpc.cfg to the end. fpc @extrafpc.cfg myproject.lpr Regards, - Graeme - ___ fpGUI - a cross-platform Free Pascal GUI toolkit http://opensoft.homeip.net/fpgui/ _ To unsubscribe: mail [EMAIL PROTECTED] with unsubscribe as the Subject archives at http://www.lazarus.freepascal.org/mailarchives
Re: [lazarus] Search paths
On 30/01/2008, Marius [EMAIL PROTECTED] wrote: I need to add paths for indy and a few from lazarus\components for example which i mostly create at runtime, constantly changing the project compiler options (other sources only used by IDE) is becoming boring. Is there a place in lazarus to add search paths so lazarus can open 3thparty units in the editor (much like the current search paths for the debugger). Or i'm i overlooking something obvious? you can define it fpc.cfg (inside an ifdef)? henry _ To unsubscribe: mail [EMAIL PROTECTED] with unsubscribe as the Subject archives at http://www.lazarus.freepascal.org/mailarchives
[lazarus] Search paths
I need to add paths for indy and a few from lazarus\components for example which i mostly create at runtime, constantly changing the project compiler options (other sources only used by IDE) is becoming boring. Is there a place in lazarus to add search paths so lazarus can open 3thparty units in the editor (much like the current search paths for the debugger). Or i'm i overlooking something obvious? _ To unsubscribe: mail [EMAIL PROTECTED] with unsubscribe as the Subject archives at http://www.lazarus.freepascal.org/mailarchives
Re: [lazarus] Search paths
Marius schreef: I need to add paths for indy and a few from lazarus\components for example which i mostly create at runtime, constantly changing the project compiler options (other sources only used by IDE) is becoming boring. Is there a place in lazarus to add search paths so lazarus can open 3thparty units in the editor (much like the current search paths for the debugger). Or i'm i overlooking something obvious? Create a package for the units. Vincent _ To unsubscribe: mail [EMAIL PROTECTED] with unsubscribe as the Subject archives at http://www.lazarus.freepascal.org/mailarchives
Re: [lazarus] Search paths
Zitat von Marius [EMAIL PROTECTED]: Vincent Snijders wrote: Create a package for the units. Should i create a (dummy) package to add search paths to lazarus??? Installing and recompiling the whole ide just to add a few paths sounds kind of stupid. (The tools do not contain any design stuff). Then again if this works it saves me a lot of typing The package system of lazarus is different from Delphi. You don't need to install a package to use it. Just create a package, add your shared units to the package and 'use' the package in every project, that should be able to use your shared units. Read here: http://wiki.lazarus.freepascal.org/Lazarus_Packages and here http://wiki.lazarus.freepascal.org/Install_Packages Mattias _ To unsubscribe: mail [EMAIL PROTECTED] with unsubscribe as the Subject archives at http://www.lazarus.freepascal.org/mailarchives
Re: [lazarus] Search paths
Vincent Snijders wrote: Create a package for the units. Should i create a (dummy) package to add search paths to lazarus??? Installing and recompiling the whole ide just to add a few paths sounds kind of stupid. (The tools do not contain any design stuff). Then again if this works it saves me a lot of typing _ To unsubscribe: mail [EMAIL PROTECTED] with unsubscribe as the Subject archives at http://www.lazarus.freepascal.org/mailarchives
Re: [lazarus] Search paths
Marius schreef: Vincent Snijders wrote: Create a package for the units. Should i create a (dummy) package to add search paths to lazarus??? No a real package to gather compiler options for a set of units. Installing and recompiling the whole ide just to add a few paths sounds kind of stupid. (The tools do not contain any design stuff). Then again if this works it saves me a lot of typing You don't need to rebuild the IDE, just create one package per directory and add the package to the project in the project inspector. Vincent _ To unsubscribe: mail [EMAIL PROTECTED] with unsubscribe as the Subject archives at http://www.lazarus.freepascal.org/mailarchives
Re: [lazarus] Search paths
Mattias Gärtner wrote: The package system of lazarus is different from Delphi. You don't need to install a package to use it. Here i went wrong, i thought i always needed to install it into the IDE! Thanks.. _ To unsubscribe: mail [EMAIL PROTECTED] with unsubscribe as the Subject archives at http://www.lazarus.freepascal.org/mailarchives