Skip to content
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

cmake issues #33

Open
sezero opened this issue May 23, 2022 · 5 comments
Open

cmake issues #33

sezero opened this issue May 23, 2022 · 5 comments

Comments

@sezero
Copy link
Contributor

sezero commented May 23, 2022

In SDL_mixer, we submodule'd opus and opusfile through our forks
and attempted cmake build relying on the submodules. Issues we had:

@sezero
Copy link
Contributor Author

sezero commented May 28, 2022

Any comments please?

@sezero
Copy link
Contributor Author

sezero commented Jun 18, 2022

PING - anyone?

@xnorpx
Copy link

xnorpx commented Jul 6, 2022

@sezero Hi, I am not so good with all the version stuff. But can you check if this change would fix the issues you have for opus?

xnorpx/opus@093b8da

@sezero
Copy link
Contributor Author

sezero commented Jul 6, 2022

@madebr: cmake is your language, can you have a look?
Reference issue: libsdl-org/SDL_mixer#386 (comment)
Related commits:
libsdl-org@264fc0d
libsdl-org@9ba5cc3

@daddesio
Copy link

daddesio commented Jul 6, 2022

I like @sezero's idea of using "if" instead of "else if". That way if decoding the package_version fails, it tries again from git. Like this:

if(NOT OPUS_PACKAGE_VERSION){ try getting it from package_version file }
if(NOT OPUS_PACKAGE_VERSION){ try getting it from git }
if(NOT OPUS_PACKAGE_VERSION){ print warning and set to 0.0 }

Side note, I think it would be useful to keep a basic "version" file maintained in-repo so we don't need to fallback to 0.0. (e.g. ogg keeps the version in the configure.ac file in the repo, but opus/opusfile currently do not.) In that case, we'd still need to get the commit id from git if available (and only if the git tag matches the version file). @mark4o thoughts?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants