1
Bitcoin version : 0.21
System: Ubuntu 18.04

All dependencies installed.

I am using Depends system to compile QT wallet. I compiled all three (Mac, Windows, and Ubuntu) successfully. All run just fine.

Only with Ubuntu, the QT file doesn't open with double click like other programs. How do I compile it so it works just like other programs, and I don't have to open terminal every time I want to run the QT wallet.

10
  • What happens instead when you open by double clicking? Maybe it's just already running? Can you run bitcoin-qt from the command line? – Pieter Wuille Jun 2 at 14:49
  • yes, everytime I want to run the QT wallet, I open the terminal and type ./bitcoin-qt to run it. It runs perfectly fine. – Gladiator9120 Jun 2 at 15:01
  • 1
    It is mentioned in these links 1 and 2 that QMAKE_LFLAGS += -no-pie should be present in .pro file. There was a bitcoin-qt.pro in /contrib few months back. Not sure why I don't see it right now in Master branch. – Prayank Jun 2 at 21:02
  • @Prayank That sounds unrelated to being able to start it by double clicking. Clearly the binary works, or OP wouldn't be able to start it from the command line. – Pieter Wuille Jun 2 at 21:40
  • 1
    @Prayank About bitcoin-qt.pro, see github.com/bitcoin/bitcoin/pull/21695 – Pieter Wuille Jun 2 at 21:53
0

Workaround:

  1. Create a file bitcoin-qt.desktop
  2. Save below content in the file:
[Desktop Entry]
Type=Application
Encoding=UTF-8
Name=bitcoin-qt
Comment=Bitcoin Core
Exec=bitcoin-qt
Icon=bitcoin.png
Terminal=false
  1. Save bitcoin.png in /usr/share/icons
  2. Right click on bitcoin-qt.desktop, go to permissions and allow executing file as program
  3. Double clicking bitcoin-qt.desktop will launch bitcoin-qt
3
  • Yes, I know of this workaround. But what if I want to send the compiled binary file to someone else? They too will need to create this file, right ? that's what I am trying to avoid. I am trying to have a ready-to-use compiled binary that doesn't need any further configs – Gladiator9120 Jun 3 at 7:50
  • @gladiator9120 Then you should use the depends build system (see the readme in the depends subdirectory), it is a build system that compiles with the exact same dependencies and configuration as Bitcoin Core's release binaries. – Pieter Wuille Jun 5 at 6:22
  • @PieterWuille Yes, I am using Depends system, but yet it is not executable. – Gladiator9120 Jul 8 at 5:58

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.