Sign in Join

Live chat for Free Pascal, Lazarus, Delphi and every Pascal programmer.

Mailing lists / fpc-devel / 2008-12

how to recompile & install only a section of the FCL

3 messages · 2 people ·

Reply by email Subscribe to this list Your subscription

Read-only archive. Use j and k to move between messages.

Graeme Geldenhuys

Hi,

I'm working on some minor improvements to 'fcl-fpcunit'. What is the correct process to test my changes? Surely I don't need to recompile and install the *whole* FPC. This is quite annoying when I keep making small changes and want to test.

Can I somehow compile and install just the 'fcl-fpcunit' code?

My FPC is currently checked out into /opt/fpc_2.2.3/src/ and I install it to /opt/fpc_2.2.3/
Here is my usual build script.

--------[ startbuild.sh ]---------------------
make clean
make install INSTALL_PREFIX=/opt/fpc_2.2.3
------------------------------------

At the moment I simply skip the 'make clean' section, but that still means the whole FPC and bells and whistles get recompiled, but I would prefer to only recompile AND INSTALL 'fcl-fpcunit'. Anybody got a clue how?

Regards,
- Graeme -

_______________________________________________
fpGUI - a cross-platform Free Pascal GUI toolkit
http://opensoft.homeip.net/fpgui/

Reply by email

Jonas Maebe
to Graeme Geldenhuys
Graeme Geldenhuys wrote
Can I somehow compile and install just the 'fcl-fpcunit' code?

Run

make all
make install INSTALL_PREFIX=/opt/fpc_2.2.3

from the fcl-fpcunit directory.

Show quoted text 8 lines
My FPC is currently checked out into /opt/fpc_2.2.3/src/ and I install it to /opt/fpc_2.2.3/ Here is my usual build script. --------[ startbuild.sh ]--------------------- make clean make install INSTALL_PREFIX=/opt/fpc_2.2.3 ------------------------------------

There should be a "make all" in between the clean and install (install does indeed normally compile stuff that isn't compiled yet, but it's not tested nor guaranteed to work).

At the moment I simply skip the 'make clean' section, but that still means the whole FPC and bells and whistles get recompiled,

No, it only gets reinstalled (a few things do get recompiled due to hard-to-fix errors in the Makefiles, but most stuff is just copied without recompilation)

Jonas

Reply by email

Graeme Geldenhuys
to Jonas Maebe
Jonas Maebe wrote 5 lines
make all make install INSTALL_PREFIX=/opt/fpc_2.2.3 from the fcl-fpcunit directory.

Thanks, I'll try that.

I have also been playing with the 'fpmake' build system. I can build and archive everything without issues in the fpcunit directory. I'm going to try the 'install' command now, to see what it does. ;-)

Show quoted text 9 lines
> > --------[ startbuild.sh ]--------------------- > make clean > make install INSTALL_PREFIX=/opt/fpc_2.2.3 > ------------------------------------ There should be a "make all" in between the clean and install (install does indeed normally compile stuff that isn't compiled yet, but it's not tested nor guaranteed to work).

Well, I can confirm that it works fine, because I have been using it like that for over a year now. But I think the reason it works, is because the 'make clean' line. But for safety, I'll and the 'make all' as well.

No, it only gets reinstalled (a few things do get recompiled due to hard-to-fix errors in the Makefiles, but most stuff is just copied without recompilation)

Ah, that would explain why it's not currently working on my side. Thanks for your help.

Regards,
- Graeme -

_______________________________________________
fpGUI - a cross-platform Free Pascal GUI toolkit
http://opensoft.homeip.net/fpgui/

Reply by email