Hello everyone,
I'm new to FPC and I want to patch a few things in the library fcl-web/fphttpclient.pp
However all of my modifications aren't taken in consideration when the project is built.
My first instinct was to guess it was a .ppu issue. The sources i am modifying are not the one getting build. I went to the /etc/fpc.cfg conf and update some path.
I replace this
-Fu/usr/lib/fpc/$fpcversion/units/$fpctarget
-Fu/usr/lib/fpc/$fpcversion/units/$fpctarget/*
-Fu/usr/lib/fpc/$fpcversion/units/$fpctarget/rtl
by this
-Fu/usr/share/fpcsrc/$fpcversion/
-Fu/usr/share/fpcsrc/$fpcversion/*
-Fu/usr/share/fpcsrc/$fpcversion/rtl
-Fu/usr/share/fpcsrc/$fpcversion/packages/fcl-web/src/base/fphttpclient.pp
(I am updating my files in /usr/share/fpcsrc/...)
The compiler can't build anymore and tell me it doesn't find the fphttpclient.pp (Even if i put the path in my fpc.cfg).
Error message :
Free Pascal Compiler version 3.0.0 [2015/12/05] for x86_64
Copyright (c) 1993-2015 by Florian Klaempfl and others
Target OS: Linux for x86-64
Compiling testupdatehttp.lpr
testupdatehttp.lpr(9,22) Fatal: Can't find unit fphttpclient used by testupdatehttp
Fatal: Compilation aborted
Error: /usr/bin/ppcx64 returned an error exitcode
i ran a strace and the interesting thing is it looks like it s opening the folder:
[pid 477] open("/usr/share/fpcsrc/3.0.0/packages/fcl-web/src/base/", O_RDONLY|O_LARGEFILE) = 4
[pid 477] close(4)
In am on a Linux neon, installed all of fpc fpcsrc and lazarus with the .deb
Any pointer for where to look at would be much appreciated,
Thanks