]> git.xonotic.org Git - xonotic/xonotic.wiki.git/commitdiff
Create Shared libraries (buildfiles)
authornico <nico@lifeisabug.com>
Sun, 7 Jun 2020 13:00:48 +0000 (13:00 +0000)
committernico <nico@lifeisabug.com>
Sun, 7 Jun 2020 13:00:48 +0000 (13:00 +0000)
Shared-libraries-(buildfiles).md [new file with mode: 0644]

diff --git a/Shared-libraries-(buildfiles).md b/Shared-libraries-(buildfiles).md
new file mode 100644 (file)
index 0000000..cbc4ce5
--- /dev/null
@@ -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