-
Notifications
You must be signed in to change notification settings - Fork 84
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
Any advice on how to build a standalone binary for linux? #5
Comments
If using your (pressumably remote) git repo is an option, then I suggest you install junest. When you are done installing and adding
Exit
Close the Terminal and open a new one. Enjoy! |
Here's a more portable procedure:
Enjoy! |
Quite an old issue, but with the great help of the poppler folks, I finally I managed to build a true completely static pdf2svg binary. Perhaps this is also useful for others, so I'm posting it here. I used an Ubuntu Cosmic docker container to build it. Here is the relevant excerpt of the docker file: https://gist.github.com/rgpublic/1a721599332402f55625afc3886b967a Even if you don't want to use Docker and/or a Docker file, the necessary steps are pretty easy to understand as you can see. NB: Working inside a docker container is only recommended in order to not spoil your system with all the unnecessary installs and packages. After you've build the static binary, you can take it anywhere and run it. Docker is NOT required later to use the static binary, of course. The resulting binary is about 17 MB. |
Today (2020-09-23) I managed to compile this on CentOS 8. I needed to make some adaptions as follows: Comment out line 90 in the source code by inserting "//" at the beginning of the line.: In order to have the development libraries available for compiling: Changed configure's line 2072 to "if true ; then " to bypass the deprecated test. I also could not find the code in pdf2svg-0.2.3-12.fc33.src.rpm |
@DanieW: would you be able to submit a PR with these changes in? I'm sure others would appreciate them, |
Sorry, I was mistaken. It seems I have to do: |
The boxes I need this to run on I can not download or install anything on but I can include in my git repo a binary as I already to with pdftk.
But this tool would be a lot better option since it does both steps for me in one eg make pages and images.
Thanks for you work!
it is an ubuntu box I need to make this for btw. I tried this
http://jurjenbokma.com/ApprenticesNotes/getting_statlinked_binaries_on_debian.html
but it did not work.
The text was updated successfully, but these errors were encountered: