comment utiliser (optionnellement) gtkmm-4?

Basile STARYNKEVITCH <[email protected]>
Newsgroups gmane.linux.debian.devel.french
Message-ID <[email protected]>
Bonsoir la liste,

GNU emacs (que je compile presque tous les jours après l'avoir git
pull-é) sait fonctionner sans interface graphique avec son option -nw.

Pour info, voici les arguments que je passe à la configuration de GNU
emacs:

'./configure'  'CC=/usr/bin/gcc-16' 'CFLAGS=-O2 -g -fPIE -fPIC' \
  '--with-x' '--with-native-compilation' \
  '--with-file-notification=inotify' '--with-x-toolkit=gtk3' \
  '--with-dbus' '--with-jpeg' '--with-tiff' '--program-suffix=-trunk'

je dévelope un logiciel libre moteur d'inférences (cf refpersys.org) et
je voudrais que son exécutable ait (comme GNU emacs) la possibilité de
tourner sans interface graphique et ayant la faculté d'utiliser une
interface graphique à base de Gtkmm (que je n'ai pas encore codée).

Ce RefPerSys est en C++ (et génère du code C++ ou machine) donc je
souhaite y utiliser gtkmm-4 de manière optionnelle

Ma question est comment procéder (concrètement comment coder de manière
à ce que XOpenDisplay ne soit pas appelé par les dépendances de la
bibliothèque gtkmm-4).

Mon intuition trompeuse serait d'éviter un appel (interne) à
Gtk::init_gtkmm_internals dont le nom me suggère qu'il initialise Gtkmm


Cordialement

-- 

Basile STARYNKEVITCH                           
<[email protected]>
8 rue de la Faïencerie                      
http://starynkevitch.net/Basile/  
92340 Bourg-la-Reine                        
https://github.com/bstarynk
France                               
https://github.com/RefPerSys/RefPerSys
                  https://orcid.org/0000-0003-0908-5250
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.