On 25.09.2010 22:07, Frank Church wrote:
    As I'm now on my Linux PC again, I checked that: it is makeskel in
    ~/LazarusInstalls/fpc240/bin/makeskel. The help can be queried by
    using "-h" or "--help" as parameter.


makeskel has a whole lot of options but none of them mention fpc.cfg. Do
you have a sample command? It appears to be some kind of xml generator.


I must be very sleepy already... it is not makeskel, but fpcmkcfg. The options there in the help should be a lot more intuitive ^^ (makeskel is for the documentation tool fpdoc).

    And I just noticed: you can force "fpc" to look in a certain
    directory for the compiler instead of relying on path:

    fpc -Xp~/LazarusInstalls/fpc240/lib/fpc/2.4.0 {other parameters}

    will search for the "ppc*" in the version 2.4.0 directory, while

    fpc -Xp~/LazarusInstalls/fpc240/lib/fpc/2.5.1 {other parameters}


I have tested this and it works but it does not accept the ~ . It needs
the full path name, it also rather odd because it does not allow the use
of a space between the option and the parameter.

Oh yes, it doesn't interpret "~"... -.- You can use "$HOME" instead, that works ^^

And it's normal for the compiler and its utilities to disallow a space between parameter name and it's value (makes parsing of the parameters a bit easier).


Can this be set in the Lazarus environment as well, for all projectsm
and Lazarus IDE rebuilds?

You might try the following (you need Lazarus 0.9.29 for this) - this it not tested by me though:

* Set the compiler in "Settings->Settings->Environment" to "/home/???/LazarusInstaller/fpc240/bin/fpc" as suggested by Mattias * Open a new project and go to "Project->Projectsettings->Compilersettings->Others" and add the "-Xp(...)" parameter into that memo * Enable "Use this settings as default for new projects" (or similar, I'm using the German version)
* close dialog with ok
Note: existing projects must be adjusted manually

Regards,
Sven

--
_______________________________________________
Lazarus mailing list
[email protected]
http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus

Reply via email to