-
Notifications
You must be signed in to change notification settings - Fork 419
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
Add recipe to build static or dynamic library? #49
Comments
According to this comment of the Author, this library is meant to be used as the source code itself rather than binaries. 😄 |
Understood, but if it is a static library, it is easier for the developer to link to it. Below is a Makefile to compile the library, developers can just link to it with "-static -llodepng" :-)
|
It could be. @lvandeve may have the right answer for you. I just replied as this reminds me the comment. 😓 |
Yes, it is only one source file and one header and is intended to be added directly as source files to your project. The source file also has no dependencies. It can also be renamed to have the .c extension to use as pure C only. There is a second source file lodepng_util but it is only needed for edge cases. There is no makefile, it opens a whole can of worms and requires a lot of maintenance as platforms and popular make systems change. For this simple project, the actual C source is in fact simpler to be multiplatform than a makefile :) I would suggest to integrate the source files in the build system you are using, it's only 1 file and one header after all. |
What about adding a |
Hi,
I wonder why isn't there any recipe to generate a static or dynamic library for this library? Should we add one?
The text was updated successfully, but these errors were encountered: