[opensuse-packaging] libqt5
Hi, I want to build a package that was migrated from qt4 to qt5. Can one of the QT-Experts point me to the right devel packages? a libqt5-devel seems not to exist. https://build.opensuse.org/package/show/home:DocB:branches:Application:Geo/ zyGrib Thanks Axel -- To unsubscribe, e-mail: opensuse-packaging+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse-packaging+owner@opensuse.org
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA256 On Mon, 2017-01-02 at 13:00 +0100, Axel Braun wrote:
Hi,
I want to build a package that was migrated from qt4 to qt5. Can one of the QT-Experts point me to the right devel packages? a libqt5-devel seems not to exist. https://build.opensuse.org/package/show/home:DocB:branches:Applicatio n:Geo/ zyGrib
Thanks Axel Hello
Depends on which part of qt5 you need, see i.e. ghostwriter [1] as example (including pkgconfig() style dependencies. Cheers Martin 1. https://build.opensuse.org/package/view_file/editors/ghostwriter/gho stwriter.spec?expand=1 -----BEGIN PGP SIGNATURE----- iQIzBAEBCAAdFiEEwQnJ+Ps8HqIKhK3yWyRdZ/3eaFcFAlhqQzoACgkQWyRdZ/3e aFerRw/5AdUd0Vdg5nQ/l6Ol4yYKiIYbUeb+oKxkSD1YI+r8Lh4j5uxMmmCaOpSj IfIBtIsYFFduWtB68AABFrJlZ8n/+01bP8WvknfYeSZ14JAUVFvX5tiCUlDvVMCo KwA8sVM2C1Fc/+4mYoHTcpnuFeGt0vR0GVvPC+5A6HM9jGnWZxM3bbIHcqv5L1lv v1iKNO77R+9j85se679axpm2lToXbBtsc6Xh8l3fl7eI+ng5L0WIbLfoc6D1GG4V /w6Rbh5e0eEFHAf7tLAZptNmdPgzZI74wb2jzBpkCw8tNTUmjYbSTIqdYO2FMJwj 5GL3YHPoDueK3BDXw4bLzWVtJJrISm2OeF+x3cD+WM/yKrbr+gcPiN/w2GD9FPdO /hydaiq67DFNFYtV4iaA4XCQXIxH0xJbo/+68utfocEQEpZCyz20d6QTyA/4Ti5r hTustYenAJv7wnpR8nTd8FzxHiCZTqhZbf7o6/if0hkKd7iYnVNF6tClmTSc93ej KcXoK55K+OSW337wcx0HUlkt7zKLCHbXbW/kS5cuS97u3qIxezpwceF2Nz9JBYCt Zj+VkJaa+CV1RoveZRuquTdxHR5Iz+z/6/OvXMmZ/C2+dzzFuBwvv4xOnjLEl2xT dS0icc0DNlZO0OtAAvBZYn/bD0TZo0Th6pVqnfdnXls9MW8YCLs= =Z38w -----END PGP SIGNATURE----- -- To unsubscribe, e-mail: opensuse-packaging+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse-packaging+owner@opensuse.org
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@opensuse.org To contact the owner, e-mail: opensuse-packaging+owner@opensuse.org
participants (3)
-
Axel Braun
-
Karl Cheng
-
Martin Pluskal