Установил чистую ОС Астралинукс.
Пытаюсь скомпилировать wxWidgets, он кричит, типа установи GTK3 с сайта gtk.org
иду на сайт качаю/устанавливаю gtk3, он кричит - установи сначала gtk2,0
опять иду на сайт и качаю gtk2.4, он опять требует установи сначала gtk2.0
но там на сайте нет gtk2.0
как быть?
Thx
Maybe off topic. AstraLinux no GTK2.0 installed
Re: Maybe off topic. AstraLinux no GTK2.0 installed
Code: Select all
hecking for pkg-config... /usr/local/bin/pkg-config
checking pkg-config is at least version 0.9.0... yes
checking for BASE_DEPENDENCIES... no
configure: error: Package requirements (glib-2.0 >= 2.27.3 atk >= 1.29.2 pango >= 1.20 cairo >= 1.6 gdk-pixbuf-2.0 >= 2.21.0) were not met:
Package glib-2.0 was not found in the pkg-config search path.
Perhaps you should add the directory containing `glib-2.0.pc'
to the PKG_CONFIG_PATH environment variable
No package 'glib-2.0' found
Consider adjusting the PKG_CONFIG_PATH environment variable if you
installed software in a non-standard prefix.
Alternatively, you may set the environment variables BASE_DEPENDENCIES_CFLAGS
and BASE_DEPENDENCIES_LIBS to avoid the need to call pkg-config.
See the pkg-config man page for more details.
-
- Knows some wx things
- Posts: 49
- Joined: Wed May 13, 2009 8:08 am
Re: Maybe off topic. AstraLinux no GTK2.0 installed
Зачем вы качаете GTK с их сайта? AstraLinux это Debian, значит устанавливать GTK нужно стандарно через synaptic.
OS: Xubuntu 18.04, wxWidgets-3.1.0
Re: Maybe off topic. AstraLinux no GTK2.0 installed
Фуу,
Да если б я еще знал что такое "synaptic" ))))
Щас буду гуглить/ядексить
СПС )))
Да если б я еще знал что такое "synaptic" ))))
Щас буду гуглить/ядексить
СПС )))
Re: Maybe off topic. AstraLinux no GTK2.0 installed
Не получилось "Менеджер пакетов" пишет что GTK-3 уже установлен, однако ./config для wxWidgets Пишет что
GTK нету
Code: Select all
checking for GTK+ - version >= 2.6.0... no
*** Could not run GTK+ test program, checking why...
*** The test program failed to compile or link. See the file config.log for the
*** exact error that occured. This usually means GTK+ is incorrectly installed.
checking for pkg-config... /usr/local/bin/pkg-config
checking for GTK+ - version >= 3.0.0... no
*** Could not run GTK+ test program, checking why...
*** The test program failed to compile or link. See the file config.log for the
*** exact error that occured. This usually means GTK+ is incorrectly installed.
checking for gtk-config... no
checking for GTK - version >= 1.2.7... no
*** The gtk-config script installed by GTK could not be found
*** If GTK was installed in PREFIX, make sure PREFIX/bin is in
*** your path, or set the GTK_CONFIG environment variable to the
*** full path to gtk-config.
checking for gtk-config... (cached) no
checking for GTK - version >= 1.2.3... no
*** The gtk-config script installed by GTK could not be found
*** If GTK was installed in PREFIX, make sure PREFIX/bin is in
*** your path, or set the GTK_CONFIG environment variable to the
*** full path to gtk-config.
configure: error:
The development files for GTK+ were not found. For GTK+ 2, please
ensure that pkg-config is in the path and that gtk+-2.0.pc is
installed. For GTK+ 1.2 please check that gtk-config is in the path,
and that the version is 1.2.3 or above. Also check that the
libraries returned by 'pkg-config gtk+-2.0 --libs' or 'gtk-config
--libs' are in the LD_LIBRARY_PATH or equivalent.
-
- Knows some wx things
- Posts: 49
- Joined: Wed May 13, 2009 8:08 am
Re: Maybe off topic. AstraLinux no GTK2.0 installed
Все правильно пишет. Вам нежен libgtk-3-dev (ну или libgtk2.0-dev если нужен gtk2)
OS: Xubuntu 18.04, wxWidgets-3.1.0
Re: Maybe off topic. AstraLinux no GTK2.0 installed
I samoe glavnoe - prover'te opcii.
"../configure --enable-debug --enable-debug_gdb --with-gtk=3 && make" - skompiliruet s GTK+3.
"../configure --enable-debug --enable-debug_gdb --with-gtk=2 && make" - skompiliruet s GTK+2.
"../configure --enable-debug --enable-debug_gdb --with-gtk=3 && make" - skompiliruet s GTK+3.
"../configure --enable-debug --enable-debug_gdb --with-gtk=2 && make" - skompiliruet s GTK+2.