PaulS Posted July 15, 2017 Report Posted July 15, 2017 (edited) Hi, Is there a way to create a shared library out of a specific uGFX configuration? In this case I am looking to create a .so for Linux-Framebuffer-Touch board. Thanks! -Paul Edited July 15, 2017 by PaulS
Joel Bodenmann Posted July 15, 2017 Report Posted July 15, 2017 Hello @PaulS, Sure, you can compile anything into a static or shared library. You just have to setup your compiler the right way. If the question is whether we have any guides for doing that with the µGFX library or whether we have support for that built-into our Makefile system then the answer is "no". But the process is the same as for any other thing you'd compile. In general you wouldn't really want to do that in most cases though. The µGFX library is very small and compiles very fast, especially when you use the single-file compile (when using our Makefile system, you can set GFX_SINGLEFILE or something like that to TRUE).
inmarket Posted July 17, 2017 Report Posted July 17, 2017 There is actually an option for that in our makefile process (OPT_MAKE_LIB=yes). See tools/gmake_scripts/readme.txt for more options.
Joel Bodenmann Posted July 17, 2017 Report Posted July 17, 2017 Oh wow, didn't know about that one. Great!
PaulS Posted July 17, 2017 Author Report Posted July 17, 2017 One note, I think OPT_MAKE_LIB=yes only creates a static library. I (think) a shared library would be better for my needs. Adding the following to the Makefile: CFLAGS = -fpic LDFLAGS = -shared Seems like it will work,
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now