Updated for Ubuntu 16.04/18.04

This commit is contained in:
NissimHadar 2019-05-04 17:30:10 -07:00
parent ec4a3fed43
commit c9e372aa53

View file

@ -96,8 +96,6 @@ Verify again
`sudo apt-get install libdbus-glib-1-dev -y` `sudo apt-get install libdbus-glib-1-dev -y`
1. nss (needed for qtwebengine) 1. nss (needed for qtwebengine)
`sudo apt-get install libnss3-dev -y` `sudo apt-get install libnss3-dev -y`
1. Add the following line to *.bash_profile* (otherwise fonts will not be displayed)
`export QT_QPA_FONTDIR=/usr/share/fonts/truetype/dejavu/`
### Mac ### Mac
1. git >= 1.6 1. git >= 1.6
Check if needed `git --version` Check if needed `git --version`
@ -174,33 +172,39 @@ Upload qt5-install.tar.gz to https://hifi-qa.s3.amazonaws.com/qt5/Windows/
#### Make #### Make
`make` `make`
*Ubuntu 18.04 only*
`make module-qtwebengine`
`make module-qtscript`
*Both*
`make install` `make install`
#### Fixing #### Fixing
1. The *.prl* files have an absolute path that needs to be removed (see http://www.linuxfromscratch.org/blfs/view/stable-systemd/x/qtwebengine.html) 1. The *.prl* files have an absolute path that needs to be removed (see http://www.linuxfromscratch.org/blfs/view/stable-systemd/x/qtwebengine.html)
`cd ../qt5-install` `cd ../qt5-install`
`find . -name \*.prl -exec sed -i -e '/^QMAKE_PRL_BUILD_DIR/d' {} \;` `find . -name \*.prl -exec sed -i -e '/^QMAKE_PRL_BUILD_DIR/d' {} \;`
1. Copy *qt.conf* to *qt5-install\bin* 1. Copy *qt.conf* to *qt5-install\bin*
#### Uploading #### Uploading
1. Return to the home folder *Ubuntu 16.04*
1. Return to the home folder
`cd ..` `cd ..`
1. Open a python 3 shell 1. Open a python 3 shell
`python3` `python3`
1. Run the following snippet: 1. Run the following snippet:
`import os` `import os`
`import tarfile` `import tarfile`
`filename=tarfile.open("qt5-install.tar.gz", "w:gz")` `filename=tarfile.open("qt5-install.tar.gz", "w:gz")`
`filename.add("qt5-install", os.path.basename("qt5-install"))` `filename.add("qt5-install", os.path.basename("qt5-install"))`
`exit()` `exit()`
1. Upload qt5-install.tar.gz to https://hifi-qa.s3.amazonaws.com/qt5/Ubuntu/16.04
*Ubuntu 16.04* *Ubuntu 18.04*
1. Upload qt5-install.tar.gz to https://hifi-qa.s3.amazonaws.com/qt5/Ubuntu/16.04 ``tar -zcvf qt5-install.tar.gz qt5-install`
*Ubuntu 16.04*
1. Upload qt5-install.tar.gz to https://hifi-qa.s3.amazonaws.com/qt5/Ubuntu/18.04 1. Upload qt5-install.tar.gz to https://hifi-qa.s3.amazonaws.com/qt5/Ubuntu/18.04
1. ### Mac 1. ### Mac
#### Preparing source files #### Preparing source files
git clone --recursive git://code.qt.io/qt/qt5.git -b 5.12.3 --single-branch git clone --recursive git://code.qt.io/qt/qt5.git -b 5.12.3 --single-branch
* Copy the **patches** folder to qt5 * Copy the **patches** folder to qt5
* Apply one patch to Qt * Apply one patch to Qt