-
Notifications
You must be signed in to change notification settings - Fork 121
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
Static linking #73
Comments
Same problem, have you solve it? |
Just solved this issue. Both phonetisaurus and openfst binaries use this flag. To get around it, I simply changed: Line 158 in f08d3df
To read: DECLARE_bool (help, false, "show usage information"); This may obviously crash the build of the original project, but works for me when I include it in my personal project. Another solution would be to simply refactor the code and rename this flag to something else, eg. "help_phonetisaurus" or something like that... |
Hi
I am trying to embed Phonetisaurus in my binary and just encountered an issue:
Static linking with OpenFST fails with duplicate symbol
FLAGS_help
.Fix is simple https://github.com/ayles/Phonetisaurus/commit/4aba2c65666bdae76af362023d379c32dccfa518
But I am afraid it could not work with shared OpenFST and I currently have no time to test this.
Is there any plans to add static linkage support and [possibly] CMakeLists.txt?
(In my case there is a Kaldi with its own forked OpenFST and it was just pain to provide Phonetisaurus with OpenFST includes and libraries, so I just wrote simple CMakeLists.txt wrapper)
The text was updated successfully, but these errors were encountered: