Maybe off topic. AstraLinux no GTK2.0 installed

Это русская секция форума wxWidjets. В этой секции вы можете обсуждать любые вопросы, связанные с wxWidgets на вашем родном языке.
Post Reply
User avatar
cutecode
Super wx Problem Solver
Super wx Problem Solver
Posts: 425
Joined: Fri Dec 09, 2016 7:28 am
Contact:

Maybe off topic. AstraLinux no GTK2.0 installed

Post by cutecode »

Установил чистую ОС Астралинукс.

Пытаюсь скомпилировать wxWidgets, он кричит, типа установи GTK3 с сайта gtk.org
иду на сайт качаю/устанавливаю gtk3, он кричит - установи сначала gtk2,0
опять иду на сайт и качаю gtk2.4, он опять требует установи сначала gtk2.0
но там на сайте нет gtk2.0

как быть?

Thx
wx 3.1.6 win/mac/linux

regards,
Alexander Saprykin
https://v2.dental-soft.ru
User avatar
cutecode
Super wx Problem Solver
Super wx Problem Solver
Posts: 425
Joined: Fri Dec 09, 2016 7:28 am
Contact:

Re: Maybe off topic. AstraLinux no GTK2.0 installed

Post by cutecode »

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.
wx 3.1.6 win/mac/linux

regards,
Alexander Saprykin
https://v2.dental-soft.ru
Big_Lebowski
Knows some wx things
Knows some wx things
Posts: 49
Joined: Wed May 13, 2009 8:08 am

Re: Maybe off topic. AstraLinux no GTK2.0 installed

Post by Big_Lebowski »

Зачем вы качаете GTK с их сайта? AstraLinux это Debian, значит устанавливать GTK нужно стандарно через synaptic.
OS: Xubuntu 18.04, wxWidgets-3.1.0
User avatar
cutecode
Super wx Problem Solver
Super wx Problem Solver
Posts: 425
Joined: Fri Dec 09, 2016 7:28 am
Contact:

Re: Maybe off topic. AstraLinux no GTK2.0 installed

Post by cutecode »

Фуу,

Да если б я еще знал что такое "synaptic" ))))
Щас буду гуглить/ядексить

СПС )))
wx 3.1.6 win/mac/linux

regards,
Alexander Saprykin
https://v2.dental-soft.ru
User avatar
cutecode
Super wx Problem Solver
Super wx Problem Solver
Posts: 425
Joined: Fri Dec 09, 2016 7:28 am
Contact:

Re: Maybe off topic. AstraLinux no GTK2.0 installed

Post by cutecode »

Не получилось "Менеджер пакетов" пишет что GTK-3 уже установлен, однако ./config для wxWidgets Пишет что
Безымянный.png
Безымянный.png (44.08 KiB) Viewed 4118 times
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.
wx 3.1.6 win/mac/linux

regards,
Alexander Saprykin
https://v2.dental-soft.ru
Big_Lebowski
Knows some wx things
Knows some wx things
Posts: 49
Joined: Wed May 13, 2009 8:08 am

Re: Maybe off topic. AstraLinux no GTK2.0 installed

Post by Big_Lebowski »

Все правильно пишет. Вам нежен libgtk-3-dev (ну или libgtk2.0-dev если нужен gtk2)
OS: Xubuntu 18.04, wxWidgets-3.1.0
ONEEYEMAN
Part Of The Furniture
Part Of The Furniture
Posts: 7459
Joined: Sat Apr 16, 2005 7:22 am
Location: USA, Ukraine

Re: Maybe off topic. AstraLinux no GTK2.0 installed

Post by ONEEYEMAN »

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.
Post Reply