Hi.

On Tue, Jan 08, 2019 at 08:22:53AM -0500, Boyan Penkov wrote:
> Hello,
> 
> Anybody here play http://www.thedarkmod.com/main/ 
> <http://www.thedarkmod.com/main/> ?

I wish ☹

>  have folks been able to get 2.07 to compile on Stretch, under only 64-bit?

I could try if you provide me the source. 2.06, which I took from [1],
can be built like this:

1) Build-deps:

apt install scons m4 subversion mesa-common-dev libxxf86vm-dev \
        libopenal-dev libxext-dev
apt purge libcurl4-gnutls-dev

2) Patching:

patch -p1 -i /tmp/01-multilib.patch
patch -p1 -i /tmp/02-ffmpeg.patch

3) Building:

scons BUILD="release" TARGET_ARCH="x64" -j`nproc`


Of course, doing it the proper way (unbundling all the libraries, fixing
signed/unsigned mixups, etc), wrapping the thing into a package - is
outside of scope of this mini-howto.

Reco

[1] http://www.thedarkmod.com/downloads/
--- a/SConstruct	2019-01-08 18:48:05.649443121 +0000
+++ b/SConstruct	2019-01-08 18:53:28.922133688 +0000
@@ -294,6 +294,9 @@
 if ( ID_MCHECK == '1' ):
 	BASECPPFLAGS.append( '-DID_MCHECK' )
 	
+BASECPPFLAGS.append( '-I/usr/include/x86_64-linux-gnu' )
+BASECPPFLAGS.append( '-I/usr/include/x86_64-linux-gnu/c++/6' )
+	
 # create the build environements
 g_env_base = Environment( ENV = os.environ, CC = CC, CXX = CXX, LINK = LINK, CPPFLAGS = BASECPPFLAGS, LINKFLAGS = BASELINKFLAGS, CPPPATH = CORECPPPATH, LIBPATH = CORELIBPATH )
 scons_utils.SetupUtils( g_env_base )
--- a/sys/scons/SConscript.darkmod	2019-01-08 19:59:04.981862098 +0000
+++ b/sys/scons/SConscript.darkmod	2019-01-08 20:03:54.722893897 +0000
@@ -59,11 +59,11 @@
 	local_env.Append(LIBS = [
 		File('#/linux/libcurl/lib64/libcurl.a'),
 		File('#/linux/polarssl/lib64/libpolarssl.a'),
-		File('#/linux/ffmpeg/lib64/libavformat.a'),
-		File('#/linux/ffmpeg/lib64/libavcodec.a'),
-		File('#/linux/ffmpeg/lib64/libavutil.a'),
-		File('#/linux/ffmpeg/lib64/libswscale.a'),
-		File('#/linux/ffmpeg/lib64/libswresample.a')
+		[ 'avformat' ],
+		[ 'avcodec' ],
+		[ 'avutil' ],
+		[ 'swscale' ],
+		[ 'swresample' ],
 	])
 
 # Add all standard libraries (taken from system)
--- a/SConstruct	2019-01-08 18:48:05.649443121 +0000
+++ b/SConstruct	2019-01-08 19:59:20.333704948 +0000
@@ -304,7 +308,6 @@
 g_env_base.Append(CPPPATH = '#/include/libjpeg')
 g_env_base.Append(CPPPATH = '#/include/libpng')
 g_env_base.Append(CPPPATH = '#/include/devil')
-g_env_base.Append(CPPPATH = '#/include/ffmpeg')
 g_env_base.Append(CPPPATH = '#/')
 
 g_env_base['CPPFLAGS'] += OPTCPPFLAGS

Reply via email to