mirror of
https://github.com/kovidgoyal/calibre.git
synced 2025-07-09 03:04:10 -04:00
Linux installer: Also check for libOpenGL
This commit is contained in:
parent
87a5d03546
commit
32ed99b702
@ -752,6 +752,16 @@ def check_for_libEGL():
|
|||||||
raise SystemExit('You are missing the system library libEGL.so.1. Try installing packages such as libegl1 and libopengl0')
|
raise SystemExit('You are missing the system library libEGL.so.1. Try installing packages such as libegl1 and libopengl0')
|
||||||
|
|
||||||
|
|
||||||
|
def check_for_libOpenGl():
|
||||||
|
import ctypes
|
||||||
|
try:
|
||||||
|
ctypes.CDLL('libOpenGL.so.0')
|
||||||
|
return
|
||||||
|
except Exception:
|
||||||
|
pass
|
||||||
|
raise SystemExit('You are missing the system library libOpenGL.so.0. Try installing packages such as libopengl0')
|
||||||
|
|
||||||
|
|
||||||
def check_glibc_version(min_required=(2, 31), release_date='2020-02-01'):
|
def check_glibc_version(min_required=(2, 31), release_date='2020-02-01'):
|
||||||
# See https://sourceware.org/glibc/wiki/Glibc%20Timeline
|
# See https://sourceware.org/glibc/wiki/Glibc%20Timeline
|
||||||
import ctypes
|
import ctypes
|
||||||
@ -788,6 +798,7 @@ def main(install_dir=None, isolated=False, bin_dir=None, share_dir=None, ignore_
|
|||||||
break
|
break
|
||||||
if q[0] >= 6:
|
if q[0] >= 6:
|
||||||
check_for_libEGL()
|
check_for_libEGL()
|
||||||
|
check_for_libOpenGl()
|
||||||
run_installer(install_dir, isolated, bin_dir, share_dir, version)
|
run_installer(install_dir, isolated, bin_dir, share_dir, version)
|
||||||
|
|
||||||
|
|
||||||
|
@ -801,6 +801,16 @@ def check_for_libEGL():
|
|||||||
raise SystemExit('You are missing the system library libEGL.so.1. Try installing packages such as libegl1 and libopengl0')
|
raise SystemExit('You are missing the system library libEGL.so.1. Try installing packages such as libegl1 and libopengl0')
|
||||||
|
|
||||||
|
|
||||||
|
def check_for_libOpenGl():
|
||||||
|
import ctypes
|
||||||
|
try:
|
||||||
|
ctypes.CDLL('libOpenGL.so.0')
|
||||||
|
return
|
||||||
|
except Exception:
|
||||||
|
pass
|
||||||
|
raise SystemExit('You are missing the system library libOpenGL.so.0. Try installing packages such as libopengl0')
|
||||||
|
|
||||||
|
|
||||||
def check_glibc_version(min_required=(2, 31), release_date='2020-02-01'):
|
def check_glibc_version(min_required=(2, 31), release_date='2020-02-01'):
|
||||||
# See https://sourceware.org/glibc/wiki/Glibc%20Timeline
|
# See https://sourceware.org/glibc/wiki/Glibc%20Timeline
|
||||||
import ctypes
|
import ctypes
|
||||||
@ -837,6 +847,7 @@ def main(install_dir=None, isolated=False, bin_dir=None, share_dir=None, ignore_
|
|||||||
break
|
break
|
||||||
if q[0] >= 6:
|
if q[0] >= 6:
|
||||||
check_for_libEGL()
|
check_for_libEGL()
|
||||||
|
check_for_libOpenGl()
|
||||||
run_installer(install_dir, isolated, bin_dir, share_dir, version)
|
run_installer(install_dir, isolated, bin_dir, share_dir, version)
|
||||||
|
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user