When compiling qt for ubuntu 16.04 I am having an error in the object 'build/backtrace.o'
To compile I'm simply doing
qmake denarius-qt.pro
make
Any ideas about the possible mistake?'
Thanks and salute
You need libevent-dev installed now due to Tor integration:
sudo apt-get install libevent-dev
Installed and tried to compile with both command line and QT creator. I always found this error:
11:55:55: Running steps for project denarius-qt...
11:55:55: Configuration unchanged, skipping qmake step.
11:55:55: Starting: "/usr/bin/make"
cd /home/hache/denarius/src/leveldb && CC=gcc CXX=g++ /usr/bin/make OPT="-pipe -fpermissive -fstack-protector-all --param ssp-buffer-size=1 -O2" libleveldb.a libmemenv.a
make[1]: Entering directory '/home/hache/denarius/src/leveldb'
make[1]: 'libleveldb.a' is up to date.
make[1]: 'libmemenv.a' is up to date.
make[1]: Leaving directory '/home/hache/denarius/src/leveldb'
cd /home/hache/denarius; /bin/sh share/genbuild.sh /home/hache/denarius/build/build.h
gcc -c -pipe -std=c99 -O2 -D_REENTRANT -Wall -W -fPIC -DQT_GUI -DBOOST_THREAD_USE_LIB -DBOOST_SPIRIT_THREADSAFE -DQT_DISABLE_DEPRECATED_BEFORE=0 -DUSE_UPNP=1 -DSTATICLIB -DUSE_DBUS -DUSE_IPV6=1 -DUSE_LEVELDB -DHAVE_BUILD_INFO -DLINUX -DLINUX -DQT_NO_DEBUG -DQT_PRINTSUPPORT_LIB -DQT_WIDGETS_LIB -DQT_GUI_LIB -DQT_NETWORK_LIB -DQT_DBUS_LIB -DQT_CORE_LIB -Isrc -Isrc/json -Isrc/qt -Isrc/tor -Isrc/qt/plugins/mrichtexteditor -Isrc/leveldb/include -Isrc/leveldb/helpers -isystem /usr/include/i386-linux-gnu/qt5 -isystem /usr/include/i386-linux-gnu/qt5/QtPrintSupport -isystem /usr/include/i386-linux-gnu/qt5/QtWidgets -isystem /usr/include/i386-linux-gnu/qt5/QtGui -isystem /usr/include/i386-linux-gnu/qt5/QtNetwork -isystem /usr/include/i386-linux-gnu/qt5/QtDBus -isystem /usr/include/i386-linux-gnu/qt5/QtCore -Ibuild -Ibuild -I/usr/lib/i386-linux-gnu/qt5/mkspecs/linux-g++ -o build/backtrace.o src/tor/backtrace.c
Assembler messages:
Fatal error: can't create build/backtrace.o: Permission denied
In file included from src/tor/orconfig.h:13:0,
from src/tor/backtrace.c:16:
src/tor/backtrace.c: In function 'clean_backtrace':
Makefile:6195: recipe for target 'build/backtrace.o' failed
src/tor/orconfig_linux.h:578:44: error: 'REG_RIP' undeclared (first use in this function)
#define PC_FROM_UCONTEXT uc_mcontext.gregs[REG_RIP]
^
src/tor/backtrace.c:88:27: note: in expansion of macro 'PC_FROM_UCONTEXT'
stack[n] = (void*) ctx->PC_FROM_UCONTEXT;
^
src/tor/orconfig_linux.h:578:44: note: each undeclared identifier is reported only once for each function it appears in
#define PC_FROM_UCONTEXT uc_mcontext.gregs[REG_RIP]
^
src/tor/backtrace.c:88:27: note: in expansion of macro 'PC_FROM_UCONTEXT'
stack[n] = (void*) ctx->PC_FROM_UCONTEXT;
^
make: *** [build/backtrace.o] Error 2
11:55:56: The process "/usr/bin/make" exited with code 2.
Error while building/deploying project denarius-qt (kit: Qt 5.5.1 in PATH (System))
When executing step "Make"
11:55:56: Elapsed time: 00:01.

Thanks and salute