-
-
Notifications
You must be signed in to change notification settings - Fork 10
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
Take headers and lib from pkg-config #4
Comments
I've updated roc-streaming/roc-toolkit#271 |
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
.pc generation & installation landed in develop branch. cc @fusuiyi123 |
Yay! We can start using it in go bindings!
…On Fri, May 15, 2020, 8:37 AM Victor Gaydov ***@***.***> wrote:
.pc generation & installation landed in develop branch. scons install
will now install roc.pc.
cc @fusuiyi123 <https://github.com/fusuiyi123>
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
<#4 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/ABF6TYTT6DIYXP66HGILXLDRRTPLFANCNFSM4JLIWN2Q>
.
|
now that I've looked into it, is this feature relevant? The only place where we use the C includes are comments like
which work regardless if one uses pkg-config or just installed them with their distribution's package manager. |
If the user installed roc into a prefix which is not in default include or library search path list, compilation will fail. pkg-config will solve this issue. A real-world examples. When you're using SoX library you should write:
On most distros, sox.h is located at /usr/include/sox.h and include works without any pkg-config. However, on some CentOS version, for some reason maintainers decided to install that file at /usr/include/sox/sox.h. On those CentOS systems pkg-config for SoX returns So yes, we still need pkg-config, though it's not critical. Note that pkg-config generation is currently available only in develop, while bindings are using master. |
Example of using pkg-config with cgo: https://github.com/aam335/speexdsp/blob/master/speexdsp.go#L4 |
cool, then I'll test it locally with develop, push to a branch and create a pr later when the changes will be available on master (they are still not there as of now) |
We'll also need to migrate bindings to new api from 0.2. |
I guess we need a separate issue and branch for that. |
@gavv did you release 0.2 already? cannot find it anywhere |
@Asalle Hi, no, 0.2 isn't released yet. It's still in the |
Currently we have hardcoded
/usr/lib/roc
path that is not always where you have your headers/lib. Let's take that info from pkg-config.The text was updated successfully, but these errors were encountered: