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

Compiling for FreeBSD brings in glfw library dependency #1928

Closed
Jacalz opened this issue Feb 9, 2021 · 1 comment
Closed

Compiling for FreeBSD brings in glfw library dependency #1928

Jacalz opened this issue Feb 9, 2021 · 1 comment
Labels
bug Something isn't working help wanted Extra attention is needed OS:FreeBSD Tickets affecting only FreeBSD

Comments

@Jacalz
Copy link
Member

Jacalz commented Feb 9, 2021

Describe the bug:

It was noticed as part of fyne-io/developer.fyne.io#23 that building fyne applications for FreeBSD produces binaries add a dynamic link to glfw, whereas for other systems this is bundled in the build source code. This has been observed both when building locally on GhostBSD (FreeBSD based) and when building cross-compiled using fyne-cross.

The following error is printed when running a binary without glfw installed (which indicates that it is compiled as a shared library):

ld-elf.so.1: Shared object "libglfw.so.3" not found, required by "fyne_demo"

To Reproduce:

Steps to reproduce the behaviour:

  1. Compile a binary for FreeBSD
  2. Run the binary without glfw installed.
  3. Notice the above error about missing shared library.

Example code:

Just use cmd/fyne_demo or cmd/hello. Any fyne program will do.

Device (please complete the following information):

  • OS: FreeBSD
  • Version: 12.2
  • Go version: 1.14.15 and 1.15.6
  • Fyne version: 1.4.3 and 2.0.0 have been tested
@Jacalz Jacalz added bug Something isn't working OS:FreeBSD Tickets affecting only FreeBSD labels Feb 9, 2021
@andydotxyz andydotxyz changed the title Compiling for FreeBSD does not statically link glfw Compiling for FreeBSD brings in glfw library dependency Feb 10, 2021
@andydotxyz andydotxyz added the help wanted Extra attention is needed label Apr 16, 2021
Jacalz added a commit to Jacalz/fyne that referenced this issue Oct 24, 2021
This update adds support for building on OpenBSD, a fix to avoid using dynamically linked glfw on FreeBSD and updates glfw to 3.3.4 (contains just a fullscreen fix on X11).
Fixes fyne-io#1928
@Jacalz
Copy link
Member Author

Jacalz commented Oct 25, 2021

Resolved on develop now. Thanks @ilylily for fixing this upstream.

@Jacalz Jacalz closed this as completed Oct 25, 2021
andydotxyz pushed a commit that referenced this issue Nov 22, 2021
This update adds support for building on OpenBSD, a fix to avoid using dynamically linked glfw on FreeBSD and updates glfw to 3.3.4 (contains just a fullscreen fix on X11).
Fixes #1928
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working help wanted Extra attention is needed OS:FreeBSD Tickets affecting only FreeBSD
Projects
None yet
Development

No branches or pull requests

2 participants