From 809bf7be09a8f09d0437c38ef9295c0108d3acba Mon Sep 17 00:00:00 2001 From: nico Date: Sun, 7 Jun 2020 13:00:48 +0000 Subject: [PATCH] Create Shared libraries (buildfiles) --- Shared-libraries-(buildfiles).md | 49 ++++++++++++++++++++++++++++++++ 1 file changed, 49 insertions(+) create mode 100644 Shared-libraries-(buildfiles).md diff --git a/Shared-libraries-(buildfiles).md b/Shared-libraries-(buildfiles).md new file mode 100644 index 0000000..cbc4ce5 --- /dev/null +++ b/Shared-libraries-(buildfiles).md @@ -0,0 +1,49 @@ +Xonotic on Linux uses system libraries. For Windows and macOS external dlls and dylibs are needed. Those reside in xonotic/misc/buildfiles + +Because at the time of writing there is no automatism to build or update the games dependencies for those 2 platforms and the current dlls/dylibs are VERY outdated and thus also contain vulnerabilities, this page should document on where to obtain or how to build them, retaining API compatibility to darkplaces and also older OS platform versions like Windows XP. + +# libcurl +libcurl is used for downloading *.pk3 files from servers + +## Windows +Darkplaces loads libcurl-4.dll or libcurl-3.dll + +Build instructions: +* clone https://gitlab.com/incognico/build-libcurl-windows +* run build.bat in a VS2019 Development Shell +* rename the built dlls (x64 & x86) to libcurl-4.dll + +## macOS +Darkplaces loads libcurl.4.dylib or libcurl.3.dylib or libcurl.2.dylib + +# libjpeg-turbo +libjpeg-turbo is needed to display jpeg images + +## Windows +Darkplaces loads libjpeg.dll + +Obtainment instructions: +* download libjpeg-turbo-VERSION-vc.exe & libjpeg-turbo-VERSION-vc64.exe from https://sourceforge.net/projects/libjpeg-turbo/files/ +* extract the *.exe files and use bin/jpeg62.dll +* rename the dlls (x64 & x86) to libjpeg.dll + +## macOS +Darkplaces loads libjpeg.62.dylib + +# libpng + +# libgmp + +# libfreetype + +# libogg + +# libvorbis + +# libvorbisfile + +# libvorbisenc + +# libtheora + +# libstdc++-6 \ No newline at end of file -- 2.39.2