Open michaelboulton opened 5 years ago
Error: Error on dynamically loaded library: ./src/dllreglfw_stubs.so: ./src/dllreglfw_stubs.so: undefined symbol: glfwGetProcAddress
I am getting the exact same error when trying to build revery within a clean docker image.
EDIT: Just released that I tried to build it on a server with no GPU (facepalm)
I was trying to reduce the JS bundle size in Revery by creating a 'release' build but it seems like this library doesn't play nicely when trying to compile it in release mode - Just cloning this repository and trying to run
esy dune build --profile release
Gives me this error (seemingly when it's compiling it to bytecode):(That last line is
Error: Error on dynamically loaded library: ./src/dllreglfw_stubs.so: ./src/dllreglfw_stubs.so: undefined symbol: glfwGetProcAddress
)This also happens in the revery-quick-start repo when running
esy dune build --profile release ./App.bc.js
Is this a known issue? If so, is there some other way to build a 'release' version?
(For reference this is mainly a problem when trying to build something with Revery because without 'release' mode the final JS bundle ends up being huge, even when run through something like the closure compiler)