Skip to content
Discussion options

You must be logged in to vote

I took a look at this and it has an insane dependency tree that, among others, also includes the whole massive X11 system. The only feasible solution for this is to link against systen glfw dynamically, which can be done with SPC_TARGET="musl -dynamic" for Alpine or SPC_LIBC=glibc for glibc systems like Debian, Ubuntu, Mint, RHEL or anything in between. You need to add glfw ext to the project yourself and use PKG_CONFIG_PATH=/usr/lib(64)/pkgconfig bin/spc build ...

But you do not end up with a portable binary. Every user will then need to have the correct glfw version installed to even run your php binary for anything.

Replies: 6 comments 12 replies

Comment options

You must be logged in to vote
8 replies
@crazywhalecc
Comment options

@odarcan
Comment options

@odarcan
Comment options

@odarcan
Comment options

@crazywhalecc
Comment options

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
4 replies
@crazywhalecc
Comment options

@odarcan
Comment options

@odarcan
Comment options

@crazywhalecc
Comment options

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Answer selected by henderkes
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
4 participants