waynedog74 / mupen64plus

Automatically exported from code.google.com/p/mupen64plus
0 stars 0 forks source link

mupen64plus-core isn't linked to libpng #470

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
Describe your system:
 - Ubuntu Lucid 10.04 LTS - Linux 3.1.1 :
 - x86_64:
 - Mupen64Plus 2.0 ( Lastest from https://bitbucket.org/richard42/mupen64plus-core/raw/cf106259e2a3/tools/m64p_helper_scripts.tar.gz ):
 - Plugins used: Unknow

For visual artifacts, give:
- game name and CRC/MD5 hash (printed on console)
- description of the artifact (missing polygons, flashing, wrong colors,
etc)

Describe the problem: Un-usable
After Manual Compile of this emulator , when i try to use appear this on the 
terminal

$ ./m64p_test.sh 
 __  __                         __   _  _   ____  _             
|  \/  |_   _ _ __   ___ _ __  / /_ | || | |  _ \| |_   _ ___ 
| |\/| | | | | '_ \ / _ \ '_ \| '_ \| || |_| |_) | | | | / __|  
| |  | | |_| | |_) |  __/ | | | (_) |__   _|  __/| | |_| \__ \  
|_|  |_|\__,_| .__/ \___|_| |_|\___/   |_| |_|   |_|\__,_|___/  
             |_|         http://code.google.com/p/mupen64plus/  
Mupen64Plus Console User-Interface Version 1.99.4

dlopen('./libmupen64plus.so.2') error: ./libmupen64plus.so.2: undefined symbol: 
png_set_write_fn
AttachCoreLib() Error: failed to find Mupen64Plus Core library

How to fix it ???

Original issue reported on code.google.com by Inukaze....@gmail.com on 27 Nov 2011 at 12:49

GoogleCodeExporter commented 9 years ago
Please add the output of `ldd test/libmupen64plus.so.2.0.0` (from the build 
directory) the and also provide the output of `dpkg -l|grep png`

Original comment by s...@narfation.org on 30 Nov 2011 at 8:41

GoogleCodeExporter commented 9 years ago
I just tried to reproduce the problem. I've downloaded Ubuntu 10.04.03 LTS for 
amd64 (CD-Version). It is a vanilla installation (just pressed next during the 
installation and entered my user information). I installed all updates (just 
the stuff that the update manager showed me). Additional packages also 
installed for the build process:

 * libfreetype6-dev
 * libgl1-mesa-dev
 * libglu1-mesa-dev
 * libpng12-dev
 * libsamplerate0-dev
 * libsdl1.2-dev
 * mercurial
 * pkg-config
 * zlib1g-dev

After that I've done (in gnome-terminal):
$ mkdir m64p
$ cd m64p
$ wget 
https://bitbucket.org/richard42/mupen64plus-core/raw/cf106259e2a3/tools/m64p_hel
per_scripts.tar.gz
$ tar xvf m64p_helper_scripts.tar.gz
$ ./m64p_get.sh
$ ./m64p_build.sh

Now you should get an error because somebody forgot to add the zlib.pc (which 
was shipped in zlib 1.2.3.3) to the zlib1g-dev package.

The problem is... how did you compile it on a system with a "broken" zlib1g-dev 
package? Maybe you forgot to add some information to this bug report.

So I tried to find a way that you may have taken to build it. My first guess 
was to enable the lucid-backports archive and update my packages. But the 
zlib1g-dev package was not available in this repo.

So I went on and remove the zlib argument of the pkg-config calls in 
source/mupen64plus-core/project/unix/Makefile (and also removed the 3 lines of 
zlib check). I could continue to compile the code and start the test

$ ./m64p_build.sh
$ ./m64p_test.sh

Both worked fine and didn't show the problem you mentioned. I could only 
recreate the error after also removing the libpng from both pkg-config calls 
(which is nothing that you should do... also not the zlib part, but it is a 
small hack that worked in this situation).

You have to add the information about what you did. Otherwise we can't help you 
and have to mark this issue as invalid. At the moment, it just looks like you 
played around with the sources and added a bug by your changes.

Thanks

Original comment by s...@narfation.org on 2 Dec 2011 at 7:53

GoogleCodeExporter commented 9 years ago

Original comment by s...@narfation.org on 3 Dec 2011 at 8:33

GoogleCodeExporter commented 9 years ago
I tried to reproduce it and contact him by mail to resolve the problem. I will 
mark this bug as invalid because I got no reaction and the only way to get the 
same results was a manual edit of the Makefile

Original comment by s...@narfation.org on 10 Dec 2011 at 7:57

GoogleCodeExporter commented 9 years ago
i actually have the same problem. i install from google code download, rather 
than repos. im running ubuntu 13.10 saucy. ive installed libpng15 from 
sourceforge download, because ubuntu repos only have libpng12.

 ldd /usr/local/lib/libmupen64plus.so.2.0.0  | grep png
    libpng15.so.15 => not found

Original comment by pavel...@gmail.com on 19 Mar 2014 at 10:22

GoogleCodeExporter commented 9 years ago
pavel989, I recommend downloading the special Ubuntu version of mupen64plus on 
the download page.  This one was built on an Ubuntu system, and so it links 
against libpng12 and should work for you.

Original comment by richard...@gmail.com on 20 Mar 2014 at 1:59

GoogleCodeExporter commented 9 years ago
Thank you , im donwnloading , i wanna know why the download page , dont have 
the 32 Bits version for Ubuntu too ???

Original comment by Inukaze....@gmail.com on 21 Mar 2014 at 9:50

GoogleCodeExporter commented 9 years ago
There's no 32-bit Ubuntu build because there was some particular technical 
reason why I could not compile it on my Ubuntu machine. :)  I tried to, but for 
reasons I can't remember now I ran into some problems and decided to give up.

Original comment by richard...@gmail.com on 26 Mar 2014 at 5:27

GoogleCodeExporter commented 9 years ago
just for curiosity , you try installing the "ia" libs , i cant remember the 
exact name of libs of 32 bits under Ubuntu x86_64 , and run from the terminal 
using something like

hostname@machine $ linux32
$ ./autogen.sh && ./configure --and --the --options

???

Original comment by Inukaze....@gmail.com on 26 Mar 2014 at 9:29

GoogleCodeExporter commented 9 years ago
Yes, those are the run-time 32-bit compatibility libraries.  I have all of 
those on my ubuntu machine.  I think there was a problem in which a 32-bit 
development package was unavailable or couldn't coexist with the 64-bit 
version.  

Original comment by richard...@gmail.com on 26 Mar 2014 at 9:37

GoogleCodeExporter commented 9 years ago
Thank you for your answers , well you can tell me , the libs are need in the 
version of 32 Bits of Ubuntu , to manual compilation ??? . i can try build the 
lastest source code. :D

Original comment by Inukaze....@gmail.com on 26 Mar 2014 at 10:35

GoogleCodeExporter commented 9 years ago
There is a wiki page here which lists most or all of the dependencies:

https://code.google.com/p/mupen64plus/wiki/CompilingFromGit

It may be a little out of date.  To build on Ubuntu, you need the development 
packages for these libraries.  For example, the SDL development package is 
called "libsdl1.2-dev"

Original comment by richard...@gmail.com on 27 Mar 2014 at 2:18