G
G
Gorsun2021-07-14 13:50:17
CMake
Gorsun, 2021-07-14 13:50:17

Why does $Cmake -G "Visual Studio 16 2019 Win64" fail?

I'm trying to compile via KALDI voice synthesis according to this manual.
https://github.com/kaldi-asr/kaldi/blob/master/win...
But when I try to compile PortAudio, an error occurs with Cmake, I don’t understand what is connected with and where to dig.
PS C:\Users\User\Desktop\portaudio> $Cmake -G "Visual studio 16 2019 Win64"
string:1 character:8
+ $Cmake -G "Visual studio 16 2019 Win64"
+ ~~
Unexpected token "-G" in an expression or statement.
line:1 character:11
+ $Cmake -G "Visual studio 16 2019 Win64"
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Unexpected token ""Visual studio 16 2019 Win64"" in an expression or statement.
+ CategoryInfo : ParserError: (:) [], ParentContainsErrorRecordException
+ FullyQualifiedErrorId : UnexpectedToken

Answer the question

In order to leave comments, you need to log in

1 answer(s)
K
klirichek, 2021-08-31
@klirichek

Run `cmake -G`. Get a list of possible generators, the default one is marked with an asterisk. If it is already correct, then you don't need -G at all in a working run. If not, select the one you need, copy the name, enclose it in quotes.
As far as I remember, starting from the 16th (2019th) studio, it is not necessary to specify the architecture in the generator name.
Those. most likely there is cmake -G "Visual Studio 16 2019", without Win64.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question