LINUX SUPPORT IS HERE

Talk about general things concerning Forged Alliance Forever.

Moderators: FtXCommando, Ze Dogfather

Re: LINUX SUPPORT IS HERE

Postby tatsu » 27 Dec 2017, 19:22

foodlfg wrote:Are you guys experiencing UI scaling problems in the FAF client on linux?
Because for me its appearance is kinda raw:
https://imgur.com/a/aodwG

that's a new one. no I don't get that.
User avatar
tatsu
Supreme Commander
 
Posts: 1553
Joined: 02 Jul 2012, 21:26
Has liked: 1952 times
Been liked: 171 times
FAF User Name: tatsu

Re: LINUX SUPPORT IS HERE

Postby morgoth_bauglir » 07 Jan 2018, 19:49

If someone have such type of problems with client:
Could not find any downloads that satisfy the requirement pyqt5 (from (line 4))

https://stackoverflow.com/questions/18042919/how-to-install-pyqt5-on-a-new-virtualenv-and-work-on-an-idle
https://stackoverflow.com/questions/42039665/installing-pyqt-5-on-windows-7-with-python-3-4
See the comment to the question above: "PyQt5 wheels only support Python 3.5 or later. So you cannot install the latest PyQt5 using pip with Python 3.4. – ekhumoro" – Taran Oct 2 '17 at 14:17

https://riverbankcomputing.com/pipermail/pyqt/2017-March/038926.html

or your linux distro/pip do not support python3.5/PyQt5 (like my debian jessie) use miniconda(https://conda.io/docs/user-guide/install/linux.html) instead of pip

so update this guide a little: -> https://askubuntu.com/a/925976
Code: Select all
virtualenv venv -p python3  # replace python3 with python3.6 if you want to use Python 3.6 instead
source venv/bin/activate

to
Code: Select all
conda create -n venv python=3.5
source activate venv
pip install PyQt5
pip install -r requirements.txt
morgoth_bauglir
Crusader
 
Posts: 20
Joined: 07 Jan 2018, 19:09
Has liked: 0 time
Been liked: 3 times
FAF User Name: kirovreporting

Re: LINUX SUPPORT IS HERE

Postby tatsu » 18 Jan 2018, 22:22

new release is out : https://github.com/FAForever/client/releases/
redo the steps. :)
User avatar
tatsu
Supreme Commander
 
Posts: 1553
Joined: 02 Jul 2012, 21:26
Has liked: 1952 times
Been liked: 171 times
FAF User Name: tatsu

Re: LINUX SUPPORT IS HERE

Postby tatsu » 21 Jan 2018, 19:26

So I installed ubuntu 17.10 over my ubuntu 17.04 (updates had ceased)

I followed the steps again and I think the faf build is no longer up to date with QT as it stands.

First off I had to install an extra package :

Code: Select all
sudo apt install PyQt5.QtMultimedia

once that was done FAF actually runs but gives this error :
Screenshot from 2018-01-21 18-22-02.png
Screenshot from 2018-01-21 18-22-02.png (203.86 KiB) Viewed 3783 times

the issue with that is I can't do anything about it. there is no standalone package for "QtWebEngineWidgets" as it stands.

How do I solve this?

EDIT: and this time installing QT5 from the QT5 website does nothing.
User avatar
tatsu
Supreme Commander
 
Posts: 1553
Joined: 02 Jul 2012, 21:26
Has liked: 1952 times
Been liked: 171 times
FAF User Name: tatsu

Re: LINUX SUPPORT IS HERE

Postby morgoth_bauglir » 21 Jan 2018, 19:52

tatsu wrote:How do I solve this?

EDIT: and this time installing QT5 from the QT5 website does nothing.


QtWebEngineWidgets deprecated or smth, try this

Code: Select all
conda create -n venv python=3.5
source activate venv
pip install PyQt5
pip install -r requirements.txt


UPD
https://github.com/conda-forge/pyqt-feedstock/issues/19
morgoth_bauglir
Crusader
 
Posts: 20
Joined: 07 Jan 2018, 19:09
Has liked: 0 time
Been liked: 3 times
FAF User Name: kirovreporting

Re: LINUX SUPPORT IS HERE

Postby tatsu » 21 Jan 2018, 22:29

morgoth_bauglir wrote:
tatsu wrote:How do I solve this?

EDIT: and this time installing QT5 from the QT5 website does nothing.


QtWebEngineWidgets deprecated or smth, try this

Code: Select all
conda create -n venv python=3.5
source activate venv
pip install PyQt5
pip install -r requirements.txt


UPD
https://github.com/conda-forge/pyqt-feedstock/issues/19


not only is conda not native to ubuntu but once installed it still can't be used unless you point to the conda file specifically with each and every command and even then
it doesn't work :

Code: Select all
# To activate this environment, use:
# > source activate venv
#
# To deactivate an active environment, use:
# > source deactivate
#

t@tsu:~/faf-client$ source activate venv
bash: activate: No such file or directory
User avatar
tatsu
Supreme Commander
 
Posts: 1553
Joined: 02 Jul 2012, 21:26
Has liked: 1952 times
Been liked: 171 times
FAF User Name: tatsu

Re: LINUX SUPPORT IS HERE

Postby morgoth_bauglir » 21 Jan 2018, 23:40

tatsu wrote:
morgoth_bauglir wrote:
tatsu wrote:How do I solve this?

EDIT: and this time installing QT5 from the QT5 website does nothing.


QtWebEngineWidgets deprecated or smth, try this

Code: Select all
conda create -n venv python=3.5
source activate venv
pip install PyQt5
pip install -r requirements.txt


UPD
https://github.com/conda-forge/pyqt-feedstock/issues/19


not only is conda not native to ubuntu but once installed it still can't be used unless you point to the conda file specifically with each and every command and even then
it doesn't work :

Code: Select all
# To activate this environment, use:
# > source activate venv
#
# To deactivate an active environment, use:
# > source deactivate
#

t@tsu:~/faf-client$ source activate venv
bash: activate: No such file or directory


i have similar problem with qt, only conda help me

also, if you try install all package dependencies it not help. looks qt5 totatally f*cked

Image
morgoth_bauglir
Crusader
 
Posts: 20
Joined: 07 Jan 2018, 19:09
Has liked: 0 time
Been liked: 3 times
FAF User Name: kirovreporting

Re: LINUX SUPPORT IS HERE

Postby kozy » 22 Jan 2018, 02:49

I gave up trying to use ubuntu's natives qt packages and went the virtualenv way, haven't had a single trouble, plus it's extremely fast to setup.
There might be a better way for venv with python3 but this one seems to work.
Code: Select all
virtualenv -p python3 faf

and then once you're in
Code: Select all
pip install -r requirements.txt


if you want to get into the venv from a clean terminal you'll need to use
Code: Select all
. bin/activate

from within the directory where you setup the venv.
kozy
Crusader
 
Posts: 32
Joined: 19 Nov 2016, 04:33
Has liked: 1 time
Been liked: 11 times
FAF User Name: kozy

Re: LINUX SUPPORT IS HERE

Postby tatsu » 22 Jan 2018, 20:24

kozy wrote:I gave up trying to use ubuntu's natives qt packages and went the virtualenv way, haven't had a single trouble, plus it's extremely fast to setup.
There might be a better way for venv with python3 but this one seems to work.
Code: Select all
virtualenv -p python3 faf

and then once you're in
Code: Select all
pip install -r requirements.txt


if you want to get into the venv from a clean terminal you'll need to use
Code: Select all
. bin/activate

from within the directory where you setup the venv.
the requirements install fails at cxFreeze for me.

EDIT : well I removed CXfreeze and faf seems to run just fine without it. :ß

EDIT: the menus now work ofc thanks to gnome 3 interface. won't be sticking with it though overall it sucks. I loose tons of screen real estate because maximise doesn't combine with top taskbar. I'll be taking Yunit as soon as it releases.
User avatar
tatsu
Supreme Commander
 
Posts: 1553
Joined: 02 Jul 2012, 21:26
Has liked: 1952 times
Been liked: 171 times
FAF User Name: tatsu

Re: LINUX SUPPORT IS HERE

Postby tatsu » 10 Feb 2018, 16:01

If you get missing QTWebEngineWidgets missing, what can you do?
User avatar
tatsu
Supreme Commander
 
Posts: 1553
Joined: 02 Jul 2012, 21:26
Has liked: 1952 times
Been liked: 171 times
FAF User Name: tatsu

PreviousNext

Return to General Discussions

Who is online

Users browsing this forum: No registered users and 1 guest