From: Chips-fr Date: Mon, 25 Dec 2017 16:38:36 +0000 (+0100) Subject: Support latest raspberry GLES library name X-Git-Tag: v1.93~17^2 X-Git-Url: https://notaz.gp2x.de/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=9c0ac970438d6962bd9e8074bc3b26060a7482ba;p=picodrive.git Support latest raspberry GLES library name --- diff --git a/Makefile b/Makefile index 997609da..2620a704 100644 --- a/Makefile +++ b/Makefile @@ -69,7 +69,13 @@ endif ifeq ("$(PLATFORM)",$(filter "$(PLATFORM)","rpi1" "rpi2")) CFLAGS += -DHAVE_GLES -DRASPBERRY CFLAGS += -I/opt/vc/include/ -I/opt/vc/include/interface/vcos/pthreads/ -I/opt/vc/include/interface/vmcs_host/linux/ -LDFLAGS += -ldl -lbcm_host -L/opt/vc/lib -lEGL -lGLESv2 +LDFLAGS += -ldl -lbcm_host -L/opt/vc/lib +# Stupid renaming occured in latest raspbian... +ifneq (,$(wildcard /opt/vc/lib/libbrcmGLESv2.so)) +LDFLAGS += -lbrcmEGL -lbrcmGLESv2 +else +LDFLAGS += -lEGL -lGLESv2 +endif OBJS += platform/linux/emu.o platform/linux/blit.o # FIXME OBJS += platform/common/plat_sdl.o OBJS += platform/libpicofe/plat_sdl.o platform/libpicofe/in_sdl.o diff --git a/README b/README index d9c10910..af1bbfcc 100644 --- a/README +++ b/README @@ -12,10 +12,3 @@ then taken over and expanded by notaz. PicoDrive was the first emulator ever to properly emulate Virtua Racing and it's SVP chip. - -How to compile on Raspbian Wheezy: - -export CC=gcc-4.8 -export CXX=g++-4.8 -./configure --platform=rpi2 -make