Sign in Join

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

Mailing lists / lazarus / 2010-11

changing some FPC units

4 messages · 3 people · –

Reply by email Subscribe to this list Your subscription

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

Alberto Manganaro

Hi,

I'm trying to make modification in some units that are part of the FPC (the .o and .ppu are in the units folder). I took the source code, made my modification, rebuilt the .o and .ppu with the make command, and put the new files in the utils folder.

Now I'm trying to recall these units from Lazarus, but it seems like I have made no modifications. I tried to rebuild Lazarus (even if I think it's of no use in this case) but nothing changes. If I jump from the name of the unit to its code, I can correctly see my modification (the FPC source code folder is correclty set) but if I compile I got some errors that make me think that no modification in the compiled code of the units has been made.

Do I miss something? Thanks in advance!

A.

Alberto Manganaro Milano Chemometrics and QSAR Research Group Department of Environmental Sciences University of Milano-Bicocca P.zza della Scienza, 1 20126 Milano - Italy http://michem.disat.unimib.it/chm/

Reply by email

Joost van der Sluis
to Alberto Manganaro
Alberto Manganaro wrote 16 lines
Hi, I'm trying to make modification in some units that are part of the FPC (the .o and .ppu are in the units folder). I took the source code, made my modification, rebuilt the .o and .ppu with the make command, and put the new files in the utils folder. Now I'm trying to recall these units from Lazarus, but it seems like I have made no modifications. I tried to rebuild Lazarus (even if I think it's of no use in this case) but nothing changes. If I jump from the name of the unit to its code, I can correctly see my modification (the FPC source code folder is correclty set) but if I compile I got some errors that make me think that no modification in the compiled code of the units has been made. Do I miss something? Thanks in advance!

Make install?

You could also use fppkg.

Joost.

Reply by email

Alberto Manganaro
to Joost van der Sluis

Well, but I don't want to install a new version fo the package, I just want to modify something in the original code, recompile it and use the unit in Lazarus.

I tried again but I can't figure it out, so my question is: where does Lazarus take the compiled FPC libraries to be linked with my project? When I put the recompiled files in the correct place in the FPC units folder, it seems that when I compile my Lazarus project it takes the units without modification! Thanks

A.

Il 30/11/2010 17.21, Joost van der Sluis ha scritto:

Show quoted text 25 lines
On Tue, 2010-11-30 at 17:14 +0100, Alberto Manganaro wrote: > Hi, > > I'm trying to make modification in some units that are part of the FPC > (the .o and .ppu are in the units folder). I took the source code, made > my modification, rebuilt the .o and .ppu with the make command, and put > the new files in the utils folder. > > Now I'm trying to recall these units from Lazarus, but it seems like I > have made no modifications. I tried to rebuild Lazarus (even if I think > it's of no use in this case) but nothing changes. If I jump from the > name of the unit to its code, I can correctly see my modification (the > FPC source code folder is correclty set) but if I compile I got some > errors that make me think that no modification in the compiled code of > the units has been made. > > Do I miss something? Thanks in advance! Make install? You could also use fppkg. Joost.
Alberto Manganaro Milano Chemometrics and QSAR Research Group Department of Environmental Sciences University of Milano-Bicocca P.zza della Scienza, 1 20126 Milano - Italy http://michem.disat.unimib.it/chm/

Reply by email

Mattias Gaertner
to Alberto Manganaro
Show quoted text 9 lines
Well, but I don't want to install a new version fo the package, I just want to modify something in the original code, recompile it and use the unit in Lazarus. I tried again but I can't figure it out, so my question is: where does Lazarus take the compiled FPC libraries to be linked with my project? When I put the recompiled files in the correct place in the FPC units folder, it seems that when I compile my Lazarus project it takes the units without modification! Thanks

The FPC unit search paths are defined in your fpc.cfg. If you are using Lazarus 0.9.29 you can take a look in View / IDE Internals / About FPC.

Mattias

Reply by email