Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[devel/lazarus] Shows FPC sources missing on welcome dialog #2

Open
adnan360 opened this issue Oct 22, 2021 · 1 comment
Open

[devel/lazarus] Shows FPC sources missing on welcome dialog #2

adnan360 opened this issue Oct 22, 2021 · 1 comment

Comments

@adnan360
Copy link

adnan360 commented Oct 22, 2021

devel/lazarus shows an FPC sources missing error on startup dialog.

All the other items are fine, shows the following on FPC sources page:

Directory: /usr/local/share/lazarus/

Error: directory rtl not found
You can download FPC and the FPC sources from http://sourceforge.net/projects/lazarus/?source=directory

Here is a screenshot:

lazarus-error-fpc-fs8

It is probably due to how the fpc sources are. It doesn't have the paths for *BSD platforms there. Even the dialog suggests a rtl/linux path. It seems there are sources for bsd. So maybe the rtl/linux is just an example?

The problem is also discussed here for PC-BSD and it has a probable solution:

... missing fpc files: I have downloaded the source files and made an
extra directory in /usr/pbi/lazarus-amd64/local/share/lazarus names
"fpc". I dumped all the files there, it wasn't enough to only copy the
"rtl" directory and I didn't want to search for the who and what. I
dumped everything there.
Now at start-up he still complains about missing rtl. Point him to the
self made fpc directory and ready.

Steps to reproduce:

  • Install the devel/lazarus port with make install
  • Run lazarus-ide

Current result:

Shows the FPC sources error above

Expected result:

Start up without the above error

EDIT: Crossed out some lines

@adnan360
Copy link
Author

The problem is also discussed here for PC-BSD and it has a probable solution

I tried something like this:

cd ~/Downloads
ftp ftp://ftp.hu.freepascal.org/pub/fpc/dist/3.2.2/source/fpc-3.2.2.source.tar.gz
cd /usr/local/share/lazarus
doas mkdir fpc
cd fpc
doas tar xvzf ~/Downloads/fpc-3.2.2.source.tar.gz

Then I entered the path /usr/local/share/lazarus/fpc/fpc-3.2.2 in the dialog box. It showed "OK" and I was able to get it working.

lazarus-error-path-2-fs8

I was able to hit Run -> Run and the blank project was build successfully. So I guess this is a good workaround.

I ran a find /usr -name 'system.pp' before doing the above and it returned empty. So maybe we need a devel-fpc package?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant