miRackModular / Rack

An optimised fork of VCVRack virtual modular synthesizer primarily for Raspberry Pi, Tinker Board and similar boards.
https://mifki.com/blog/introducing-mirack-an-optimised-fork-of-vcvrack-for-raspberry-pi-and-others/
BSD 3-Clause "New" or "Revised" License
155 stars 12 forks source link

building mi-Rack on ubuntu 18.04 x86_64 #9

Open hexdump0815 opened 5 years ago

hexdump0815 commented 5 years ago

hello again,

i needed to use the following change to the Makefile to make it compile on ubuntu 18.04 on x86_64

diff --git a/Makefile b/Makefile
index b5bc885..5ff8e05 100644
--- a/Makefile
+++ b/Makefile
@@ -38,7 +38,7 @@ ifeq ($(ARCH), lin)
        LDFLAGS += -rdynamic \
                -lpthread -ldl -lz -lasound -lX11 \
                $(shell pkg-config --libs gtk+-2.0) \
-               -Ldep/lib -Wl,-Bstatic -lglfw3 -ljansson -lspeexdsp -lzip -lz -lrtmidi -lrtaudio -lcurl -lssl -lcrypto -Wl,-Bdynamic
+               -Ldep/lib -Wl,-Bstatic $(shell pkg-config --static --libs glfw3 | perl -pe 's/-lGL //; s/-lm //g; s/-lXdmcp//g; s/-lXau //g' ) -ljansson -lspeexdsp -lzip -lz -lrtmidi -lrtaudio -lcurl -lssl -lcrypto -Wl,-Bdynamic -lXdmcp -lXau -lasound -lm

 ifneq (,$(findstring arm,$(CPU)))
        LDFLAGS += -lGLESv2 dep/lib/libmathlib_static.a

additionally the following is required in the shell where the build is happening: export PKG_CONFIG_PATH=./dep/lib/pkgconfig/

i think i found it somewhere around the original vcvrack issues - maybe useful for others trying to compile it on such a system as well

best wishes - hexdump