mruby-zest / mruby-zest-build

Root repo for mruby-zest containing links to all submodules
GNU Lesser General Public License v2.1
19 stars 24 forks source link

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

Open emixa-d opened 2 years ago

emixa-d commented 2 years ago

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 commented 2 years ago

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 commented 2 years ago

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 commented 2 years ago

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