Forum > General
Recompile FPC Package
Weitentaaal:
i am not using trunk so i would just need to recompile the package with that command.
in the case that it doesn't work. How would i recompile whole fcl ?. would it be possible to just delete all compiled packages in "\fpc\units\x86_64-win64\" and then recompile them in "..\fpcsrc\packages\" using the command provided by @Khrys and move the recompiled packages back to "\fpc\units\x86_64-win64\".
The newer package version added some support for the pdf units.
TRon:
--- Quote from: Weitentaaal on August 07, 2024, 04:21:52 pm ---i am not using trunk so i would just need to recompile the package with that command.
--- End quote ---
In that case then you could try to get away with compiling the fcl-pdf package by downloading the source-code for that package using your current compiler.
That does not have to be difficult. You should be able to do that with compiling each individual unit. As said before if other packages depends on one of the units from the fpc-pdf package then these need to be recompiled as well.
--- Quote ---in the case that it doesn't work. How would i recompile whole fcl ?. would it be possible to just delete all compiled packages in "\fpc\units\x86_64-win64\" and then recompile them in "..\fpcsrc\packages\" using the command provided by @Khrys and move the recompiled packages back to "\fpc\units\x86_64-win64\".
--- End quote ---
I cannot comment on the command presented by Khrys simply because I've never done that myself this way. In basics you can remove the existing package(s), recompile them and replace. As also indicated you woul d then need to recompile Lazarus as well (but that is a one button action)
--- Quote ---The newer package version added some support for the pdf units.
--- End quote ---
Yes, I understand. Do realize that it might be that the changes/fixes in trunk rely on new FPC features not present in your current installed FPC (if not mistaken then you still forgot to mention your version number of FPC which is important).
I am not behind a development machine so can't check for you right now (but can do so later today).
marcov:
--- Quote from: Weitentaaal on August 07, 2024, 04:21:52 pm ---in the case that it doesn't work. How would i recompile whole fcl ?. would it be possible to just delete all compiled packages in "\fpc\units\x86_64-win64\" and then recompile them in "..\fpcsrc\packages\" using the command provided by @Khrys and move the recompiled packages back to "\fpc\units\x86_64-win64\".
--- End quote ---
Partial compiles are much more dangerous then just cleaning/backing up the old, and recompiling everything. So while possible in theory, this is expert territory that knows all dependencies by heart.
wp:
Regarding your original issue with the fcl-pdf package, I would try to copy its units into a separate folder of your project and set the path to "Other unit files" to this directory, In this case, your FPC would use these units for your application and ignore those from the FPC installation folder. Of course, this works only when there are no other packages which FPC or Lazarus knows to depend on fcl-pdf. But it's worth a try. If it does not work, just delete the fcl-pdf folder from your project and delete the compiled units folder (usually:lib) so that FPC will use the old units again.
Soner:
Use Console/Terminal/cmd:
1. Only on windows, when fpc is "unknown":
set PATH=%path%;c:\lazarus\fpc\3.2.2\bin\i386-win32
2. Change to fcl-pdf folder C:\lazarus\fpc\3.2.2\source\packages\fcl-pdf
3. Then call make
4. Now you have in subfolder units the new compiled-units, copy them to c:\lazarus\fpc\3.2.2\units\i386-win32\fcl-pdf
Thats all. I didn't test this now, but I did it this way with fcl-db.
The folders may be named differently depending the system you are using.
Navigation
[0] Message Index
[#] Next page
[*] Previous page