aravioli
aravioli

Reputation: 1

Error building BGFX on windows for mingw-gcc

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

Answers (2)

h4ri
h4ri

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

Timur123
Timur123

Reputation: 31

Try this way (note if your OS Linux you dont need install MSYS2- this is for Windows only)

  1. install git, cmake.

  2. 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.. )

  3. clone to your folder on your pc cmake-version of bgfx via command "git clone --recursive https://github.com/bkaradzic/bgfx.cmake.git"

  4. make build folder inside bgfx.cmake

  5. from the build folder in command terminal type cmake "-G "MinGW Makefiles" .." (if your system is Linux just type "cmake .." )

  6. "type cmake --build . --target examples" after type "cmake --build . --target tools"

That is all!

Upvotes: 0

Related Questions