Ошибка в Code::Blocks IDE с GTK+ проектом

Я скачал Code::Blocks IDE через flatpak и выбрал gcc. Потом создал GTK+ проект и получил ошибку fatal error: gtk/gtk.h: No such file or directory, создал FLTK проект и получил ошибку fatal error: FL/Fl.H: No such file or directory, создал wx проект и получил ошибки fatal error: wx/wxprec.h и wx/app.h: No such file or directory

Почитав в интернете я узнал, что это исправляется только через apt-get install (либо я плохо искал)

Есть ли какой-то другой способ сделать программу с GUI через Code::Blocks IDE?

The Code::Blocks IDE is using the Freedesktop SDK as it’s Runtime, so only GTK 3 is available Out-of-the-Box. If you want to build applications based on FLTK or wxWidgets, you first need to compile these by yourself.

Make sure to set the INCLUDE path to include

/usr/include/gtk-3.0

Как я могу это сделать? У меня нет в /usr/include gtk-3.0

user@user:~$ ls /usr/include
clif.h  gdb  libmnl  openvpn  python3.5m  reglib  sudo_plugin.h  X11
user@user:~$ sudo ls /usr/include
[sudo] пароль для user:
clif.h  gdb  libmnl  openvpn  python3.5m  reglib  sudo_plugin.h  X11

You have :slight_smile: - that’s the way a Flatpak works. What you are observing is the physical layout of the filesystem on your host. If you run Code::Blocks, it looks different, as the filesystem is composed of several ‘overlays’. The following command let you run a Shell inside the (Flatpak) Sandbox of Code::Blocks:

flatpak run --command=sh org.codeblocks.codeblocks

Now take a look at /usr/include :wink:

This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.