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