Re: [opensuse-packaging] libqt5
Hi, in openSUSE I believe the Qt 5 version is found in `/usr/bin/qmake-qt5`. You can find the package which has it by running `cnf qmake-qt5`. On Tue, 3 Jan 2017, 01:27 Axel Braun <axelbraun@arcor.de> wrote:
Hello Karl,
Am Montag, 2. Januar 2017, 20:39:50 CET schrieben Sie:
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.
That was very helpful, thanks a lot! One more thing, as I'm not a C++ developer - where is qmake included? I could not find it as package in one of the standard repos
docb@T520:~> zypper se --provides qmake S | Name | Zusammenfassung | Typ --+---------------- +----------------------------------------------------------------+------ | codelite | Powerful open-source, cross platform code editor for the C/C++ | Paket | debhelper | Helper programs for debian/rules | Paket | kdevelop5 | C++ IDE using KDE technologies based on KDevelop Platform | Paket | libqt5-creator | Lightweight IDE | Paket
I tried the mentioned packages as build requirement, but still run into the problem:
[ 94s] make[1]: /usr/bin/qmake: Command not found
Thanks Axel
-- To unsubscribe, e-mail: opensuse-packaging+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse-packaging+owner@opensuse.org
Am Dienstag, 3. Januar 2017, 11:18:40 CET schrieb Karl Cheng:
Hi, in openSUSE I believe the Qt 5 version is found in `/usr/bin/qmake-qt5`. You can find the package which has it by running `cnf qmake-qt5`.
Indeed, it is called qmake-qt5. With this hint I could get one step further, but get now stuck when compiling the qwt-widgets: [ 71s] compiling qwt_slider.cpp [ 71s] compiling qwt_thermo.cpp [ 71s] compiling qwt_wheel.cpp [ 72s] moc qwt_dyngrid_layout.h [ 72s] usr/include/c++/4.8/bits/stl_relops.:67: Parse error at "std" [ 72s] Makefile:739: recipe for target 'moc/moc_qwt_dyngrid_layout.cpp' failed [ 72s] make[1]: *** [moc/moc_qwt_dyngrid_layout.cpp] Error 1 [ 72s] make[1]: *** Waiting for unfinished jobs.... [ 73s] make[1]: Leaving directory '/home/abuild/rpmbuild/BUILD/zyGrib-8.0.1/ src/qwt-6.1.3/src' Anyone an idea? Thanks! Axel -- To unsubscribe, e-mail: opensuse-packaging+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse-packaging+owner@opensuse.org
On 08.01.2017 14:09, Axel Braun wrote:
Am Dienstag, 3. Januar 2017, 11:18:40 CET schrieb Karl Cheng:
Hi, in openSUSE I believe the Qt 5 version is found in `/usr/bin/qmake-qt5`. You can find the package which has it by running `cnf qmake-qt5`.
Indeed, it is called qmake-qt5. With this hint I could get one step further, but get now stuck when compiling the qwt-widgets:
[ 71s] compiling qwt_slider.cpp [ 71s] compiling qwt_thermo.cpp [ 71s] compiling qwt_wheel.cpp [ 72s] moc qwt_dyngrid_layout.h [ 72s] usr/include/c++/4.8/bits/stl_relops.:67: Parse error at "std" [ 72s] Makefile:739: recipe for target 'moc/moc_qwt_dyngrid_layout.cpp' failed [ 72s] make[1]: *** [moc/moc_qwt_dyngrid_layout.cpp] Error 1 [ 72s] make[1]: *** Waiting for unfinished jobs.... [ 73s] make[1]: Leaving directory '/home/abuild/rpmbuild/BUILD/zyGrib-8.0.1/ src/qwt-6.1.3/src'
Anyone an idea?
Thanks! Axel
Hello In https://build.opensuse.org/build/home:DocB:branches:Application:Geo/openSUSE... I see that build fails due to missing libjasper-devel buildrequirement. Cheers M
Hi Martin, Am Sonntag, 8. Januar 2017, 19:17:08 CET schrieb Martin Pluskal:
On 08.01.2017 14:09, Axel Braun wrote:
Am Dienstag, 3. Januar 2017, 11:18:40 CET schrieb Karl Cheng:
Hi, in openSUSE I believe the Qt 5 version is found in `/usr/bin/qmake-qt5`. You can find the package which has it by running `cnf qmake-qt5`.
Indeed, it is called qmake-qt5. With this hint I could get one step further, but get now stuck when compiling the qwt-widgets:
[ 71s] compiling qwt_slider.cpp [ 71s] compiling qwt_thermo.cpp [ 71s] compiling qwt_wheel.cpp [ 72s] moc qwt_dyngrid_layout.h [ 72s] usr/include/c++/4.8/bits/stl_relops.:67: Parse error at "std" [ 72s] Makefile:739: recipe for target 'moc/moc_qwt_dyngrid_layout.cpp' failed [ 72s] make[1]: *** [moc/moc_qwt_dyngrid_layout.cpp] Error 1 [ 72s] make[1]: *** Waiting for unfinished jobs.... [ 73s] make[1]: Leaving directory '/home/abuild/rpmbuild/BUILD/zyGrib-8.0.1/ src/qwt-6.1.3/src'
Anyone an idea?
In https://build.opensuse.org/build/home:DocB:branches:Application:Geo/openSUSE _Tumbleweed/x86_64/zyGrib/_log I see that build fails due to missing libjasper-devel buildrequirement.
The error in Tumbleweed is obviously a different one from 42.2, where I was focused on. After adding libjasper and libpng-devel Tumbleweed builds now. Error in Leap remains the same. Thanks Axel -- To unsubscribe, e-mail: opensuse-packaging+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse-packaging+owner@opensuse.org
On 08.01.2017 20:00, Axel Braun wrote:
Hi Martin,
Am Sonntag, 8. Januar 2017, 19:17:08 CET schrieb Martin Pluskal:
On 08.01.2017 14:09, Axel Braun wrote:
Am Dienstag, 3. Januar 2017, 11:18:40 CET schrieb Karl Cheng:
Hi, in openSUSE I believe the Qt 5 version is found in `/usr/bin/qmake-qt5`. You can find the package which has it by running `cnf qmake-qt5`.
Indeed, it is called qmake-qt5. With this hint I could get one step further, but get now stuck when compiling the qwt-widgets:
[ 71s] compiling qwt_slider.cpp [ 71s] compiling qwt_thermo.cpp [ 71s] compiling qwt_wheel.cpp [ 72s] moc qwt_dyngrid_layout.h [ 72s] usr/include/c++/4.8/bits/stl_relops.:67: Parse error at "std" [ 72s] Makefile:739: recipe for target 'moc/moc_qwt_dyngrid_layout.cpp' failed [ 72s] make[1]: *** [moc/moc_qwt_dyngrid_layout.cpp] Error 1 [ 72s] make[1]: *** Waiting for unfinished jobs.... [ 73s] make[1]: Leaving directory '/home/abuild/rpmbuild/BUILD/zyGrib-8.0.1/ src/qwt-6.1.3/src'
Anyone an idea?
In https://build.opensuse.org/build/home:DocB:branches:Application:Geo/openSUSE _Tumbleweed/x86_64/zyGrib/_log I see that build fails due to missing libjasper-devel buildrequirement.
The error in Tumbleweed is obviously a different one from 42.2, where I was focused on. After adding libjasper and libpng-devel Tumbleweed builds now. Error in Leap remains the same.
I see for Leap you need to use more recent compiler than defaul gcc-4.8, something along: Index: zyGrib.spec =================================================================== --- zyGrib.spec (revision c6eaca7520366bef852878999e637894) +++ zyGrib.spec (working copy) @@ -29,8 +29,8 @@ Source2: %{name}.desktop # PATCH-FIX-QWT Fix qwt path Patch1: %{name}624.patch -BuildRequires: gcc -BuildRequires: gcc-c++ +BuildRequires: gcc5 +BuildRequires: gcc5-c++ #qmake -> BuildRequires: codelite BuildRequires: libjpeg-devel @@ -78,7 +78,11 @@ %patch1 -p1 %build -make %{?_smp_mflags} +pushd src +%qmake5 +popd +#make %{?_smp_mflags} CC=gcc5 CXX=g++-5 +make %{?_smp_mflags} CC=gcc5 CXX=g++-5 With proper conditions around, so that on Factory default compiler will be used. Cheers M
On dimanche, 8 janvier 2017 21.16:18 h CET Martin Pluskal wrote:
On 08.01.2017 20:00, Axel Braun wrote:
Hi Martin,
Am Sonntag, 8. Januar 2017, 19:17:08 CET schrieb Martin Pluskal:
On 08.01.2017 14:09, Axel Braun wrote:
Am Dienstag, 3. Januar 2017, 11:18:40 CET schrieb Karl Cheng:
Hi, in openSUSE I believe the Qt 5 version is found in `/usr/bin/qmake-qt5`. You can find the package which has it by running `cnf qmake-qt5`.
Indeed, it is called qmake-qt5. With this hint I could get one step further, but get now stuck when compiling the qwt-widgets:
[ 71s] compiling qwt_slider.cpp [ 71s] compiling qwt_thermo.cpp [ 71s] compiling qwt_wheel.cpp [ 72s] moc qwt_dyngrid_layout.h [ 72s] usr/include/c++/4.8/bits/stl_relops.:67: Parse error at "std" [ 72s] Makefile:739: recipe for target 'moc/moc_qwt_dyngrid_layout.cpp' failed [ 72s] make[1]: *** [moc/moc_qwt_dyngrid_layout.cpp] Error 1 [ 72s] make[1]: *** Waiting for unfinished jobs.... [ 73s] make[1]: Leaving directory '/home/abuild/rpmbuild/BUILD/zyGrib-8.0.1/ src/qwt-6.1.3/src'
Anyone an idea?
In https://build.opensuse.org/build/home:DocB:branches:Application:Geo/openS USE _Tumbleweed/x86_64/zyGrib/_log I see that build fails due to missing libjasper-devel buildrequirement.
The error in Tumbleweed is obviously a different one from 42.2, where I was focused on. After adding libjasper and libpng-devel Tumbleweed builds now. Error in Leap remains the same.
I see
for Leap you need to use more recent compiler than defaul gcc-4.8, something along: Index: zyGrib.spec =================================================================== --- zyGrib.spec (revision c6eaca7520366bef852878999e637894) +++ zyGrib.spec (working copy) @@ -29,8 +29,8 @@ Source2: %{name}.desktop # PATCH-FIX-QWT Fix qwt path Patch1: %{name}624.patch -BuildRequires: gcc -BuildRequires: gcc-c++ +BuildRequires: gcc5 +BuildRequires: gcc5-c++ #qmake -> BuildRequires: codelite BuildRequires: libjpeg-devel @@ -78,7 +78,11 @@ %patch1 -p1
%build -make %{?_smp_mflags} +pushd src +%qmake5 +popd +#make %{?_smp_mflags} CC=gcc5 CXX=g++-5 +make %{?_smp_mflags} CC=gcc5 CXX=g++-5
With proper conditions around, so that on Factory default compiler will be used.
Cheers
M
btw, jasper is considered bad ass software (debian is removing it) we have jpeg2000 ;-) -- Bruno Friedmann Ioda-Net Sàrl www.ioda-net.ch Bareos Partner, openSUSE Member, fsfe fellowship GPG KEY : D5C9B751C4653227 irc: tigerfoot -- To unsubscribe, e-mail: opensuse-packaging+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse-packaging+owner@opensuse.org
Hello Martin, Am Sonntag, 8. Januar 2017, 21:16:18 CET schrieb Martin Pluskal:
On 08.01.2017 20:00, Axel Braun wrote:
Hi Martin,
Am Sonntag, 8. Januar 2017, 19:17:08 CET schrieb Martin Pluskal:
On 08.01.2017 14:09, Axel Braun wrote:
Am Dienstag, 3. Januar 2017, 11:18:40 CET schrieb Karl Cheng:
Hi, in openSUSE I believe the Qt 5 version is found in `/usr/bin/qmake-qt5`. You can find the package which has it by running `cnf qmake-qt5`.
Indeed, it is called qmake-qt5. With this hint I could get one step further, but get now stuck when compiling the qwt-widgets:
[ 71s] compiling qwt_slider.cpp [ 71s] compiling qwt_thermo.cpp [ 71s] compiling qwt_wheel.cpp [ 72s] moc qwt_dyngrid_layout.h [ 72s] usr/include/c++/4.8/bits/stl_relops.:67: Parse error at "std" [ 72s] Makefile:739: recipe for target 'moc/moc_qwt_dyngrid_layout.cpp' failed [ 72s] make[1]: *** [moc/moc_qwt_dyngrid_layout.cpp] Error 1 [ 72s] make[1]: *** Waiting for unfinished jobs.... [ 73s] make[1]: Leaving directory '/home/abuild/rpmbuild/BUILD/zyGrib-8.0.1/ src/qwt-6.1.3/src'
Anyone an idea?
In https://build.opensuse.org/build/home:DocB:branches:Application:Geo/openS USE _Tumbleweed/x86_64/zyGrib/_log I see that build fails due to missing libjasper-devel buildrequirement.
The error in Tumbleweed is obviously a different one from 42.2, where I was focused on. After adding libjasper and libpng-devel Tumbleweed builds now. Error in Leap remains the same.
I see
for Leap you need to use more recent compiler than defaul gcc-4.8, something along: Index: zyGrib.spec =================================================================== --- zyGrib.spec (revision c6eaca7520366bef852878999e637894) +++ zyGrib.spec (working copy) @@ -29,8 +29,8 @@ Source2: %{name}.desktop # PATCH-FIX-QWT Fix qwt path Patch1: %{name}624.patch -BuildRequires: gcc -BuildRequires: gcc-c++ +BuildRequires: gcc5 +BuildRequires: gcc5-c++ #qmake -> BuildRequires: codelite BuildRequires: libjpeg-devel @@ -78,7 +78,11 @@ %patch1 -p1
%build -make %{?_smp_mflags} +pushd src +%qmake5 +popd +#make %{?_smp_mflags} CC=gcc5 CXX=g++-5 +make %{?_smp_mflags} CC=gcc5 CXX=g++-5
That patch does unfortunaltey not work, neither for TW nor for Leap. In Leap it still fails with [ 116s] usr/include/c++/4.8/bits/stl_relops.:67: Parse error at "std" Why does it take the 4.8-include, and not the 5-include? docb@T520:~> dir /var/tmp/build-root/openSUSE_Leap_42.2-x86_64/usr/include/c+ +/ insgesamt 0 drwxr-xr-x 1 root root 1296 8. Jan 22:05 4.8 drwxr-xr-x 1 root root 1358 8. Jan 22:05 5 Cheers 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 Sun, 2017-01-08 at 22:27 +0100, Axel Braun wrote:
Hello Martin,
Am Sonntag, 8. Januar 2017, 21:16:18 CET schrieb Martin Pluskal:
On 08.01.2017 20:00, Axel Braun wrote:
Hi Martin,
Am Sonntag, 8. Januar 2017, 19:17:08 CET schrieb Martin Pluskal:
On 08.01.2017 14:09, Axel Braun wrote:
Am Dienstag, 3. Januar 2017, 11:18:40 CET schrieb Karl Cheng:
Hi, in openSUSE I believe the Qt 5 version is found in `/usr/bin/qmake-qt5`. You can find the package which has it by running `cnf qmake-qt5`.
Indeed, it is called qmake-qt5. With this hint I could get one step further, but get now stuck when compiling the qwt-widgets:
[ 71s] compiling qwt_slider.cpp [ 71s] compiling qwt_thermo.cpp [ 71s] compiling qwt_wheel.cpp [ 72s] moc qwt_dyngrid_layout.h [ 72s] usr/include/c++/4.8/bits/stl_relops.:67: Parse error at "std" [ 72s] Makefile:739: recipe for target 'moc/moc_qwt_dyngrid_layout.cpp' failed [ 72s] make[1]: *** [moc/moc_qwt_dyngrid_layout.cpp] Error 1 [ 72s] make[1]: *** Waiting for unfinished jobs.... [ 73s] make[1]: Leaving directory '/home/abuild/rpmbuild/BUILD/zyGrib-8.0.1/ src/qwt-6.1.3/src'
Anyone an idea?
In https://build.opensuse.org/build/home:DocB:branches:Application :Geo/openS USE _Tumbleweed/x86_64/zyGrib/_log I see that build fails due to missing libjasper-devel buildrequirement.
The error in Tumbleweed is obviously a different one from 42.2, where I was focused on. After adding libjasper and libpng-devel Tumbleweed builds now. Error in Leap remains the same.
I see
for Leap you need to use more recent compiler than defaul gcc-4.8, something along: Index: zyGrib.spec =================================================================== --- zyGrib.spec (revision c6eaca7520366bef852878999e637894) +++ zyGrib.spec (working copy) @@ -29,8 +29,8 @@ Source2: %{name}.desktop # PATCH-FIX-QWT Fix qwt path Patch1: %{name}624.patch -BuildRequires: gcc -BuildRequires: gcc-c++ +BuildRequires: gcc5 +BuildRequires: gcc5-c++ #qmake -> BuildRequires: codelite BuildRequires: libjpeg-devel @@ -78,7 +78,11 @@ %patch1 -p1
%build -make %{?_smp_mflags} +pushd src +%qmake5 +popd +#make %{?_smp_mflags} CC=gcc5 CXX=g++-5 +make %{?_smp_mflags} CC=gcc5 CXX=g++-5
That patch does unfortunaltey not work, neither for TW nor for Leap. In Leap it still fails with [ 116s] usr/include/c++/4.8/bits/stl_relops.:67: Parse error at "std"
It is building now, I took liberty to commit changes directly to Application:Geo/zyGrib Cheers Martin -----BEGIN PGP SIGNATURE----- iQIzBAEBCAAdFiEEwQnJ+Ps8HqIKhK3yWyRdZ/3eaFcFAlhzb8UACgkQWyRdZ/3e aFe8Cw/9GKYXCl9gUpJzIDNJtu0Ts7b086+CgpekVvsP3w3N50W24q06z4XFi+Jz w/XrFTAIvpkcrzo2X0RhD8mSHTzx1bthxxju/c+nMi8faNjr0ZOPK00HXRH309kq kNnh22T+cvHVj2SvfmVjuu/oVuWLGQAGAqRGToImzmUyzAC+NsgGqmzy3g7xNCzz JekCYHs+O7f65dCJsie2LBIDrSb2rAZQGi4f1ahITz/gVW/3HGS+oyiOTzNDrFXp ARn1TAjgiuQZoInOs+zzdx7Wb00Sb34clrUefdyxd2IXIXgBXOEWeGbxaXE/oOjx ia6nHjsubxBrA5osIUG1CKwRWLueoMTmHU/Z7wMWo1tQue7Dv6wi1YRrp79/+Fow cNfbTjFpQTeujq0luARoGSFxoKGwotMT3mpHo5IdUI/hYI1QG/7n9ZZYm2DQz67d EoUUi2kbTFkJClYdsyd7PgFsXSd5oNGiedxl4daXYllHsxiO2mEE/DLiq7Sx0BBa y3yQCUzGIJRIdycuR2Tlu4tADalvhm5DwYqeexWAVFRJT+gbS4LriQOIhIITOSLe DZuPfClwg2G40/LbdKmkG2sSAo8S50tD31rPNx/iWm+PAKQ/sIMqINYdXpznbk9Y NAnY1Tts9u2ywtM2mcAdym9q/ANSGCER1BB4qqAji4fPQcvRZv8= =fouy -----END PGP SIGNATURE----- -- To unsubscribe, e-mail: opensuse-packaging+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse-packaging+owner@opensuse.org
Am Montag, 9. Januar 2017, 12:11:01 CET schrieb Martin Pluskal:
That patch does unfortunaltey not work, neither for TW nor for Leap. In Leap it still fails with [ 116s] usr/include/c++/4.8/bits/stl_relops.:67: Parse error at "std"
It is building now, I took liberty to commit changes directly to Application:Geo/zyGrib
Downloaded, installed and tested - works perfect. Thanks for your help! Axel -- To unsubscribe, e-mail: opensuse-packaging+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse-packaging+owner@opensuse.org
participants (4)
-
Axel Braun
-
Bruno Friedmann
-
Karl Cheng
-
Martin Pluskal