Sakrac / IceBroLite

External Debugger for VICE 3.5 and higher
55 stars 7 forks source link

build problem in linux #29

Closed mrdudz closed 1 year ago

mrdudz commented 1 year ago

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
Sakrac commented 1 year ago

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

Sakrac commented 1 year ago

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