Hi gregory38,
My multilib setup is ok, setting up multilib in Slack is really easy, just a few steps. In case you might be interested to see; (Under the section; ‘The quick ‘n’ dirty instructions’)
http://alien.slackbook.org/dokuwiki/doku.php?id=slackware:multilib
I compiled wxWidgets 32bit, as ARCH=i486, here’s the contents of the package for the lib /path;
usr/bin/wxrc-2.8
usr/lib/
usr/lib/libwx_baseu-2.8.so.0.8.0
usr/lib/libwx_baseu_net-2.8.so.0.8.0
usr/lib/libwx_gtk2u_core-2.8.so.0.8.0
usr/lib/libwx_gtk2u_adv-2.8.so.0.8.0
usr/lib/libwx_gtk2u_media-2.8.so.0.8.0
usr/lib/libwx_gtk2u_html-2.8.so.0.8.0
usr/lib/libwx_gtk2u_qa-2.8.so.0.8.0
usr/lib/libwx_baseu_xml-2.8.so.0.8.0
usr/lib/libwx_gtk2u_xrc-2.8.so.0.8.0
usr/lib/libwx_gtk2u_aui-2.8.so.0.8.0
usr/lib/libwx_gtk2u_richtext-2.8.so.0.8.0
usr/lib/libwx_gtk2u_gl-2.8.so.0.8.0
usr/lib/wx/
usr/lib/wx/include/
usr/lib/wx/include/gtk2-unicode-release-2.8/
usr/lib/wx/include/gtk2-unicode-release-2.8/wx/
usr/lib/wx/include/gtk2-unicode-release-2.8/wx/setup.h
usr/lib/wx/config/
usr/lib/wx/config/gtk2-unicode-release-2.8
These are the compile options for wxWidgets;
CFLAGS="$SLKCFLAGS"
CXXFLAGS="$SLKCFLAGS"
./configure
--prefix=/usr
--libdir=/usr/lib${LIBDIRSUFFIX}
--sysconfdir=/etc
--enable-shared
--enable-mediactrl
--with-opengl
--$do_gp-gnomeprint
--${_do_unicode}able-unicode
--build=$ARCH-slackware-linux
Also here’s the ldd wxrc-2.8 output;
libwx_baseu_xml-2.8.so.0 => /usr/lib/libwx_baseu_xml-2.8.so.0 (0xf76e4000)
libexpat.so.1 => /usr/lib/libexpat.so.1 (0xf76bd000)
libwx_baseu-2.8.so.0 => /usr/lib/libwx_baseu-2.8.so.0 (0xf7570000)
libz.so.1 => /lib/libz.so.1 (0xf755a000)
libdl.so.2 => /lib/libdl.so.2 (0xf7554000)
libm.so.6 => /lib/libm.so.6 (0xf7512000)
libstdc++.so.6 => /usr/lib/libstdc++.so.6 (0xf742a000)
libgcc_s.so.1 => /usr/lib/libgcc_s.so.1 (0xf740e000)
libpthread.so.0 => /lib/libpthread.so.0 (0xf73f4000)
libc.so.6 => /lib/libc.so.6 (0xf7268000)
/lib/ld-linux.so.2 (0xf7718000)
I also use my icons in my $HOME ~/.icons I don’t place any in /usr/share/icons, the only ones in /usr/share are the typical linux icons placed there; HighContrast Tango gnome hicolor
I’m using a build script for pcsx2, if it helps to see it;
#!/bin/sh
#
# Slackware build script for pcsx2
PRGNAM=pcsx2
VERSION=${VERSION:-1.2.2}
BUILD=${BUILD:-1}
TAG=${TAG:-_compat32}
ARCH=i486
if [ -z "$ARCH" ]; then
case "$( uname -m )" in
i?86) ARCH=i686 ;;
arm*) ARCH=arm ;;
*) ARCH=$( uname -m ) ;;
esac
fi
CWD=$(pwd)
TMP=${TMP:-/tmp/foo}
PKG=$TMP/package-$PRGNAM
OUTPUT=${OUTPUT:-/tmp}
if [ "$ARCH" = "i486" ]; then
SLKCFLAGS="-O2 -march=i486 -mtune=i686"
LIBDIRSUFFIX=""
elif [ "$ARCH" = "i686" ]; then
SLKCFLAGS="-O2 -march=i686 -mtune=core2"
LIBDIRSUFFIX=""
elif [ "$ARCH" = "x86_64" ]; then
SLKCFLAGS="-O2 -fPIC"
LIBDIRSUFFIX="64"
else
SLKCFLAGS="-O2"
LIBDIRSUFFIX=""
fi
DOCS="pcsx2/Docs/*.txt pcsx2/Docs/*.doc"
set -e
rm -rf $PKG
mkdir -p $TMP $PKG $OUTPUT
cd $TMP
rm -rf $PRGNAM-$VERSION
tar xvf $CWD/$PRGNAM-$VERSION.tar.?z*
cd $PRGNAM-$VERSION
chown -R root:root .
find -L .
( -perm 777 -o -perm 775 -o -perm 750 -o -perm 711 -o -perm 555
-o -perm 511 ) -exec chmod 755 {} ; -o
( -perm 666 -o -perm 664 -o -perm 640 -o -perm 600 -o -perm 444
-o -perm 440 -o -perm 400 ) -exec chmod 644 {} ;
# Set our locations
sed -i
-e "s|share/doc/pcsx2|doc/${PRGNAM}-${VERSION}|"
-e "s|share/man|man|"
CMakeLists.txt
mkdir -p build
cd build
cmake
-DCMAKE_C_FLAGS:STRING="$SLKCFLAGS"
-DCMAKE_CXX_FLAGS:STRING="$SLKCFLAGS"
-DCMAKE_INSTALL_PREFIX="/usr"
-DCMAKE_LIBRARY_PATH="/usr/lib${LIBDIRSUFFIX}"
-DGAMEINDEX_DIR:PATH="/usr/share/${PRGNAM}"
-DPLUGIN_DIR="/usr/lib/${PRGNAM}"
-DwxWidgets_CONFIG_EXECUTABLE="/usr/bin/wx-config"
-DwxWidgets_wxrc_EXECUTABLE="/usr/bin/wxrc"
-D{GLSL_API,PACKAGE_MODE,REBUILD_SHADER,XDG_STD}="ON"
-DCMAKE_BUILD_TYPE=Release ..
make
make install DESTDIR=$PKG
cd ..
find $PKG -print0 | xargs -0 file | grep -e "executable" -e "shared object" | grep ELF
| cut -f 1 -d : | xargs strip --strip-unneeded 2> /dev/null || true
find $PKG/usr/man -type f -exec gzip -9 {} ;
mkdir -p $PKG/usr/doc/$PRGNAM-$VERSION
cp -a $DOCS $PKG/usr/doc/$PRGNAM-$VERSION
cat $CWD/$PRGNAM.SlackBuild > $PKG/usr/doc/$PRGNAM-$VERSION/$PRGNAM.SlackBuild
rm -rf $PKG/usr/share/locale
mkdir -p $PKG/install
cat $CWD/slack-desc > $PKG/install/slack-desc
cat $CWD/doinst.sh > $PKG/install/doinst.sh
cd $PKG
/sbin/makepkg -l y -c n $OUTPUT/$PRGNAM-$VERSION-$ARCH-$BUILD$TAG.${PKGTYPE:-tgz}
gregory38, would you know what I should check with wxWidgets? I just don’t get this if it was compiled as 32bit why pcsx2 is trying to load from /usr/lib64/gdk-pixbuf
Also I have these icons, but what does the word; for stock
at the end mean? Is it looking for the icons in the stock
directory? Because these icons are in the actions
directory for the icons I’m using…
Thank you…
After recent system update (including gnome-themes-standard) most of standard (Adwaita theme) Gnome 3 icons disappeared (instead of them is visible blank white icon with red «x»).
What is worse running some of applications makes Gnome 3 crash with dumb «Oh no!» BSOD.
Example log from GEdit (attempt to run was enough to «Oh no!»)
(gedit:17663): Gtk-WARNING **: Locale not supported by C library.
Using the fallback 'C' locale.
(gedit:17663): Gtk-WARNING **: Error loading theme icon 'text-x-generic' for stock: Unrecognized image file format
** (gedit:17663): WARNING **: Could not load theme icon system-file-manager: Unrecognized image file format
(gedit:17663): Gtk-WARNING **: Error loading theme icon 'document-new' for stock: Unrecognized image file format
(gedit:17663): Gtk-WARNING **: Error loading theme icon 'document-open' for stock: Unrecognized image file format
...
(gedit:17663): Gtk-WARNING **: Error loading theme icon 'edit-find-replace' for stock: Unrecognized image file format
(gedit:17663): Gdk-WARNING **: gedit: Fatal IO error 11 (Resource temporarily unavailable) on X server :0.
In /var/log/gdm nothing particularly interesting appeared, neither in ~/.xsession-errors.
I found that switch to other icon set solves the issue.
I’ve checked my icons directory
[przemek@probook Adwaita]$ pwd
/usr/share/icons/Adwaita
[przemek@probook Adwaita]$ tree
.
`-- cursors
|-- 00008160000006810000408080010102
|-- 028006030e0e7ebffc7f7070c0600140
|-- 03b6e0fcb3499374a867c041f52298f0
|-- 08e8e1c95fe2fc01f976f1e063a24ccd
|-- 1081e37283d90000800003c07f3ef6bf
|-- 14fef782d02440884392942c11205230
|-- 2870a09082c103050810ffdffffe0204
|-- 3085a0e285430894940527032f8b26df
|-- 3ecb610c1bf2410f44200f48c40d3599
|-- 4498f0e0c1937ffe01fd06f973665830
|-- 5c6cd98b3f3ebcb1f9c7f1c204630408
|-- 6407b0e94181790501fd1e167b474872
|-- 640fb0e74195791501fd1ed57b41487f
|-- 9081237383d90e509aa00f00170e968f
|-- 9d800788f1b08800ae810202380a0822
|-- arrow
|-- bd_double_arrow
|-- bottom_left_corner
|-- bottom_right_corner
|-- bottom_side
|-- bottom_tee
|-- c7088f0f3e6c8088236ef8e1e3e70000
|-- circle
|-- copy
|-- cross
|-- crossed_circle
|-- crosshair
|-- cross_reverse
|-- d9ce0ab605698f320427677b458ad60b
|-- diamond_cross
|-- dnd-ask
|-- dnd-copy
|-- dnd-link
|-- dnd-move
|-- dnd-none
|-- dotbox
|-- dot_box_mask
|-- double_arrow
|-- draft_large
|-- draft_small
|-- draped_box
|-- e29285e634086352946a0e7090d73106
|-- fcf1c3c7cd4491d801f1e1c78f100000
|-- fd_double_arrow
|-- fleur
|-- grabbing
|-- hand
|-- hand1
|-- hand2
|-- h_double_arrow
|-- help
|-- icon
|-- left_ptr
|-- left_ptr_help
|-- left_ptr_watch
|-- left_side
|-- left_tee
|-- link
|-- ll_angle
|-- lr_angle
|-- move
|-- pencil
|-- pirate
|-- plus
|-- question_arrow
|-- right_ptr
|-- right_side
|-- right_tee
|-- sb_down_arrow
|-- sb_h_double_arrow
|-- sb_left_arrow
|-- sb_right_arrow
|-- sb_up_arrow
|-- sb_v_double_arrow
|-- target
|-- tcross
|-- top_left_arrow
|-- top_left_corner
|-- top_right_corner
|-- top_side
|-- top_tee
|-- ul_angle
|-- ur_angle
|-- v_double_arrow
|-- watch
|-- X_cursor
`-- xterm
Almost everything is missing (default HighContrast icon set which works for me has much more directories and icons).
How pathetic is that the lack of few image files makes whole UI crash?!
Pacman tells me the /usr/share/icons/Adwaita is owned by gnome-themes-standard package, which downgrade does not resolve the problem — no missing icon was restored.
The question is how to restore original Gnome icons set (provided by gnome-themes-standard (?)) ?
Last edited by pinoteres (2013-08-05 17:27:19)
-
shauser67
- Earned a small fee
- Posts: 11
- Joined: Tue May 19, 2020 9:54 am
wxGTK (vcpkg): Error loading theme icon
Hi all,
I am having a strange problem after updating from Ubuntu 18.04 to 20.04 and installing the latest versions from vcpkg. When using a system dialog (e.g. wxMessageDialog) in my own program no GTK icons are shown and a number of warnings are displayed:
(polyklet:6767): Gtk-WARNING **: 10:01:56.991: Error loading theme icon ‘gtk-no’ for stock: Fatal error reading PNG image file: Invalid IHDR data
(polyklet:6767): Gtk-WARNING **: 10:01:56.991: Error loading theme icon ‘gtk-yes’ for stock: Fatal error reading PNG image file: Invalid IHDR data
(polyklet:6767): Gtk-WARNING **: 10:01:56.992: Error loading theme icon ‘dialog-question’ for stock: Fatal error reading PNG image file: Invalid IHDR data
There are no problems with other GTK programs. I am not sure if this problem is related to wxWidgets at all, maybe it is caused by the Ubuntu update or linking against an outdated library. These are the linked libraries:
wx_baseu-3.1 wx_gtk2u_adv-3.1 wx_gtk2u_aui-3.1 wx_gtk2u_core-3.1 wx_gtk2u_gl-3.1 wx_gtk2u_propgrid-3.1 wx_gtk2u_stc-3.1 wxregexu-3.1 atk-1.0 cairo gdk_pixbuf-2.0 gdk-x11-2.0 gio-2.0 glib-2.0 gobject-2.0 gthread-2.0 gtk-x11-2.0 pango-1.0 pangocairo-1.0 pangoft2-1.0
Of course I tried to google the error message, but I found no working solution for this problem.
Used versions: wxWidgets 3.1.3-1 (vcpkg) and libpng 1.6.37-9 (vcpkg).
Any help is greatly appreciated!
-
DavidHart
- Site Admin
- Posts: 4167
- Joined: Thu Jan 12, 2006 6:23 pm
- Location: IoW, UK
Re: wxGTK (vcpkg): Error loading theme icon
Post
by DavidHart » Thu May 21, 2020 9:30 am
Hi,
FWIW, I couldn’t reproduce the problem in a 20.04 virtualbox guest, testing the ‘dialogs’ sample built against the wx3.1.3 obtainable from this link.
As you say, there are various possible reasons, missing entries in the icon theme being my best guess (I had a similar problem testing AppImages on 20.04; certain icons have been removed from at least one of the standard themes). I suggest you experiment, with a self-built wx3.1.3 or with the above-mentioned packages; different themes…
Regards,
David
-
shauser67
- Earned a small fee
- Posts: 11
- Joined: Tue May 19, 2020 9:54 am
Re: wxGTK (vcpkg): Error loading theme icon
Post
by shauser67 » Mon Jul 06, 2020 5:00 pm
Thanks for the advice, David!
Finally I found a solution for the problem. The errors occurred only when linking against (static) libpng16.a provided by vcpkg (version 1.6.37-9). When linking against libpng16.a provided by Ubuntu (version 1.6.37-2) all icons are rendered correctly. I am wondering if there is a bug in newer versions of the library. I’ll keep an eye on it after future releases.
Best wishes
Steffen
-
ONEEYEMAN
- Part Of The Furniture
- Posts: 6588
- Joined: Sat Apr 16, 2005 7:22 am
- Location: USA, Ukraine
Re: wxGTK (vcpkg): Error loading theme icon
Post
by ONEEYEMAN » Mon Jul 06, 2020 6:05 pm
Hi,
I seriously doubt that.
It is possible that the version you use with the vcpkg is either not packaged correctly or have some configuration issues.
That is exactly why static linking on *nix-like systems is frown upon.
Thank you.
# |
|
Темы: 3 Сообщения: 8 Участник с: 05 мая 2013 |
Есть свежий Arch Linux с KDE и есть Sublime Text 2. Проблема выявилась недавно, и заключается она в том, что при открытии диалогов GTK из саблайма (в остальных приложениях вроде как всё в порядке!) исчезают иконки, а консольный вывод полон ошибок вида:
(sublime_text:12005): Gtk-WARNING **: Error loading theme icon 'edit-find' for stock: Фатальная ошибка при чтении файла изображения формата PNG: bad parameters to zlib (sublime_text:12005): Gtk-WARNING **: Error loading theme icon 'text-x-generic' for stock: Фатальная ошибка при чтении файла изображения формата PNG: bad parameters to zlib (sublime_text:12005): Gtk-WARNING **: Не удалось загрузить значок: Не удалось загрузить изображение «/usr/share/icons//oxygen/16x16/actions/edit-find.png»: Фатальная ошибка в файле изображения формата PNG: bad parameters to zlib ... (sublime_text:12005): Gtk-WARNING **: Не удалось загрузить значок: Не удалось загрузить изображение «/usr/share/icons//oxygen/16x16/mimetypes/unknown.png»: Фатальная ошибка в файле изображения формата PNG: bad parameters to zlib При этом иконки, разумеется, существуют, и открываются успешно через тот же Gwenview. В остальных приложениях глюк не проявляется. Ошибка не гуглится ни в русском, ни в английском варианте. В чём может быть проблема? Решение |
vasek |
# |
Темы: 47 Сообщения: 11417 Участник с: 17 февраля 2013 |
Ошибка не гуглится ни в русском, ни в английском варианте. Смотря что гуглить. Явно же пишут — bad parameters to zlib Знаешь, что такое zlib? Зайди сначала хотя бы на сайт, посмотри — имеются ли баги и в каких версиях. Если не знаком, то только гуглить похожую ошибку. Ошибки не исчезают с опытом — они просто умнеют |
vasek |
# |
Темы: 47 Сообщения: 11417 Участник с: 17 февраля 2013 |
Ради интереса, как редактор, пользуешь русскую версию или eng, откуда качал, в принципе, это же не свободная прога.
Ошибки не исчезают с опытом — они просто умнеют |
vasek |
# |
Темы: 47 Сообщения: 11417 Участник с: 17 февраля 2013 |
Похоже проблема с qt4 Посмотри когда было обновление — до или после глюка, да попробуй откатиться. Ошибки не исчезают с опытом — они просто умнеют |
vasek |
# |
Темы: 47 Сообщения: 11417 Участник с: 17 февраля 2013 |
А не может быть конфликта билиотек zlib и libpng??? Эти же библиотеки независимы, но используются обычно в паре (libpng требует наличие библиотеки zlib). Возможно при обновлении, что то где то не срослось. Не стоит забывать, что zlib кроссплатформенная библиотека. Ошибки не исчезают с опытом — они просто умнеют |
squizduos |
# |
Темы: 3 Сообщения: 8 Участник с: 05 мая 2013 |
Всё бы ничего, но эта ошибка не гуглится толком.
Английская версия, качал с AUR. Там вечный триал.
Судя по всему, так оно и есть — откатил libpng до 1.6.2 и глюк исчез. Странно. |
vasek |
# |
Темы: 47 Сообщения: 11417 Участник с: 17 февраля 2013 |
При гуглении полезно искать не только по полной фразе, но и по частям и по всевозможным комбинациям. Так можно хоть что то достать для анализа. Ну и также заходить на сайты прог, смотреть что там и из-за чего что то ломается. Не обращай внимание на мое ворчание — это стариковское. Ошибки не исчезают с опытом — они просто умнеют |
Jisatsu |
# |
Темы: 17 Сообщения: 389 Участник с: 14 июня 2013 |
Вставлю свои 50 копеек. Я сделал так, чтобы не мешать Саблаймом всей системе. 1) Копировал библиотеки libpng версии 1.6.2 в папку /opt/sublime-text/lib 2) В файле /usr/bin/subl добавил жёсткое указание на папку библиотеки перед строкой BIN (export обязателен)
Наслаждаюсь. Keep it simple, stupid! |