windows 7 - 64 bit
GNU make 3.81
glfw-3.2.1
cmake 3.6.2
hey,
I have a vulkan / glfw project. I’d like to compile my project via makefile. no IDE, which means, no visual studio, codeblocks and so on. the precompiled libraries are for visual studio only. there is one for mingw, that doesn’t work during linking stage.
makefile:
VERSION = 1.00
CFLAGS = -Wall -Wpedantic -Wextra -std=gnu++11
# Engine
DE_H001 = de_core.h
DE_H002 = de_error.h
DE_H003 = de_glb.h
DE_S001 = de_core.cpp
# Framework
FW_S001 = fw_main.cpp
# Combined
SRC_ALL = $(DE_S001) $(FW_S001)
H_ALL = $(DE_H001) $(DE_H002) $(DE_H003)
VulkanFramework: $(SRC_ALL) $(H_ALL)
mingw32-c++ $(CFLAGS) $(SRC_ALL) $(H_ALL) -o VulkanFramework -L lib/ -lglfw3 -lglfw3dll -lpthread
there is a lib folder, where glfw3.dll, libglfw3.a, libglfw3dll.a are located, taken from the “glfw-3.2.1.bin.WIN64” download folder.
Since I recieve a “undefined reference” error on every glfw function, I guess these libraries aren’t suiteable for my OS. So I downloaded the source package and tried to compile it via cmake. that didn’t work… 'cause cl.exe is unknown to my OS. (cl.exe is visual studio again)
so I guess I have to compile it totally manually, since I didn’t find any pre compiled libraries for MinGW. I read this section: compile manual
but it doesn’t say anything about the right flags for vulkan support. so what can I do?