Stephen Sekula

Stephen Sekula at

>> JanKusanagi:

“» Stephen Sekula:
“[...] an you send me the correct site/repo from which to checkout libqoauth2? [...]”
The repo is, which I imagine is the one you're using.

It might help to look at how Debian builds it.”

So, I got QtCrypto and QtOauth to build. But now when I try to build Dianara, I get this:

../src/mainwindow.cpp:539:5: warning: identifier ‘nullptr’ is a keyword in C++11 [-Wc++0x-compat]
     logViewer = new LogViewer(nullptr); // under Plasma 5, for instance
../src/mainwindow.cpp: In constructor ‘MainWindow::MainWindow(QWidget*)’:
../src/mainwindow.cpp:539:31: error: ‘nullptr’ was not declared in this scope
     logViewer = new LogViewer(nullptr); // under Plasma 5, for instance
../src/mainwindow.cpp: In member function ‘void MainWindow::showUserTimeline(QString, QString, QIcon, QString)’:
../src/mainwindow.cpp:3207:45: error: ‘nullptr’ was not declared in this scope
                                             nullptr); // No parent, independent window
../src/mainwindow.cpp: In member function ‘void MainWindow::toggleLockedPanels(bool)’:
../src/mainwindow.cpp:3225:43: error: ‘nullptr’ was not declared in this scope
Makefile:1220: recipe for target 'mainwindow.o' failed
make: *** [mainwindow.o] Error 1 


I had to edit the Makefile and manually force the use of -std=c++11. That did the trick. Wonder why that wasn't set automatically when creating the Makefile?


So now it gets a teeny bit further and this happens:

g++ -c -std=c++11 -m64 -pipe -O2 -Wall -W -D_REENTRANT -fPIC -DQT_NO_DEBUG -DQT_WIDGETS_LIB -DQT_GUI_LIB -DQT_NETWORK_LIB -DQT_DBUS_LIB -DQT_CORE_LIB -I../../dianara-dev -I. -isystem /usr/include/x86_64-linux-gnu5/QtOAuth -isystem /usr/include/x86_64-linux-gnu/qt5/Qca-qt5/QtCrypto -isystem /usr/include/x86_64-linux-gnu/qt5 -isystem /usr/include/x86_64-linux-gnu/qt5/QtWidgets -isystem /usr/include/x86_64-linux-gnu/qt5/QtGui -isystem /usr/include/x86_64-linux-gnu/qt5/QtNetwork -isystem /usr/include/x86_64-linux-gnu/qt5/QtDBus -isystem /usr/include/x86_64-linux-gnu/qt5/QtCore -I. -I/usr/lib/x86_64-linux-gnu/qt5/mkspecs/linux-g++-64 -I/usr/include/QtOAuth/ -o pumpcontroller.o ../src/pumpcontroller.cpp
../src/pumpcontroller.cpp: In member function ‘void PumpController::getImage(QString)’:
../src/pumpcontroller.cpp:475:31: error: ‘FollowRedirectsAttribute’ is not a member of ‘QNetworkRequest’
     imageRequest.setAttribute(QNetworkRequest::FollowRedirectsAttribute, true);
 I will see if I can track that one down.  The qnetworkrequest.h header on my system (Ubuntu 16.04) comes from this package:

Package: qtbase5-dev

State: installed
Automatically installed: no
Multi-Arch: same
Version: 5.5.1+dfsg-16ubuntu7.5


I edited pumpcontroller.cpp and changed "FollowRedirectsAttrbute" to "RedirectionTargetAttribute", which is a defined attribute in my version of this header. It compiled. Whether that is the correct thing to do, I cannot say...

OOF. It was not probably the right thing to do. Dianara seg faults upon startup... not sure why, of course, but something went horribly wrong...