Reputation: 1
I am trying to build bgfx on windows 64-bit with mingw-gcc and not Visual Studio. While trying to build I got errors
I tried to build the bgfx library with make mingw-gcc-debug64
and I got errors while running the command. I got the following output: command line error My gcc is installed at C:\llvm-mingw\bin\gcc.exe
. Please let me know how I can fix this. Thanks!
Upvotes: -3
Views: 665
Reputation: 369
I have got the same error. Building all the repos beforehand worked for me.
cd bx
make mingw-gcc-debug64
cd ..
cd bimg
make mingw-gcc-debug64
cd ..
cd bgfx
make mingw-gcc-debug64
I used w64devkit (1.21.0).
Upvotes: 0
Reputation: 31
Try this way (note if your OS Linux you dont need install MSYS2- this is for Windows only)
install git, cmake.
Install mingw64 via "MSYS2" devtools manager. this is manual how to do it https://www.devdungeon.com/content/install-gcc-compiler-windows-msys2-cc , install MSYS2 with all dev tools (gcc toollchanain, cmake, make, mc.. )
clone to your folder on your pc cmake-version of bgfx via command "git clone --recursive https://github.com/bkaradzic/bgfx.cmake.git"
make build folder inside bgfx.cmake
from the build folder in command terminal type cmake "-G "MinGW Makefiles" .." (if your system is Linux just type "cmake .." )
"type cmake --build . --target examples" after type "cmake --build . --target tools"
That is all!
Upvotes: 0