Issues in building winafl
I am building winafl on MS visual studio 2010 using DynamoRIO. However following mentioned steps giving me errors.
Result of first command
cmake -G"Visual Studio 10 Win64" .. -DDynamo RIO_DIR=E:\softwares\DynamoRIO-Windows-7.1.0-1\DynamoRIO-Windows-7.1.0-1\cmake
-- Configuring done -- Generating done -- Build files have been written to: E:/softwares/winafl-master/build
But second command generates lots of errors regarding syntax and declaration in afl-fuzz.vcxproj.
cmake --build . --config Release
Please suggest.
Output of second command;
Microsoft (R) Build Engine Version 4.0.30319.1 [Microsoft .NET Framework, Version 4.0.30319.1] Copyright (C) Microsoft Corporation 2007. All rights reserved.
Checking Build System
CMake does not need to re-run because E:/softwares/winafl-master/build64/CMak
eFiles/generate.stamp is up-to-date.
CMake does not need to re-run because E:/softwares/winafl-master/build64/thir
d_party/processor-trace/CMakeFiles/generate.stamp is up-to-date.
Building Custom Rule E:/softwares/winafl-master/CMakeLists.txt
CMake does not need to re-run because E:/softwares/winafl-master/build64/CMak
eFiles/generate.stamp is up-to-date.
afl-analyze.c
afl-analyze.vcxproj -> E:\softwares\winafl-master\build64\bin\Release\afl-ana
lyze.exe
Building Custom Rule E:/softwares/winafl-master/CMakeLists.txt
CMake does not need to re-run because E:/softwares/winafl-master/build64/CMak
eFiles/generate.stamp is up-to-date.
afl-fuzz.c
..\afl-fuzz.c(2548): error C2143: syntax error : missing ';' before 'type' [E:
softwares\winafl-master\build64\afl-fuzz.vcxproj]
..\afl-fuzz.c(2549): error C2065: 'buf' : undeclared identifier [E:\softwares\w
inafl-master\build64\afl-fuzz.vcxproj]
..\afl-fuzz.c(2549): warning C4022: 'read' : pointer mismatch for actual param
eter 2 [E:\softwares\winafl-master\build64\afl-fuzz.vcxproj]
..\afl-fuzz.c(2554): error C2065: 'buf' : undeclared identifier [E:\softwares\w
inafl-master\build64\afl-fuzz.vcxproj]
..\afl-fuzz.c(2554): warning C4047: 'return' : 'char *' differs in levels of in
direction from 'int' [E:\softwares\winafl-master\build64\afl-fuzz.vcxproj]
..\afl-fuzz.c(2592): error C2275: 'DWORD' : illegal use of this type as an expr
ession [E:\softwares\winafl-master\build64\afl-fuzz.vcxproj]
C:\Program Files (x86)\Microsoft SDKs\Windows\v7.0A\include\windef.h(
152) : see declaration of 'DWORD'
..\afl-fuzz.c(2592): error C2146: syntax error : missing ';' before identifier
'num_read' [E:\softwares\winafl-master\build64\afl-fuzz.vcxproj]
..\afl-fuzz.c(2592): error C2065: 'num_read' : undeclared identifier [E:\softwa
res\winafl-master\build64\afl-fuzz.vcxproj]
..\afl-fuzz.c(2592): error C2065: 'dwThreadId' : undeclared identifier [E:\soft
wares\winafl-master\build64\afl-fuzz.vcxproj]
..\afl-fuzz.c(2593): error C2143: syntax error : missing ';' before 'type' [E:
softwares\winafl-master\build64\afl-fuzz.vcxproj]
..\afl-fuzz.c(2634): error C2065: 'result' : undeclared identifier [E:\software
s\winafl-master\build64\afl-fuzz.vcxproj]
..\afl-fuzz.c(2635): error C2065: 'result' : undeclared identifier [E:\software
s\winafl-master\build64\afl-fuzz.vcxproj]
..\afl-fuzz.c(2638): error C2065: 'result' : undeclared identifier [E:\software
s\winafl-master\build64\afl-fuzz.vcxproj]
..\afl-fuzz.c(2640): error C2065: 'result' : undeclared identifier [E:\software
s\winafl-master\build64\afl-fuzz.vcxproj]
..\afl-fuzz.c(2649): error C2065: 'result' : undeclared identifier [E:\software
s\winafl-master\build64\afl-fuzz.vcxproj]
..\afl-fuzz.c(2651): error C2065: 'result' : undeclared identifier [E:\software
s\winafl-master\build64\afl-fuzz.vcxproj]
..\afl-fuzz.c(2655): error C2065: 'result' : undeclared identifier [E:\software
s\winafl-master\build64\afl-fuzz.vcxproj]
..\afl-fuzz.c(2672): error C2065: 'result' : undeclared identifier [E:\software
s\winafl-master\build64\afl-fuzz.vcxproj]
..\afl-fuzz.c(2674): error C2065: 'result' : undeclared identifier [E:\software
s\winafl-master\build64\afl-fuzz.vcxproj]
..\afl-fuzz.c(2695): error C2275: 's32' : illegal use of this type as an expres
sion [E:\softwares\winafl-master\build64\afl-fuzz.vcxproj]
e:\softwares\winafl-master\types.h(59) : see declaration of 's32'
..\afl-fuzz.c(2695): error C2146: syntax error : missing ';' before identifier
'fd' [E:\softwares\winafl-master\build64\afl-fuzz.vcxproj]
..\afl-fuzz.c(2695): error C2065: 'fd' : undeclared identifier [E:\softwares\wi
nafl-master\build64\afl-fuzz.vcxproj]
..\afl-fuzz.c(2701): error C2065: 'fd' : undeclared identifier [E:\softwares\wi
nafl-master\build64\afl-fuzz.vcxproj]
..\afl-fuzz.c(2703): error C2065: 'fd' : undeclared identifier [E:\softwares\wi
nafl-master\build64\afl-fuzz.vcxproj]
..\afl-fuzz.c(2708): error C2065: 'fd' : undeclared identifier [E:\softwares\wi
nafl-master\build64\afl-fuzz.vcxproj]
..\afl-fuzz.c(2710): error C2065: 'fd' : undeclared identifier [E:\softwares\wi
nafl-master\build64\afl-fuzz.vcxproj]
..\afl-fuzz.c(2714): error C2065: 'fd' : undeclared identifier [E:\softwares\wi
nafl-master\build64\afl-fuzz.vcxproj]
..\afl-fuzz.c(2716): error C2065: 'fd' : undeclared identifier [E:\softwares\wi
nafl-master\build64\afl-fuzz.vcxproj]
..\afl-fuzz.c(2720): error C2065: 'fd' : undeclared identifier [E:\softwares\wi
nafl-master\build64\afl-fuzz.vcxproj]
..\afl-fuzz.c(2721): error C2065: 'fd' : undeclared identifier [E:\softwares\wi
nafl-master\build64\afl-fuzz.vcxproj]
..\afl-fuzz.c(2723): error C2065: 'fd' : undeclared identifier [E:\softwares\wi
nafl-master\build64\afl-fuzz.vcxproj]
..\afl-fuzz.c(7687): error C2275: 'HMODULE' : illegal use of this type as an ex
pression [E:\softwares\winafl-master\build64\afl-fuzz.vcxproj]
C:\Program Files (x86)\Microsoft SDKs\Windows\v7.0A\include\windef.h(
281) : see declaration of 'HMODULE'
..\afl-fuzz.c(7687): error C2146: syntax error : missing ';' before identifier
'hLib' [E:\softwares\winafl-master\build64\afl-fuzz.vcxproj]
..\afl-fuzz.c(7687): error C2065: 'hLib' : undeclared identifier [E:\softwares
winafl-master\build64\afl-fuzz.vcxproj]
..\afl-fuzz.c(7687): warning C4047: '=' : 'int' differs in levels of indirectio
n from 'HMODULE' [E:\softwares\winafl-master\build64\afl-fuzz.vcxproj]
..\afl-fuzz.c(7688): error C2065: 'hLib' : undeclared identifier [E:\softwares
winafl-master\build64\afl-fuzz.vcxproj]
..\afl-fuzz.c(7688): warning C4047: '==' : 'int' differs in levels of indirecti
on from 'void *' [E:\softwares\winafl-master\build64\afl-fuzz.vcxproj]
..\afl-fuzz.c(7693): error C2065: 'hLib' : undeclared identifier [E:\softwares
winafl-master\build64\afl-fuzz.vcxproj]
..\afl-fuzz.c(7693): warning C4047: 'function' : 'HMODULE' differs in levels of
indirection from 'int' [E:\softwares\winafl-master\build64\afl-fuzz.vcxproj]
..\afl-fuzz.c(7693): warning C4024: 'GetProcAddress' : different types for form
al and actual parameter 1 [E:\softwares\winafl-master\build64\afl-fuzz.vcxproj]
..\afl-fuzz.c(7697): error C2065: 'hLib' : undeclared identifier [E:\softwares
winafl-master\build64\afl-fuzz.vcxproj]
..\afl-fuzz.c(7697): warning C4047: 'function' : 'HMODULE' differs in levels of
indirection from 'int' [E:\softwares\winafl-master\build64\afl-fuzz.vcxproj]
..\afl-fuzz.c(7697): warning C4024: 'GetProcAddress' : different types for form
al and actual parameter 1 [E:\softwares\winafl-master\build64\afl-fuzz.vcxproj]
..\afl-fuzz.c(7701): error C2065: 'hLib' : undeclared identifier [E:\softwares
winafl-master\build64\afl-fuzz.vcxproj]
..\afl-fuzz.c(7701): warning C4047: 'function' : 'HMODULE' differs in levels of
indirection from 'int' [E:\softwares\winafl-master\build64\afl-fuzz.vcxproj]
..\afl-fuzz.c(7701): warning C4024: 'GetProcAddress' : different types for form
al and actual parameter 1 [E:\softwares\winafl-master\build64\afl-fuzz.vcxproj]
..\afl-fuzz.c(7705): error C2065: 'hLib' : undeclared identifier [E:\softwares
winafl-master\build64\afl-fuzz.vcxproj]
..\afl-fuzz.c(7705): warning C4047: 'function' : 'HMODULE' differs in levels of
indirection from 'int' [E:\softwares\winafl-master\build64\afl-fuzz.vcxproj]
..\afl-fuzz.c(7705): warning C4024: 'GetProcAddress' : different types for form
al and actual parameter 1 [E:\softwares\winafl-master\build64\afl-fuzz.vcxproj]
Building Custom Rule E:/softwares/winafl-master/CMakeLists.txt
CMake does not need to re-run because E:/softwares/winafl-master/build64/CMak
eFiles/generate.stamp is up-to-date.
afl-showmap.c
afl-showmap.vcxproj -> E:\softwares\winafl-master\build64\bin\Release\afl-sho
wmap.exe
Building Custom Rule E:/softwares/winafl-master/CMakeLists.txt
CMake does not need to re-run because E:/softwares/winafl-master/build64/CMak
eFiles/generate.stamp is up-to-date.
afl-tmin.c
afl-tmin.vcxproj -> E:\softwares\winafl-master\build64\bin\Release\afl-tmin.e
xe
Building Custom Rule E:/softwares/winafl-master/CMakeLists.txt
CMake does not need to re-run because E:/softwares/winafl-master/build64/CMak
eFiles/generate.stamp is up-to-date.
custom_net_fuzzer.c
..\custom_net_fuzzer.c(123): error C2143: syntax error : missing ';' before 'ty
pe' [E:\softwares\winafl-master\build64\custom_net_fuzzer.vcxproj]
..\custom_net_fuzzer.c(180): error C2143: syntax error : missing ';' before 'ty
pe' [E:\softwares\winafl-master\build64\custom_net_fuzzer.vcxproj]
..\custom_net_fuzzer.c(181): error C2065: 'len' : undeclared identifier [E:\sof
twares\winafl-master\build64\custom_net_fuzzer.vcxproj]
..\custom_net_fuzzer.c(184): error C2143: syntax error : missing ';' before 'ty
pe' [E:\softwares\winafl-master\build64\custom_net_fuzzer.vcxproj]
..\custom_net_fuzzer.c(185): error C2065: 'element' : undeclared identifier [E:
\softwares\winafl-master\build64\custom_net_fuzzer.vcxproj]
..\custom_net_fuzzer.c(185): warning C4022: 'memcpy' : pointer mismatch for act
ual parameter 1 [E:\softwares\winafl-master\build64\custom_net_fuzzer.vcxproj]
..\custom_net_fuzzer.c(185): error C2065: 'len' : undeclared identifier [E:\sof
twares\winafl-master\build64\custom_net_fuzzer.vcxproj]
..\custom_net_fuzzer.c(186): error C2065: 'element' : undeclared identifier [E:
\softwares\winafl-master\build64\custom_net_fuzzer.vcxproj]
..\custom_net_fuzzer.c(186): error C2065: 'len' : undeclared identifier [E:\sof
twares\winafl-master\build64\custom_net_fuzzer.vcxproj]
..\custom_net_fuzzer.c(186): error C2109: subscript requires array or pointer t
ype [E:\softwares\winafl-master\build64\custom_net_fuzzer.vcxproj]
..\custom_net_fuzzer.c(188): error C2065: 'element' : undeclared identifier [E:
\softwares\winafl-master\build64\custom_net_fuzzer.vcxproj]
..\custom_net_fuzzer.c(188): warning C4047: '=' : 'char *' differs in levels of
indirection from 'int' [E:\softwares\winafl-master\build64\custom_net_fuzzer.v
cxproj]
..\custom_net_fuzzer.c(213): error C2143: syntax error : missing ';' before 'ty
pe' [E:\softwares\winafl-master\build64\custom_net_fuzzer.vcxproj]
..\custom_net_fuzzer.c(215): error C2143: syntax error : missing ';' before 'ty
pe' [E:\softwares\winafl-master\build64\custom_net_fuzzer.vcxproj]
..\custom_net_fuzzer.c(217): error C2065: 'args' : undeclared identifier [E:\so
ftwares\winafl-master\build64\custom_net_fuzzer.vcxproj]
..\custom_net_fuzzer.c(217): warning C4047: '==' : 'int' differs in levels of i
ndirection from 'void *' [E:\softwares\winafl-master\build64\custom_net_fuzzer.
vcxproj]
..\custom_net_fuzzer.c(220): error C2065: 'argv' : undeclared identifier [E:\so
ftwares\winafl-master\build64\custom_net_fuzzer.vcxproj]
..\custom_net_fuzzer.c(220): warning C4047: 'function' : 'char **' differs in l
evels of indirection from 'int' [E:\softwares\winafl-master\build64\custom_net
fuzzer.vcxproj]
..\custom_net_fuzzer.c(220): warning C4024: 'getopt' : different types for form
al and actual parameter 2 [E:\softwares\winafl-master\build64\custom_net_fuzzer
.vcxproj]
Building Custom Rule E:/softwares/winafl-master/CMakeLists.txt
CMake does not need to re-run because E:/softwares/winafl-master/build64/CMak
eFiles/generate.stamp is up-to-date.
custom_winafl_server.c
..\custom_winafl_server.c(110): error C2143: syntax error : missing ';' before
'type' [E:\softwares\winafl-master\build64\custom_winafl_server.vcxproj]
..\custom_winafl_server.c(112): error C2065: 'res' : undeclared identifier [E:
softwares\winafl-master\build64\custom_winafl_server.vcxproj]
..\custom_winafl_server.c(132): error C2061: syntax error : identifier 'hr' [E:
\softwares\winafl-master\build64\custom_winafl_server.vcxproj]
..\custom_winafl_server.c(132): error C2059: syntax error : ';' [E:\softwares\w
inafl-master\build64\custom_winafl_server.vcxproj]
..\custom_winafl_server.c(132): error C2513: '/global/ ' : no variable declar
ed before '=' [E:\softwares\winafl-master\build64\custom_winafl_server.vcxproj]
..\custom_winafl_server.c(143): error C2065: 'hr' : undeclared identifier [E:\s
oftwares\winafl-master\build64\custom_winafl_server.vcxproj]
..\custom_winafl_server.c(143): warning C4047: '!=' : 'int' differs in levels o
f indirection from 'void *' [E:\softwares\winafl-master\build64\custom_winafl_s
erver.vcxproj]
..\custom_winafl_server.c(144): error C2065: 'hr' : undeclared identifier [E:\s
oftwares\winafl-master\build64\custom_winafl_server.vcxproj]
..\custom_winafl_server.c(144): warning C4022: 'WaitForSingleObject' : pointer
mismatch for actual parameter 1 [E:\softwares\winafl-master\build64\custom_wina
fl_server.vcxproj]
..\custom_winafl_server.c(145): error C2065: 'hr' : undeclared identifier [E:\s
oftwares\winafl-master\build64\custom_winafl_server.vcxproj]
..\custom_winafl_server.c(145): warning C4047: '=' : 'int' differs in levels of
indirection from 'HANDLE' [E:\softwares\winafl-master\build64\custom_winafl_se
rver.vcxproj]
..\custom_winafl_server.c(146): error C2065: 'hr' : undeclared identifier [E:\s
oftwares\winafl-master\build64\custom_winafl_server.vcxproj]
..\custom_winafl_server.c(146): warning C4047: '==' : 'int' differs in levels o
f indirection from 'void *' [E:\softwares\winafl-master\build64\custom_winafl_s
erver.vcxproj]
Building Custom Rule E:/softwares/winafl-master/CMakeLists.txt
CMake does not need to re-run because E:/softwares/winafl-master/build64/CMak
eFiles/generate.stamp is up-to-date.
test.cpp
test.vcxproj -> E:\softwares\winafl-master\build64\bin\Release\test.exe
Building Custom Rule E:/softwares/winafl-master/CMakeLists.txt
CMake does not need to re-run because E:/softwares/winafl-master/build64/CMak
eFiles/generate.stamp is up-to-date.
gdiplus.cpp
test_gdiplus.vcxproj -> E:\softwares\winafl-master\build64\bin\Release\test_g
diplus.exe
Building Custom Rule E:/softwares/winafl-master/CMakeLists.txt
CMake does not need to re-run because E:/softwares/winafl-master/build64/CMak
eFiles/generate.stamp is up-to-date.
test_netmode.cpp
test_netmode.vcxproj -> E:\softwares\winafl-master\build64\bin\Release\test_n
etmode.exe
Building Custom Rule E:/softwares/winafl-master/CMakeLists.txt
CMake does not need to re-run because E:/softwares/winafl-master/build64/CMak
eFiles/generate.stamp is up-to-date.
test_simple_winsock_client.cpp
test_servermode.vcxproj -> E:\softwares\winafl-master\build64\bin\Release\tes
t_servermode.exe
Building Custom Rule E:/softwares/winafl-master/CMakeLists.txt
CMake does not need to re-run because E:/softwares/winafl-master/build64/CMak
eFiles/generate.stamp is up-to-date.
winafl.c
..\winafl.c(469): error C2143: syntax error : missing ';' before 'type' [E:\sof
twares\winafl-master\build64\winafl.vcxproj]
..\winafl.c(471): error C2065: 'command' : undeclared identifier [E:\softwares
winafl-master\build64\winafl.vcxproj]
..\winafl.c(472): error C2065: 'command' : undeclared identifier [E:\softwares
winafl-master\build64\winafl.vcxproj]
..\winafl.c(477): error C2065: 'command' : undeclared identifier [E:\softwares
winafl-master\build64\winafl.vcxproj]
..\winafl.c(696): error C2275: 'bool' : illegal use of this type as an expressi
on [E:\softwares\winafl-master\build64\winafl.vcxproj]
e:\softwares\dynamorio-windows-7.1.0-1\dynamorio-windows-7.1.0-1\incl
ude\dr_defines.h(820) : see declaration of 'bool'
..\winafl.c(696): error C2146: syntax error : missing ';' before identifier 're
sult' [E:\softwares\winafl-master\build64\winafl.vcxproj]
..\winafl.c(696): error C2065: 'result' : undeclared identifier [E:\softwares\w
inafl-master\build64\winafl.vcxproj]
..\winafl.c(698): error C2065: 'result' : undeclared identifier [E:\softwares\w
inafl-master\build64\winafl.vcxproj]
..\winafl.c(935): error C2143: syntax error : missing ';' before 'type' [E:\sof
twares\winafl-master\build64\winafl.vcxproj]
..\winafl.c(936): error C2065: 'mode' : undeclared identifier [E:\softwares\win
afl-master\build64\winafl.vcxproj]
..\winafl.c(936): warning C4047: 'function' : 'const char *' differs in levels
of indirection from 'int' [E:\softwares\winafl-master\build64\winafl.vcxproj]
..\winafl.c(936): warning C4024: 'strcmp' : different types for formal and actu
al parameter 1 [E:\softwares\winafl-master\build64\winafl.vcxproj]
modules.c
Generating Code...
I stopped supporting Visual Studio 2010 some time ago. The newer WinAFL builds were made with Visual Studio 2017. It will probably build with some earlier versions as well, but unfortunately not 2010.
Ok thanks, I will try other version of Visual Studio.
So I install Visual Studio 2017 15.1 version. First I got windows SDK 8.1 missing error which I installed. Now I am getting following error;
E:\softwares\winafl-master\build64>cmake -G"Visual Studio 15 2017 Win64" .. -DDynamoRIO_DIR=E:\softwares\DynamoRIO-Windows-7.1.0-1\DynamoRIO-Windows-7.1.0-1\cmake
CMake Warning (dev) at CMakeLists.txt:15 (add_subdirectory):
The source directory E:/softwares/winafl-master/third_party/processor-trace does not contain a CMakeLists.txt file.
CMake does not support this case but it used to work accidentally and is
being allowed for compatibility.
Policy CMP0014 is not set: Input directories must have CMakeLists.txt. Run
"cmake --help-policy CMP0014" for policy details. Use the cmake_policy
command to set the policy and suppress this warning.
This warning is for project developers. Use -Wno-dev to suppress it.
-- The C compiler identification is unknown
-- The CXX compiler identification is unknown
CMake Error at CMakeLists.txt:19 (project):
No CMAKE_C_COMPILER could be found.
CMake Error at CMakeLists.txt:19 (project):
No CMAKE_CXX_COMPILER could be found.
-- Configuring incomplete, errors occurred!
See also "E:/softwares/winafl-master/build64/CMakeFiles/CMakeOutput.log".
See also "E:/softwares/winafl-master/build64/CMakeFiles/CMakeError.log".
Attached is CmakeError.log. CMakeError.log
Hmm, looks like there was a small issue in CMakeLists.txt where it would still need Intel PT libraries even if you didn't build with Intel PT support. I updated CMakeLists.txt which hopefully fixes it - can you update and try again?
Any updates on this thread?
I have the same problem, with :
>cmake -G"Visual Studio 16 2019" -A x64 .. -DDynamoRIO_DIR=D:\DynamoRIO-Windows-9.0.1\cmake
(Without or with -DINTELPT=1)
Anybody can help me ?
Full trace:
D:\winafl\build64>cmake -G"Visual Studio 16 2019" -A x64 .. -DDynamoRIO_DIR=D:\DynamoRIO-Windows-9.0.1\cmake
CMake Deprecation Warning at CMakeLists.txt:1 (cmake_minimum_required):
Compatibility with CMake < 2.8.12 will be removed from a future version of
CMake.
Update the VERSION argument <min> value or use a ...<max> suffix to tell
CMake that the project does not need compatibility with older versions.
CMake Deprecation Warning at third_party/processor-trace/CMakeLists.txt:27 (cmake_minimum_required):
Compatibility with CMake < 2.8.12 will be removed from a future version of
CMake.
Update the VERSION argument <min> value or use a ...<max> suffix to tell
CMake that the project does not need compatibility with older versions.
-- Selecting Windows SDK version to target Windows 10.0.17763.
-- The C compiler identification is unknown
CMake Error at third_party/processor-trace/CMakeLists.txt:29 (project):
No CMAKE_C_COMPILER could be found.
-- Configuring incomplete, errors occurred!
See also "D:/winafl/build64/CMakeFiles/CMakeOutput.log".
See also "D:/winafl/build64/CMakeFiles/CMakeError.log".
Which version of Visual Studio do you have installed? Are you running the CMake commands from the "VS x64 Native Tools Command Prompt" for your VS version?
I am using Visual Studio 2019.
In the file CMakeError.log, I have seen :
LINK : fatal error LNK1181: impossible d'ouvrir le fichier en entrée 'kernel32.lib' [D:\winafl\build64\CMakeFiles\3.20.21032501-MSVC_2\CompilerIdCXX\CompilerIdCXX.vcxproj]
(In english, the file kernel32.lib is not found).
It is because the Windows 10 SDK is not installed.
After installing it, it works! Version installed: SDK Windows 10 (10.0.17763.0)
I think it could be a good thing to add it in the README.md as a requirements, additionally to cmake + Visual Studio 16 2019 👍
And yes @ifratric , it is also recommended to launch the prompt from "Start Menu > Visual Studio 2019 > Developer command prompt" (Not directly from the IDE ... I do not why but the some pieces of configuration were missing with this).