trying to use rapagui on linux... executable won't start

Find quick help here to get you started with Hollywood
Post Reply
MarisaG1967
Posts: 27
Joined: Sat Jun 22, 2024 4:15 am
Location: South San Francisco, CA
Contact:

trying to use rapagui on linux... executable won't start

Post by MarisaG1967 »

I'm on Ubuntu and trying to write a game that uses rapagui, and when compiling it it says it is successful and in the log I see it is saying it was able to find rapagui.hwp. But when I run the executable it pops a window saying that rapagui.hwp is required.

What did I do wrong? As I said it says it found and loaded rapagui.hwp at compile time and in HollywoodGUI it lists the rapagui examples etc.

Thanks!
--- https://amigacity.xyz - Website for all things related to the Amiga
--- https://hollywood.retro-os.live - Fan site for the Hollywood programming environment
--- https://discord.gg/ExmkwrV8ZA - Discord for Hollywood fans
Flinx
Posts: 352
Joined: Sun Feb 14, 2021 9:54 am
Location: Germany

Re: trying to use rapagui on linux... executable won't start

Post by Flinx »

Did you place RapaGUI in the directory of the executable? If so, is it really the correct version (32-bit or 64-bit must match too)?
You can also link a plugin to the executable, but this may cause licensing issues. Please read the Linking plugins section in the manual.
MarisaG1967
Posts: 27
Joined: Sat Jun 22, 2024 4:15 am
Location: South San Francisco, CA
Contact:

Re: trying to use rapagui on linux... executable won't start

Post by MarisaG1967 »

Flinx wrote: Tue Aug 12, 2025 2:12 pm Did you place RapaGUI in the directory of the executable? If so, is it really the correct version (32-bit or 64-bit must match too)?
You can also link a plugin to the executable, but this may cause licensing issues. Please read the Linking plugins section in the manual.
Yes I belive I placed it in there. As I said it loads the plugin when compiling my game, and thos is the only plugin I am using so licensing should not be a issue. I read that link before but from what I could see there is only one folder for Linux, not all of the linux platforms supported in Hollywood.
--- https://amigacity.xyz - Website for all things related to the Amiga
--- https://hollywood.retro-os.live - Fan site for the Hollywood programming environment
--- https://discord.gg/ExmkwrV8ZA - Discord for Hollywood fans
User avatar
airsoftsoftwair
Posts: 5895
Joined: Fri Feb 12, 2010 2:33 pm
Location: Germany
Contact:

Re: trying to use rapagui on linux... executable won't start

Post by airsoftsoftwair »

RapaGUI on Linux is a bit more complicated because there are four different builds (GTK2, GTK2+webview, GTK3, GTK3+webview). My guess is that you've linked a webview build of RapaGUI to the executable but gtk-webview isn't installed on your system. To see why RapaGUI fails loading, you have to install Hollywood and RapaGUI on your Linux system and start it from a terminal. If it fails to load RapaGUI, it will print some info on why it couldn't be loaded to the console, typically because some components are missing on the Linux system.
User avatar
NubeCheCorre
Posts: 82
Joined: Mon Mar 19, 2012 1:24 am
Contact:

Re: trying to use rapagui on linux... executable won't start

Post by NubeCheCorre »

I have the same exact problem.. I am not able to display the demos of Rapagui..
I would like to know, talking about the plugins copyright and GPL licence, what happen if I realize a program with rapagui (a cms program) and I include the plugin in the program in a proper directory called "Plugins" so that the required plugin is included together with the program and so it is not statically linked to the exe? is it legal?
User avatar
airsoftsoftwair
Posts: 5895
Joined: Fri Feb 12, 2010 2:33 pm
Location: Germany
Contact:

Re: trying to use rapagui on linux... executable won't start

Post by airsoftsoftwair »

On Linux things are more difficult than on other platforms given the wide variety of distributions so to make an educated guess I need to know the following: What Linux distribution and version are you on? What desktop environment (GNOME, KDE...)? Which GTK version is installed?

For the best compatibility I recommend using the x64-linux-gtk3 flavour because the -webview flavour depends on an external component which is often not installed by default. Have you tried x64-linux-gtk3?
User avatar
NubeCheCorre
Posts: 82
Joined: Mon Mar 19, 2012 1:24 am
Contact:

Re: trying to use rapagui on linux... executable won't start

Post by NubeCheCorre »

First of all thanks for the reply Andreas :-)

I am using Debian 12 with KDE. I deleted my previous installation of Hollywood and reinstalled everything from scratch, installing only RapaGUI as plugin, and I installed, as you suggested, the GTK-3 version but nothing changed.. If try to compile a project, it tells me that the project is compiled but in the log file I found the error about Rapagui.. But Rapagui is available in the plugin drawer and I can see it inside the Hollywood gui..
This time I installed Hollywood inside my Home folder of Debian

Here is the output of my terminal that shows which libraries are installed about gtk:

Code: Select all

dpkg -l libgtk2.0-0 libgtk-3-0
Desired=Unknown/Install/Remove/Purge/Hold
| Status=Not/Inst/Conf-files/Unpacked/halF-conf/Half-inst/trig-aWait/Trig-pend
|/ Err?=(none)/Reinst-required (Status,Err: uppercase=bad)
||/ Name              Version           Architecture Description
+++-=================-=================-============-==================================================
ii  libgtk-3-0:amd64  3.24.38-2~deb12u3 amd64        GTK graphical user interface library
ii  libgtk2.0-0:amd64 2.24.33-2+deb12u1 amd64        GTK graphical user interface library - old version
davide@Giulia:~$ apt-cache policy libgtk2.0-0 libgtk-3-0
libgtk2.0-0:
  Installed: 2.24.33-2+deb12u1
  Candidate: 2.24.33-2+deb12u1
  Version table:
 *** 2.24.33-2+deb12u1 500
        500 http://deb.debian.org/debian bookworm/main amd64 Packages
        100 /var/lib/dpkg/status
libgtk-3-0:
  Installed: 3.24.38-2~deb12u3
  Candidate: 3.24.38-2~deb12u3
  Version table:
 *** 3.24.38-2~deb12u3 500
        500 http://deb.debian.org/debian bookworm/main amd64 Packages
        100 /var/lib/dpkg/status
davide@Giulia:~$ dpkg --get-selections | grep gtk
breeze-gtk-theme                                install
gir1.2-gtk-2.0:amd64                            install
gir1.2-gtk-3.0:amd64                            install
gtk-update-icon-cache                           install
gtk2-engines-pixbuf:amd64                       install
kde-config-gtk-style:amd64                      install
libcanberra-gtk3-0:amd64                        install
libcanberra-gtk3-module:amd64                   install
libdbusmenu-gtk3-4:amd64                        install
libgtk-3-0:amd64                                install
libgtk-3-bin                                    install
libgtk-3-common                                 install
libgtk2.0-0:amd64                               install
libgtk2.0-bin                                   install
libgtk2.0-common                                install
libgtk2.0-dev:amd64                             install
libgtkmm-3.0-1v5:amd64                          install
libjavascriptcoregtk-4.1-0:amd64                install
libwebkit2gtk-4.1-0:amd64                       install
libwxgtk-gl3.2-1:amd64                          install
libwxgtk3.2-1:amd64                             install
python3-wxgtk4.0                                install
qt5-gtk-platformtheme:amd64                     install
qt6-gtk-platformtheme:amd64                     install
transmission-gtk                                install
xdg-desktop-portal-gtk                          install
Maybe the problem is Wayland?
User avatar
NubeCheCorre
Posts: 82
Joined: Mon Mar 19, 2012 1:24 am
Contact:

Re: trying to use rapagui on linux... executable won't start [SOLVED FOR NUBE]

Post by NubeCheCorre »

ok, finally i was able to make it work on my system and the solution was really very very simple...

I checked the code of the various examples of rapagui and i simply changed this line:

Code: Select all

@REQUIRE "RapaGUI"
to this ->

Code: Select all

@REQUIRE "rapagui.hwp"
I tested it against both x64-linux and x64-linux-gtk3, and they both work fine :-D
Post Reply