-
Notifications
You must be signed in to change notification settings - Fork 244
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
Issues with static build (Amazon Linux) (still requires libgd.so.2) #86
Comments
If I remove
|
@ffxsam, do a |
@ajbarber I can't build a static binary (see above). The
|
Here's the
|
@ajbarber Hi Adam, just wondering if you're able to help. I can offer compensation for your help/time, as well. |
Got it! I had my cmake command wrong. Instead of |
@ffxsam I'm also having issues with the static builds for this for amazon linux, as i want to use it in a lambda. Are you able to share your static builds?
|
@hkjasf687261gh Happy to share. It was a total pain to build, honestly, and I hope I never have to do it again. 😅 |
@ffxsam any chance you can share your build script? |
@raedatoui Unfortunately it's not that simple and clean. It was a massive headache finding and installing all kinds of libraries. So I don't have a simple script that built everything and resulted in a single binary. |
For future me's needing a static binary for AWS - I just sent in a pull request with a Dockerfile that'll build one for you. Available here |
This was not straight-forward and unfortunately required a lot of manual builds of libraries (Amazon's fault). The last one I'm stuck on is libgd. Despite using
BUILD_STATIC=1
in the cmake step, audiowaveform still requireslibgd.so.2
when I run it. This is the only library that wasn't built into the executable for some reason.Anyone have any ideas on how to resolve this?
The text was updated successfully, but these errors were encountered: