How to re-compile fpc so that lazarus takes the right units? lazarus / 8-Other ---------------------------------------------------------------------- ciuly · 2008-02-28 09:57 Hi, I've made a fix in daemonapp.pp (reported a bug as well) and I tried to rebuild it. I rebuilt fcl-base using a simple make bu that didn't have the desired effect as the compiled stuff was not placed in the right directory. so before messing up my installation I figured to ask thanks ---------------------------------------------------------------------- RudieD · 2008-02-29 17:11 I then just copy it to the right place. ---------------------------------------------------------------------- Leledumbo · 2008-03-03 05:00 make install INSTALL_PREFIX=YourFpcBaseDir (e.g. C:/fpc), however it will not replace the old files, you need to clean it first. ---------------------------------------------------------------------- ciuly · 2008-03-03 09:58 I notice that there are several files from other unit paths in what got compiled. and some of them are a lot smaller then what is in the fpc dir. jsut an example: I now have adler.o of 924 bytes in C:\lazarus\fpc\2.2.0\source\packages\fcl-base\units\i386-win32\ and there is an adler.o of 2250 bytes in C:\lazarus\fpc\2.2.0\units\i386-win32\paszlib\ same goes for libimpJwaWinNT.a which is 11970 bytes after recompilation of daemon package and its 13946 in C:\lazarus\fpc\2.2.0\units\i386-win32\winunits\ how would I do a nice clean without deleting what should not be deleted but still delete everything that should be deleted? I was thinking about recompiling the whole fpc. would that make sense? if so, what would be a good way of doing it? (clean && make && make install ? ) ---------------------------------------------------------------------- Leledumbo · 2008-03-04 03:15 QuoteI now have adler.o of 924 bytes in C:\lazarus\fpc\2.2.0\source\packages\fcl-base\units\i386-win32\ and there is an adler.o of 2250 bytes in C:\lazarus\fpc\2.2.0\units\i386-win32\paszlib\[\quote] The correct path for fpc unit is: whatever\fpc\fpc-version\units\fpc- target\, while: whatever\fpc\fpc-version\source\whatever\units\fpc- target\ is only a temporary output before installing the units. However, those units will not be deleted after you install them. You need to "make clean" them yourself. For safety reason, please recheck that there's no either compiled units (.ppu) or object files (.o) under source directory (except libcpre.gcc.o). If I were you, I would rather download a new fpc source, "make all install INSTALL_PREFIX=NewFpcDir", delete the old fpc, then run fpcmkcfg (to create default fpc.cfg). ---------------------------------------------------------------------- ciuly · 2008-03-04 15:05 thanks for the info. however, I need to recompile myself as I need some fixes and cannot wait for a new stable release (since I'm doing a production application, I must use stable releases) I did (in fpc-base) a make clean, then make, then make install. then rebuilt the IDE but it fails to build lazdaemon: C:\lazarus\components\daemon\reglazdaemon.pp(1,1) Fatal: Can't find unit daemonapp used by reglazdaemon I checked and daemonapp is present in C:\lazarus\fpc\2.2.0\units\i386-win32\fcl-base\ in both .o and .ppu format what am I missing? ---------------------------------------------------------------------- Leledumbo · 2008-03-05 03:35 Try right click and "copy all and hidden messages" in the messages window. Not all messages are displayed. ---------------------------------------------------------------------- ciuly · 2008-03-12 18:07 I had to make some changes to the lazdaemon package in order to get it compiled: - added "${LazarusDir}\fpc\2.2.0\source\packages\fcl-base\src\inc\" to the "other unit files (-Fu) - added "${LazarusDir}\fpc\2.2.0\source\packages\fcl- base\src\${TargetOS}\" and "${LazarusDir}\fpc\2.2.0\source\packages\fcl-base\src\win\" to the "include files (_Fi) I rebuilt the IDE and all was ok. thank you for your help and tips.