Mailinglist Archive: opensuse-packaging (132 mails)

< Previous Next >
Re: [opensuse-packaging] libqt5
With Qt 5 there isn't "one" devel package -- you'll have to look
through the build scripts and figure out what modules are required.

In your case, this project seems to be using qmake. In the file
"src/zyGrib.pro", you should see the following:

```
QT += widgets xml
QT += printsupport
[snip]
QT += network xml
```

You'll now need to find the corresponding module name on the Qt
website[1]. In this case, this project requires the following modules:

- Qt Core
- Qt GUI
- Qt Widgets
- Qt Print Support
- Qt Network
- Qt XML

Note that the Core and GUI modules are included by qmake by default,
and should be included as dependencies in the spec file.

To do so, use the C++ include name, but replace "Qt" with "Qt5" and
wrap the name inside "pkgconfig()". For example, if you need the "Qt
D-Bus" module:

```
Requires: pkgconfig(Qt5DBus) >= x.y.z
```

This should work for the vast majority of (if not all) cases -- please
correct me if something is incorrect or missing.

[1]: http://doc.qt.io/qt-5/qtmodules.html

- Karl Cheng (Qantas94Heavy)
--
To unsubscribe, e-mail: opensuse-packaging+unsubscribe@xxxxxxxxxxxx
To contact the owner, e-mail: opensuse-packaging+owner@xxxxxxxxxxxx

< Previous Next >
List Navigation
References