I'm trying to compile Dolphin on Lubuntu 16.04. Despite many hiccups at first, I was able to get to the part where I just need to run make. Unfortunately, compilation fails with errors along the lines of:
From searching online, it looks like my problem is the version of libpng -- Dolphin requires libpng 1.6 or newer, and I'm running 1.2.54.
First, I tried installing 1.6, and while that did alleviate some of the PNG errors, compilation still fails with most of them. I ran convert -list format | grep PNG, but it's clear that it was still trying to use 1.2.54. Then, I tried removing 1.2.54, but so many packages in my system depend on it that if I were to do that, I'd turn it into a brick.
Later, I tried downloading libpng and compiling it myself. I succeeded, but have no idea how to get Dolphin to use my compiled version instead of the system's. In my research, I realized Dolphin's source already has the required libpng files in the Externals folder, but I have no idea how to get Dolphin to use those either. I did try editing CMakeLists.txt in order to comment out the lines about the shared libpng, and to keep only the lines about the static libpng from Externals, but it didn't make a difference.
Is there something I'm missing? Is it even possible for me to compile Dolphin using libpng 1.6 in my circumstances? On a similar note, I'm only compiling it by hand because the Dolphin PPA hasn't had a working version for Ubuntu 16 in years now. So if anyone knows what's up with that, that would honestly be pretty nice too. Thanks!
Code:
.../Source/Core/Common/Image.cpp:23:3: error: ‘png_image’ was not declared in this scope; did you mean ‘png_time’?
First, I tried installing 1.6, and while that did alleviate some of the PNG errors, compilation still fails with most of them. I ran convert -list format | grep PNG, but it's clear that it was still trying to use 1.2.54. Then, I tried removing 1.2.54, but so many packages in my system depend on it that if I were to do that, I'd turn it into a brick.
Later, I tried downloading libpng and compiling it myself. I succeeded, but have no idea how to get Dolphin to use my compiled version instead of the system's. In my research, I realized Dolphin's source already has the required libpng files in the Externals folder, but I have no idea how to get Dolphin to use those either. I did try editing CMakeLists.txt in order to comment out the lines about the shared libpng, and to keep only the lines about the static libpng from Externals, but it didn't make a difference.
Is there something I'm missing? Is it even possible for me to compile Dolphin using libpng 1.6 in my circumstances? On a similar note, I'm only compiling it by hand because the Dolphin PPA hasn't had a working version for Ubuntu 16 in years now. So if anyone knows what's up with that, that would honestly be pretty nice too. Thanks!