Post
Topic
Board Announcements (Altcoins)
Re: Feathercoin [FTC] - time proven, fast, secure and unique POW coin
by
Wellenreiter
on 08/02/2016, 13:53:10 UTC
I can't compile the new Feathercoin wallet on linux (Linux Mint 17.3).

Code:
coinnectordialog.cpp:28:23: fatal error: QJsonObject: No such file or directory
 #include
                       ^
compilation terminated.
(...)
make[5]: *** [libbitcoinqt_a-coinnectordialog.o] Error 1
utilitydialog.cpp:51:35: fatal error: QtPrintSupport/QPrinter: No such file or directory
 #include
                                   ^
compilation terminated.

libqt5printsupport5 and libqjson-dev are installed.
Other wallets, including bitcoin-qt compile fine.
What is wrong?

PS: this was v. 0.9.3, github link from official FTC site.

I never tried to compile for Linux Mint, but I think you are missing some QT dependencies.

For Debian I compiled 0.9.3 and 0.9.5 with the follwing:
From the DSC file:

Code:
Build-Depends: libdb5.3-dev debhelper (>= 8.3.0), qtbase5-dev, qttools5-dev-tools, build-essential, libboost-dev,
 libboost-system-dev, libboost-filesystem-dev, libboost-program-options-dev, libboost-thread-dev,
 libssl-dev,libdb++-dev, libminiupnpc-dev, binutils,
 autoconf, automake,  debhelper (>= 8.1.3), dh-autoreconf,
 libzxing, libqrencode-dev, pkg-config, libprotobuf-dev (>= 2.6.1), protobuf-compiler

Extract from the rules-file

Code:
#ifeq "$(shell uname -v|grep +deb7)" "+deb7"
GUI_PARMS= --with-gui=no
HAVE_GUI= false
#else
GUI_PARMS= --with-gui=qt5 --with-qrcode
HAVE_GUI= true
#endif

ifeq "$(shell uname -m)" "x86_64"
LIBDIR=$(PREFIX)/lib64
CONFIG_PARMS= --without-cli --with-incompatible-bdb  --enable-tests=no $(GUI_PARMS) -with-boost=yes
else
LIBDIR=$(PREFIX)/lib
CONFIG_PARMS= --without-cli --with-incompatible-bdb  --enable-tests=no $(GUI_PARMS) --with-boost-libdir=$(LIBDIR)/i386-linux-gnu
endif

#ifeq "$(shell uname -v| grep -c deb)" "1"
QRCODE="1"
#else
#QRCODE="-"
#endif

INCLUDEDIR=../../../include
SBINDIR=$(PREFIX)/sbin
MANDIR=$(PREFIX)/share/man
DATADIR=$(PREFIX)/share/$(NAME)
DOCDIR=$(PREFIX)/share/doc/$(NAME)
SYSCONFDIR=/etc
RCDIR=$(SYSCONFDIR)/init.d
CGIDIR=/src/www/cgi-bin

build: build-arch build-indep
build-arch: build-stamp
build-indep: build-stamp
build-stamp:
dh_testdir
dh_autoreconf
# Add here commands to compile the package.
./autogen.sh
./configure $(CONFIG_PARMS)
#
make

For Debian 7 no Gui is possible, as Debian 7 uses QT4 and 0.9.3 / 0.9.5 doesn't compile on QT4

I hope this helps

The next relase which probably will be 0.11.2 compiles fine for QT4 and QT5