Hi,
I'm trying to compile this on Linux Mint and get the following error after typing: qmake ../../cpp-ethereum/alephzero
Project MESSAGE: Warning: unknown QT: widgets
If I just type make I get this:
g++ -c -m64 -pipe -std=c++11 -O2 -Wall -W -D_REENTRANT -DQT_NO_DEBUG -DQT_GUI_LIB -DQT_NETWORK_LIB -DQT_CORE_LIB -DQT_SHARED -I/usr/share/qt4/mkspecs/linux-g++-64 -I../../cpp-ethereum/alephzero -I/usr/include/qt4/QtCore -I/usr/include/qt4/QtNetwork -I/usr/include/qt4/QtGui -I/usr/include/qt4 -I../../secp256k1/include -I../../cryptopp562 -I../../cpp-ethereum -I. -I. -I../../cpp-ethereum/alephzero -I. -o MainWin.o ../../cpp-ethereum/alephzero/MainWin.cpp
../../cpp-ethereum/alephzero/MainWin.cpp:2:21: fatal error: QtWidgets: No such file or directory
#include
^
compilation terminated.
make: *** [MainWin.o] Error 1
What am I doing wrong? Every other part of the install went smoothly. (I got the source from Git)
0 ·
Comments
Here is the error in context. It shows I have qtbase5-dev installed and up to date.
[email protected]:~$ sudo apt-get install qtbase5-dev
Reading package lists... Done
Building dependency tree
Reading state information... Done
qtbase5-dev is already the newest version.
0 upgraded, 0 newly installed, 0 to remove and 3 not upgraded.
[email protected]:~$ cd cpp-ethereum-build
[email protected]:~/cpp-ethereum-build$ cd alephzero
[email protected]:~/cpp-ethereum-build/alephzero$ qmake ../../cpp-ethereum/alephzero
qmake: could not find a Qt installation of ''
use this:
qmake -qt=qt5
as in
qmake -qt=qt5 ../../cpp-ethereum/alephzero
g++ -c -m64 -pipe -std=c++11 -O2 -Wall -W -D_REENTRANT -fPIE -DQT_NO_DEBUG -DQT_WIDGETS_LIB -DQT_NETWORK_LIB -DQT_GUI_LIB -DQT_CORE_LIB -I/usr/share/qt5/mkspecs/linux-g++-64 -I../../cpp-ethereum/alephzero -I../../secp256k1/include -I../../cryptopp562 -I../../cpp-ethereum -I/usr/include/qt5 -I/usr/include/qt5/QtWidgets -I/usr/include/qt5/QtNetwork -I/usr/include/qt5/QtGui -I/usr/include/qt5/QtCore -I. -I. -I. -o MainWin.o ../../cpp-ethereum/alephzero/MainWin.cpp
In file included from ../../cpp-ethereum/alephzero/MainWin.cpp:6:0:
./ui_Main.h:14:25: fatal error: QtGui/QAction: No such file or directory
#include
^
compilation terminated.
make: *** [MainWin.o] Error 1
Then I did make and got the error above. No idea what I'm doing wrong.
Thank you for your help I fixed my problem too!
Bunker