[Slackbuilds-users] gpsbabel, long list of errors
Marek Srejma
sam_web at yahoo.de
Mon Jun 12 23:30:03 UTC 2017
After building and installing qt5-webkit, I ran the SlackBuild again and
the command "make gui" in the SlackBuild threw another error like "Qt
requires a C++11 compiler and yours does not seem to be that.".
So I made another patch which fixes that error and attached it here.
Marek Srejma schrieb:
> Here I attached a patch which fixes that error.
> To apply it, copy that file to your directory with gpsbabel.SlackBuild
> and run the command:
>
> patch -p1 < cxx-fix.patch
>
> It adds "-std=c++11" to the C++ compiler flags.
> After that gpsbabel.SlackBuild should build fine.
>
> However, on my machine with QT5 it showed a new error:
>
> Info: creating stash file
> /home/tmp/SBo/gpsbabel-gpsbabel_1_5_3/gui/.qmake.stash
> Project ERROR: Unknown module(s) in QT: webkit webkitwidgets
> Makefile:387: recipe for target 'gui' failed
>
> So I'll build qt5-webkit from SBo (which usually takes several hours
> to compile) and then try again.
>
>
>
> Frédéric Falsetti schrieb:
>> 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
>> _______________________________________________
>> 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/
>>
>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: cxx-fix.patch
Type: text/x-patch
Size: 535 bytes
Desc: not available
URL: <http://lists.slackbuilds.org/pipermail/slackbuilds-users/attachments/20170613/4e5b5b6b/attachment.bin>
More information about the SlackBuilds-users
mailing list