Forum > FPC development

Errors when building FPC from source

<< < (3/4) > >>

Aruna:

--- Quote from: TRon on October 29, 2024, 12:54:36 pm ---
--- Quote from: Aruna on October 29, 2024, 12:18:26 pm ---... which I can't remember what I did now but managed to fix then it choked saying no GTK? I forgot again so installed GTK2 and those errors went away but new ones appeared. So that is how I tried t install FPC and am trying to compile the Lazarus 4.ORC1. Maybe I should just start again from scratch?

--- End quote ---
That might perhaps be the quickest solution.
--- End quote ---
I used the *.deb filess  @TRon. And installed them in order as Sourceforge says: You need to download and install all three packages fpc-laz, fpc-src and lazarus-project.Install them in order:
* fpc-laz - the Compiler, useful command line tools, base units and non visual components like database access
* fpc-src - the sources of fpc and its packages, needed for code browsing
* lazarus-project - the IDE, visual components and help files And thank you god everything went smooth this time I used
--- Code: Text  [+][-]window.onload = function(){var x1 = document.getElementById("main_content_section"); if (x1) { var x = document.getElementsByClassName("geshi");for (var i = 0; i < x.length; i++) { x[i].style.maxHeight='none'; x[i].style.height = Math.min(x[i].clientHeight+15,306)+'px'; x[i].style.resize = "vertical";}};} ---sudo dpkg -i <your-deb-file>

--- Quote from: TRon on October 29, 2024, 12:54:36 pm ---In case you are in a hurry to get up and running:
--- End quote ---
Yes I was actually (I can't remember why now though? This is what happens when you burn the midnight oil and fly by night:) Thank you for taking so much time to investigate also for the clear and detailed instructions. I have a working laz-ide again but I want to start from scratch and document all the possible brick walls one can hit when doing this without the convenience of a package manager.

EDIT: Just attached a screenshot for anyone interested.

Aruna:
@TRon and @dbannon

Have a look HERE and then HERE

dbannon:

--- Quote from: Aruna on October 29, 2024, 03:05:53 pm ---...
And nope am not fully awake yet and yes a very good morning to you as well.
...
EDIT: Just attached a screenshot for anyone interested.

--- End quote ---

And a good morning to you too (its sort of late-ish morning here now !).

Glad its all working.  I'd suggest your problems related to dependencies. But by putting on the deb packages, they resolved dependencies for you. Just be careful, if you remove those debs (and go back to your own build), apt might decide you don't need those dependencies any more. I prefer to manually install them (with apt of course) so they are marked as "user installed" and get left alone.

FPC : From the wiki "first install binutils, make, gcc"
Lazarus : from my script : gtk2 - libx11-dev libgtk2.0-dev;  Qt5 - libqt5pas-dev (beware of old versions in repo).

Aruna _ I don't use IRC. More than happy to talk over PM here however. Or email if you prefer.

Davo

Aruna:

--- Quote from: dbannon on October 30, 2024, 12:41:50 am ---And a good morning to you too (its sort of late-ish morning here now !).
--- End quote ---
Good late-ish morning and it is 19:46 here which is 7:46 PM :)


--- Quote from: dbannon on October 30, 2024, 12:41:50 am ---Glad its all working.  I'd suggest your problems related to dependencies. But by putting on the deb packages, they resolved dependencies for you. Just be careful, if you remove those debs (and go back to your own build), apt might decide you don't need those dependencies any more. I prefer to manually install them (with apt of course) so they are marked as "user installed" and get left alone.

FPC : From the wiki "first install binutils, make, gcc"
Lazarus : from my script : gtk2 - libx11-dev libgtk2.0-dev;  Qt5 - libqt5pas-dev (beware of old versions in repo).
--- End quote ---
Yes me too I got tired of fixing never ending errors. Strange that you fix one and recompile it comes back with a different one :)


--- Quote from: dbannon on October 30, 2024, 12:41:50 am ---Aruna _ I don't use IRC, too scared I might bump into Joanna. More than happy to talk over PM here however. Or email if you prefer.

--- End quote ---
Listen, just drop by the channel and 'pm' me so I know your there and just 'lurk' without saying anything? No one will know your in there and no one will say anything to you. Give it a try before you decide not to?
She is alright ( really, she does not bite:) but then 'i' have a very thick outer layer of skin... watch that video and tell me if 'you' would take all them pills?

TRon:

--- Quote from: Aruna on October 29, 2024, 11:55:17 am ---Oh this is totally unrelated and way off-topic but who are the core dev's for lazarus? And who are the core dev's for fpc?

--- End quote ---
To keep it simple:
- For Free pascal, see here
- For Lazarus, see here

But, having said that please also realize that there are tens if not hundreds of other people that contribute (or have contributed over the years) to both projects by various means (also to other associated projects such as f.e. the help).

It is just that they do not have (or do not want to have) the right to make certain decisions.


--- Quote from: Aruna on October 29, 2024, 03:05:53 pm ---I have a working laz-ide again but I want to start from scratch and document all the possible brick walls one can hit when doing this without the convenience of a package manager.

--- End quote ---
In case you want to do everything manually then there a few basic steps:
for FPC:
- get a bootstrap compiler (FPC-downloads, sourceforge)
- retrieve the source-code for the compiler version that should be build (git, gitlab, FPC-downloads, sourceforge)
- build the compiler with make using the bootstrap compiler
- install the freshly build compiler (make)
- configure the compiler for user specific setup (fpc.cfg) either manually or by using fpmkcfg
- test the compiler

for Lazarus:
- retrieve the source-code for the IDE version that should be build (git, gitlab, FPC-downloads, sourceforge)
- build the IDE with make using your freshly installed compiler
- install the freshly build Lazarus (make)
- make sure to set/configure the pcp directory
- optionally make a (menu) shortcut for your freshly build IDE
- test lazarus

Explaining each individual step is more complicated and depends on (and/or can depend on) platform, architecture, preferences, future plans and how someone want to have things setup.

The most easy way to install is ofc. using the package manager supplied by the OS and use their FPC and Lazarus packages. The downside of that solution is that there is hardly any upgrade path and/or room for personal preferences ad/or customization.


--- Quote from: Aruna on October 29, 2024, 08:31:57 pm ---Have a look HERE and then HERE

--- End quote ---
Thank you for sharing and the shout-out. Man, you look wasted there (no offense). Please take good care of yourself !

Navigation

[0] Message Index

[#] Next page

[*] Previous page

Go to full version