Я следую руководству по GTK для начинающих в конце этой страницы.
Та же проблема, упомянутая здесь, за исключением тех пользователей, которые в Windows.
Когда я помещаю mcs hello.cs -pkg:gtk-sharp-2.0 в терминал, я получаю
Код: Выделить всё
Package gtk-sharp-2.0 was not found in the pkg-config search path.
Perhaps you should add the directory containing `gtk-sharp-2.0.pc'
to the PKG_CONFIG_PATH environment variable
No package 'gtk-sharp-2.0' found
error CS8027: Error running pkg-config. Check the above output.
Код: Выделить всё
sudo apt install libgtk-3-dev
sudo apt install libgtk-4-dev
sudo apt-get update
And tried the previous command with different versions, same output. Using dpkg -s libgtk-3-0 | grep 'Version' shows a version for GTK3, but says V 2 and 4 are not installed.
Просматривая Интернет и YouTube, я заметил ссылки на GTK, GTK+, GTK# и т. д., я установил совсем не то?
Подробнее здесь: https://stackoverflow.com/questions/792 ... untu-22-04
Мобильная версия