Compile error when trying to install qjournalctl
![Creative The name of the picture](https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgO9GURib1T8z7lCwjOGLQaGtrueEthgQ8LO42ZX8cOfTqDK4jvDDpKkLFwf2J49kYCMNW7d4ABih_XCb_2UXdq5fPJDkoyg7-8g_YfRUot-XnaXkNYycsNp7lA5_TW9td0FFpLQ2APzKcZ/s1600/1.jpg)
![Creative The name of the picture](https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhYQ0N5W1qAOxLP7t7iOM6O6AzbZnkXUy16s7P_CWfOb5UbTQY_aDsc727chyphenhyphen5W4IppVNernMMQeaUFTB_rFzAd95_CDt-tnwN-nBx6JyUp2duGjPaL5-VgNO41AVsA_vu30EJcipdDG409/s400/Clash+Royale+CLAN+TAG%2523URR8PPP.png)
up vote
2
down vote
favorite
I am trying to install qjournalctl.
Before the install I did:
sudo apt-get install libxtst-dev build-essential libqt4-dev qt4-qmake cmake gcc g++ qt4-dev-tools libusb-1.0.0-dev
I downloaded the zip file and extracted it. I went into the directory and ran ./autogen.sh which did not report any errors. However when I ran make I got this. Any suggestions would be much appreciated.
/usr/lib/x86_64-linux-gnu/qt4/bin/uic ui/mainwindow.ui -o ui_mainwindow.h
/usr/lib/x86_64-linux-gnu/qt4/bin/uic ui/aboutdialog.ui -o ui_aboutdialog.h
/usr/lib/x86_64-linux-gnu/qt4/bin/uic ui/showbootlog.ui -o ui_showbootlog.h
g++ -c -pipe -O2 -Wall -W -D_REENTRANT -DQT_NO_DEBUG -DQT_GUI_LIB -DQT_CORE_LIB -DQT_SHARED -I/usr/share/qt4/mkspecs/linux-g++ -I. -I/usr /include/qt4/QtCore -I/usr/include/qt4/QtGui -I/usr/include/qt4 -I. -I. -o main.o src/main.cpp
g++ -c -pipe -O2 -Wall -W -D_REENTRANT -DQT_NO_DEBUG -DQT_GUI_LIB -DQT_CORE_LIB -DQT_SHARED -I/usr/share/qt4/mkspecs/linux-g++ -I. -I/usr /include/qt4/QtCore -I/usr/include/qt4/QtGui -I/usr/include/qt4 -I. -I. -o mainwindow.o src/mainwindow.cpp
In file included from src/mainwindow.cpp:10:0:
./ui_mainwindow.h: In member function âÂÂvoid Ui_MainWindow::setupUi(QMainWindow*)âÂÂ:
./ui_mainwindow.h:114:20: error: âÂÂclass QTableViewâ has no member named âÂÂsetSizeAdjustPolicyâÂÂ; did you mean âÂÂsetSizePolicyâÂÂ?
tableView->setSizeAdjustPolicy(QAbstractScrollArea::AdjustToContents);
^~~~~~~~~~~~~~~~~~~
setSizePolicy
./ui_mainwindow.h:114:61: error: âÂÂAdjustToContentsâ is not a member of âÂÂQAbstractScrollAreaâÂÂ
tableView->setSizeAdjustPolicy(QAbstractScrollArea::AdjustToContents);
^~~~~~~~~~~~~~~~
src/mainwindow.cpp: In member function âÂÂvoid MainWindow::on_tableView_doubleClicked(const QModelIndex&)âÂÂ:
src/mainwindow.cpp:141:64: warning: unused parameter âÂÂindexâ [-Wunused- parameter]
void MainWindow::on_tableView_doubleClicked(const QModelIndex &index)
^~~~~
src/mainwindow.cpp: In member function âÂÂvoid MainWindow::on_tableView_clicked(const QModelIndex&)âÂÂ:
src/mainwindow.cpp:172:58: warning: unused parameter âÂÂindexâ [-Wunused- parameter]
void MainWindow::on_tableView_clicked(const QModelIndex &index)
^~~~~
Makefile:250: recipe for target 'mainwindow.o' failed
make: *** [mainwindow.o] Error 1
software-installation compiling make
add a comment |Â
up vote
2
down vote
favorite
I am trying to install qjournalctl.
Before the install I did:
sudo apt-get install libxtst-dev build-essential libqt4-dev qt4-qmake cmake gcc g++ qt4-dev-tools libusb-1.0.0-dev
I downloaded the zip file and extracted it. I went into the directory and ran ./autogen.sh which did not report any errors. However when I ran make I got this. Any suggestions would be much appreciated.
/usr/lib/x86_64-linux-gnu/qt4/bin/uic ui/mainwindow.ui -o ui_mainwindow.h
/usr/lib/x86_64-linux-gnu/qt4/bin/uic ui/aboutdialog.ui -o ui_aboutdialog.h
/usr/lib/x86_64-linux-gnu/qt4/bin/uic ui/showbootlog.ui -o ui_showbootlog.h
g++ -c -pipe -O2 -Wall -W -D_REENTRANT -DQT_NO_DEBUG -DQT_GUI_LIB -DQT_CORE_LIB -DQT_SHARED -I/usr/share/qt4/mkspecs/linux-g++ -I. -I/usr /include/qt4/QtCore -I/usr/include/qt4/QtGui -I/usr/include/qt4 -I. -I. -o main.o src/main.cpp
g++ -c -pipe -O2 -Wall -W -D_REENTRANT -DQT_NO_DEBUG -DQT_GUI_LIB -DQT_CORE_LIB -DQT_SHARED -I/usr/share/qt4/mkspecs/linux-g++ -I. -I/usr /include/qt4/QtCore -I/usr/include/qt4/QtGui -I/usr/include/qt4 -I. -I. -o mainwindow.o src/mainwindow.cpp
In file included from src/mainwindow.cpp:10:0:
./ui_mainwindow.h: In member function âÂÂvoid Ui_MainWindow::setupUi(QMainWindow*)âÂÂ:
./ui_mainwindow.h:114:20: error: âÂÂclass QTableViewâ has no member named âÂÂsetSizeAdjustPolicyâÂÂ; did you mean âÂÂsetSizePolicyâÂÂ?
tableView->setSizeAdjustPolicy(QAbstractScrollArea::AdjustToContents);
^~~~~~~~~~~~~~~~~~~
setSizePolicy
./ui_mainwindow.h:114:61: error: âÂÂAdjustToContentsâ is not a member of âÂÂQAbstractScrollAreaâÂÂ
tableView->setSizeAdjustPolicy(QAbstractScrollArea::AdjustToContents);
^~~~~~~~~~~~~~~~
src/mainwindow.cpp: In member function âÂÂvoid MainWindow::on_tableView_doubleClicked(const QModelIndex&)âÂÂ:
src/mainwindow.cpp:141:64: warning: unused parameter âÂÂindexâ [-Wunused- parameter]
void MainWindow::on_tableView_doubleClicked(const QModelIndex &index)
^~~~~
src/mainwindow.cpp: In member function âÂÂvoid MainWindow::on_tableView_clicked(const QModelIndex&)âÂÂ:
src/mainwindow.cpp:172:58: warning: unused parameter âÂÂindexâ [-Wunused- parameter]
void MainWindow::on_tableView_clicked(const QModelIndex &index)
^~~~~
Makefile:250: recipe for target 'mainwindow.o' failed
make: *** [mainwindow.o] Error 1
software-installation compiling make
You could want to try packaged log manager - GNOME Logs (sudo apt-get install gnome-logs
).
â N0rbert
Feb 3 at 8:27
Alas it says gnome-logs is already the newest version.
â Jedi
Feb 3 at 9:08
This means you may simply start it bygnome-logs
command. I understand that it is substitution of original problem. Which Ubuntu version do you have?
â N0rbert
Feb 3 at 9:26
add a comment |Â
up vote
2
down vote
favorite
up vote
2
down vote
favorite
I am trying to install qjournalctl.
Before the install I did:
sudo apt-get install libxtst-dev build-essential libqt4-dev qt4-qmake cmake gcc g++ qt4-dev-tools libusb-1.0.0-dev
I downloaded the zip file and extracted it. I went into the directory and ran ./autogen.sh which did not report any errors. However when I ran make I got this. Any suggestions would be much appreciated.
/usr/lib/x86_64-linux-gnu/qt4/bin/uic ui/mainwindow.ui -o ui_mainwindow.h
/usr/lib/x86_64-linux-gnu/qt4/bin/uic ui/aboutdialog.ui -o ui_aboutdialog.h
/usr/lib/x86_64-linux-gnu/qt4/bin/uic ui/showbootlog.ui -o ui_showbootlog.h
g++ -c -pipe -O2 -Wall -W -D_REENTRANT -DQT_NO_DEBUG -DQT_GUI_LIB -DQT_CORE_LIB -DQT_SHARED -I/usr/share/qt4/mkspecs/linux-g++ -I. -I/usr /include/qt4/QtCore -I/usr/include/qt4/QtGui -I/usr/include/qt4 -I. -I. -o main.o src/main.cpp
g++ -c -pipe -O2 -Wall -W -D_REENTRANT -DQT_NO_DEBUG -DQT_GUI_LIB -DQT_CORE_LIB -DQT_SHARED -I/usr/share/qt4/mkspecs/linux-g++ -I. -I/usr /include/qt4/QtCore -I/usr/include/qt4/QtGui -I/usr/include/qt4 -I. -I. -o mainwindow.o src/mainwindow.cpp
In file included from src/mainwindow.cpp:10:0:
./ui_mainwindow.h: In member function âÂÂvoid Ui_MainWindow::setupUi(QMainWindow*)âÂÂ:
./ui_mainwindow.h:114:20: error: âÂÂclass QTableViewâ has no member named âÂÂsetSizeAdjustPolicyâÂÂ; did you mean âÂÂsetSizePolicyâÂÂ?
tableView->setSizeAdjustPolicy(QAbstractScrollArea::AdjustToContents);
^~~~~~~~~~~~~~~~~~~
setSizePolicy
./ui_mainwindow.h:114:61: error: âÂÂAdjustToContentsâ is not a member of âÂÂQAbstractScrollAreaâÂÂ
tableView->setSizeAdjustPolicy(QAbstractScrollArea::AdjustToContents);
^~~~~~~~~~~~~~~~
src/mainwindow.cpp: In member function âÂÂvoid MainWindow::on_tableView_doubleClicked(const QModelIndex&)âÂÂ:
src/mainwindow.cpp:141:64: warning: unused parameter âÂÂindexâ [-Wunused- parameter]
void MainWindow::on_tableView_doubleClicked(const QModelIndex &index)
^~~~~
src/mainwindow.cpp: In member function âÂÂvoid MainWindow::on_tableView_clicked(const QModelIndex&)âÂÂ:
src/mainwindow.cpp:172:58: warning: unused parameter âÂÂindexâ [-Wunused- parameter]
void MainWindow::on_tableView_clicked(const QModelIndex &index)
^~~~~
Makefile:250: recipe for target 'mainwindow.o' failed
make: *** [mainwindow.o] Error 1
software-installation compiling make
I am trying to install qjournalctl.
Before the install I did:
sudo apt-get install libxtst-dev build-essential libqt4-dev qt4-qmake cmake gcc g++ qt4-dev-tools libusb-1.0.0-dev
I downloaded the zip file and extracted it. I went into the directory and ran ./autogen.sh which did not report any errors. However when I ran make I got this. Any suggestions would be much appreciated.
/usr/lib/x86_64-linux-gnu/qt4/bin/uic ui/mainwindow.ui -o ui_mainwindow.h
/usr/lib/x86_64-linux-gnu/qt4/bin/uic ui/aboutdialog.ui -o ui_aboutdialog.h
/usr/lib/x86_64-linux-gnu/qt4/bin/uic ui/showbootlog.ui -o ui_showbootlog.h
g++ -c -pipe -O2 -Wall -W -D_REENTRANT -DQT_NO_DEBUG -DQT_GUI_LIB -DQT_CORE_LIB -DQT_SHARED -I/usr/share/qt4/mkspecs/linux-g++ -I. -I/usr /include/qt4/QtCore -I/usr/include/qt4/QtGui -I/usr/include/qt4 -I. -I. -o main.o src/main.cpp
g++ -c -pipe -O2 -Wall -W -D_REENTRANT -DQT_NO_DEBUG -DQT_GUI_LIB -DQT_CORE_LIB -DQT_SHARED -I/usr/share/qt4/mkspecs/linux-g++ -I. -I/usr /include/qt4/QtCore -I/usr/include/qt4/QtGui -I/usr/include/qt4 -I. -I. -o mainwindow.o src/mainwindow.cpp
In file included from src/mainwindow.cpp:10:0:
./ui_mainwindow.h: In member function âÂÂvoid Ui_MainWindow::setupUi(QMainWindow*)âÂÂ:
./ui_mainwindow.h:114:20: error: âÂÂclass QTableViewâ has no member named âÂÂsetSizeAdjustPolicyâÂÂ; did you mean âÂÂsetSizePolicyâÂÂ?
tableView->setSizeAdjustPolicy(QAbstractScrollArea::AdjustToContents);
^~~~~~~~~~~~~~~~~~~
setSizePolicy
./ui_mainwindow.h:114:61: error: âÂÂAdjustToContentsâ is not a member of âÂÂQAbstractScrollAreaâÂÂ
tableView->setSizeAdjustPolicy(QAbstractScrollArea::AdjustToContents);
^~~~~~~~~~~~~~~~
src/mainwindow.cpp: In member function âÂÂvoid MainWindow::on_tableView_doubleClicked(const QModelIndex&)âÂÂ:
src/mainwindow.cpp:141:64: warning: unused parameter âÂÂindexâ [-Wunused- parameter]
void MainWindow::on_tableView_doubleClicked(const QModelIndex &index)
^~~~~
src/mainwindow.cpp: In member function âÂÂvoid MainWindow::on_tableView_clicked(const QModelIndex&)âÂÂ:
src/mainwindow.cpp:172:58: warning: unused parameter âÂÂindexâ [-Wunused- parameter]
void MainWindow::on_tableView_clicked(const QModelIndex &index)
^~~~~
Makefile:250: recipe for target 'mainwindow.o' failed
make: *** [mainwindow.o] Error 1
software-installation compiling make
software-installation compiling make
asked Feb 3 at 6:30
![](https://i.stack.imgur.com/V12Al.jpg?s=32&g=1)
![](https://i.stack.imgur.com/V12Al.jpg?s=32&g=1)
Jedi
163
163
You could want to try packaged log manager - GNOME Logs (sudo apt-get install gnome-logs
).
â N0rbert
Feb 3 at 8:27
Alas it says gnome-logs is already the newest version.
â Jedi
Feb 3 at 9:08
This means you may simply start it bygnome-logs
command. I understand that it is substitution of original problem. Which Ubuntu version do you have?
â N0rbert
Feb 3 at 9:26
add a comment |Â
You could want to try packaged log manager - GNOME Logs (sudo apt-get install gnome-logs
).
â N0rbert
Feb 3 at 8:27
Alas it says gnome-logs is already the newest version.
â Jedi
Feb 3 at 9:08
This means you may simply start it bygnome-logs
command. I understand that it is substitution of original problem. Which Ubuntu version do you have?
â N0rbert
Feb 3 at 9:26
You could want to try packaged log manager - GNOME Logs (
sudo apt-get install gnome-logs
).â N0rbert
Feb 3 at 8:27
You could want to try packaged log manager - GNOME Logs (
sudo apt-get install gnome-logs
).â N0rbert
Feb 3 at 8:27
Alas it says gnome-logs is already the newest version.
â Jedi
Feb 3 at 9:08
Alas it says gnome-logs is already the newest version.
â Jedi
Feb 3 at 9:08
This means you may simply start it by
gnome-logs
command. I understand that it is substitution of original problem. Which Ubuntu version do you have?â N0rbert
Feb 3 at 9:26
This means you may simply start it by
gnome-logs
command. I understand that it is substitution of original problem. Which Ubuntu version do you have?â N0rbert
Feb 3 at 9:26
add a comment |Â
2 Answers
2
active
oldest
votes
up vote
2
down vote
It seems that qjournalctl is based on Qt5, so we need to install it:
sudo apt-get purge libqt4-dev qt4-dev-tools
sudo apt-get autoremove
sudo apt-get install qt5-default cmake gcc g++ build-essential
Then on 16.04 LTS I can compile version 0.21:
cd ~/Downloads
wget https://github.com/pentix/qjournalctl/archive/v0.21.zip
unzip v0.21.zip
cd qjournalctl-0.21/
./autogen.sh
make
./qjournalctl
I can't compile 0.3, 0.4 and master because of compilation error:
...
src/mainwindow.cpp:61:24: error: âÂÂnullptrâ was not declared in this scope
message_box.critical(nullptr, "Error", "No boots have been found :n"+process.readAllStandardError());
...
I reported bug #10 upstream to github about this problem.
Note: qjournalctl
compiles normally on 18.04 LTS (development version).
add a comment |Â
up vote
1
down vote
Note: Kudos to @N0rbert for reporting this as an issue!
(See: https://github.com/pentix/qjournalctl/issues/10)
Update
I've just added an option such that it should automatically try to compile for C++11 which should then fix your problem. Try downloading the new zip file (of the master branch) and try compiling it again! ;)
Workaround until I can publish a fix:
At the first sight it seems as if g++ does not automatically compile for C++11 (that's why it suggests to use the -std=c++11
. Also the variable nullptr
is defined when using the C++11 standard.
As a first workaround, you could execute ./autogen.sh
and then edit the Makefile
.
On approximately line 17 you should see something like
CXXFLAGS = -pipe -O2 -march=x86-64 -mtune=generic -O2 -pipe -fstack-protector-strong -fno-plt -Wall -W -D_REENTRANT -fPIC $(DEFINES)
Add the flag there
CXXFLAGS = -std=c++11 -pipe -O2 -march=x86-64 -mtune=generic -O2 -pipe -fstack-protector-strong -fno-plt -Wall -W -D_REENTRANT -fPIC $(DEFINES)
Then try again, running
make clean
make
It should compile fine then!
1
Thank you for fast response and fix! I cloned master again, it compiles and runs on Ubuntu 14.04 LTS, 16.04 LTS and 18.04 LTS without any user intervention. The way and quality of the solution to this problem can be considered a standard of interaction between the user and the developer, distribution and upstream!
â N0rbert
Feb 3 at 12:59
@Jedi, please mark this answer as accepted.
â N0rbert
Feb 3 at 13:01
1
@N0rbert Thank's a lot for testing this and reporting back! Great to hear it works!
â pentix
Feb 3 at 13:14
Hi N0rbert, not sure if there is something specific I need to do to mark this answer as accepted but I can report that it compiled correctly. Thank you so much for your help.
â Jedi
Feb 3 at 14:38
@N0rbert askubuntu.com/help/bounty
â terdonâ¦
Feb 4 at 13:39
add a comment |Â
2 Answers
2
active
oldest
votes
2 Answers
2
active
oldest
votes
active
oldest
votes
active
oldest
votes
up vote
2
down vote
It seems that qjournalctl is based on Qt5, so we need to install it:
sudo apt-get purge libqt4-dev qt4-dev-tools
sudo apt-get autoremove
sudo apt-get install qt5-default cmake gcc g++ build-essential
Then on 16.04 LTS I can compile version 0.21:
cd ~/Downloads
wget https://github.com/pentix/qjournalctl/archive/v0.21.zip
unzip v0.21.zip
cd qjournalctl-0.21/
./autogen.sh
make
./qjournalctl
I can't compile 0.3, 0.4 and master because of compilation error:
...
src/mainwindow.cpp:61:24: error: âÂÂnullptrâ was not declared in this scope
message_box.critical(nullptr, "Error", "No boots have been found :n"+process.readAllStandardError());
...
I reported bug #10 upstream to github about this problem.
Note: qjournalctl
compiles normally on 18.04 LTS (development version).
add a comment |Â
up vote
2
down vote
It seems that qjournalctl is based on Qt5, so we need to install it:
sudo apt-get purge libqt4-dev qt4-dev-tools
sudo apt-get autoremove
sudo apt-get install qt5-default cmake gcc g++ build-essential
Then on 16.04 LTS I can compile version 0.21:
cd ~/Downloads
wget https://github.com/pentix/qjournalctl/archive/v0.21.zip
unzip v0.21.zip
cd qjournalctl-0.21/
./autogen.sh
make
./qjournalctl
I can't compile 0.3, 0.4 and master because of compilation error:
...
src/mainwindow.cpp:61:24: error: âÂÂnullptrâ was not declared in this scope
message_box.critical(nullptr, "Error", "No boots have been found :n"+process.readAllStandardError());
...
I reported bug #10 upstream to github about this problem.
Note: qjournalctl
compiles normally on 18.04 LTS (development version).
add a comment |Â
up vote
2
down vote
up vote
2
down vote
It seems that qjournalctl is based on Qt5, so we need to install it:
sudo apt-get purge libqt4-dev qt4-dev-tools
sudo apt-get autoremove
sudo apt-get install qt5-default cmake gcc g++ build-essential
Then on 16.04 LTS I can compile version 0.21:
cd ~/Downloads
wget https://github.com/pentix/qjournalctl/archive/v0.21.zip
unzip v0.21.zip
cd qjournalctl-0.21/
./autogen.sh
make
./qjournalctl
I can't compile 0.3, 0.4 and master because of compilation error:
...
src/mainwindow.cpp:61:24: error: âÂÂnullptrâ was not declared in this scope
message_box.critical(nullptr, "Error", "No boots have been found :n"+process.readAllStandardError());
...
I reported bug #10 upstream to github about this problem.
Note: qjournalctl
compiles normally on 18.04 LTS (development version).
It seems that qjournalctl is based on Qt5, so we need to install it:
sudo apt-get purge libqt4-dev qt4-dev-tools
sudo apt-get autoremove
sudo apt-get install qt5-default cmake gcc g++ build-essential
Then on 16.04 LTS I can compile version 0.21:
cd ~/Downloads
wget https://github.com/pentix/qjournalctl/archive/v0.21.zip
unzip v0.21.zip
cd qjournalctl-0.21/
./autogen.sh
make
./qjournalctl
I can't compile 0.3, 0.4 and master because of compilation error:
...
src/mainwindow.cpp:61:24: error: âÂÂnullptrâ was not declared in this scope
message_box.critical(nullptr, "Error", "No boots have been found :n"+process.readAllStandardError());
...
I reported bug #10 upstream to github about this problem.
Note: qjournalctl
compiles normally on 18.04 LTS (development version).
edited Feb 3 at 10:22
answered Feb 3 at 10:01
N0rbert
16.7k33479
16.7k33479
add a comment |Â
add a comment |Â
up vote
1
down vote
Note: Kudos to @N0rbert for reporting this as an issue!
(See: https://github.com/pentix/qjournalctl/issues/10)
Update
I've just added an option such that it should automatically try to compile for C++11 which should then fix your problem. Try downloading the new zip file (of the master branch) and try compiling it again! ;)
Workaround until I can publish a fix:
At the first sight it seems as if g++ does not automatically compile for C++11 (that's why it suggests to use the -std=c++11
. Also the variable nullptr
is defined when using the C++11 standard.
As a first workaround, you could execute ./autogen.sh
and then edit the Makefile
.
On approximately line 17 you should see something like
CXXFLAGS = -pipe -O2 -march=x86-64 -mtune=generic -O2 -pipe -fstack-protector-strong -fno-plt -Wall -W -D_REENTRANT -fPIC $(DEFINES)
Add the flag there
CXXFLAGS = -std=c++11 -pipe -O2 -march=x86-64 -mtune=generic -O2 -pipe -fstack-protector-strong -fno-plt -Wall -W -D_REENTRANT -fPIC $(DEFINES)
Then try again, running
make clean
make
It should compile fine then!
1
Thank you for fast response and fix! I cloned master again, it compiles and runs on Ubuntu 14.04 LTS, 16.04 LTS and 18.04 LTS without any user intervention. The way and quality of the solution to this problem can be considered a standard of interaction between the user and the developer, distribution and upstream!
â N0rbert
Feb 3 at 12:59
@Jedi, please mark this answer as accepted.
â N0rbert
Feb 3 at 13:01
1
@N0rbert Thank's a lot for testing this and reporting back! Great to hear it works!
â pentix
Feb 3 at 13:14
Hi N0rbert, not sure if there is something specific I need to do to mark this answer as accepted but I can report that it compiled correctly. Thank you so much for your help.
â Jedi
Feb 3 at 14:38
@N0rbert askubuntu.com/help/bounty
â terdonâ¦
Feb 4 at 13:39
add a comment |Â
up vote
1
down vote
Note: Kudos to @N0rbert for reporting this as an issue!
(See: https://github.com/pentix/qjournalctl/issues/10)
Update
I've just added an option such that it should automatically try to compile for C++11 which should then fix your problem. Try downloading the new zip file (of the master branch) and try compiling it again! ;)
Workaround until I can publish a fix:
At the first sight it seems as if g++ does not automatically compile for C++11 (that's why it suggests to use the -std=c++11
. Also the variable nullptr
is defined when using the C++11 standard.
As a first workaround, you could execute ./autogen.sh
and then edit the Makefile
.
On approximately line 17 you should see something like
CXXFLAGS = -pipe -O2 -march=x86-64 -mtune=generic -O2 -pipe -fstack-protector-strong -fno-plt -Wall -W -D_REENTRANT -fPIC $(DEFINES)
Add the flag there
CXXFLAGS = -std=c++11 -pipe -O2 -march=x86-64 -mtune=generic -O2 -pipe -fstack-protector-strong -fno-plt -Wall -W -D_REENTRANT -fPIC $(DEFINES)
Then try again, running
make clean
make
It should compile fine then!
1
Thank you for fast response and fix! I cloned master again, it compiles and runs on Ubuntu 14.04 LTS, 16.04 LTS and 18.04 LTS without any user intervention. The way and quality of the solution to this problem can be considered a standard of interaction between the user and the developer, distribution and upstream!
â N0rbert
Feb 3 at 12:59
@Jedi, please mark this answer as accepted.
â N0rbert
Feb 3 at 13:01
1
@N0rbert Thank's a lot for testing this and reporting back! Great to hear it works!
â pentix
Feb 3 at 13:14
Hi N0rbert, not sure if there is something specific I need to do to mark this answer as accepted but I can report that it compiled correctly. Thank you so much for your help.
â Jedi
Feb 3 at 14:38
@N0rbert askubuntu.com/help/bounty
â terdonâ¦
Feb 4 at 13:39
add a comment |Â
up vote
1
down vote
up vote
1
down vote
Note: Kudos to @N0rbert for reporting this as an issue!
(See: https://github.com/pentix/qjournalctl/issues/10)
Update
I've just added an option such that it should automatically try to compile for C++11 which should then fix your problem. Try downloading the new zip file (of the master branch) and try compiling it again! ;)
Workaround until I can publish a fix:
At the first sight it seems as if g++ does not automatically compile for C++11 (that's why it suggests to use the -std=c++11
. Also the variable nullptr
is defined when using the C++11 standard.
As a first workaround, you could execute ./autogen.sh
and then edit the Makefile
.
On approximately line 17 you should see something like
CXXFLAGS = -pipe -O2 -march=x86-64 -mtune=generic -O2 -pipe -fstack-protector-strong -fno-plt -Wall -W -D_REENTRANT -fPIC $(DEFINES)
Add the flag there
CXXFLAGS = -std=c++11 -pipe -O2 -march=x86-64 -mtune=generic -O2 -pipe -fstack-protector-strong -fno-plt -Wall -W -D_REENTRANT -fPIC $(DEFINES)
Then try again, running
make clean
make
It should compile fine then!
Note: Kudos to @N0rbert for reporting this as an issue!
(See: https://github.com/pentix/qjournalctl/issues/10)
Update
I've just added an option such that it should automatically try to compile for C++11 which should then fix your problem. Try downloading the new zip file (of the master branch) and try compiling it again! ;)
Workaround until I can publish a fix:
At the first sight it seems as if g++ does not automatically compile for C++11 (that's why it suggests to use the -std=c++11
. Also the variable nullptr
is defined when using the C++11 standard.
As a first workaround, you could execute ./autogen.sh
and then edit the Makefile
.
On approximately line 17 you should see something like
CXXFLAGS = -pipe -O2 -march=x86-64 -mtune=generic -O2 -pipe -fstack-protector-strong -fno-plt -Wall -W -D_REENTRANT -fPIC $(DEFINES)
Add the flag there
CXXFLAGS = -std=c++11 -pipe -O2 -march=x86-64 -mtune=generic -O2 -pipe -fstack-protector-strong -fno-plt -Wall -W -D_REENTRANT -fPIC $(DEFINES)
Then try again, running
make clean
make
It should compile fine then!
edited Feb 3 at 11:54
answered Feb 3 at 10:39
pentix
1113
1113
1
Thank you for fast response and fix! I cloned master again, it compiles and runs on Ubuntu 14.04 LTS, 16.04 LTS and 18.04 LTS without any user intervention. The way and quality of the solution to this problem can be considered a standard of interaction between the user and the developer, distribution and upstream!
â N0rbert
Feb 3 at 12:59
@Jedi, please mark this answer as accepted.
â N0rbert
Feb 3 at 13:01
1
@N0rbert Thank's a lot for testing this and reporting back! Great to hear it works!
â pentix
Feb 3 at 13:14
Hi N0rbert, not sure if there is something specific I need to do to mark this answer as accepted but I can report that it compiled correctly. Thank you so much for your help.
â Jedi
Feb 3 at 14:38
@N0rbert askubuntu.com/help/bounty
â terdonâ¦
Feb 4 at 13:39
add a comment |Â
1
Thank you for fast response and fix! I cloned master again, it compiles and runs on Ubuntu 14.04 LTS, 16.04 LTS and 18.04 LTS without any user intervention. The way and quality of the solution to this problem can be considered a standard of interaction between the user and the developer, distribution and upstream!
â N0rbert
Feb 3 at 12:59
@Jedi, please mark this answer as accepted.
â N0rbert
Feb 3 at 13:01
1
@N0rbert Thank's a lot for testing this and reporting back! Great to hear it works!
â pentix
Feb 3 at 13:14
Hi N0rbert, not sure if there is something specific I need to do to mark this answer as accepted but I can report that it compiled correctly. Thank you so much for your help.
â Jedi
Feb 3 at 14:38
@N0rbert askubuntu.com/help/bounty
â terdonâ¦
Feb 4 at 13:39
1
1
Thank you for fast response and fix! I cloned master again, it compiles and runs on Ubuntu 14.04 LTS, 16.04 LTS and 18.04 LTS without any user intervention. The way and quality of the solution to this problem can be considered a standard of interaction between the user and the developer, distribution and upstream!
â N0rbert
Feb 3 at 12:59
Thank you for fast response and fix! I cloned master again, it compiles and runs on Ubuntu 14.04 LTS, 16.04 LTS and 18.04 LTS without any user intervention. The way and quality of the solution to this problem can be considered a standard of interaction between the user and the developer, distribution and upstream!
â N0rbert
Feb 3 at 12:59
@Jedi, please mark this answer as accepted.
â N0rbert
Feb 3 at 13:01
@Jedi, please mark this answer as accepted.
â N0rbert
Feb 3 at 13:01
1
1
@N0rbert Thank's a lot for testing this and reporting back! Great to hear it works!
â pentix
Feb 3 at 13:14
@N0rbert Thank's a lot for testing this and reporting back! Great to hear it works!
â pentix
Feb 3 at 13:14
Hi N0rbert, not sure if there is something specific I need to do to mark this answer as accepted but I can report that it compiled correctly. Thank you so much for your help.
â Jedi
Feb 3 at 14:38
Hi N0rbert, not sure if there is something specific I need to do to mark this answer as accepted but I can report that it compiled correctly. Thank you so much for your help.
â Jedi
Feb 3 at 14:38
@N0rbert askubuntu.com/help/bounty
â terdonâ¦
Feb 4 at 13:39
@N0rbert askubuntu.com/help/bounty
â terdonâ¦
Feb 4 at 13:39
add a comment |Â
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
var $window = $(window),
onScroll = function(e)
var $elem = $('.new-login-left'),
docViewTop = $window.scrollTop(),
docViewBottom = docViewTop + $window.height(),
elemTop = $elem.offset().top,
elemBottom = elemTop + $elem.height();
if ((docViewTop elemBottom))
StackExchange.using('gps', function() StackExchange.gps.track('embedded_signup_form.view', location: 'question_page' ); );
$window.unbind('scroll', onScroll);
;
$window.on('scroll', onScroll);
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
StackExchange.ready(
function ()
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2faskubuntu.com%2fquestions%2f1002580%2fcompile-error-when-trying-to-install-qjournalctl%23new-answer', 'question_page');
);
Post as a guest
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
var $window = $(window),
onScroll = function(e)
var $elem = $('.new-login-left'),
docViewTop = $window.scrollTop(),
docViewBottom = docViewTop + $window.height(),
elemTop = $elem.offset().top,
elemBottom = elemTop + $elem.height();
if ((docViewTop elemBottom))
StackExchange.using('gps', function() StackExchange.gps.track('embedded_signup_form.view', location: 'question_page' ); );
$window.unbind('scroll', onScroll);
;
$window.on('scroll', onScroll);
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
var $window = $(window),
onScroll = function(e)
var $elem = $('.new-login-left'),
docViewTop = $window.scrollTop(),
docViewBottom = docViewTop + $window.height(),
elemTop = $elem.offset().top,
elemBottom = elemTop + $elem.height();
if ((docViewTop elemBottom))
StackExchange.using('gps', function() StackExchange.gps.track('embedded_signup_form.view', location: 'question_page' ); );
$window.unbind('scroll', onScroll);
;
$window.on('scroll', onScroll);
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
var $window = $(window),
onScroll = function(e)
var $elem = $('.new-login-left'),
docViewTop = $window.scrollTop(),
docViewBottom = docViewTop + $window.height(),
elemTop = $elem.offset().top,
elemBottom = elemTop + $elem.height();
if ((docViewTop elemBottom))
StackExchange.using('gps', function() StackExchange.gps.track('embedded_signup_form.view', location: 'question_page' ); );
$window.unbind('scroll', onScroll);
;
$window.on('scroll', onScroll);
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
You could want to try packaged log manager - GNOME Logs (
sudo apt-get install gnome-logs
).â N0rbert
Feb 3 at 8:27
Alas it says gnome-logs is already the newest version.
â Jedi
Feb 3 at 9:08
This means you may simply start it by
gnome-logs
command. I understand that it is substitution of original problem. Which Ubuntu version do you have?â N0rbert
Feb 3 at 9:26