Maybe off topic. AstraLinux no GTK2.0 installed

Это русская секция форума wxWidjets. В этой секции вы можете обсуждать любые вопросы, связанные с wxWidgets на вашем родном языке.
User avatar
cutecode
Earned some good credits
Earned some good credits
Posts: 110
Joined: Fri Dec 09, 2016 7:28 am
Contact:

Maybe off topic. AstraLinux no GTK2.0 installed

Postby cutecode » Tue Dec 20, 2016 2:30 pm

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

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

как быть?

Thx
regards,
Alexander Saprykin

User avatar
cutecode
Earned some good credits
Earned some good credits
Posts: 110
Joined: Fri Dec 09, 2016 7:28 am
Contact:

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

Postby cutecode » Tue Dec 20, 2016 2:44 pm

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.
regards,
Alexander Saprykin

Big_Lebowski
Knows some wx things
Knows some wx things
Posts: 43
Joined: Wed May 13, 2009 8:08 am

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

Postby Big_Lebowski » Sun Dec 25, 2016 8:30 pm

Зачем вы качаете GTK с их сайта? AstraLinux это Debian, значит устанавливать GTK нужно стандарно через synaptic.
OS: Xubuntu 14.04, wxWidgets-3.1.0

User avatar
cutecode
Earned some good credits
Earned some good credits
Posts: 110
Joined: Fri Dec 09, 2016 7:28 am
Contact:

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

Postby cutecode » Mon Dec 26, 2016 5:30 pm

Фуу,

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

СПС )))
regards,
Alexander Saprykin

User avatar
cutecode
Earned some good credits
Earned some good credits
Posts: 110
Joined: Fri Dec 09, 2016 7:28 am
Contact:

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

Postby cutecode » Mon Dec 26, 2016 7:23 pm

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

Big_Lebowski
Knows some wx things
Knows some wx things
Posts: 43
Joined: Wed May 13, 2009 8:08 am

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

Postby Big_Lebowski » Tue Dec 27, 2016 7:00 am

Все правильно пишет. Вам нежен libgtk-3-dev (ну или libgtk2.0-dev если нужен gtk2)
OS: Xubuntu 14.04, wxWidgets-3.1.0

ONEEYEMAN
Part Of The Furniture
Part Of The Furniture
Posts: 2057
Joined: Sat Apr 16, 2005 7:22 am
Location: USA, Ukraine

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

Postby ONEEYEMAN » Tue Dec 27, 2016 3:19 pm

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.


Return to “wxWidgets Development (Russian)”

Who is online

Users browsing this forum: No registered users and 2 guests