[Slackbuilds-users] gpsbabel, long list of errors

Kyle Guinn elyk03 at gmail.com
Tue Jun 13 02:16:34 UTC 2017


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


More information about the SlackBuilds-users mailing list