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

Non-Windows github actions checks fail #7

Closed
pepijn-devries opened this issue Oct 19, 2024 · 10 comments · May be fixed by autobrew/bundler#2
Closed

Non-Windows github actions checks fail #7

pepijn-devries opened this issue Oct 19, 2024 · 10 comments · May be fixed by autobrew/bundler#2

Comments

@pepijn-devries
Copy link
Owner

This is because dependencies libopenmpt and portaudio are not available.

@pepijn-devries
Copy link
Owner Author

I think this can be fixed by adding a json file at https://github.com/rstudio/r-system-requirements/tree/main/rules

@pepijn-devries
Copy link
Owner Author

submitted a pull request:

rstudio/r-system-requirements#191

@pepijn-devries
Copy link
Owner Author

Submitted fixed pull request:
rstudio/r-system-requirements#193

@pepijn-devries
Copy link
Owner Author

All checks except for MacOS are now OK. I probably have to update the configure script to contain brew installation of requirements

@pepijn-devries
Copy link
Owner Author

Builds and checks on all operating systems now seem to work. @jeroen Thanks for you contributions and suggestions! I would appreciate it if you could give the configure script a glance if it seems OK to you.

@pepijn-devries
Copy link
Owner Author

Fixed in 666ba01

@jeroen
Copy link
Collaborator

jeroen commented Dec 1, 2024

@pepijn-devries I think this line does not do anything right now:

PKG_CFLAGS="-LIBOPENMPT_EXT_INTERFACE_INTERACTIVE"

If you want to define a macro, you need to use flag -D{MACRO}, so it would need to be

-DLIBOPENMPT_EXT_INTERFACE_INTERACTIVE

Note it starts with -D; flags starting with -L and -l are for the linker and ignored in cflags.

However, given that it seemingly works without this macro perhaps it can just be removed?

@pepijn-devries
Copy link
Owner Author

Hi Jeroen,

Thanks for the check. 'LIBOPENMPT_EXT_INTERFACE_INTERACTIVE' should be a compiler flag to ensure that it includes a specific header file. But apparently I have specified this incorrectly, and I can still use this header file. So I guess I don't need it. I will remove it.

I'll work on adding R bindings to as much of the libraries features as possible. After a while I might want to have a look at building it for WASM. But I'll need to do some homework for that first. I might need some help with that in the future...

Cheers

@jeroen
Copy link
Collaborator

jeroen commented Dec 1, 2024

I wouldn't worry too much about wasm, that's very experimental stuff, and it would require building all of your dependency libs for wasm, which is a whole other business.

Don't forget to add to your readme that users can install binaries for win/mac from https://pepijn-devries.r-universe.dev/openmpt so they don't have to compile things ;)

@pepijn-devries
Copy link
Owner Author

Readme is updated with #15

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

Successfully merging a pull request may close this issue.

2 participants