Forum > General
HowTo use additional packages EASY for all projects
Researching:
What I want:
1. Create a folder somewhere like: C:\Laz-Packs
2. Create C:\Laz-ProgTemplate
3. Include the path to : C:\Laz-Packs
3. On the workflow: copy LazProgTemplate, rename to present project, make a refactoring rename of files/units semantically
4. Continue developing from that point.
// Each time from start - is time-wasting.
QUESTONS:
Possible or not?
Is it possible to include Laz and FPC source inside C:\Laz-Packs ?
If not possible - any other solution?
With respect !
lucamar:
What would that do that the IDE can't do now? You can install all the packages you want to have ready, add as default any unit/-s directory/-ies, use project/form/unit templates with the ProjTemplates package, etc.
Researching:
Dear Lucamar,
Where, how?! Where to find this in help or wiki?
What is actually needed: Work with the pure source: able to browse source to the very assembler level to read-recognize-edit-correct.
To do this without recompiling the IDE itself. To work (at least at this time of learning) - with bare *.pas files and without those multiple *.pp, *.res ... etc.
lucamar:
--- Quote from: Researching on November 13, 2018, 02:31:54 pm ---Where, how?! Where to find this in help or wiki?
--- End quote ---
Use the search of the wiki: searching for "packages" leads you to Lazarus Packages whcih, in turn, points to other pages about the topic: the category IDE Window leads you to (almost) all the pages dealing with using the IDE, including the configuration; searching "project templates" goes almost directly to Project Templates, etc. There are also other resources out there in the web, google for them!
--- Quote ---Work with the pure source: able to browse source to the very assembler level to read-recognize-edit-correct.
To do this without recompiling the IDE itself. To work (at least at this time of learning) - with bare *.pas files and without those multiple *.pp, *.res ... etc.
--- End quote ---
I'm not at all sure whether Pascal source goes to the "very assembly level" :D Jokes apart, you can even do this, by compiling with the -al, which will give a nice assembler file including the Pascal lines which generate it. Which is explained in the manuals.
Alas! Adding packages without recompiling the IDE is not possible (yet); as for the rest, you can (mostly) forget about any file type other than the "bare" pascal sources, which can in fact be *.inc, *.lpr, *.pp or *.pas To tell the truth, most of the time I work just with my own .pas and let the IDE deal with all those *.res, *.lrj, etc.
All in all, Lazarus and FreePascal's learning curve is somewhat steep at the start ... but it quickly becomes rather "soft" and steady, accelerating the learning. Just one of its advantages. :)
wp:
--- Quote from: lucamar on November 13, 2018, 03:10:29 pm ---Adding packages without recompiling the IDE is not possible (yet)
--- End quote ---
This is true only for designtime packages. If you use runtime packages (or create components at runtime) then it is sufficient to compile the package only.
@Researching: Try to understand the Lazarus package system. If I understand you correctly it fulfills many of your wishes.
http://wiki.freepascal.org/Lazarus_Packages
--- Quote from: Researching on November 13, 2018, 01:28:48 pm ---3. Include the path to : C:\Laz-Packs
...
Is it possible to include Laz and FPC source inside C:\Laz-Packs ?
--- End quote ---
Don't add paths to the search path, in particular don't add Laz/FPC paths. With improper extension of the search paths you are calling for trouble ("duplicate unit", "unit version error" or similar). Add packages to the requirements of a project instead. This is sufficient to find the compiled files.
Navigation
[0] Message Index
[#] Next page