0
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? Jun 2, 2021 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. Jun 2, 2021 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.
    – user103136
    Jun 2, 2021 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. Jun 2, 2021 at 21:40
  • 1
    @Prayank About bitcoin-qt.pro, see github.com/bitcoin/bitcoin/pull/21695 Jun 2, 2021 at 21:53

1 Answer 1

1

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
4
  • 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 Jun 3, 2021 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. Jun 5, 2021 at 6:22
  • @PieterWuille Yes, I am using Depends system, but yet it is not executable. Jul 8, 2021 at 5:58
  • 1
    @Gladiator9120 an AppImage might also work in this case. Jul 23, 2023 at 3:52

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

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