Skip to content

Vulkan dependency detection when cross compiling (Yocto) #9673

Answered by jwinarske
jwinarske asked this question in Q&A
Discussion options

You must be logged in to vote

This is the functional pattern

  1. Correctly implemented package config file. @dcbaker thank you.

  2. Meson

vulkan_dep = dependency('vulkan')
vulkan_hpp = join_paths([
    vulkan_dep.get_pkgconfig_variable('includedir', define_variable: ['prefix', get_option('prefix')]),
    'vulkan',
    'vulkan.hpp'
    ])
  1. Yocto Recipe
EXTRA_OEMESON += "--prefix ${STAGING_DIR_TARGET}/usr"

This project now correctly builds on desktop and Yocto: https://github.com/jwinarske/vkmark/tree/jw/vulkan_dep

Replies: 3 comments 10 replies

Comment options

You must be logged in to vote
10 replies
@jwinarske
Comment options

@dcbaker
Comment options

@jwinarske
Comment options

@jwinarske
Comment options

@dcbaker
Comment options

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Answer selected by jwinarske
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants