Swordfish90 / cool-retro-term

A good looking terminal emulator which mimics the old cathode display...
22.09k stars 840 forks source link

Error on build ( Ubuntu running on Virtual Box ) #513

Open gcadoret opened 5 years ago

gcadoret commented 5 years ago

Hi

I've an error on 'make'

cool-retro-term$ make cd qmltermwidget/ && ( test -e Makefile || /usr/lib/x86_64-linux-gnu/qt5/bin/qmake /home/gcadoret/workspacePerso/cool-retro-term/qmltermwidget/qmltermwidget.pro -o Makefile ) && make -f Makefile make[1]: entrant dans le répertoire « /home/gcadoret/workspacePerso/cool-retro-term/qmltermwidget » g++ -c -m64 -pipe -O2 -D_REENTRANT -Wall -W -fPIC -DHAVE_POSIX_OPENPT -DHAVE_SYS_TIME_H -DQT_NO_DEBUG -DQT_PLUGIN -DQT_QUICK_LIB -DQT_QML_LIB -DQT_WIDGETS_LIB -DQT_NETWORK_LIB -DQT_GUI_LIB -DQT_CORE_LIB -I/usr/lib/x86_64-linux-gnu/qt5/mkspecs/linux-g++-64 -I. -Ilib -Isrc -I/usr/include/qt5 -I/usr/include/qt5/QtQuick -I/usr/include/qt5/QtQml -I/usr/include/qt5/QtWidgets -I/usr/include/qt5/QtNetwork -I/usr/include/qt5/QtGui -I/usr/include/qt5/QtCore -I. -o ColorScheme.o lib/ColorScheme.cpp lib/ColorScheme.cpp:370:13: warning: identifier ‘nullptr’ is a keyword in C++11 [-Wc++0x-compat] r = colorStr.midRef(1, 2).toInt(nullptr, 16); ^ lib/ColorScheme.cpp: In member function ‘void Konsole::ColorScheme::readColorEntry(QSettings*, int)’: lib/ColorScheme.cpp:370:45: error: ‘nullptr’ was not declared in this scope r = colorStr.midRef(1, 2).toInt(nullptr, 16); ^ lib/ColorScheme.cpp: In member function ‘QList<QString> Konsole::ColorSchemeManager::listKDE3ColorSchemes()’: lib/ColorScheme.cpp:726:38: error: range-based ‘for’ loops are not allowed in C++98 mode for (const QString &scheme_dir : get_color_schemes_dirs()) ^ lib/ColorScheme.cpp:734:33: error: range-based ‘for’ loops are not allowed in C++98 mode for (const QString &i : list) ^ lib/ColorScheme.cpp: In member function ‘QList<QString> Konsole::ColorSchemeManager::listColorSchemes()’: lib/ColorScheme.cpp:746:38: error: range-based ‘for’ loops are not allowed in C++98 mode for (const QString &scheme_dir : get_color_schemes_dirs()) ^ lib/ColorScheme.cpp:754:33: error: range-based ‘for’ loops are not allowed in C++98 mode for (const QString &i : list) ^ make[1]: *** [ColorScheme.o] Erreur 1 make[1]: quittant le répertoire « /home/gcadoret/workspacePerso/cool-retro-term/qmltermwidget » make: *** [sub-qmltermwidget-make_first-ordered] Erreur 2

no sure why i'm getting this error ...

I'm on a ubuntu vm using virtualbox :

Distributor ID: Ubuntu Description: Ubuntu 14.04.5 LTS Release: 14.04 Codename: trusty 3.13.0-86-generic #131-Ubuntu SMP Thu May 12 23:33:13 UTC 2016 x86_64 x86_64 x86_64 GNU/Linux

gcadoret commented 5 years ago

i find a turnaround installing ppa sudo add-apt-repository ppa:bugs-launchpad-net-falkensweb/cool-retro-term and then installing cool-retro-term

TheFausap commented 5 years ago

you can fix the error adding this definition to the qmltermwidget.pro

QMAKE_CXXFLAGS += -std=c++11

if GGC >= 4.7

then rerun qmake, then make.