Compiling/running tests with Visual Studio

207 views
Skip to first unread message

Ahmed Ashour

unread,
Nov 10, 2022, 11:13:01 AM11/10/22
to skia-discuss
On trying to compile Skia and run its tests with Visual Studio 2022. There are some errors.  I am able to build and run the "Hello World" sample, but can't find/run any tests.

Steps:
- python3 tools/git-sync-deps
- bin/gn gen out/Debug --ide=vs
- Open the project with Visual Studio: Test -> Test Explorer -> Run all tests.

I tried to run VS with as administrator, also the failed "ninja" commands actually produce no error when separately run from the command prompt.

Thanks.

Error    C1083    Cannot open compiler generated file: 'C:\use\skia\out\Debug\obj\third_party\externals\spirv-tools\source\opt\spvtools_opt.desc_sroa_util.obj': Permission denied    spvtools_link    C:\use\skia\third_party\externals\spirv-tools\source\opt\desc_sroa_util.cpp    1    
Error    C1083    Cannot open compiler generated file: 'C:\use\skia\out\Debug\obj\third_party\externals\spirv-tools\source\opt\spvtools_opt.decoration_manager.obj': Permission denied    spvtools_opt    C:\use\skia\third_party\externals\spirv-tools\source\opt\decoration_manager.cpp    1    
Error    MSB3073    The command "call ninja.exe -C C:\use\skia\out\Debug\  spvtools_link.lib" exited with code 1.    spvtools_link    C:\use\skia\out\Debug\obj\third_party\externals\spirv-tools\spvtools_link.vcxproj    61    
Error    MSB3073    The command "call ninja.exe -C C:\use\skia\out\Debug\  spvtools_opt.lib" exited with code 1.    spvtools_opt    C:\use\skia\out\Debug\obj\third_party\externals\spirv-tools\spvtools_opt.vcxproj    628    
Error    C1083    Cannot open compiler generated file: 'C:\use\skia\out\Debug\obj\tools\sk_app\sk_app.Window.obj': Permission denied    viewer    C:\use\skia\tools\sk_app\Window.cpp    1    
Error    MSB3073    The command "call ninja.exe -C C:\use\skia\out\Debug\  viewer.exe" exited with code 1.    viewer    C:\use\skia\out\Debug\obj\viewer.vcxproj    147    
Error    C1083    Cannot open compiler generated file: 'C:\use\skia\out\Debug\obj\third_party\externals\spirv-tools\source\opt\spvtools_opt.instrument_pass.obj': Permission denied    spvtools_reduce    C:\use\skia\third_party\externals\spirv-tools\source\opt\instrument_pass.cpp    1    
Error    MSB3073    The command "call ninja.exe -C C:\use\skia\out\Debug\  spvtools_reduce.lib" exited with code 1.    spvtools_reduce    C:\use\skia\out\Debug\obj\third_party\externals\spirv-tools\spvtools_reduce.vcxproj    207    
Error    C1083    Cannot open compiler generated file: 'C:\use\skia\out\Debug\obj\tools\sk_app\win\sk_app.Window_win.obj': Permission denied    text_editor ((skia)\(experimental)\(sktext)\text_editor)    C:\use\skia\tools\sk_app\win\Window_win.cpp    1    
Error    MSB3073    The command "call ninja.exe -C C:\use\skia\out\Debug\  obj/experimental/sktext/text_editor.stamp" exited with code 1.    text_editor ((skia)\(experimental)\(sktext)\text_editor)    C:\use\skia\out\Debug\obj\experimental\sktext\text_editor.vcxproj    82    
   
Reply all
Reply to author
Forward
0 new messages