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

Cross-compilation problem: pkg-config is used instead of TARGET-pkg-config #87

Open
emixa-d opened this issue Oct 25, 2022 · 3 comments

Comments

@emixa-d
Copy link

emixa-d commented Oct 25, 2022

pkg-config is for native compilation, TARGET-pkg-config (where TARGET is, say, x86_64-linux-gnu) is for cross-compilation.

I currently cannot test if this is sufficient, because the dependency 'mesa' fails to compile for me.

It would be useful if a PKG_CONFIG environment variable were supported, similarly to CC.

@fundamental
Copy link
Member

To clarify is this an issue with this repo or the larger zynaddsubfx/zynaddsubfx + mruby-zest/mruby-zest-build repo combination in the zyn-fusion build repository?

Also, are you referring to cross OS compilation (which currently works fine in my experience) or cross architecture compilation?

@emixa-d
Copy link
Author

emixa-d commented Oct 27, 2022

An issue with mruby-zest/mruby-zest-build. Possibly also with zynaddsubfx, but I don't know, I haven't looked at that.

I mainly referred to cross-architecture compilation. It seems that linux->osx,windows is fine because pkg-config isn't used for those targets.

However, some targets would also use pkg-config (e.g. the Hurd) -- while the Hurd appears to be unsupported (it doesn't have sound support currently IIUC), it used gcc, pkg-config, glibc ... just like typical Linux (cross-)compilation. So except for the missing sound support the 'linux' Makefile target should, in theory mostly work (except for the mentioned pkg-config cross-compilation error).

@emixa-d
Copy link
Author

emixa-d commented Oct 27, 2022

Looks like zynaddsubfx uses the standard CMake support for pkg-config, so I wouldn't expect TARGET-pkg-config trouble from zynaddsubfx itself.

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

No branches or pull requests

2 participants