S
S
Sergey Shilovsky2018-01-10 03:30:59
IT education
Sergey Shilovsky, 2018-01-10 03:30:59

Why is the GLFW static library not compiling?

I'm trying to build the GLFW library under MinGW, doing this:
mkdir build
cd build
cmake .. -G "MinGW Makefiles" -DBUILD_SHARED_LIBS=OFF
mingw32-make.exe
The compiler works, but I don't see the result of its work, namely glfw3.lib. If you set the DBUILD_SHARED_LIBS=ON flag, then the glfw3.dll file will appear, that is, it creates a dynamic library normally. Perhaps the question is very stupid, but because of such congestion, instead of studying the library, I lose a lot of time trying to get the library to build.

Answer the question

In order to leave comments, you need to log in

2 answer(s)
S
Sergey Shilovsky, 2018-01-14
@First_Spectr

It turned out that static libraries for MinGW look not like name .lib, but lib name .a. However, I ran into another problem, as it turned out, when connecting a static library, you also need to connect a lot of headers, the function calls of which are in this library, apparently when compiling with a dynamic library, the compiler does not check their presence, but checks with a static one.

L
Legebocker, 2018-01-11
@EnDeRJaY

What's stopping you from downloading binaries?

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question