[fpc-pascal] How to auto create the $fpctarget directory
Hi, How can I auto create the $fpctarget directory? Just specifying ../lib/$fpctarget/ and then compiling the project doesn't create the needed directory, and I get the following build error. I gather the compiler itself doesn't create directories at all. Could this become an option? Alternatively, is there some why I can query the $fpctarget and then in the build scripts for Linux, Windows and *BSD create the correct output paths, because I actually start the compile? [EMAIL PROTECTED]:src$ ./build.sh Compiling Release Version Compiling X11 CoreLib Free Pascal Compiler version 2.2.3 [2008/08/08] for i386 Copyright (c) 1993-2008 by Florian Klaempfl Target OS: Linux for i386 Compiling corelib/x11/fpgui_toolkit.pas Compiling ./corelib/fpg_base.pas Compiling corelib/x11/fpg_impl.pas fpg_impl.pas(37) Error: Can't create object file: ../lib/i386-linux/fpg_impl.o fpg_impl.pas(37) Fatal: Can't create object ../lib/i386-linux/fpg_impl.o Fatal: Compilation aborted Error: /opt/fpc_2.2.3/bin/ppc386 returned an error exitcode (normal if you did not specify a source file to be compiled) Regards, - Graeme - ___ fpGUI - a cross-platform Free Pascal GUI toolkit http://opensoft.homeip.net/fpgui/ ___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org http://lists.freepascal.org/mailman/listinfo/fpc-pascal
Re: [fpc-pascal] How to auto create the $fpctarget directory
On 01/10/2008, Graeme Geldenhuys <[EMAIL PROTECTED]> wrote: > Hi, > > How can I auto create the $fpctarget directory? Just specifying > ../lib/$fpctarget/ and then compiling the project doesn't create the > needed directory, and I get the following build error. I gather the > compiler itself doesn't create directories at all. Could this become > an option? Alternatively, is there some why I can query the $fpctarget > and then in the build scripts for Linux, Windows and *BSD create the > correct output paths, because I actually start the compile? echo `fpc -iTP`-`fpc -iTO` gives the same string for $fpctarget, i think. i also think the compiler should auto create the output directories. henry ___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org http://lists.freepascal.org/mailman/listinfo/fpc-pascal
Re: [fpc-pascal] How to auto create the $fpctarget directory
On Wed, Oct 1, 2008 at 2:24 PM, Henry Vermaak <[EMAIL PROTECTED]> wrote: > > echo `fpc -iTP`-`fpc -iTO` gives the same string for $fpctarget, i > think. Thanks, I'll give it a try... > i also think the compiler should auto create the output > directories. Yeah, that would be really nice! :-) Regards, - Graeme - ___ fpGUI - a cross-platform Free Pascal GUI toolkit http://opensoft.homeip.net/fpgui/ ___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org http://lists.freepascal.org/mailman/listinfo/fpc-pascal
Re: [fpc-pascal] How to auto create the $fpctarget directory
Zitat von Henry Vermaak <[EMAIL PROTECTED]>: > On 01/10/2008, Graeme Geldenhuys <[EMAIL PROTECTED]> wrote: > > Hi, > > > > How can I auto create the $fpctarget directory? Just specifying > > ../lib/$fpctarget/ and then compiling the project doesn't create the > > needed directory, and I get the following build error. I gather the > > compiler itself doesn't create directories at all. Could this become > > an option? Which output directory do you mean? The unit output directory of the project is auto created by the IDE since 16284. Do you mean the output directory of the binary? > > Alternatively, is there some why I can query the $fpctarget > > and then in the build scripts for Linux, Windows and *BSD create the > > correct output paths, because I actually start the compile? > > echo `fpc -iTP`-`fpc -iTO` gives the same string for $fpctarget, i > think. i also think the compiler should auto create the output > directories. Mattias ___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org http://lists.freepascal.org/mailman/listinfo/fpc-pascal
Re: [fpc-pascal] How to auto create the $fpctarget directory
On Wed, Oct 1, 2008 at 3:48 PM, Mattias Gärtner <[EMAIL PROTECTED]> wrote: > > Which output directory do you mean? > The unit output directory of the project is auto created by the IDE since > 16284. It's the unit output directory. I know it Lazarus it works perfectly (smile), but it's when you compile a fresh checkout of fpGUI from the command line that it fails. I managed to update the build.sh script for unix type OS's, using Henry's example. It now creates the unit output directory if it doesn't exist. I don't know windows batch files very well (or at least haven't done it in years), so need to read up a bit on how I can do the same there. Either way, I still think it would be handy if the compiler can create the directories as needed. Regards, - Graeme - ___ fpGUI - a cross-platform Free Pascal GUI toolkit http://opensoft.homeip.net/fpgui/ ___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org http://lists.freepascal.org/mailman/listinfo/fpc-pascal