Skip to content

Commit 2d78db0

Browse files
Remove RPI native build because it doesn't work on current Raspbian. Use standard Linux X11 when on RPI. Issue #55
1 parent 4f90725 commit 2d78db0

File tree

1 file changed

+4
-12
lines changed

1 file changed

+4
-12
lines changed

raylib/build.py

Lines changed: 4 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -150,18 +150,10 @@ def build_unix():
150150
'CoreVideo']
151151
libraries = []
152152
else: #platform.system() == "Linux":
153-
if "arm" in platform.machine():
154-
print("BUILDING FOR RASPBERRY PI")
155-
extra_link_args = [get_the_lib_path() + '/libraylib.a',
156-
'/opt/vc/lib/libEGL_static.a', '/opt/vc/lib/libGLESv2_static.a',
157-
'-L/opt/vc/lib', '-lvcos', '-lbcm_host', '-lbrcmEGL', '-lbrcmGLESv2',
158-
'-lm', '-lpthread', '-lrt']
159-
libraries = []
160-
else: #"x86" in platform.machine():
161-
print("BUILDING FOR LINUX")
162-
extra_link_args = [get_the_lib_path() + '/libraylib.a', '-lm', '-lpthread', '-lGLU', '-lGL',
163-
'-lrt', '-lm', '-ldl', '-lX11', '-lpthread']
164-
libraries = ['GL', 'm', 'pthread', 'dl', 'rt', 'X11']
153+
print("BUILDING FOR LINUX")
154+
extra_link_args = [get_the_lib_path() + '/libraylib.a', '-lm', '-lpthread', '-lGL',
155+
'-lrt', '-lm', '-ldl', '-lX11', '-lpthread']
156+
libraries = ['GL', 'm', 'pthread', 'dl', 'rt', 'X11']
165157

166158
ffibuilder.set_source("raylib._raylib_cffi", ffi_includes, extra_link_args=extra_link_args,
167159
libraries=libraries)

0 commit comments

Comments
 (0)