I tried to compile fceux from scratch, using both the latest stable release (2.2.3) code and also the git master branch, but in both cases runnning "scons" results in such message:
$ scons
scons: Reading SConscript files ...
File "/home/mateusz/svn/fceux/trunk/SConstruct", line 73
print "platform: ", env['PLATFORM']
^
SyntaxError: Missing parentheses in call to 'print'. Did you mean print("platform: ", env['PLATFORM'])?
I use the default scons tool, as shipped with my distro:
scons -v
SCons by Steven Knight et al.:
script: v3.0.1.74b2c53bc42290e911b334a6b44f187da698a668, 2017/11/14 13:16:53, by bdbaddog on hpmicrodog
engine: v3.0.1.74b2c53bc42290e911b334a6b44f187da698a668, 2017/11/14 13:16:53, by bdbaddog on hpmicrodog
engine path: ['/usr/lib/scons-3.0.1/SCons']
Copyright (c) 2001 - 2017 The SCons Foundation
use an older scons. this newer scons is python 3 and can't handle python 2 print syntax. who knows what other problems you will run into
A current version of SCons can build fceux (tested latest git, Arch Linux) by converting the Python 2 only code in SConstruct and src/SConscript to Python 3:
http://python-future.org/futurize_cheatsheet.html
$ pip install future (or install python-future with your distro)
$ futurize --stage1 -w SConstruct src/SConscript
$ scons
Devs please update/test the build to work with current versions of SCons.
Last edit: hexregex 2019-09-10
How about you do it and submit a PR on github
Submitted.
Last edit: hexregex 2019-09-11