No Branch/Tag Specified
chat
custom_themes
danger
dev
duke
importviewkey
master
no_mining_until_synced
old_duke
onryo
recurring
0.4.0
0.4.1
0.4.2
0.4.3
0.5.0
0.5.1
0.5.10
0.5.11
0.5.3
0.5.4
0.5.5
0.6.0
0.6.1
0.6.10
0.6.11
0.6.2
0.6.3
0.6.4
0.6.5
0.6.6
0.6.7
0.6.8
0.6.9
0.7.0
0.7.1
0.7.2
0.7.3
0.7.4
0.7.5
0.7.6
0.7.7
0.7.9
1.4.2
v0.1.5
v0.1.6
v0.1.7
v0.1.8
v0.1.9
v0.2.0
v0.2.1
v0.2.2
v0.2.3
v0.2.4
v0.2.5
v0.2.6
v0.2.7
v0.2.8
v0.2.9
v0.3.0
v0.3.1
v0.3.2
v0.5.2
v0.5.6
v0.5.7
v0.5.8
v0.5.9
v0.7.5
v0.7.6
v0.7.7
v0.7.8
v0.8.0
v0.8.1
v0.8.2
v0.8.3
v0.9.0
v0.9.1
v0.9.2
v1.0.0
v1.1.0
v1.2.0
v1.3.0
v1.3.1
v1.4.0
v1.4.1
v1.4.2
Labels
bounty up to 500 HUSH 2001-5000 bounty
bounty between 2001 and 5000 HUSH 501-2000 bounty
bounty between 501 and 2000 HUSH arm
something doesn't work on arm beginners
for new developers bug
may or may not be a bug build
problems building documentation
not enough information feature
new feature high priority
high priority i2p
related to i2p low priority
low priority medium priority
medium priority question
something is not clear release
release label or issue related to it tor
related to tor translation
translation update windows
related to windows wontfix
this won't be fixed
Apply labels
Clear labels
0-500 bounty
bounty up to 500 HUSH 2001-5000 bounty
bounty between 2001 and 5000 HUSH 501-2000 bounty
bounty between 501 and 2000 HUSH arm
something doesn't work on arm beginners
for new developers bug
may or may not be a bug build
problems building documentation
not enough information feature
new feature high priority
high priority i2p
related to i2p low priority
low priority medium priority
medium priority question
something is not clear release
release label or issue related to it tor
related to tor translation
translation update windows
related to windows wontfix
this won't be fixed
No Label
0-500 bounty
2001-5000 bounty
501-2000 bounty
arm
beginners
bug
build
documentation
feature
high priority
i2p
low priority
medium priority
question
release
tor
translation
windows
wontfix
Milestone
Set milestone
Clear milestone
No items
No Milestone
Projects
Clear projects
No project
Assignees
Assign users
Clear assignees
No Assignees
2 Participants
Notifications
Due Date
The due date is invalid or out of range. Please use the format 'yyyy-mm-dd'.
No due date set.
Dependencies
This issue currently doesn't have any dependencies.
Reference in new issue
There is no content yet.
Delete Branch '%!s(MISSING)'
Deleting a branch is permanent. It CANNOT be undone. Continue?
No
Yes
Compiling SD on Ubuntu 18.04 resulted in the following error.
@odinzu are you able to compile on any system? I think that sometimes Ubuntu changes the names or splits dependencies into multiple new dependencies. This seems like not the full QT5 dependency list has been installed.
Yeah, it compiled and launched without any errors on Ubuntu 20.04 following the README.md.
@oDinZu hmm, this sounds like maybe Ubuntu 18.04 needs another dependency installed
Related https://www.reddit.com/r/Myhush/comments/llfbzx/can_not_build_silentdragon_wallet/
@odinzu I just tested on an Ubuntu 18.04.3 system and it compiled fine. Perhaps I installed the necessary dependency in the past on this system
That is good news; I wonder what that dep it is? It has to be JSON related with QT5.
QJsonDocument is part of QT5 core: https://doc.qt.io/qt-5/qjsondocument.html
But not part of QT4, so you may need to use
qtchooser
or uninstall qt4 to make things work @odinzuSo it sounds like this bug effects people that maybe upgraded old systems from qt4 or installed qt4 before qt5, then qt4 is the default QT that is used. Something like that
On Ubuntu 18.04
qtcreator -version
qmake --version
qtchooser -print-env
On Ubuntu 20.04
What is your qmake --version? It shows I am using Qt5.
@oDinZu
Plz add the output of your
apt show qtcreator
, maybe we can find a difference. The machine I use is Ubuntu 18.04.3 server, with no GUI. Maybe that is related?After uninstalling and purging Qt, the same error is created. The exact same versions were reinstalled.
apt show qtcreator
@odinzu plz DM me the full output of your build.sh on Telegram and maybe I can see a clue. This is a weird bug.
It is okay, it is all contained in a qemu vm awesome sauce. This is the fresh build.sh output.
@odinzu
ls -la /usr/include/x86_64-linux-gnu/qt5/QtCore/qjsondocument.h
Does that file exist?
Yes.
These are the only deps I installed to compile qt5.15.2 from scratch. I don't see anything to do with JSON though.
Qt Dependencies
sudo apt install build-essential libfontconfig1-dev libdbus-1-dev libfreetype6-dev libicu-dev libinput-dev libxkbcommon-dev libsqlite3-dev libssl-dev libpng-dev libjpeg-dev libglib2.0-dev libgles2-mesa-dev libgbm-dev libdrm-dev
====
These are the options I used that allowed me to build the SD 1.2.0 bins successfully on Ubuntu 18.04.01. Most of these options are for speeding up compiliation.
Qt 5.15.2 Configure
../qt-everywhere-src-5.15.2/configure -v -opengl es2 -eglfs -opensource -confirm-license -release -ssl -glib -no-feature-geoservices_mapboxgl -qt-pcre -nomake examples -no-compile-examples -nomake tests -reduce-exports -system-freetype -fontconfig -qpa eglfs
Just for reference. I was able to compile / build / launch SD 1.3.0 on Ubuntu 18.04 when I compiled my own QT 5.15.2. If someone wants SD on 18.04, this is the only solution I have discovered that works.
It seems to be an Ubuntu 18.04 "ppa:repository" for old QT5 version. The default QT5 is 5.9 for 18.04 if I remember correctly.
Me and @duke did extensive testing to see if it was a compiler issue and various other things..but had no luck. Somehow @duke could compile SD on QT 5.9 with Ubuntu 18.04 Server..
Solution: https://git.hush.is/hush/docs/src/branch/master/advanced/compile-qt5-from-source.md
I think the resolution of this issue is that QT 5.9 is not supported (some systems likely have custom patches to 5.9 which is potentially why it sometimes worked), our code is only known to work well with at least 5.12 and 5.15.x or higher is recommended. Closing