[Slackbuilds-users] gpsbabel, long list of errors

Daniel Prosser dpross1100 at msn.com
Tue Jun 13 02:30:19 UTC 2017


I can confirm that the gpsbabel fails to build if you have Qt5
installed. Add this line in the SlackBuild, right before `autoreconf
-vif` to make sure it uses Qt4 instead:

sed -i 's/qmake-qt5 qmake-qt4 qmake/qmake qmake-qt4 qmake-qt5/g' configure.in

I have tested this and it works here.

Dan

On Mon, Jun 12, 2017 at 09:16:34PM -0500, Kyle Guinn wrote:
> On 6/12/17, Frédéric Falsetti <falsetti at clansco.org> wrote:
> > Hi, anybody can build gpsbabel ?
> >
> > error Qt requires a C++11 compiler and yours does not seem to be that.
> > a long list of errors and
> >
> > In file included from /usr/include/qt5/QtCore/qshareddata.h:46:0,
> >                  from /usr/include/qt5/QtCore/qdatetime.h:45,
> >                  from /usr/include/qt5/QtCore/QDateTime:1,
> >                  from src/core/datetime.h:27,
> >                  from defs.h:39,
> >                  from main.cc:22:
> > /usr/include/qt5/QtCore/qhash.h: Dans la fonction membre 'QPair<QHash<K,
> > V>::iterator, QHash<K, V>::iterator> QHash<K, V>::equal_range(const Key&)':
> > /usr/include/qt5/QtCore/qhash.h:957:5: attention : 'auto' changes meaning in
> > C++11; please remove it [-Wc++0x-compat]
> >      auto pair = qAsConst(*this).equal_range(akey);
> >      ^
> > /usr/include/qt5/QtCore/qhash.h:957:10: erreur: 'pair' does not name a type
> >      auto pair = qAsConst(*this).equal_range(akey);
> >           ^
> > /usr/include/qt5/QtCore/qhash.h:958:31: erreur: 'pair' was not declared in
> > this scope
> >      return qMakePair(iterator(pair.first.i), iterator(pair.second.i));
> >                                ^
> > /usr/include/qt5/QtCore/qhash.h:958:31: note: suggested alternative:
> > In file included from /usr/include/c++/5.3.0/utility:70:0,
> >                  from /usr/include/qt5/QtCore/qcompilerdetection.h:1001,
> >                  from /usr/include/qt5/QtCore/qglobal.h:83,
> >                  from /usr/include/qt5/QtCore/qchar.h:43,
> >                  from /usr/include/qt5/QtCore/qstring.h:48,
> >                  from /usr/include/qt5/QtCore/qtextcodec.h:43,
> >                  from /usr/include/qt5/QtCore/QTextCodec:1,
> >                  from main.cc:20:
> > /usr/include/c++/5.3.0/bits/stl_pair.h:96:12: note:   'std::pair'
> >      struct pair
> >             ^
> > Makefile:128: recipe for target 'main.o' failed
> > make: *** [main.o] Error 1
> 
> Looks like it's trying to build against Qt5.  I've only tested against Qt4.
> 
> Also there is a newer version, 1.5.4, but I've held back at 1.5.3
> since 1.5.4 requires Qt5.  Can you try a simple version bump and see
> if the errors go away with 1.5.4?
> 
> -Kyle
> _______________________________________________
> SlackBuilds-users mailing list
> SlackBuilds-users at slackbuilds.org
> http://lists.slackbuilds.org/mailman/listinfo/slackbuilds-users
> Archives - https://lists.slackbuilds.org/pipermail/slackbuilds-users/
> FAQ - https://slackbuilds.org/faq/
> 


More information about the SlackBuilds-users mailing list