Update Qt dependency from QT 5.6 to QT 5.15 (#162)
* Update QT5 references 5.6 -> 5.15 Builds and runs but now needs deprecated -> current updates. Signed-off-by: Jim Lieb <lieb@sea-troll.net> * Update build instructions for Fedora 35 particulars Signed-off-by: Jim Lieb <lieb@sea-troll.net> * Replace deprecated QtString::sprintf with QtString::arg This was deprecated some revisions prior to 5.15. Signed-off-by: Jim Lieb <lieb@sea-troll.net> * Replace deprecated QtString::SkipEmptyParts with Qt::SkipEmptyParts Builds now with 5.15 Signed-off-by: Jim Lieb <lieb@sea-troll.net> * Replace deprecated QPrinter::setPageMargins with 5.15 version Signed-off-by: Jim Lieb <lieb@sea-troll.net> * Replace deprecated QImage::byteCount() with QImage::sizeInBytes() This could be problematic if qsizetype differs from int Signed-off-by: Jim Lieb <lieb@sea-troll.net> * Replace deprecated endl with QT::endl Signed-off-by: Jim Lieb <lieb@sea-troll.net> * Replace deprecated QMatrix with QTransform Signed-off-by: Jim Lieb <lieb@sea-troll.net> --------- Signed-off-by: Jim Lieb <lieb@sea-troll.net>
This commit is contained in:
@@ -6,7 +6,7 @@ gLabels Linux Build Instructions
|
||||
|
||||
- g++
|
||||
- CMake 2.8.12+
|
||||
- Qt5 5.6+ Development Packages ( Qt5Core, Qt5Widgets, Qt5PrintSupport, Qt5Xml, Qt5Svg )
|
||||
- Qt5 5.15+ Development Packages ( Qt5Core, Qt5Widgets, Qt5PrintSupport, Qt5Xml, Qt5Svg )
|
||||
- zlib 1.2+ Development Package
|
||||
|
||||
> Even if the above library packages are installed, their corresponding development packages
|
||||
@@ -67,3 +67,30 @@ $ cmake ..
|
||||
$ make
|
||||
$ sudo make install
|
||||
```
|
||||
## Example: Fedora 35
|
||||
|
||||
### Installing Prerequisites
|
||||
We assume the build system already has things like cmake and the GNU C++ suite installed.
|
||||
|
||||
```
|
||||
$ sudo dnf install qt5-qtbase-devel qt5-qtsvg-devel qt5-linguist qt5-qttools
|
||||
```
|
||||
These installs will pull in additional packages to fill out their prerequisites.
|
||||
Fedora has a different package naming scheme that Ubuntu. This is to distinguish the QT5
|
||||
packages from the QT3 and QT4 packages that they still support for compatibility.
|
||||
If the Cmake pass or build has missing package errors or warnings, you can search for the needed
|
||||
package with:
|
||||
```
|
||||
$ sudo dnf search qt5 |grep <package name substring>
|
||||
```
|
||||
|
||||
### Compile and Install gLabels into /usr/local
|
||||
```
|
||||
$ cd glabels-qt
|
||||
$ mkdir build
|
||||
$ cd build
|
||||
$ cmake ..
|
||||
$ make
|
||||
$ sudo make install
|
||||
|
||||
```
|
||||
Reference in New Issue
Block a user