Forum > Packages and Libraries
Re: [EXAMPLE] Adding RichMemo packages to a projects manually
What I can do:
OS: Winw10@64
Compiler: Lazarus 3.8
Project: working on an older project that used TRichMemo but during compile it kicks out at the Uses section on RichMemo. Did some file search for *richMemo* and found the directory that contains the files. Try to configure Lazarus [Tool] ->Options-> environment/files but everywhere I put the path it kicks out to something like path is somehow invalid. The thing is a new project finds it without a hitch. What, where, and how can I get Lazarus to look in the installed directory for the older projects (older as in pre 3.8 install)
TRon:
Project inspector, add package dependency (whatever the name of the package might be), see also wiki
BTW: in case not having any idea what package(name) to add, then start a new project and place the (wanted) component on a form and open the project inspector: the package should automatically be added to the project in the inspector window so you can learn the name of the package in which the component resides (often I do not have no clue either and use that 'trick').
What I can do:
thanks for the reply TRon
I think i get the concept so I opened a working project look inside the Project Inspector and found the RichMemo reference to the installed folder. Now open the old project and choose Project Inspector add and pick the same file. Great that error was fixed but yet a new one comes up some other file in one of the other pas unit kicked out as can find file. How do I get all the file it needs to reference to.
What I can do:
ok a new application drop on a TRichMemo check Project inspector find two type of bundles but not files the bundles are richmemo_design and richmemoPackage but no where in the installed folder do anything of the such that I can find. I found two files that match the name but they are not the same. The files in a new application look like package icon references not file names and when I add the file names that match the package names I still get units not found. so how to I get the add button to load that project looking icon as apposed to a direct file link.
TRon:
--- Quote from: What I can do on February 06, 2025, 05:07:58 am ---How do I get all the file it needs to reference to.
--- End quote ---
That is difficult to answer simply because what you're doing is a bit out of the ordinary.
If you are converting an old Delphi project then the usual path is using the Delphi importer/converter of Lazarus. I did not have much luck with that myself so I usually ended up figuring out all the components that the old project was using, then place all the components of all the forms onto one test project form in Lazarus if required install the required packages that contains some of these components), write down the list of package-names that are required and added those manually to the old project.
Navigation
[0] Message Index
[#] Next page