How do you compile a standalone executable? #329
-
Hey, I've been trying to compile TSSChecker for the last couple of hours for the PI. The compilation went smoothly but depended on dynamic libraries which had to be present for the binary to load. Yet, the TSSchecker binaries that you package are not dynamic executables. I assume you added the '-static' flag, what did you do to get GCC to statically link the libraries though? |
Beta Was this translation helpful? Give feedback.
Replies: 7 comments 1 reply
-
A dynamic executable should still work for blobsaver, you shouldn't need a standalone one. If you really do want a standalone executable you will need to compile the dependencies yourself (although I don't recommend this for the time it takes). This shouldn't be too bad, just remember when compiling each library to pass |
Beta Was this translation helpful? Give feedback.
-
I actually just wanted to compile a standalone ececutable so I could have a lightweight method to save blobs regularly on my pi. What libraries did you manually compile? |
Beta Was this translation helpful? Give feedback.
-
I manually compiled everything that was in the dependencies list for tsschecker. |
Beta Was this translation helpful? Give feedback.
-
So, you compiled every library with the gcc argument "--enable-state --disable-shared" |
Beta Was this translation helpful? Give feedback.
-
Not gcc arguments, |
Beta Was this translation helpful? Give feedback.
-
Well, that didn't work. I'm currently getting the following errors when running make for tsschecker:
|
Beta Was this translation helpful? Give feedback.
-
If you are still trying to do this (sorry I've been pretty busy recently), I found these builds that might work for you. |
Beta Was this translation helpful? Give feedback.
If you are still trying to do this (sorry I've been pretty busy recently), I found these builds that might work for you.