Ok. Some explanation.
I was debugging a small dashboard app, that reads some dbf files and communicates with some REST services. After a while, I noticed that the active line during debugging was not the line that was actually executed. After rebuilding the IDE the problem became worse. And after checking the options, FPdebug was not available anymore, while I'm sure that's what I have been using. Time for a new version.
In the past, I tried a few times to check out the source code and build it, but I couldn't get it to work. So, generally I use fpcupdeluxe to get a trunk install. That only works well if I do everything right the first time. Rebuilding often fails. So that's not optimal if I have made my own changes. I generally change the configuration in fpcupdeluxe and when rebuilding fails I do "make all" in the fpc directory.
Building Lazarus only works well from within the IDE, so it has to start, which can be a problem.
This time I made repositories on Gitlab. After some trial and error, I now have two forks
here.
On my Windows 10 PC, I have a bootstrap install in:
C:\Apps\FPC\3.2.2
and the repositories in:
C:\Data\Projecten\fpc
and
C:\Data\Projecten\lazarus
I made the following build file:
rem PP= and DATA2INC= refer to an existing FPC 3.2.2 install! Download if needed!
make distclean all PP=C:\Apps\FPC\3.2.2\bin\i386-win32\ppc386.exe DATA2INC=C:\Apps\FPC\3.2.2\bin\i386-win32\data2inc.exe
make all PREFIX=C:\Data\Projecten\fpc PP=C:\Apps\FPC\3.2.2\bin\i386-win32\ppc386.exe OPT="-gw -godwarsets" DATA2INC=C:\Apps\FPC\3.2.2\bin\i386-win32\data2inc.exe
make install PREFIX=C:\Data\Projecten\fpc PP=C:\Apps\FPC\3.2.2\bin\i386-win32\ppc386.exe DATA2INC=C:\Apps\FPC\3.2.2\bin\i386-win32\data2inc.exe
make all OS_TARGET=win64 CPU_TARGET=x86_64 INSTALL_PREFIX=C:\Data\Projecten\fpc OPT="-gw -godwarsets" PP=C:\Apps\FPC\3.2.2\bin\i386-win32\ppc386.exe DATA2INC=C:\Apps\FPC\3.2.2\bin\i386-win32\data2inc.exe
make crossinstall OS_TARGET=win64 CPU_TARGET=x86_64 INSTALL_PREFIX=C:\Data\Projecten\fpc PP=C:\apps\FPC\3.2.2\bin\i386-win32\ppc386.exe DATA2INC=C:\apps\FPC\3.2.2\bin\i386\win32\data2inc.exe
That should generate the directory:
C:\Data\Projecten\fpc\bin\i386-win32\ppcrossx64
with the x86_64 compiler, according to the
wiki, but it doesn't. There is a
C:\Data\Projecten\fpc\compiler\ppcrossx64.exe
and
C:\Data\Projecten\fpc\bin\i386-win32\ppcrossx64.exe
To install Lazarus, according to the
wiki, I need to do:
set path=c:\freepascal\bin\x86_64-win64 <- my location to the x86_64 compiler, which should be:
C:\Data\Projecten\fpc\bin\x86_64-win64
but that directory doesn't contain any binaries.
At first, I just copied stuff around and edited config files until I could build Lazarus and it started. But FPdebug wasn't available and it kept ignoring my changes. Those repositories are now overwritten by the freshly forked ones, and I'm trying to do it right this time. But so far without success.
And when I have gotten it compiled, I have to get the configuration right, which I couldn't figure out the first time.
Oh, and it has to be a debug build, because I was trying to debug TFPHTTPClient.