JohnDoriaN
JohnDoriaN

Reputation: 56

Finding meson dependency with CMake

I'm trying to compile gst-python with meson.

I'm on windows, and don't have pkg-config.

So I try to make meson find a dependency (Gstreamer) with meson. Meson finds cmake, but I can't set CMAKE_MODULE_PATH so cmake will find my Findgstreamer-1.0.cmake file.

I saw on meson docs that you can set cmake_module_path option, but it didn't work:

gst_dep = dependency('gstreamer-1.0', version : gst_req, method : 'cmake',
 cmake_module_path : 'C:/Users/dvir4/Desktop/playgound/cmake',
  fallback : ['gstreamer', 'gst_dep'])

still produces the error:

Run-time dependency gstreamer-1.0 found: NO (tried cmake)
Looking for a fallback subproject for the dependency gstreamer-1.0

Somehow i need to set up the cmake variable CMAKE_MODULE_PATH. I Couldn't find a way to set it via meson, or as environment variable.

How can i let cmake find the dependecy ?

Upvotes: 1

Views: 2626

Answers (1)

TingPing
TingPing

Reputation: 2302

I'm on windows, and don't have pkg-config.

Its easy to build and will make many projects work. https://github.com/pkgconf/pkgconf

(Not that I'm saying it can't be done without as I'm unfamiliar with GStreamers builds)

Upvotes: 0

Related Questions