How to recompile one FPC package? lazarus / 64-FPC development ---------------------------------------------------------------------- eny · 2015-09-03 10:19 I need to debug the fcl-web package and want to recompile it. What is the way to do this? Source is in \fpc\2.6.4\source\packages\fcl-web\src\base And target is in: \fpc\2.6.4\units\i386-win32\fcl-web ---------------------------------------------------------------------- Leledumbo · 2015-09-03 11:10 Code: [Select]# let's assume # srcdir = \fpc\2.6.4\source\packages\fcl-web\src\base # destdir = \fpc\2.6.4 # \units\i386-win32\fcl-web will be added automatically by the make script cd srcdir make clean all install INSTALL_PREFIX=\fpc\2.6.4 ---------------------------------------------------------------------- eny · 2015-09-03 12:42 Aha, executing make from the 'base' dir did the trick. Thx a million. ---------------------------------------------------------------------- Zoran · 2015-11-20 09:53 I tried to find out how to recompile a fcl package, and all I found is this topic. I want to recompile ibase package, but I don't know how. By following this I tried from /packages/ibase directory: Code: [Select]z@z-VBMintMate ~/programi/fpc-3.0.0rc2-source/packages/ibase $ make clean all install INSTALL_PREFIX=~/programi/fpc-3.0.0rc2/ make: -iVSPTPSOTO: Command not found make: Nothing to be done for `clean'. fpmake.pp -n  make: fpmake.pp: Command not found make: *** [fpmake] Error 127 Please, help. ---------------------------------------------------------------------- Cyrax · 2015-11-20 10:28 You need to call make in your root of package directory, not in subdirectory. ---------------------------------------------------------------------- marcov · 2015-11-20 12:39 This line: Quotemake: -iVSPTPSOTO: Command not found queries the binary FPC for various options. If you see this it means the binary "fpc" is not found in the path. Does "fpc" do something on the cmdline? ---------------------------------------------------------------------- Leledumbo · 2015-11-20 12:42 Quote from: Cyrax on November 20, 2015, 11:28:22 amYou need to call make in your root of package directory, not in subdirectory. TBH, you can actually build specific package by executing make inside the package directory. Zoran's problem is due to fpc being not found by make, probably just a PATH problem. ---------------------------------------------------------------------- Zoran · 2015-11-20 14:24 Thank you all. It is true that path to fpc is not included in PATH variable, that is because I have two fpc versions and to avoid mistakes with wrong fpc version, I didn't put any of them to path. Now, to solve the path problem, I created a script compile.sh in ibase dir, which contains this: Code: [Select]#!/bin/sh PATH=$HOME/programi/fpc-3.0.0rc2/bin:$PATH make clean all install INSTALL_PREFIX=home/programi/fpc-3.0.0rc2/ And this is what I get now: Code: [Select]z@z-VBMintMate ~/programi/fpc-3.0.0rc2-source/packages/ibase $ sh compile.sh make: Nothing to be done for `clean'. /home/z/programi/fpc-3.0.0rc2/bin/ppcx64 fpmake.pp -n -Fu../../rtl -Fu../../packages/paszlib -Fu../../packages/fcl-process -Fu../../packages/hash -Fu../../packages/libtar -Fu../../packages/fpmkunit  Fatal: Can't find unit system used by fpmake Fatal: Compilation aborted make: *** [fpmake] Error 1 ---------------------------------------------------------------------- marcov · 2015-11-20 14:59 Quote from: Zoran on November 20, 2015, 03:24:22 pmThank you all. It is true that path to fpc is not included in PATH variable, that is because I have two fpc versions and to avoid mistakes with wrong fpc version, I didn't put any of them to path. (or add FPC=/path/to/my/current/fpc to the make  cmdline) ---------------------------------------------------------------------- Zoran · 2015-11-20 15:42 Quote from: marcov on November 20, 2015, 03:59:35 pm(or add FPC=/path/to/my/current/fpc to the make  cmdline) Code: [Select]z@z-VBMintMate ~/programi/fpc-3.0.0rc2-source/packages/ibase $ make clean all install FPC=/home/z/programi/fpc-3.0.0rc2/bin/fpc INSTALL_PREFIX=/home/z/programi/fpc-3.0.0rc2/ make: Nothing to be done for `clean'. /home/z/programi/fpc-3.0.0rc2/bin/fpc fpmake.pp -n -Fu../../rtl -Fu../../packages/paszlib -Fu../../packages/fcl-process -Fu../../packages/hash -Fu../../packages/libtar -Fu../../packages/fpmkunit  Fatal: Can't find unit system used by fpmake Fatal: Compilation aborted Error: /home/z/programi/fpc-3.0.0rc2/bin/ppcx64 returned an error exitcode make: *** [fpmake] Error 1 ---------------------------------------------------------------------- Cyrax · 2015-11-20 18:05 Do you have fpc.cfg generated for each FPC you have? ---------------------------------------------------------------------- Zoran · 2015-11-20 18:44 Quote from: Cyrax on November 20, 2015, 07:05:18 pmDo you have fpc.cfg generated for each FPC you have? Yes, I do. See, here is the topic where I solved where to put it, so that these two do not conflict: http://forum.lazarus.freepascal.org/index.php/topic,30259.0.html Now I have Lazarus 1.4.5-fixes compiled with stable fpc 2.6.4 and Lazarus trunk compiled with fpc 3.0.0rc2.