Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
pcsx2 errors: missing libpng.so.15 libjpeg.so.8 (wxGTK?)
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Gamers & Players
View previous topic :: View next topic  
Author Message
aminalshmu
Tux's lil' helper
Tux's lil' helper


Joined: 13 Sep 2004
Posts: 78
Location: Tallahassee, Florida, USA

PostPosted: Tue Jun 24, 2014 7:19 pm    Post subject: pcsx2 errors: missing libpng.so.15 libjpeg.so.8 (wxGTK?) Reply with quote

Code:
/usr/lib/gcc/x86_64-pc-linux-gnu/4.8.3/../../../../x86_64-pc-linux-gnu/bin/ld: warning: libpng15.so.15, needed by /usr/lib/gcc/x86_64-pc-linux-gnu/4.8.3/../../../../lib32/libwx_gtk2u_core-2.8.so, not found (try using -rpath or -rpath-link)
/usr/lib/gcc/x86_64-pc-linux-gnu/4.8.3/../../../../x86_64-pc-linux-gnu/bin/ld: warning: libjpeg.so.8, needed by /usr/lib/gcc/x86_64-pc-linux-gnu/4.8.3/../../../../lib32/libwx_gtk2u_core-2.8.so, not found (try using -rpath or -rpath-link)
/usr/lib/gcc/x86_64-pc-linux-gnu/4.8.3/../../../../lib32/libwx_gtk2u_core-2.8.so: undefined reference to `png_set_write_fn@PNG15_0'
/usr/lib/gcc/x86_64-pc-linux-gnu/4.8.3/../../../../lib32/libwx_gtk2u_core-2.8.so: undefined reference to `png_set_strip_16@PNG15_0'
/usr/lib/gcc/x86_64-pc-linux-gnu/4.8.3/../../../../lib32/libwx_gtk2u_core-2.8.so: undefined reference to `png_write_end@PNG15_0'
/usr/lib/gcc/x86_64-pc-linux-gnu/4.8.3/../../../../lib32/libwx_gtk2u_core-2.8.so: undefined reference to `jpeg_finish_decompress@LIBJPEG_8.0'
/usr/lib/gcc/x86_64-pc-linux-gnu/4.8.3/../../../../lib32/libwx_gtk2u_core-2.8.so: undefined reference to `jpeg_start_compress@LIBJPEG_8.0'
/usr/lib/gcc/x86_64-pc-linux-gnu/4.8.3/../../../../lib32/libwx_gtk2u_core-2.8.so: undefined reference to `jpeg_set_defaults@LIBJPEG_8.0'
/usr/lib/gcc/x86_64-pc-linux-gnu/4.8.3/../../../../lib32/libwx_gtk2u_core-2.8.so: undefined reference to `png_set_packing@PNG15_0'
/usr/lib/gcc/x86_64-pc-linux-gnu/4.8.3/../../../../lib32/libwx_gtk2u_core-2.8.so: undefined reference to `jpeg_finish_compress@LIBJPEG_8.0'
/usr/lib/gcc/x86_64-pc-linux-gnu/4.8.3/../../../../lib32/libwx_gtk2u_core-2.8.so: undefined reference to `png_read_image@PNG15_0'
/usr/lib/gcc/x86_64-pc-linux-gnu/4.8.3/../../../../lib32/libwx_gtk2u_core-2.8.so: undefined reference to `png_set_shift@PNG15_0'
/usr/lib/gcc/x86_64-pc-linux-gnu/4.8.3/../../../../lib32/libwx_gtk2u_core-2.8.so: undefined reference to `jpeg_read_scanlines@LIBJPEG_8.0'
/usr/lib/gcc/x86_64-pc-linux-gnu/4.8.3/../../../../lib32/libwx_gtk2u_core-2.8.so: undefined reference to `png_read_end@PNG15_0'
/usr/lib/gcc/x86_64-pc-linux-gnu/4.8.3/../../../../lib32/libwx_gtk2u_core-2.8.so: undefined reference to `png_write_rows@PNG15_0'
/usr/lib/gcc/x86_64-pc-linux-gnu/4.8.3/../../../../lib32/libwx_gtk2u_core-2.8.so: undefined reference to `jpeg_set_quality@LIBJPEG_8.0'
/usr/lib/gcc/x86_64-pc-linux-gnu/4.8.3/../../../../lib32/libwx_gtk2u_core-2.8.so: undefined reference to `png_get_valid@PNG15_0'
/usr/lib/gcc/x86_64-pc-linux-gnu/4.8.3/../../../../lib32/libwx_gtk2u_core-2.8.so: undefined reference to `png_read_info@PNG15_0'
/usr/lib/gcc/x86_64-pc-linux-gnu/4.8.3/../../../../lib32/libwx_gtk2u_core-2.8.so: undefined reference to `png_get_PLTE@PNG15_0'
/usr/lib/gcc/x86_64-pc-linux-gnu/4.8.3/../../../../lib32/libwx_gtk2u_core-2.8.so: undefined reference to `png_create_read_struct@PNG15_0'
/usr/lib/gcc/x86_64-pc-linux-gnu/4.8.3/../../../../lib32/libwx_gtk2u_core-2.8.so: undefined reference to `jpeg_CreateCompress@LIBJPEG_8.0'
/usr/lib/gcc/x86_64-pc-linux-gnu/4.8.3/../../../../lib32/libwx_gtk2u_core-2.8.so: undefined reference to `png_create_write_struct@PNG15_0'
/usr/lib/gcc/x86_64-pc-linux-gnu/4.8.3/../../../../lib32/libwx_gtk2u_core-2.8.so: undefined reference to `png_set_sBIT@PNG15_0'
/usr/lib/gcc/x86_64-pc-linux-gnu/4.8.3/../../../../lib32/libwx_gtk2u_core-2.8.so: undefined reference to `jpeg_resync_to_restart@LIBJPEG_8.0'
/usr/lib/gcc/x86_64-pc-linux-gnu/4.8.3/../../../../lib32/libwx_gtk2u_core-2.8.so: undefined reference to `png_get_io_ptr@PNG15_0'
/usr/lib/gcc/x86_64-pc-linux-gnu/4.8.3/../../../../lib32/libwx_gtk2u_core-2.8.so: undefined reference to `jpeg_destroy_compress@LIBJPEG_8.0'
/usr/lib/gcc/x86_64-pc-linux-gnu/4.8.3/../../../../lib32/libwx_gtk2u_core-2.8.so: undefined reference to `png_destroy_write_struct@PNG15_0'
/usr/lib/gcc/x86_64-pc-linux-gnu/4.8.3/../../../../lib32/libwx_gtk2u_core-2.8.so: undefined reference to `jpeg_start_decompress@LIBJPEG_8.0'
/usr/lib/gcc/x86_64-pc-linux-gnu/4.8.3/../../../../lib32/libwx_gtk2u_core-2.8.so: undefined reference to `png_destroy_read_struct@PNG15_0'
/usr/lib/gcc/x86_64-pc-linux-gnu/4.8.3/../../../../lib32/libwx_gtk2u_core-2.8.so: undefined reference to `jpeg_std_error@LIBJPEG_8.0'
/usr/lib/gcc/x86_64-pc-linux-gnu/4.8.3/../../../../lib32/libwx_gtk2u_core-2.8.so: undefined reference to `png_write_info@PNG15_0'
/usr/lib/gcc/x86_64-pc-linux-gnu/4.8.3/../../../../lib32/libwx_gtk2u_core-2.8.so: undefined reference to `png_get_IHDR@PNG15_0'
/usr/lib/gcc/x86_64-pc-linux-gnu/4.8.3/../../../../lib32/libwx_gtk2u_core-2.8.so: undefined reference to `jpeg_write_scanlines@LIBJPEG_8.0'
/usr/lib/gcc/x86_64-pc-linux-gnu/4.8.3/../../../../lib32/libwx_gtk2u_core-2.8.so: undefined reference to `jpeg_read_header@LIBJPEG_8.0'
/usr/lib/gcc/x86_64-pc-linux-gnu/4.8.3/../../../../lib32/libwx_gtk2u_core-2.8.so: undefined reference to `jpeg_destroy_decompress@LIBJPEG_8.0'
/usr/lib/gcc/x86_64-pc-linux-gnu/4.8.3/../../../../lib32/libwx_gtk2u_core-2.8.so: undefined reference to `png_set_expand@PNG15_0'
/usr/lib/gcc/x86_64-pc-linux-gnu/4.8.3/../../../../lib32/libwx_gtk2u_core-2.8.so: undefined reference to `jpeg_CreateDecompress@LIBJPEG_8.0'
/usr/lib/gcc/x86_64-pc-linux-gnu/4.8.3/../../../../lib32/libwx_gtk2u_core-2.8.so: undefined reference to `png_set_IHDR@PNG15_0'
/usr/lib/gcc/x86_64-pc-linux-gnu/4.8.3/../../../../lib32/libwx_gtk2u_core-2.8.so: undefined reference to `png_set_read_fn@PNG15_0'
/usr/lib/gcc/x86_64-pc-linux-gnu/4.8.3/../../../../lib32/libwx_gtk2u_core-2.8.so: undefined reference to `png_create_info_struct@PNG15_0'
/usr/lib/gcc/x86_64-pc-linux-gnu/4.8.3/../../../../lib32/libwx_gtk2u_core-2.8.so: undefined reference to `png_set_filler@PNG15_0'
collect2: error: ld returned 1 exit status
pcsx2/CMakeFiles/pcsx2.dir/build.make:5443: recipe for target 'pcsx2/pcsx2' failed
make[2]: *** [pcsx2/pcsx2] Error 1
make[2]: Leaving directory '/var/tmp/portage/games-emulation/pcsx2-9999/work/pcsx2-9999_build'
CMakeFiles/Makefile2:284: recipe for target 'pcsx2/CMakeFiles/pcsx2.dir/all' failed
make[1]: *** [pcsx2/CMakeFiles/pcsx2.dir/all] Error 2
make[1]: Leaving directory '/var/tmp/portage/games-emulation/pcsx2-9999/work/pcsx2-9999_build'
Makefile:119: recipe for target 'all' failed
make: *** [all] Error 2
 * ERROR: games-emulation/pcsx2-9999::vincent failed (compile phase):
 *   emake failed
 *
 * If you need support, post the output of `emerge --info '=games-emulation/pcsx2-9999::vincent'`,
 * the complete build log and the output of `emerge -pqv '=games-emulation/pcsx2-9999::vincent'`.
 * The complete build log is located at '/var/tmp/portage/games-emulation/pcsx2-9999/temp/build.log'.
 * The ebuild environment file is located at '/var/tmp/portage/games-emulation/pcsx2-9999/temp/environment'.
 * Working directory: '/var/tmp/portage/games-emulation/pcsx2-9999/work/pcsx2-9999_build'
 * S: '/var/tmp/portage/games-emulation/pcsx2-9999/work/pcsx2-9999'

>>> Failed to emerge games-emulation/pcsx2-9999, Log file:

>>>  '/var/tmp/portage/games-emulation/pcsx2-9999/temp/build.log'

 * Messages for package app-admin/eselect-wxwidgets-20140423:

 * This eselect module only controls the version of wxGTK used when
 * building packages outside of portage.  If you are not doing development
 * with wxWidgets or bakefile you will never need to use it.

 * Messages for package games-emulation/pcsx2-9999:

 * ERROR: games-emulation/pcsx2-9999::vincent failed (compile phase):
 *   emake failed
 *
 * If you need support, post the output of `emerge --info '=games-emulation/pcsx2-9999::vincent'`,
 * the complete build log and the output of `emerge -pqv '=games-emulation/pcsx2-9999::vincent'`.
 * The complete build log is located at '/var/tmp/portage/games-emulation/pcsx2-9999/temp/build.log'.
 * The ebuild environment file is located at '/var/tmp/portage/games-emulation/pcsx2-9999/temp/environment'.
 * Working directory: '/var/tmp/portage/games-emulation/pcsx2-9999/work/pcsx2-9999_build'
 * S: '/var/tmp/portage/games-emulation/pcsx2-9999/work/pcsx2-9999'


I have spent much time trying different ebuilds and overlays, and I can successfully compile pcsx2-9999 from svn source (from vincent overlay) up to 100% and then it fails on the final make command. I'm guessing it has something to do with wxGTK not correctly linking the 64-bit libraries on my system (~amd64 multilib) to where pcsx2 can find them with cmake.

Trying to run the binary pcsx2 from their website:

Code:
jordan@crusher ~/downloads/pcsx2-1.2.2 $ ./launch_pcsx2_linux.sh
ldd: warning: you do not have execution permission for `plugins/libonepad-1.1.0.so'
ldd: warning: you do not have execution permission for `plugins/libCDVDlinuz.so'
ldd: warning: you do not have execution permission for `plugins/libGSdx-0.1.16.so'
ldd: warning: you do not have execution permission for `plugins/libCDVDnull.so'
ldd: warning: you do not have execution permission for `plugins/libCDVDiso.so'
ldd: warning: you do not have execution permission for `plugins/libFWnull-0.7.0.so'
ldd: warning: you do not have execution permission for `plugins/libspu2x-2.0.0.so'
ERROR the plugin (plugins/libspu2x-2.0.0.so) miss some dependencies
ldd: warning: you do not have execution permission for `plugins/libspu2x-2.0.0.so'
        libpng15.so.15 => not found
        libjpeg.so.8 => not found

ldd: warning: you do not have execution permission for `plugins/libUSBnull-0.7.0.so'
ldd: warning: you do not have execution permission for `plugins/libdev9null-0.5.0.so'
ldd: warning: you do not have execution permission for `plugins/libzzogl-0.4.0.so'
ERROR the plugin (plugins/libzzogl-0.4.0.so) miss some dependencies
ldd: warning: you do not have execution permission for `plugins/libzzogl-0.4.0.so'
        libjpeg.so.8 => not found
        libpng15.so.15 => not found
        libjpeg.so.8 => not found

./pcsx2: error while loading shared libraries: libpng15.so.15: cannot open shared object file: No such file or directory


Suggestions? Currently trying to build from source myself outside of portage, will post updates as I come closer to a solution.
Back to top
View user's profile Send private message
chithanh
Developer
Developer


Joined: 05 Aug 2006
Posts: 1694
Location: Berlin, Germany

PostPosted: Fri Jun 27, 2014 10:26 am    Post subject: Reply with quote

To get libpng.so.15 you need to emerge media-libs/libpng:1.5
To get libjpeg.so.8 you need to emerge =media-libs/jpeg-8*

To get their 32-bit versions, you need to ensure that ABI_X86="32" is enabled for these packages.

Be aware that media-libs/jpeg will conflict with media-libs/libjpeg-turbo.
Back to top
View user's profile Send private message
ssuominen
Developer
Developer


Joined: 30 Sep 2005
Posts: 2133
Location: Finland

PostPosted: Fri Jun 27, 2014 10:37 am    Post subject: Reply with quote

This looks like a simple case of missing `revdep-rebuild` run, like broken installation of x11-libs/wxGTK, and possibly others, where simple re-compile is required after system was upgraded from =media-libs/libpng-1.5*:0 to =media-libs/libpng-1.6*:0 and from libjpeg-turbo or jpeg using .so.8 to libjpeg-turbo using .so.62

So while it's possible to get libpng15.so.15 and libjpeg.so.8 from Portage, you don't really need them, all you need to do is recompile the packages asking for them
Back to top
View user's profile Send private message
strider1551
n00b
n00b


Joined: 26 Nov 2007
Posts: 8

PostPosted: Sun Jun 29, 2014 3:23 pm    Post subject: Reply with quote

Quote:
So while it's possible to get libpng15.so.15 and libjpeg.so.8 from Portage, you don't really need them, all you need to do is recompile the packages asking for them


I have the same issue using the ebuild from the vincent overlay, and it doesn't seem to be that simple. Revdep-rebuild pulls in app-emulation/emul-linux-x86-wxGTK to be rebuilt (also from the vincent overlay), but rerunning revdep-rebuild pulls it in again and again and again - rebuilding it isn't fixing anything.
Back to top
View user's profile Send private message
ssuominen
Developer
Developer


Joined: 30 Sep 2005
Posts: 2133
Location: Finland

PostPosted: Sun Jun 29, 2014 7:25 pm    Post subject: Reply with quote

strider1551 wrote:
Quote:
So while it's possible to get libpng15.so.15 and libjpeg.so.8 from Portage, you don't really need them, all you need to do is recompile the packages asking for them


I have the same issue using the ebuild from the vincent overlay, and it doesn't seem to be that simple. Revdep-rebuild pulls in app-emulation/emul-linux-x86-wxGTK to be rebuilt (also from the vincent overlay), but rerunning revdep-rebuild pulls it in again and again and again - rebuilding it isn't fixing anything.


I see, looks like someone prematurarely removed my libjpeg.so.8 fix from emul-linux-x86-baselibs:

My commit was:

Quote:

*emul-linux-x86-baselibs-20131008-r14 (07 Feb 2014)

07 Feb 2014; Samuli Suominen <ssuominen@gentoo.org>
+emul-linux-x86-baselibs-20131008-r14.ebuild,
+files/remove-native-20131008-r14:
Instead of deleting libjpeg.so.8* and libturbojpeg.so.0*, move them to
/usr/lib32/emul-linux and add the directory to ld.so.conf to avoid file
collision w/ =media-libs/jpeg-8d*


That left libjpeg.so.8 installed for compability reasons.

However, in later commit:

Quote:

12 Apr 2014; Pacho Ramos <pacho@gentoo.org>
emul-linux-x86-baselibs-20140406-r1.ebuild:
libjpeg.8 hacks shouldn't be needed anymore


That's the root cause of the libjpeg.so.8 problem at least, the compability fix I added was removed.

I don't know if it was justified or not, I can't check right now, I'm having some hardware issues with CPU fan and I can't actually do world upgrade which would give me latest emul- packages on this box. I'm waiting for the fan in mail as we speak.

I suggest you file a bug to http://bugs.gentoo.org/ and mention link to this thread there, I'm sure someone will figure it out. However, I don't know about the libpng problem, it could be that it would require sametype of fix that I had added in place for libjpeg.so.8 at the time.
Back to top
View user's profile Send private message
HarveyBirdman
n00b
n00b


Joined: 07 Nov 2014
Posts: 1

PostPosted: Fri Nov 07, 2014 10:51 pm    Post subject: Reply with quote

I know it's a bit of a necro-thread, but some people may not be familiar with the nodep emerge option and having not much fun with shuffling packages around.

USE="abi_x86_32" emerge -1av --nodep media-libs/libpng:1.5 "=media-libs/jpeg-8*"

PCSX2 should emerge now.

You can now remove the libpng and jpeg packages using emerge -a --depclean, the necessary libs will stick around as preserved libs. Emerge will keep telling you to rebuild app-emulation/emul-linux-x86-wxGTK-2.8.12.1, but everything seems to work and you can rebuild pcsx2 as well.
Back to top
View user's profile Send private message
nE0sIghT
n00b
n00b


Joined: 26 Jul 2005
Posts: 2

PostPosted: Fri Nov 21, 2014 6:38 pm    Post subject: Reply with quote

Native multilib ebuild: https://bugs.gentoo.org/show_bug.cgi?id=510710
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Gamers & Players All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum