Gqrx 2.11.1 Appimage

270 views
Skip to first unread message

Alex X

unread,
Mar 19, 2018, 10:50:20 PM3/19/18
to Gqrx SDR
Hello,

I have a problem building Gqrx as a appimage, 2.8 and 2.9 did build and work fine, but 2.11 shows a symbol lookup error when executing:

ubuntu:~/GNU-Radio/Gqrx$ ./Gqrx-2.11.1-x86_64.AppImage
WARNING: Config file '/etc/gnuradio/conf.d/gr_log_default.conf' failed to parse:
std::exception
Skipping it
gqrx-sdr: symbol lookup error: /usr/lib/x86_64-linux-gnu/libgtk-x11-2.0.so.0: undefined symbol: g_type_check_instance_is_fundamentally_a

However it does start (and work) with preload: sudo env LD_PRELOAD=/usr/lib/x86_64-linux-gnu/libgtk-x11-2.0.so ./Gqrx-2.11.1-x86_64.AppImage 

ubuntu:~$ ls -l /usr/lib/x86_64-linux-gnu/libgtk-x11-2.0.so.0
lrwxrwxrwx 1 root root 27 Aug  2  2017 /usr/lib/x86_64-linux-gnu/libgtk-x11-2.0.so.0 -> libgtk-x11-2.0.so.0.2400.30

It does also happen on a clean install.

Is libgtk-x11-2.0.so outdated?

Kind regards Alex

Alexandru Csete

unread,
Mar 20, 2018, 12:39:40 PM3/20/18
to gq...@googlegroups.com
I suppose, though I have no idea. Note that it is not a direct
dependency, i.e. "ldd gqrx" does not list any libgtk stuff.

Alex
Message has been deleted

Alex X

unread,
Mar 20, 2018, 2:18:28 PM3/20/18
to Gqrx SDR
Thanks for answering, wierd that it does rely on libgtk.
I did this to build the appimage:

Downloaded AppImages-master.zip from https://github.com/probonopd/AppImages
bash -ex ./pkg2appimage recipes/Gqrx.yml
./test.sh
copy Gqrx.AppDir into AppImages-master/AppImageKit
chmod a+x appimagetool-x86_64.AppImage
./appimagetool-x86_64.AppImage Gqrx.AppDir
Make it executable
chmod a+x Gqrx-x86_64.AppImage
and run:
./Gqrx-x86_64.AppImage

Kind regards Alex

Op dinsdag 20 maart 2018 03:50:20 UTC+1 schreef Alex X:

Alexandru Csete

unread,
Mar 21, 2018, 10:15:17 AM3/21/18
to gq...@googlegroups.com
What I said, or at least meant, is that gqrx does not depend on it
directly. That does not mean that there isn't a dependency, e.g. a Qt
library that requires it. Recall that the appimage bundles everything.

Alex
> --
> You received this message because you are subscribed to the Google Groups
> "Gqrx SDR" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to gqrx+uns...@googlegroups.com.
> To post to this group, send email to gq...@googlegroups.com.
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/gqrx/4cbe8604-928f-46b0-8c3e-02c422b44fee%40googlegroups.com.
>
> For more options, visit https://groups.google.com/d/optout.
Message has been deleted

Alexandru Csete

unread,
Mar 22, 2018, 8:21:18 PM3/22/18
to gq...@googlegroups.com
Sounds good Alex. What did you do differently to make it work?

Also, do you have an update AppImage that works? I would be happy to
put it under the download

Alex

On Thu, Mar 22, 2018 at 3:42 AM, Alex X <happ...@gmail.com> wrote:
> Hello Alex,
>
> I think this time the appimage script did bundle to much..
> The old one compared to the most recent one shows libglib stuff added
> Thats the culprit...
>
> rm
> ~/Downloads/AppImages-master/AppImageKit/Gqrx.AppDir/lib/x86_64-linux-gnu/libglib-2.0.so.0
> rm
> ~/Downloads/AppImages-master/AppImageKit/Gqrx.AppDir/lib/x86_64-linux-gnu/libglib-2.0.so.0.4000.0
> rm
> ~/Downloads/AppImages-master/AppImageKit/Gqrx.AppDir/usr/lib/x86_64-linux-gnu/libgobject-2.0.so.0
> rm
> ~/Downloads/AppImages-master/AppImageKit/Gqrx.AppDir/usr/lib/x86_64-linux-gnu/libgobject-2.0.so.0.4000.0
>
> And the nagging error is gone ;)
>
> Kind regards Alex & thanks!
>
> Op woensdag 21 maart 2018 15:15:17 UTC+1 schreef Alexandru Csete:
> https://groups.google.com/d/msgid/gqrx/85671162-8dc7-477c-a6f2-cd736e340f5b%40googlegroups.com.

Alex X

unread,
Mar 23, 2018, 8:54:16 PM3/23/18
to Gqrx SDR
Hello Alex,

The same procedure to build as above only before building the appimage removing 4 libglib-2.0.so.0* files and then start to build.

I did remove files one by one and build to did see which one was not playing nice, only those 4 mentioned below must be removed.
In older appimages git they where not present, i guess recently added..

Downloaded AppImages-master.zip from https://github.com/probonopd/AppImages
bash -ex ./pkg2appimage recipes/Gqrx.yml
./test.sh
copy Gqrx.AppDir into AppImages-master/AppImageKit

rm ~/Downloads/AppImages-master/AppImageKit/Gqrx.AppDir/lib/x86_64-linux-gnu/libglib-2.0.so.0 
 
rm ~/Downloads/AppImages-master/AppImageKit/Gqrx.AppDir/lib/x86_64-linux-gnu/libglib-2.0.so.0.4000.0 

rm ~/Downloads/AppImages-master/AppImageKit/Gqrx.AppDir/usr/lib/x86_64-linux-gnu/libgobject-2.0.so.0 
 
rm ~/Downloads/AppImages-master/AppImageKit/Gqrx.AppDir/usr/lib/x86_64-linux-gnu/libgobject-2.0.so.0.4000.0 

chmod a+x appimagetool-x86_64.AppImage
./appimagetool-x86_64.AppImage Gqrx.AppDir
Make it executable
chmod a+x Gqrx-x86_64.AppImage
and run:
./Gqrx-x86_64.AppImage

This one works fine, i also tried on a clean install with only rtl-sdr drivers installed.
Im happy to share it ;)

Please download:


Kind regards Alex

Alex X

unread,
Mar 24, 2018, 9:38:15 PM3/24/18
to Gqrx SDR
Hello Alex,

I could build and run Gqrx 2.11.2 Appimage without any problems:


Good job on fixing the layout .-)

Kind regards Alex

Alexandru Csete

unread,
Mar 25, 2018, 10:51:29 AM3/25/18
to gq...@googlegroups.com
Hi Alex,

Thanks for the info and the update.

The need to delete the .so files in the Gqrx.AppDir/ concerns me...
But thanks to your info I can now also build the AppImage and
modified the .yml file to use the newer Xenial (16.04) distribution as
baseline instead of the old Trusty (14.04). So, I am hoping that the
AppImage built using this will be better compatible with newer Linux
systems.

Thanks

Alex
> --
> You received this message because you are subscribed to the Google Groups
> "Gqrx SDR" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to gqrx+uns...@googlegroups.com.
> To post to this group, send email to gq...@googlegroups.com.
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/gqrx/9eb8feff-1bad-4655-8868-370c859c0b6b%40googlegroups.com.

Alex X

unread,
Mar 25, 2018, 2:03:40 PM3/25/18
to Gqrx SDR
Your welcome,

Great to hear its possible to build it for yourself :)

I dunno if the devś from Appimage did include these 4 troublesome *.so files, a few version ago they where absent.

Can you share the modified recipe .yml for Gqrx?

Kind regards Alex  

Op zondag 25 maart 2018 16:51:29 UTC+2 schreef Alexandru Csete:

Alexandru Csete

unread,
Mar 25, 2018, 2:35:02 PM3/25/18
to gq...@googlegroups.com
The recipe fetches all binaries from the Ubuntu repositories and the Gqrx PPAs.
It is set to use Ubuntu 14.04, which now getting quite old. All I did
was to change to Ubuntu 16.04 instead and I have also removed the UHD
PPA, since UHD support is disabled for now:

diff --git a/recipes/Gqrx.yml b/recipes/Gqrx.yml
index 876a62d..c3426e5 100644
--- a/recipes/Gqrx.yml
+++ b/recipes/Gqrx.yml
@@ -2,12 +2,11 @@ app: Gqrx

ingredients:
package: gqrx-sdr
- dist: trusty
+ dist: xenial
sources:
- - deb http://archive.ubuntu.com/ubuntu/ trusty main universe
+ - deb http://archive.ubuntu.com/ubuntu/ xenial main universe
ppas:
- bladerf/bladerf
- - ettusresearch/uhd
- myriadrf/drivers
- myriadrf/gnuradio
- gqrx/gqrx-sdr

Alex X

unread,
Mar 26, 2018, 9:51:19 AM3/26/18
to Gqrx SDR
Hello Alex,

Ah i understand the move to xenial thanks for the info!


Op zondag 25 maart 2018 20:35:02 UTC+2 schreef Alexandru Csete:
Reply all
Reply to author
Forward
0 new messages