VDrift / vdrift

VDrift source code
http://vdrift.net/
GNU General Public License v3.0
353 stars 96 forks source link

Problem making "scons install" #183

Open leillo1975 opened 3 years ago

leillo1975 commented 3 years ago

Hello. I see you are making some changes on code. I tried to install the game after compilling with:

scons install prefix=/media/DATOS/VDRIFT

but when i exectute this command I have the following error: Captura de pantalla de 2021-03-08 17-30-32

logzero commented 3 years ago

Something going on with the mo builder (gettext, msgfmt). I haven't looked into it. Help is appreciated.

leillo1975 commented 3 years ago

This error seems to be fixed, but now I found another one: https://github.com/VDrift/vdrift/issues/184

Snake266 commented 3 years ago

I have the same issue. Data is taken from https://svn.code.sf.net/p/vdrift/code/vdrift-data/,

mo_builder(["data/locale/hu_HU/LC_MESSAGES/vdrift.mo"], ["data/locale/hu_HU.po"])
scons: *** [data/locale/hu_HU/LC_MESSAGES/vdrift.mo] Error 127
scons: building terminated because of errors.

Do I need to generate locales to remove errors? If I delete Hungarian locale I will get error with next locale and so on.

leillo1975 commented 1 year ago

Today I tried to build again with scons and have the same error:

Install file: "data/tracks/zandvoort/objects/windc.bmp.png" as "/media/DATOS/VDRIFT/share/games/vdrift/data/tracks/zandvoort/objects/windc.bmp.png"
Install file: "data/tracks/zandvoort/objects/windtw.bmp.png" as "/media/DATOS/VDRIFT/share/games/vdrift/data/tracks/zandvoort/objects/windtw.bmp.png"
Install file: "data/tracks/zandvoort/objects/xrw1a.bmp.png" as "/media/DATOS/VDRIFT/share/games/vdrift/data/tracks/zandvoort/objects/xrw1a.bmp.png"
Install file: "data/tracks/zandvoort/objects/xrw1b.bmp.png" as "/media/DATOS/VDRIFT/share/games/vdrift/data/tracks/zandvoort/objects/xrw1b.bmp.png"
Install file: "data/tracks/zandvoort/roads.trk" as "/media/DATOS/VDRIFT/share/games/vdrift/data/tracks/zandvoort/roads.trk"
Install file: "data/tracks/zandvoort/surfaces.txt" as "/media/DATOS/VDRIFT/share/games/vdrift/data/tracks/zandvoort/surfaces.txt"
Install file: "data/tracks/zandvoort/track.txt" as "/media/DATOS/VDRIFT/share/games/vdrift/data/tracks/zandvoort/track.txt"
Install file: "data/tracks/zandvoort/trackshot.png" as "/media/DATOS/VDRIFT/share/games/vdrift/data/tracks/zandvoort/trackshot.png"
mo_builder(["data/locale/pl/LC_MESSAGES/vdrift.mo"], ["data/locale/pl.po"])
scons: *** [data/locale/pl/LC_MESSAGES/vdrift.mo] Error 127
scons: building terminated because of errors.

Is there another way to build Vdrift in Ubuntu without using scons?

leillo1975 commented 11 months ago

After a few months away, I tried to build the game again today and I still have the same problem. I use these commands to build: scons arch=a64 release=1 extbullet=1 prefix=[route/of/installation] scons install prefix=[route/of/installation]

ChuckStarchaser commented 6 months ago

I'm having different problems with scons; first it wants every print statement to have parenthesis. After adding parenthesis to dozens of print's, another error occurs ... about a missing method ...

.......
$ scons arch=a64 release=1 extbullet=1 prefix=/usr/local
scons: Reading SConscript files ...
File "/home/danw58/Downloads/zip/vdrift/vdrift/SConstruct", line 235

print 'running ', cmd, ' ... '

^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^

SyntaxError: Missing parentheses in call to 'print'. Did you mean print(...)?

$ scons arch=a64 release=1 extbullet=1 prefix=/usr/local
scons: Reading SConscript files ...
File "/home/danw58/Downloads/zip/vdrift/vdrift/SConstruct", line 365

print 'You do not have the %s headers installed. Exiting.' % header

^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^

SyntaxError: Missing parentheses in call to 'print'. Did you mean print(...)?

$ scons arch=a64 release=1 extbullet=1 prefix=/usr/local
scons: Reading SConscript files ...
File "/home/danw58/Downloads/zip/vdrift/vdrift/SConstruct", line 369

print lib[3]

^^^^^^^^^^^^

SyntaxError: Missing parentheses in call to 'print'. Did you mean print(...)?

$ scons arch=a64 release=1 extbullet=1 prefix=/usr/local
scons: Reading SConscript files ...
AttributeError: '_Environ' object has no attribute 'has_key':
File "/home/danw58/Downloads/zip/vdrift/vdrift/SConstruct", line 144:
if os.environ.has_key('CXX'):
$ 

How does anybody manage to compile this? Or ... Does anybody?