google / filament

Filament is a real-time physically based rendering engine for Android, iOS, Windows, Linux, macOS, and WebGL2
https://google.github.io/filament/
Apache License 2.0
17.35k stars 1.83k forks source link

compile spirv-tools failed use vs2019 #7921

Closed as010101 closed 2 weeks ago

as010101 commented 2 weeks ago

filament code is latest release version., the error msg like this :

2>Generate language specific header for DebugInfo.
2>/usr/bin/python3: can't open file '/d/my_filament/filament-release/build/third_party/spirv-tools/source/D:/my_filament/filament-release/filament-release/third_party/spirv-tools/utils/generate_language_headers.py': [Errno 2] No such file or directory
2>C:\Program Files (x86)\Microsoft Visual Studio\2019\Community\MSBuild\Microsoft\VC\v160\Microsoft.CppCommon.targets(241,5): error MSB8066: “D:\my_filament\filament-release\build\CMakeFiles\f5b17b8c15546e24612543737b75be68\DebugInfo.h.rule;D:\my_filament\filament-release\build\CMakeFiles\89fb650eb6e9d6117e4ae00007f4db65\spirv-tools-header-DebugInfo.rule;D:\my_filament\filament-r``
poweifeng commented 2 weeks ago

Your output looks kind of strange. Are you trying to use cygwin or similar tool to compile?

as010101 commented 2 weeks ago

Your output looks kind of strange. Are you trying to use cygwin or similar tool to compile?

No, I will try it.

poweifeng commented 2 weeks ago

Actually, cygwin and others like it (even WSL) are not officially supported, you should follow the instructions here: https://github.com/google/filament/blob/main/BUILDING.md#windows https://github.com/google/filament/blob/main/android/Windows.md