Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Compiling on non debian distros #15

Closed
arosboro opened this issue Sep 28, 2015 · 2 comments
Closed

Compiling on non debian distros #15

arosboro opened this issue Sep 28, 2015 · 2 comments

Comments

@arosboro
Copy link

Can you provide some instructions on using qmake etc to get this to compile on non debian systems such as gentoo.

I've installed qt5 but am getting errors like the following:

#error "cannot be used with the include files from this version of Qt."
  ^
qt/./addresstablemodel.moc:15:2: error: #error "(The moc has changed too much.)"
 #error "(The moc has changed too much.)"
@arcanis
Copy link
Contributor

arcanis commented Sep 29, 2015

I'm not familiar with the Gentoo package manager. You should only have to find the right ones and everything should go smoothly with a simple make -f Makefile.unix, as stated in the Debian documentation.

According to your log, it seems your system has some kind of conflict between Qt4 and Qt5, so I suggest you double check this.

Closing as not-a-bug, but feel free to comment later if you manage to find the right packages.

@arcanis arcanis closed this as completed Sep 29, 2015
@arosboro
Copy link
Author

Thanks arcanis.

I looked into this. Here are the steps I took to compile. Note: I followed https://wiki.gentoo.org/wiki/Qt/Qt5 to get Qt5 on my system. The other libraries were already installed.

which moc shows /usr/bin/moc, and /usr/bin/moc -> qtchooser. So to use qt5 I need to edit Makefile.common and add -qt=5 to MOC ?= moc so that it looks like MOC ?= moc -qt=5

I also get

fatal error: db_cxx.h: No such file or directory
#include <db_cxx.h>

Which can be resolved ala dogecoin/dogecoin#76 (comment) by adding -I/usr/include/db4.8 to the end of CXXFLAGS in src/Makefile.default

You may need to run make -f Makefile.common clean before building make -f Makefile.unix neucoin-qt

I had to replace QtGUI with Qt Widgets in ui_aboutdialog.h

#include <QtCore/QVariant>
#include <QtWidgets/QAction>
#include <QtWidgets/QApplication>
#include <QtWidgets/QButtonGroup>
#include <QtWidgets/QDialog>
#include <QtWidgets/QDialogButtonBox>
#include <QtWidgets/QHBoxLayout>
#include <QtWidgets/QHeaderView>
#include <QtWidgets/QLabel>
#include <QtWidgets/QSpacerItem>
#include <QtWidgets/QVBoxLayout>
sed -i -- 's/include <QtGui/include <QtWidgets/g' qt/forms/*.h

UnicodeUTF8’ is not a member of ‘QApplication’ error:

sed -i -- 's/, QApplication::UnicodeUTF8//g' qt/forms/*.h

If you get qrencode.h: No such file or directory, you'll need to install media-gfx/qrencode.

Send a tip to NXoVVUB3tf4GzCXXfnD78kNgj4YtnpuPZC if you found this useful ;)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants