Dolphin, the GameCube and Wii emulator - Forums

Full Version: Dolphin source compilation issue in Ubuntu 15.10
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Hey all,



I've been trying to update Dolphin on my Ubuntu 15.10 x64 install but I seem to be encountering an issue during the compiling (make) phase.

As the official builds released are for Ubuntu 15.04, which won't install, I compile and install new build myself. The last build which I compiled and installed successfully was build 4.0-8078. After a week or so, I tried updating to the latest build (available then) but would encounter a specific error 94% into compiling. This error is present when attempting to compile any builds from then until now.

Here is the log for cmake .. :

Code:
r2rx@r2rx:~/Desktop/dolphin-master/Build$ cmake ..
-- The C compiler identification is GNU 5.2.1
-- The CXX compiler identification is GNU 5.2.1
-- Check for working C compiler: /usr/bin/cc
-- Check for working C compiler: /usr/bin/cc -- works
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Detecting C compile features
-- Detecting C compile features - done
-- Check for working CXX compiler: /usr/bin/c++
-- Check for working CXX compiler: /usr/bin/c++ -- works
-- Detecting CXX compiler ABI info
-- Detecting CXX compiler ABI info - done
-- Detecting CXX compile features
-- Detecting CXX compile features - done
-- Found Git: /usr/bin/git (found version "2.5.0")
fatal: Not a git repository (or any of the parent directories): .git
fatal: Not a git repository (or any of the parent directories): .git
fatal: Not a git repository (or any of the parent directories): .git
x86_64
-- Performing Test FLAG_TYPE_LIMITS
-- Performing Test FLAG_TYPE_LIMITS - Success
-- Performing Test FLAG_SIGN_COMPARE
-- Performing Test FLAG_SIGN_COMPARE - Success
-- Performing Test FLAG_IGNORED_QUALIFIERS
-- Performing Test FLAG_IGNORED_QUALIFIERS - Success
-- Performing Test FLAG_UNINITIALIZED
-- Performing Test FLAG_UNINITIALIZED - Success
-- Performing Test FLAG_LOGICAL_OP
-- Performing Test FLAG_LOGICAL_OP - Success
-- Performing Test FLAG_SHADOW
-- Performing Test FLAG_SHADOW - Success
-- Performing Test FLAG_INIT_SELF
-- Performing Test FLAG_INIT_SELF - Success
-- Performing Test FLAG_MISSING_DECLARATIONS
-- Performing Test FLAG_MISSING_DECLARATIONS - Success
-- Performing Test FLAG_MISSING_VARIABLE_DECLARATIONS
-- Performing Test FLAG_MISSING_VARIABLE_DECLARATIONS - Failed
-- Performing Test FLAG_VISIBILITY_INLINES_HIDDEN
-- Performing Test FLAG_VISIBILITY_INLINES_HIDDEN - Success
-- Performing Test FLAG_VISIBILITY_HIDDEN
-- Performing Test FLAG_VISIBILITY_HIDDEN - Success
-- Looking for include file pthread.h
-- Looking for include file pthread.h - found
-- Looking for pthread_create
-- Looking for pthread_create - not found
-- Looking for pthread_create in pthreads
-- Looking for pthread_create in pthreads - not found
-- Looking for pthread_create in pthread
-- Looking for pthread_create in pthread - found
-- Found Threads: TRUE  
-- Found PkgConfig: /usr/bin/pkg-config (found version "0.28")
-- Found OpenGL: /usr/lib/x86_64-linux-gnu/libGL.so  
-- Found ALSA: /usr/lib/x86_64-linux-gnu/libasound.so (found version "1.0.29")
ALSA found, enabling ALSA sound backend
ao found, enabling ao sound backend
bluez found, enabling bluetooth support
PulseAudio found, enabling PulseAudio sound backend
-- Found OpenAL: /usr/lib/x86_64-linux-gnu/libopenal.so  
OpenAL found, enabling OpenAL sound backend
-- Looking for XOpenDisplay in /usr/lib/x86_64-linux-gnu/libX11.so;/usr/lib/x86_64-linux-gnu/libXext.so
-- Looking for XOpenDisplay in /usr/lib/x86_64-linux-gnu/libX11.so;/usr/lib/x86_64-linux-gnu/libXext.so - found
-- Looking for gethostbyname
-- Looking for gethostbyname - found
-- Looking for connect
-- Looking for connect - found
-- Looking for remove
-- Looking for remove - found
-- Looking for shmat
-- Looking for shmat - found
-- Looking for IceConnectionNumber in ICE
-- Looking for IceConnectionNumber in ICE - found
-- Found X11: /usr/lib/x86_64-linux-gnu/libX11.so
X11 support enabled
Xrandr found
-- checking for module 'xi>=1.5.0'
--   found xi, version 1.7.4
-- checking for modules 'libavcodec>=54.35.0;libavformat>=54.20.4;libswscale>=2.1.1;libavutil>=52.3.0'
--   found libavcodec, version 56.41.100
--   found libavformat, version 56.36.100
--   found libswscale, version 3.1.101
--   found libavutil, version 54.27.100
libav/ffmpeg found, enabling AVI frame dumps
-- Performing Test PORTAUDIO
-- Performing Test PORTAUDIO - Success
PortAudio found, enabling mic support
-- Found LIBUDEV: /usr/lib/x86_64-linux-gnu/libudev.so  
-- Found libevdev: /usr/lib/x86_64-linux-gnu/libevdev.so  
libevdev/libudev found, enabling evdev controller backend
Using named pipes as controller inputs
Using static enet from Externals
-- Looking for fcntl
-- Looking for fcntl - found
-- Looking for poll
-- Looking for poll - found
-- Looking for getaddrinfo
-- Looking for getaddrinfo - found
-- Looking for getnameinfo
-- Looking for getnameinfo - found
-- Looking for gethostbyname_r
-- Looking for gethostbyname_r - found
-- Looking for gethostbyaddr_r
-- Looking for gethostbyaddr_r - found
-- Looking for inet_pton
-- Looking for inet_pton - found
-- Looking for inet_ntop
-- Looking for inet_ntop - found
-- Performing Test HAS_MSGHDR_FLAGS
-- Performing Test HAS_MSGHDR_FLAGS - Success
-- Check size of socklen_t
-- Check size of socklen_t - done
Using static xxhash from Externals
-- Found ZLIB: /usr/lib/x86_64-linux-gnu/libz.so (found version "1.2.8")
Using shared zlib
Using shared lzo
Using shared libpng
Using shared soundtouch
-- checking for module 'libusb-1.0'
--   found libusb-1.0, version 1.0.19
-- Found libusb-1.0: /usr/include/libusb-1.0, /usr/lib/x86_64-linux-gnu/libusb-1.0.so
Using shared LibUSB
-- Found SFML 2.3 in /usr/include
Using shared SFML
-- Found MINIUPNPC: /usr/include/miniupnpc  
Using shared miniupnpc
-- Performing Test MBEDTLS_VERSION_OK
-- Performing Test MBEDTLS_VERSION_OK - Success
-- Found MBEDTLS: /usr/local/include  
Using shared mbed TLS
Using shared SOIL
-- Found wxWidgets: TRUE  
Found wxWidgets version 3.0.2
-- Found GTK2_GTK: /usr/lib/x86_64-linux-gnu/libgtk-x11-2.0.so  
wxWidgets found, enabling GUI build
-- Found Gettext: /usr/bin/msgmerge (found version "0.19.4")
-- Configuring done
-- Generating done
-- Build files have been written to: /home/r2rx/Desktop/dolphin-master/Build

The following is the make log (shortened to the error):

Code:
[ 93%] Building CXX object Source/Core/DolphinWX/CMakeFiles/dolphin-emu.dir/WXInputBase.cpp.o
[ 93%] Building CXX object Source/Core/DolphinWX/CMakeFiles/dolphin-emu.dir/WxUtils.cpp.o
[ 94%] Building CXX object Source/Core/DolphinWX/CMakeFiles/dolphin-emu.dir/X11Utils.cpp.o
Linking CXX executable ../../../Binaries/dolphin-emu
../VideoCommon/libvideocommon.a(ImageWrite.cpp.o): In function `TextureToPng(unsigned char*, int, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > const&, int, int, bool)':
ImageWrite.cpp:(.text+0x317): undefined reference to `png_set_longjmp_fn'
collect2: error: ld returned 1 exit status
Source/Core/DolphinWX/CMakeFiles/dolphin-emu.dir/build.make:1576: recipe for target 'Binaries/dolphin-emu' failed
make[2]: *** [Binaries/dolphin-emu] Error 1
CMakeFiles/Makefile2:659: recipe for target 'Source/Core/DolphinWX/CMakeFiles/dolphin-emu.dir/all' failed
make[1]: *** [Source/Core/DolphinWX/CMakeFiles/dolphin-emu.dir/all] Error 2
Makefile:146: recipe for target 'all' failed
make: *** [all] Error 2

Any advice on how to correct this is appreciated. Smile
Have you tried starting fresh? Either try make clean or delete the build folder, then try from scratch.
http://stackoverflow.com/questions/51905...-in-libpng

Sounds like it is an issue with your libpng. Which version do you have installed on your system?
(11-24-2015, 06:23 PM)Shonumi Wrote: [ -> ]Have you tried starting fresh? Either try make clean or delete the build folder, then try from scratch.

I always compile from scratch. Whenever I want to install/upgrade, I always download the latest source and build from there.


(11-24-2015, 06:31 PM)degasus Wrote: [ -> ]http://stackoverflow.com/questions/51905...-in-libpng

Sounds like it is an issue with your libpng. Which version do you have installed on your system?



Dude, you were right on the money. Ubuntu 15.10 comes with libpng12-0 (1.2.51), which is installed. However, i'd also installed libpng 16-16 (I don't remember what I was compiling that needed it). Suffice it to say, after removing libpng 16-16, it compiled perfectly.

Cheers for the feedback/help, guys. Smile