Hello,
I rebuilt the binary for the code of your previous message with the following commands (using a Debian 12.6 for amd64 with KDE and gtk libraries installed):
Code: Select all
PKGCONFIG=$(which pkg-config)
CFLAGS=$($PKGCONFIG --cflags gtk+-3.0)
LIBS=$($PKGCONFIG --libs gtk+-3.0)
gcc -o HelloWorld HelloWorld.c $CFLAGS $LIBS
The program runs fine (the "Hello World" window appears), but no error message appears (neither a command line error message nor as a graphical window).
The xapp-gtk3-module is not installed in my computer:
Code: Select all
$ apt-file search xapp-gtk3-module
libxapp-gtk3-module: /etc/X11/Xsession.d/80xapp-gtk3-module
libxapp-gtk3-module: /usr/lib/x86_64-linux-gnu/gtk-3.0/modules/libxapp-gtk3-module.so
libxapp-gtk3-module: /usr/share/doc/libxapp-gtk3-module/changelog.Debian.gz
libxapp-gtk3-module: /usr/share/doc/libxapp-gtk3-module/changelog.gz
libxapp-gtk3-module: /usr/share/doc/libxapp-gtk3-module/copyright
libxapp-gtk3-module: /usr/share/lintian/overrides/libxapp-gtk3-module
$ LANG=C apt list libxapp-gtk3-module
Listing... Done
libxapp-gtk3-module/stable 2.4.2-3 amd64
The package containing the module has the following description:
Code: Select all
$ apt show libxapp-gtk3-module
Package: libxapp-gtk3-module
Version: 2.4.2-3
Priority: optional
Section: libs
Source: xapp
Maintainer: Debian Cinnamon Team <debian-cinnamon@lists.debian.org>
Installed-Size: 39.9 kB
Depends: xapps-common (>= 2.4.2-3), libglib2.0-0 (>= 2.26.0), libgtk-3-0 (>= 3.9.10), libxapp1 (>= 2.4.0)
Breaks: libxapp1 (<< 2.2.6-1~), xapp (<< 2.4.2-1~), xapps-common (<< 2.4.2-1~)
Replaces: libxapp1 (<< 2.2.6-1~), xapp (<< 2.4.2-1~), xapps-common (<< 2.4.2-1~)
Homepage: http://cinnamon.linuxmint.com/
Tag: role::shared-lib
Download-Size: 8,556 B
APT-Sources: http://localhost:3142/debian bookworm/main amd64 Packages
Description: GTK 3.0 module for the XApp library
Xapp provides components which are common to multiple desktop environments
and required to implement cross-DE solutions.
.
This package contains a GTK 3.0 module to make features of the XApp library
available to GTK 3.0 applications.
It is a dependency of:
Code: Select all
$ apt show libxapp1/stable
Package: libxapp1
Version: 2.4.2-3
Priority: optional
Section: libs
Source: xapp
Maintainer: Debian Cinnamon Team <debian-cinnamon@lists.debian.org>
Installed-Size: 274 kB
Depends: xapps-common (>= 2.4.2-3), libc6 (>= 2.4), libcairo-gobject2 (>= 1.10.0), libcairo2 (>= 1.2.4), libgdk-pixbuf-2.0-0 (>= 2.23.0), libglib2.0-0 (>= 2.51.5), libgnomekbd8 (>= 3.6.0), libgtk-3-0 (>= 3.21.5), libpango-1.0-0 (>= 1.14.0), libx11-6
Recommends: libxapp-gtk3-module (= 2.4.2-3), xapp-sn-watcher (= 2.4.2-3)
Breaks: nemo (<< 5.2), xapps-common (<< 2.0.6-2~)
Replaces: xapps-common (<< 2.0.6-2~)
Homepage: http://cinnamon.linuxmint.com/
Tag: role::shared-lib
Download-Size: 75.1 kB
APT-Sources: http://localhost:3142/debian bookworm/main amd64 Packages
Description: XApp library
Xapp provides components which are common to multiple desktop environments
and required to implement cross-DE solutions.
.
This library is used by several Xapp apps.
Is the libxapp-gtk3-module installed in your computer ?
Are you running cinnamon ?