How compile sunshine with visual studio 2019 or QtCreator? #197

@parisa-hr

Description

Hi, I want to build sunshine with visual studio 2019 , I'm a beginner in CMake and I don't know how should I set to compile the project with visual studio.(actually, I want to use breakpoints for trace code and understand it better )

This issue may so easy or stupid but I really don't know how to fix it and work with project inside one IDE , I also try QtCreator, and there I cant build project.

these commands work when I use cmd but I want to build and compile projects with one IDE like visual studio how can I do this? I am very grateful if you give me the answer

cmake -G"Unix Makefiles" ..
mingw32-make

here is my cmakesetting.json:

"configurations": [ "name": "Mingw64-Debug", "configurationType": "Debug", "buildRoot": "E:/sunshine/build", "installRoot": "${env.USERPROFILE}\\CMakeBuilds\\${workspaceHash}\\install\\${name}", "cmakeCommandArgs": "-G\"Unix Makefiles\" ..", "buildCommandArgs": "-v", "ctestCommandArgs": "", "inheritEnvironments": [ "mingw_64" ], "environments": [ "MINGW64_ROOT": "C:\\msys64\\mingw64", "BIN_ROOT": "${env.MINGW64_ROOT}\\bin", "FLAVOR": "x86_64-w64-mingw32", "TOOLSET_VERSION": "7.3.0", "PATH": "${env.MINGW64_ROOT}\\bin;${env.MINGW64_ROOT}\\..\\usr\\local\\bin;${env.MINGW64_ROOT}\\..\\usr\\bin;${env.MINGW64_ROOT}\\..\\bin;${env.PATH}", "INCLUDE": "${env.INCLUDE};${env.MINGW64_ROOT}\\include\\c++\\${env.TOOLSET_VERSION};${env.MINGW64_ROOT}\\include\\c++\\${env.TOOLSET_VERSION}\\tr1;${env.MINGW64_ROOT}\\include\\c++\\${env.TOOLSET_VERSION}\\${env.FLAVOR}", "environment": "mingw_64" "variables": [ "name": "CMAKE_C_COMPILER", "value": "${env.BIN_ROOT}\\gcc.exe", "type": "STRING" "name": "CMAKE_CXX_COMPILER", "value": "${env.BIN_ROOT}\\g++.exe", "type": "STRING" "intelliSenseMode": "linux-gcc-x64"

when I generate with this I get many errors:

Severity Code Description Project File Line Suppression State Error CMake Error at C:/Program Files (x86)/Microsoft Visual Studio/2019/Enterprise/Common7/IDE/CommonExtensions/Microsoft/CMake/CMake/share/cmake-3.13/Modules/Internal/FeatureTesting.cmake:56 (file): file failed to open for writing (Permission denied):
E:/sunshine/build/CMakeFiles/CMakeOutput.log C:/Program Files (x86)/Microsoft Visual Studio/2019/Enterprise/Common7/IDE/CommonExtensions/Microsoft/CMake/CMake/share/cmake-3.13/Modules/Internal/FeatureTesting.cmake 56