-
Notifications
You must be signed in to change notification settings - Fork 5
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
Building and using the shared library is difficult #1
Comments
got this message on running
and the symlink libwayland-client.so.0 doesn't get resolved after building with stack as |
Thanks for your feedback. The warning should be fixed now. I'm not sure how to make this run under stack - to be honest I'm not even sure why it works with cabal. Does it work with a (sandboxed) cabal for you? More appropriate build tools would be much appreciated... |
Hi @xavier83, Forget about the cabal thing. Could you try adding the following to the provided stack.yaml
and trying the following
(where 7.10.3 is your GHC version, and weston is running before invoking weston-flower) |
it worked 👍
|
Thanks. Yes, that is WIP. Currently that bug actually functions as a feature since it indicates that sudbury is used rather than libwayland. |
Some people are working on getting Cabal to build shared libraries. That would be excellent for us. See haskell/cabal#141 |
Using a development version of cabal, the library can now be built and installed by cabal without any hacks. (Relevant .cabal section in added in 3db3ec3, see haskell/cabal@382143a for the cabal commit that introduces |
I am working on some cabal patches that should make it really really easy to use sudbury. Eventually, one will be able to run wayland programs using the sudbury implementation of libwayland using
(instead of |
This project consists of a bunch of Haskell modules (which can be used as normal), and a dynamic library that can be used to run existing C code. However, this library is hard to build and use.
The text was updated successfully, but these errors were encountered: