Getting an error when building from source:
/usr/include/qt4/QtCore/qlist.h:412:17: error: invalid use of incomplete type ‘class QUrl’
new (current) T(*reinterpret_cast(src));
^
In file included from src/qt/bitcoingui.cpp:8:0:
src/qt/bitcoingui.h:30:7: error: forward declaration of ‘class QUrl’
class QUrl;
^
In file included from /usr/include/qt4/QtCore/qobject.h:50:0,
from /usr/include/qt4/QtGui/qwidget.h:47,
from /usr/include/qt4/QtGui/qmainwindow.h:45,
from /usr/include/qt4/QtGui/QMainWindow:1,
from src/qt/bitcoingui.h:4,
from src/qt/bitcoingui.cpp:8:
/usr/include/qt4/QtCore/qlist.h:418:17: error: invalid use of incomplete type ‘class QUrl’
(reinterpret_cast(current))->~T();
^
In file included from src/qt/bitcoingui.cpp:8:0:
src/qt/bitcoingui.h:30:7: error: forward declaration of ‘class QUrl’
class QUrl;
^
make: *** [build/bitcoingui.o] Error 1
Do I have to add QUrl to the .pro file or something? I did not have this error on earlier builds (probably due to the new browser)
Old one used Qt4, new one uses Qt5
I used qmake qt5 now, and it ran, except with this error: Project ERROR: Unknown module(s) in QT: webkitwidgets webkit
Doesn't matter for my problem, but just so you know.
Now I'm getting this error when using make:
cd /home/dev/DigiCube; /bin/sh share/genbuild.sh /home/dev/DigiCube/build/build.h
/bin/sh: 1: cd: can't cd to /home/dev/DigiCube
share/genbuild.sh: 33: share/genbuild.sh: cannot create /home/dev/DigiCube/build/build.h: Directory nonexistent
share/genbuild.sh: 34: share/genbuild.sh: cannot create /home/dev/DigiCube/build/build.h: Directory nonexistent
make: *** [genbuildhook] Fout 2
The folder is not in the specified location, so it's pointing to the wrong folder.. Any solutions?
EDIT: Are you sure that it's using qt5? almost builds in qt4, except the QUrl error.. Really can't get it to work in qt5, also the files in the .rar did not work.