Dolphin, the GameCube and Wii emulator - Forums

Full Version: Linux build 5.0 problem
You're currently viewing a stripped down version of our content. View the full version with proper formatting.

atomic

Hi guys, I have problem building on my Ubuntu 14.04.
Cmake gives:
Quote:x86_64

-- Could NOT find OpenGL (missing:  OPENGL_gl_LIBRARY)
-- Could NOT find ALSA (missing:  ALSA_LIBRARY ALSA_INCLUDE_DIR)
ALSA NOT found, disabling ALSA sound backend
ao NOT found, disabling ao sound backend
bluez NOT found, disabling bluetooth support
PulseAudio NOT found, disabling PulseAudio sound backend
-- Could NOT find OpenAL (missing:  OPENAL_LIBRARY OPENAL_INCLUDE_DIR)
OpenAL NOT found, disabling OpenAL sound backend
X11 support enabled
Xrandr found
-- checking for modules 'libavcodec>=54.35.0;libavformat>=54.20.4;libswscale>=2.1.1;libavutil>=52.3.0'
--   package 'libavcodec>=54.35.0' not found
--   package 'libavformat>=54.20.4' not found
--   package 'libswscale>=2.1.1' not found
--   package 'libavutil>=52.3.0' not found
libav/ffmpeg not found, disabling AVI frame dumps
PortAudio not found, disabling mic support
libevdev/libudev found, enabling evdev controller backend
Using named pipes as controller inputs
Watching game memory for changes
Enabling analytics collection (subject to end-user opt-in)
Using static enet from Externals
Using static xxhash from Externals
Using shared zlib
Using static lzo from Externals
Using shared libpng
-- checking for module 'libusb-1.0'
--   package 'libusb-1.0' not found
-- libusb-1.0 not found.
Could NOT find SFML (missing:  SFML_NETWORK_LIBRARY SFML_SYSTEM_LIBRARY)
Using static SFML 2.1 from Externals
-- Could NOT find MINIUPNPC (missing:  MINIUPNPC_INCLUDE_DIR MINIUPNPC_LIBRARY MINIUPNPC_API_VERSION)
Using static miniupnpc from Externals
-- Could NOT find MBEDTLS (missing:  MBEDTLS_INCLUDE_DIR MBEDTLS_LIBRARY MBEDX509_LIBRARY MBEDCRYPTO_LIBRARY MBEDTLS_VERSION_OK)
Using static mbed TLS from Externals
Using shared libcurl
Using static SOIL from Externals
Found wxWidgets version 2.8.12
At least 3.0.1 is required; ignoring found version
Using static wxWidgets from Externals
gthread-2.0 found
pangocairo found
-- Could NOT find GTest (missing:  GTEST_INCLUDE_DIR)
Using static gtest from Externals
-- Configuring done
-- Generating done

After that, running `make` stop at 91% here:
Quote:[ 63%] Built target videosoftware

[ 64%] Built target videoogl
[ 69%] Built target videocommon
[ 90%] Built target core
[ 90%] Built target uicommon
[ 91%] Linking CXX executable ../../../Binaries/dolphin-emu

../Common/libcommon.a(GLX.cpp.o): In function `cInterfaceGLX::GetFuncAddress(std::string const&)':
/home/atomic/Downloads/dolphin/Source/Core/Common/GL/GLInterface/GLX.cpp:(.text+0x44): undefined reference to `glXGetProcAddress'
../Common/libcommon.a(GLX.cpp.o): In function `cInterfaceGLX::Swap()':
/home/atomic/Downloads/dolphin/Source/Core/Common/GL/GLInterface/GLX.cpp:(.text+0x5c): undefined reference to `glXSwapBuffers'
../Common/libcommon.a(GLX.cpp.o): In function `cInterfaceGLX::Create(void*, bool)':
/home/atomic/Downloads/dolphin/Source/Core/Common/GL/GLInterface/GLX.cpp:(.text+0xa1): undefined reference to `glXQueryVersion'
/home/atomic/Downloads/dolphin/Source/Core/Common/GL/GLInterface/GLX.cpp:(.text+0x197): undefined reference to `glXChooseFBConfig'
/home/atomic/Downloads/dolphin/Source/Core/Common/GL/GLInterface/GLX.cpp:(.text+0x1ce): undefined reference to `glXGetVisualFromFBConfig'
../Common/libcommon.a(GLX.cpp.o): In function `cInterfaceGLX::MakeCurrent()':
/home/atomic/Downloads/dolphin/Source/Core/Common/GL/GLInterface/GLX.cpp:(.text+0x4ea): undefined reference to `glXMakeCurrent'
../Common/libcommon.a(GLX.cpp.o): In function `cInterfaceGLX::ClearCurrent()':
/home/atomic/Downloads/dolphin/Source/Core/Common/GL/GLInterface/GLX.cpp:(.text+0x59a): undefined reference to `glXMakeCurrent'
../Common/libcommon.a(GLX.cpp.o): In function `cInterfaceGLX::Shutdown()':
/home/atomic/Downloads/dolphin/Source/Core/Common/GL/GLInterface/GLX.cpp:(.text+0x5cb): undefined reference to `glXDestroyContext'
clang: error: linker command failed with exit code 1 (use -v to see invocation)
make[2]: *** [Binaries/dolphin-emu] Error 1
make[1]: *** [Source/Core/DolphinWX/CMakeFiles/dolphin-emu.dir/all] Error 2
make: *** [all] Error 2
Anyone know how to fix this problem? Thanks.
First, did you install your dependencies? That's what I did first before building Dolphin 5.0-119 yesterday, though that was on Xubuntu 16.04.
That seems like your distribution lacks the necessary libraries to compile Dolphin well.

The first step would be to run sudo apt-update, then sudo apt upgrade to have the latest openGL libraries. On this subject, what kind of GPU are you using and are you using open-source drivers or proprietary drivers? This is maybe why you have some problems with openGL: your GPU maybe doesnt support OpenGL 3.3.

Second, to maybe solve your dependencies, run these command:
sudo add-apt-repository ppa:dolphin-emu/gcc-for-dolphin
sudo apt update
sudo apt install cmake pkg-config git gcc-4.9 g++-4.9 libao-dev libasound2-dev libavcodec-dev libavformat-dev libbluetooth-dev libgtk2.0-dev liblzo2-dev libopenal-dev libpulse-dev libreadline-dev libsfml-dev libsoil-dev libswscale-dev libusb-1.0-0-dev libxext-dev libxrandr-dev portaudio19-dev zlib1g-dev libudev-dev libevdev-dev

Then use cmake .. again, and the make, and sudo make install.

If nothing works, you should wipe Ubuntu 14.04 and install 16.04, and then compile from there using these instructions: https://wiki.dolphin-emu.org/index.php?t...n_on_Linux
You know you don't need to build on Ubuntu right? There's a PPA for it...

atomic

I tried installing the development libraries required above, and I got

Quote:The following packages have unmet dependencies:
libgl1-mesa-dri : Depends: libllvm3.6 but it is not going to be installed
portaudio19-dev : Depends: libjack-dev
E: Error, pkgProblemResolver::Resolve generated breaks, this may be caused by held packages.

Oh, I didn't know theres PPA for ubuntu 14. I'll try installing from the PPA.
I'd suggest to also update your kernel and mesa, else you get quite slow GPU drivers. Updating Ubuntu in general is likely the easier task. 14.04 is more than two years old.