FWGS / xash3d

DEPRECATED in favor of https://github.com/FWGS/xash3d-fwgs. Only bugfixes are accepted.
https://xash.su
GNU General Public License v3.0
553 stars 108 forks source link

Orange PI launching Xash3D #396

Closed danil1petrov closed 6 years ago

danil1petrov commented 6 years ago

Hello! There is Orange PI Mali-400 ARM Allwinner H3 Ubuntu Xenial. Version 0.18 works good, but new do not. 0.19.1 need SDL2 2.0.6, but the Ubuntu Xenial repository have 2.0.4 and get error "undefined symbol: SDL_GameControllerGetProductVersion" when start xash3d. I need to compile SDL2 2.0.9 and get "Sys_Warn: SDL_Init failed: No available video device" and server start when start xash3d. I can use only 0.18 with SDL2 2.0.4. OR i can use new version on Ubuntu Bionic without problems, but get 1fps due to mali drivers. Please help to use new version on Ubuntu Xenial!

danil1petrov commented 6 years ago

Sorry my english

Mr0maks commented 6 years ago

Интересно

mittorn commented 6 years ago

Try build SDL2 without glx support, or build xash3d with SDL2.0.4 headers (it does check SDL2 version with macro in https://github.com/FWGS/xash3d/blob/master/engine/platform/sdl/events.c#L654)

a1batross commented 6 years ago

Он знает русский.

По-хорошему надо собирать с той версией которая системная. И в принципе никто не мешает напилить макросов вокруг ещё не существовавших на тот момент вызовов.

a1batross commented 6 years ago

@mittorn я думаю там проверка неправильная. Должно быть &&, а не ||.

mittorn commented 6 years ago

С чего это? Если мажорка больше двух (sdl3) или минорка больше нуля (sdl 2.1.x) или патч больше или равен 6 (sdl 2.0.6+)

danil1petrov commented 6 years ago

я сдаюсь

a1batross commented 6 years ago

@mittorn да, точно.