Vulkan: how to compile SaschaWillems demos on ubuntu 16.04.10?

Started by
10 comments, last by Bregma 7 years, 3 months ago

I'm following instructions here: https://github.com/SaschaWillems/Vulkan/wiki/Quick-start-guide

I get to part:

sudo apt install vulkan-utils mesa-vulkan-drivers

I'm receiving error: Unable to locate package mesa-vulkan-drivers

Advertisement
Did you add `ppa:canonical-x/vulkan` to your apt repositories?

Did you add `ppa:canonical-x/vulkan` to your apt repositories?

Yes. Heres it all:



user@user-Lenovo-IdeaPad-Flex-10:~$ sudo apt-add-repository ppa:canonical-x/vulkan
[sudo] password for user:
 UPDATE 2016-11-19
All packages have been purged, this PPA was meant for packaging testing only and it has served it's purpose.

UPDATE 2016-03-18 -- vulkan loader has dropped it's demos (can't ship prebuilt shaders) and vkcube is broken, but the driver is now fixed and Willems demos work (some might crash though)

-----

This ppa contains bits and pieces needed to test Vulkan BUT ONLY FOR XENIAL (and maybe 14.04 in the future).

:: sudo apt-add-repository ppa:canonical-x/vulkan
:: sudo apt update
:: sudo apt install vulkan-utils mesa-vulkan-drivers

now run 'vulkaninfo'

Shinier demos: https://github.com/SaschaWillems/Vulkan
Clone the repository, then download the binary tarball and extract it in the bin/ directory of the repository, and run binaries from there (chmod first). Some are buggy with the current intel driver on this PPA.

NOTE:
The intel driver needs DRI3, so either enable it via xorg.conf, or remove intel_drv.so and use the modesetting driver instead (will still be hw accelerated).

Have questions? #ubuntu-x on freenode
 More info: https://launchpad.net/~canonical-x/+archive/ubuntu/vulkan
Press [ENTER] to continue or ctrl-c to cancel adding it

gpg: keyring `/tmp/tmp8adk234w/secring.gpg' created
gpg: keyring `/tmp/tmp8adk234w/pubring.gpg' created
gpg: requesting key 12CB614C from hkp server keyserver.ubuntu.com
gpg: /tmp/tmp8adk234w/trustdb.gpg: trustdb created
gpg: key 12CB614C: public key "Launchpad PPA for Canonical X.org" imported
gpg: Total number processed: 1
gpg:               imported: 1  (RSA: 1)
OK
user@user-Lenovo-IdeaPad-Flex-10:~$ sudo apt update
Hit:1 http://security.ubuntu.com/ubuntu xenial-security InRelease
Hit:2 http://ppa.launchpad.net/canonical-x/vulkan/ubuntu xenial InRelease
Hit:3 http://gb.archive.ubuntu.com/ubuntu xenial InRelease              
Hit:4 http://gb.archive.ubuntu.com/ubuntu xenial-updates InRelease      
Hit:5 http://ppa.launchpad.net/damien-moore/codeblocks-stable/ubuntu xenial InRelease
Hit:6 http://gb.archive.ubuntu.com/ubuntu xenial-backports InRelease    
Reading package lists... Done                      
Building dependency tree       
Reading state information... Done
All packages are up-to-date.
user@user-Lenovo-IdeaPad-Flex-10:~$ sudo apt install vulkan-utils mesa-vulkan-drivers
Reading package lists... Done
Building dependency tree       
Reading state information... Done
E: Unable to locate package mesa-vulkan-drivers
user@user-Lenovo-IdeaPad-Flex-10:~$

It may not be available at the moment? Or they forgot it :)

I'm not even sure if vulkan will run on my laptop, it doesn't under windows, hence why I'm on Ubuntu(pretty cool).


> UPDATE 2016-11-19 All packages have been purged, this PPA was meant for packaging testing only and it has served it's purpose.


I think your answer is right there. :^)

It seems you may need to find some other route. Have you tried any of the official pacakages? Ubuntu’s libvulkan-dev, perhaps?


> UPDATE 2016-11-19 All packages have been purged, this PPA was meant for packaging testing only and it has served it's purpose.


I think your answer is right there. :^)

It seems you may need to find some other route. Have you tried any of the official pacakages? Ubuntu’s libvulkan-dev, perhaps?

Ill try that. Thanks did not know these officials existed.

How do you install them? Am pretty new to Ubuntu.

You can use `apt-get install` or `apt install` as sudo to install packages. Enter `man apt` to read more about your system’s package manager. If you aren’t already, I highly recommend you familiarize yourself with text-based terminals for both Linux and Windows.

The same;

sudo apt-get install mesa-vulkan-drivers
Reading package lists... Done
Building dependency tree
Reading state information... Done
E: Unable to locate package mesa-vulkan-drivers

In reply to your first edit, you can check whether or not you’re root with `whoami`— also your prompt will end with `#` if you’re root, or `$` as a regular user.

And you seem to be using the old package name again:

$ sudo apt-get install libvulkan-dev

In reply to your first edit, you can check whether or not you’re root with `whoami`— also your prompt will end with `#` if you’re root, or `$` as a regular user.

And you seem to be using the old package name again:

$ sudo apt-get install libvulkan-dev

Still the same even with synaptic manager.

Thanks for your help. : I'm guessing mesa-vulkan-drivers are not currently available.

Drop installing packages. There's no such need and it's pretty much obsolete. Vulkan doesn't install anymore system-wide. Go to LunarG website and download the SDK: https://lunarg.com/vulkan-sdk/ It contains all you need and even more and everything is up-to-date. I usually unpack Vulkan SDK into /opt keeping all updated versions and symlinking the latest one as the "current". Since it's not a system-wide package anymore you will need to tell where the Vulkan headers and libraries are however, the lazy way is just creating symlinks in /usr/include and /usr/lib into the proper directories from the SDK. Also, it's necessary to tell where the layers are by defining VK_LAYER_PATH env variable ( for example in .bashrc ) that points into PATH_TO_SDK/x86_64/etc/explicit_layer.d directory/. I have updated LD_LIBRARY_PATH in order to pick up the right runtime library ( points at PATH_TO_SDK/x86_64/lib ). Basically, everything you need is in the x86_64 directory ( which before used to be installed system-wide ). It may sound complicated but you do it only once and then, with each update of the SDK you just link to the new directory. It keeps environment clean, easy to update and doesn't mess up drivers ( which was the case if one used one of those nvidia-prime drivers in the past ). All instructions are in the SDK/config directory. If you follow them, you won't have a problem with setting Vulkan environment up. Then you may run build scripts to build examples, samples and tools.

This topic is closed to new replies.

Advertisement