Title: Qt_5_PRIVATE_API not defined in libQt5Gui.so.5 with 4.1.2-x86_64.AppImage Post by: sedxc on May 15, 2021, 06:26:38 PM Hello,
I first tried to run Electrum-4.0.9 from Electrum-4.1.2.tar.gz : Code: $ tar -xzf Electrum-4.0.9.tar.gz So, after that, I have withdrew to the AppImage which is supposed to run everywhere : Code: $ gpg --verify electrum-4.1.2-x86_64.AppImage.asc electrum-4.1.2-x86_64.AppImage and I got another kind of error ! any idea ? Thanks Title: Re: Qt_5_PRIVATE_API not defined in libQt5Gui.so.5 with 4.1.2-x86_64.AppImage Post by: BitMaxz on May 15, 2021, 06:50:30 PM Did you run this on Linux?
I tried to search about this error and I see some solution to solve this issue. Try this command below. Code: sudo apt install libsecp256k1-dev Then try to open the Electrum again. I got that solution from here https://github.com/spesmilo/electrum/issues/5606 You can also try the other suggestion from that link if the command above doesn't work. Title: Re: Qt_5_PRIVATE_API not defined in libQt5Gui.so.5 with 4.1.2-x86_64.AppImage Post by: HCP on May 16, 2021, 06:48:01 AM So, after that, I have withdrew to the AppImage which is supposed to run everywhere : What "flavour" and version of Linux are you actually trying to run this .AppImage on? ie Is it Ubuntu 18.04? Ubuntu 20.04? Fedora? Arch? ???Code: $ ./electrum-4.1.2-x86_64.AppImage Title: Re: Qt_5_PRIVATE_API not defined in libQt5Gui.so.5 with 4.1.2-x86_64.AppImage Post by: DireWolfM14 on May 16, 2021, 12:11:03 PM So, after that, I have withdrew to the AppImage which is supposed to run everywhere : If I'm not mistaken, the app image will only run on an OS with a GUI Desktop. It looks like the error has to do with electrum's graphical interface. Are you running a server version operating system? If so, you can still install and run Electrum as a daemon, but you'll have to install it from the tar ball. Although, here's the help menu from the app image, and it appears you can run it as a daemon. Code: direwolf@UbuntuVM:~$ /bin/electrum-4.1.2-x86_64.AppImage -h Title: Re: Qt_5_PRIVATE_API not defined in libQt5Gui.so.5 with 4.1.2-x86_64.AppImage Post by: sedxc on May 16, 2021, 01:50:56 PM 1st, there are a few mistakes in my yesteday's post :
-> all my tests were done on electrum-4.1.2, not on electrum-4.0.9. So the true answer to my test with the tarball is : Code: $ ./Electrum-4.1.2/run_electrum Quote Did you run this on Linux? Yes, Mageia-7.1Quote sudo apt install libsecp256k1-dev I don't know "sudo apt-get" but after having installed lib64secp256k1-devel-0.1-0.0.git20171221.2.mga7, I got the same errorQuote Have you installed required dependency mention on electrum website? Code: $ rpm -qa | grep -e python3-pyqt5 -e secp256k1 -e python3-cryptography Quote This message is quite vague. One of the possible version is you're using outdated OS which has very old version of Qt 5 Mageia-7.1 was a few weeks ago the last version of Mageia.Quote It looks like the error has to do with electrum's graphical interface. Are you running a server version operating system? I am not running electrum as a server but on a desktop environment kde/plasma :Code: $ /usr/bin/plasmashell -v Title: Re: Qt_5_PRIVATE_API not defined in libQt5Gui.so.5 with 4.1.2-x86_64.AppImage Post by: DireWolfM14 on May 17, 2021, 12:10:24 AM Quote sudo apt install libsecp256k1-dev I don't know "sudo apt-get" sudo runs the given command with admin, or root privileges. apt is short for Aptitude, the standard debian software management system. By using sudo the package is installed with root privileges. Quote This message is quite vague. One of the possible version is you're using outdated OS which has very old version of Qt 5 Mageia-7.1 was a few weeks ago the last version of Mageia.Version 7.1 was first released nearly two years ago, and is running the Linux 5.1.14 kernel, which isn't an LTS release. I'm not sure if that's your issue, but I'm guessing it might be. Were you able to use an older version of Electrum with this OS? Title: Re: Qt_5_PRIVATE_API not defined in libQt5Gui.so.5 with 4.1.2-x86_64.AppImage Post by: nc50lc on May 17, 2021, 03:11:10 AM I first tried to run Electrum-4.0.9 from Electrum-4.1.2.tar.gz : Code: $ ./Electrum-4.0.9/run_electrum I don't know "sudo apt-get" but after having installed lib64secp256k1-devel-0.1-0.0.git20171221.2.mga7, I got the same error Electrum has its own script to build libsecp256k1, the version for your OS might have a missing module.Try to use: Code: $ ./Electrum-4.1.2/contrib/make_libsecp256k1.sh But I doubt that it will fix the other issue since there seems to be a problem with pyqt5 when you use the Appimage. Title: Re: Qt_5_PRIVATE_API not defined in libQt5Gui.so.5 with 4.1.2-x86_64.AppImage Post by: sedxc on May 17, 2021, 10:35:34 AM Thanks for your numerous answers.
I think the 1st thing I have to do is upgrading to mga-8. I'll give you the result when it's done. Title: Re: Qt_5_PRIVATE_API not defined in libQt5Gui.so.5 with 4.1.2-x86_64.AppImage Post by: NotATether on May 17, 2021, 11:27:26 AM To run the tar.gz file you need to install libsecp256k1 from apt:
sudo apt install libsecp256k1-0 But since you're not using a Debian/Ubuntu OS, then the package might have a different name, and you'll have other package managers like yum or pacman. Edit: since you are using Mageia then use urpmf libsecp256k1 to install it. If I'm not mistaken, the app image will only run on an OS with a GUI Desktop. It looks like the error has to do with electrum's graphical interface. It'll also work if you launch it from a terminal but you are running it in an X desktop. If you're getting errors about relocation and missing symbols, your OS version packages older libraries than what the AppImage was built from. Or, maybe you're tying to run a 64-bit AppImage on 32-bit Mageia. Title: Re: Qt_5_PRIVATE_API not defined in libQt5Gui.so.5 with 4.1.2-x86_64.AppImage Post by: sedxc on May 19, 2021, 09:55:41 PM The problem is solved after installing mageia 8. I recovered my BTC :-)
Actually, it is only solved when I run the AppImage. When I start electrum from the tarball, I get : Code: $ Electrum-4.1.2/run_electrum Code: $ rpm -qa | grep secp256k1 As said nc50lc : Quote Electrum has its own script to build libsecp256k1, the version for your OS might have a missing module. So I should rebuild libsecp256k1 and tell mageia team to build it properly, or more, to include it in its repository.Try to use: Code: $ ./Electrum-4.1.2/contrib/make_libsecp256k1.sh Title: Re: Qt_5_PRIVATE_API not defined in libQt5Gui.so.5 with 4.1.2-x86_64.AppImage Post by: DireWolfM14 on May 19, 2021, 10:52:51 PM So I should rebuild libsecp256k1 and tell mageia team to build it properly, or more, to include it in its repository. I kind of get it; people want a Windows-like experience from a free OS. But, nothing worth having is "free," and a Windows-like experience would require and OS that... well, works. Ditch that shitty fucking excuse for an OS. If you want a Windowesque OS on a Linux distro, and have it actually work use Xubuntu (https://xubuntu.org/) Desktop. Don't get me wrong; Xubuntu is still shit, but since it's essentially Ubuntu with the Xfce Desktop it works. Title: Re: Qt_5_PRIVATE_API not defined in libQt5Gui.so.5 with 4.1.2-x86_64.AppImage Post by: nc50lc on May 20, 2021, 03:23:25 AM As said nc50lc : That's good, AFAIK older versions of Ubuntu had the same issue with libsecp256k1 that had been causing the same error in Electrum.Quote Electrum has its own script to build libsecp256k1, the version for your OS might have a missing module. So I should rebuild libsecp256k1 and tell mageia team to build it properly, or more, to include it in its repository.Try to use: Code: $ ./Electrum-4.1.2/contrib/make_libsecp256k1.sh The Appimage however has it already, pre-compiled. |