- Notifications
You must be signed in to change notification settings - Fork896
Description
Hello,
I am trying to build opencv-python with GStreamer on Windows with custom CMAKE_ARGS.
As Gstreamer was compiled with MSVC 2019 and I have Visual Studio 2022 (with MSVC 2019 Build Tools), I need to specify 2 flags so the Linker will be able to work:-G "Visual Studio 17 2022" -T v142
This works for me when I run directly the "cmake" command.
But in my case I would like to create python wheels, that is why I use thepip wheel . --verbose
command to build it.
Unfortunatly I coudn't make it work, because as I pass these through the CMAKE_ARGS it complains that it look for "Visual" word only and not the whole "Visual Studio 17 2022" phrase.
$env:CMAKE_ARGS='-G "Visual Studio 17 2022" -T v142 -DWITH_GSTREAMER=ON'
py.exe -V:3.11 -m pip wheel . --verbose
CMake Error: Could not create named generator "Visual
Can you please help me with it?