aliascash / alias-wallet-archive

The content of this repository was reunited with the history of it's ancestors. It's archived now to keep all former release artifacts. The new repository is available at https://github.com/aliascash/alias-wallet
https://alias.cash/
59 stars 22 forks source link

Missing include on Fedora 27 #28

Closed bitcoinx2 closed 6 years ago

bitcoinx2 commented 6 years ago

The include path for QWebEngineView is not configured correctly for Fedora 27. The error is:

In file included from qt/moc_spectregui.cpp:9:0:
qt/spectregui.h:9:10: fatal error: QWebEngineView: No such file or directory
 #include <QWebEngineView>

The missing files are in

so the correct include would be QtWebEngineWidgets/QWebEngineView, or alternatively /usr/include/qt5/QtWebEngineWidgets must be included on the compiler level separately. The same problem probably also applies to other libraries like QtGui, QtWidgets, QtWebChannel, QtNetwork.

shbli commented 6 years ago

@spectrecoin @bitcoinx2 we have successfully compiled on Ubuntu and it works perfectly well over there.

Now if Fidora is a high priority we can fix it for 1.4.0 and if not we can release 1.4.0 and then leave that for 1.4.1 or another release.

@spectrecoin please assign the proper tag to the issue.

dragononcrypto commented 6 years ago

I just came across this exact same build error on (L)ubuntu 18.04. So not just Fedora based, more likely to be related to latest stable Linux distros if it builds in an old version of Ubuntu without problems. Personally, I think the best bet is migrate testing to Ubuntu 18.04 LTS, that's what users will be eventually doing due to the upgrade prompting, even if not the best idea in the short-term.

bitcoinx2 commented 6 years ago

Confirmed on Fedora 28. Ubuntu should not be the assumed default for any release, there are many different Linux distros. I would recommend to test the software on the most common Linux distros before releasing.

dragononcrypto commented 6 years ago

The pull request helped, but didn't solve the underlying issue of missing includes for me, unless I'm missing something obvious here. This is after a fresh git pull and re-build, Ubuntu 18.04 again.

In file included from qt/moc_spectregui.cpp:9:0:
qt/spectregui.h:8:10: fatal error: QMainWindow: No such file or directory
 #include <QMainWindow>