Mailinglist Archive: opensuse-packaging (132 mails)

< Previous Next >
Re: [opensuse-packaging] libqt5
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


< Previous Next >
List Navigation