Sakrac/IceBroLite

build problem in linux

mrdudz opened this issue · 2 comments

There are some hardcoded names/pathes in the makefile that make it fail to compile on my system, this fixes it:

diff --git a/src/Makefile b/src/Makefile
index 5bf2f78..f22ce28 100644
--- a/src/Makefile
+++ b/src/Makefile
@@ -41,9 +41,9 @@ LIBS =
 
 ifeq ($(UNAME_S), Linux) #LINUX
        ECHO_MESSAGE = "Linux"
-       LIBS += ../../glfw/libglfw3.a -lGL `pkg-config --static --libs ../../glfw/libglfw3` -pthread
+       LIBS += `pkg-config --libs glfw3` -lGL `pkg-config --static --libs glfw3` -pthread
 
-       CXXFLAGS += -I../../glfw/include `pkg-config --cflags glfw3`
+       CXXFLAGS += `pkg-config --cflags glfw3`
        CFLAGS = $(CXXFLAGS)
 endif

Applied the changes but it won't link with GLFW on my install as is, not sure what I'm missing locally.

I was just missing pkg-config, it was all over the error messages :)