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

Cannot compile (link) on FPC 3, Fedora, 64bit... #77

Open
3FLLC opened this issue Apr 4, 2018 · 3 comments
Open

Cannot compile (link) on FPC 3, Fedora, 64bit... #77

3FLLC opened this issue Apr 4, 2018 · 3 comments

Comments

@3FLLC
Copy link

3FLLC commented Apr 4, 2018

Obviously I am missing a package in the OS or something...

/usr/bin/ld: warning: link.res contains output sections; did you forget -T?
/usr/bin/ld: cannot find -lX11
/usr/bin/ld: cannot find -lXext
/usr/bin/ld: cannot find -lXft
/usr/bin/ld: cannot find -lfontconfig
colorwheel_test.lpr(27,1) Error: Error while linking

None of the examples compile, basically all saying they cannot link X11, Xext, etc. Does this mean I need to pull in the X11 dev package for Linux?

@fredvs
Copy link
Contributor

fredvs commented Apr 4, 2018

Hello.

Does this mean I need to pull in the X11 dev package for Linux?

Yes, because of some confusion in fpc, you need the "*-dev" packages to link the libraries.

See here: https://bugs.freepascal.org/view.php?id=32367

@graeme : Sorry, I could not resist. ;-)

Fre;D

@graemeg
Copy link
Owner

graemeg commented Apr 4, 2018

Fred is 100% correct. The instructions to install the development libraries (for Linux) is included in the README.txt file included with FPC.
https://github.com/graemeg/fpGUI/blob/develop/docs/README.txt

See the section System requirements under Linux for more details.

@fredvs 👍 Many thanks for helping out with the support. It is much appreciated. :)

@fredvs
Copy link
Contributor

fredvs commented Apr 5, 2018

If you want to dynamicaly load the libraries used by fpGUI (and so no need to install *-dev), take a look here:
https://github.com/fredvs/dynx

(and particularly there; https://github.com/fredvs/dynx/tree/master/src/fpgui )

;-)

Fre;D

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

3 participants