Open Neonit opened 5 years ago
The above was tried with the default build files generated by running make
without a target. make -n
shows me that, by default, genie is run like ../bx/tools/bin/windows/genie --with-tools --with-combined-examples --with-shared-lib --gcc=mingw-gcc gmake
.
I manually ran it like ../bx/tools/bin/windows/genie.exe --with-shared-lib --gcc=mingw-gcc gmake
after deleting the .build
directory and was able to make mingw-gcc-debug64
and mingw-gcc-release64
without errors. I think the problem described is within the tools or examples.
I feel this is not a good default or the documentation should mention it. Because with the default, a ~750 MB libspirv-optDebug.a
and a ~500 MB shadercDebug.exe
are also built. They are both not necessary for using the bgfx library and take a long time to build. By default, building with Visual Studio does not generate them, resulting in a much shorter build time.
I was trying to build
bgfx
with themingw-gcc-release64
target, but it failed with the following error:Don't know, if this is a MinGW issue or not, but in a past issue a similar (?) error has been fixed in this repo.
Before trying to build the release target, it built
mingw-gcc-debug64
without errors by the way.