You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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 the pip 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?
The text was updated successfully, but these errors were encountered:
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 the
pip 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?
The text was updated successfully, but these errors were encountered: