Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Build on windows CMAKE_ARGS using generator with spaces doesn't work #1086

Open
Assignees
asmorkalov
@timorkal

Description

@timorkal

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?

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions


    [8]ページ先頭

    ©2009-2025 Movatter.jp