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

Update BUILDING.md with some linux pre-requisites #40

Merged
merged 2 commits into from
May 14, 2019

Conversation

daveh-lunarg
Copy link
Contributor

Just stood up a vanilla Ubuntu 19.04, these are the minimal packages I had to install to get the build working.

@rpavlik, maybe you know more about xxf86vm? Installing it alone didn't satisfy cmake's findpackage, but then installing xrandr resolved the findpackage for xrandr and xxf86vm. So, maybe xxf86vm isn't really needed? I'm assuming no harm in listing it.

@daveh-lunarg daveh-lunarg requested a review from rpavlik May 7, 2019 23:20
@daveh-lunarg daveh-lunarg self-assigned this May 7, 2019
@rpavlik
Copy link
Contributor

rpavlik commented May 9, 2019

Well, I think it's OK to leave that (though I don't think it's required if you are building wayland-only.) Since mid-day yesterday we've been building internally on CI using this dockerfile: https://github.com/KhronosGroup/DockerContainers/blob/master/Dockerfile.openxr-sdk which shows a list of packages. It's not an absolute minimum list because it's set up to build everything possible, but it should give you an idea. (freeglut isn't required, you're mostly just getting the mesa dev files with that as a dep.)

EDIT: I think the list of packages required for xlib or XCB builds with both OpenGL and Vulkan is:

    build-essential \
    cmake \
    libgl1-mesa-dev \
    libvulkan-dev \
    libx11-xcb-dev \
    libxcb-dri2-0-dev \
    libxcb-glx0-dev \
    libxcb-icccm4-dev \
    libxcb-keysyms1-dev \
    libxcb-randr0-dev \
    libxrandr-dev \
    libxxf86vm-dev \
    mesa-common-dev

Drop glx, libgl1-mesa-dev, and maybe mesa-common-dev if you don't want OpenGL, or drop libvulkan-dev if you don't want vulkan.

Drop anything starting with an x if you don't care about X11 support (want wayland instead).

Extra packages for wayland:

  • libegl1-mesa-dev
  • libwayland-dev
  • wayland-protocols

@daveh-lunarg daveh-lunarg merged commit 992061d into master May 14, 2019
@daveh-lunarg daveh-lunarg deleted the dave-building-reqs branch May 14, 2019 22:34
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 this pull request may close these issues.

None yet

2 participants