kushview / element

Element Audio Plugin Host
https://kushview.net/element/
1.13k stars 98 forks source link

Cannot compile on Ubuntu 22.04 #768

Closed SonnyRajagopalan closed 6 months ago

SonnyRajagopalan commented 6 months ago

Describe the bug Cannot complete meson setup build in the instructions on Ubuntu 22.04 (Linux 6.5.0-25-generic)

To Reproduce Steps to reproduce the behavior:

  1. Clone the repo
  2. Download all the requisite packages on Ubuntu 22.04
  3. Build meson
  4. perform a meson setup build
  5. ERROR:

Run-time dependency x11 found: NO (tried pkgconfig and cmake) src/juce/meson.build:131:17: ERROR: Dependency "x11" not found, tried pkgconfig and cmake

Expected behavior meson setup build doesn't fail

Desktop (please complete the following information):

mfisher31 commented 6 months ago

https://packages.ubuntu.com/jammy/libx11-dev

mfisher31 commented 6 months ago

Make sure x11 dev packages are installed

SonnyRajagopalan commented 6 months ago

Thank you, @mfisher31 -- all already installed--but I still get this error!

mfisher31 commented 6 months ago

Re-opened, but I'm not sure what to say. I also use this OS on some machines and never get X11 missing problems.

mfisher31 commented 6 months ago

meson saying dependency "x11" not found means it can't find the x11.pc file:

https://packages.ubuntu.com/search?searchon=contents&keywords=x11.pc&mode=exactfilename&suite=jammy&arch=any

This shows that x11-dev is the package that provides it...

SonnyRajagopalan commented 6 months ago

@mfisher31 noted, I searched for x11.pc and I did find it in /usr/lib/x86_64-linux-gnu/pkgconfig/x11.pc not sure if this is a meson problem. Will continue checking (used /usr/lib $ find -name "x11.pc")

mfisher31 commented 6 months ago

interesting pkg-config can't find it. Maybe the env variable has been tampered with? https://askubuntu.com/questions/210210/pkg-config-path-environment-variable

SonnyRajagopalan commented 6 months ago

You are right!!

My PKG_CONFIG_PATH was seriously messed up. Eventually figured out that I need to add the env for all *.pc and that fixed the meson build. Here's hoping the rest of the install is smooth. Please close this ticket, and thank you for your patience.

SonnyRajagopalan commented 6 months ago

Closing this ticket

mfisher31 commented 6 months ago

No problem!