
Hello,
I was following this website https://wiki.dolphin-emu.org/index.php?t...n_on_Linux until Step 3, where I configure the build with [cmake ..] but I received multiple errors. Can anyone tell me how to continue?
Terminal:
CMakeError.log:
I was following this website https://wiki.dolphin-emu.org/index.php?t...n_on_Linux until Step 3, where I configure the build with [cmake ..] but I received multiple errors. Can anyone tell me how to continue?
Terminal:
Code:
-- The C compiler identification is GNU 9.3.0
-- The CXX compiler identification is GNU 9.3.0
-- 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.25.1")
-- Detected architecture: x86_64
-- Performing Test FLAG_C_HAVE_SSE2
-- Performing Test FLAG_C_HAVE_SSE2 - Success
-- Performing Test FLAG_CXX_HAVE_SSE2
-- Performing Test FLAG_CXX_HAVE_SSE2 - Success
-- Performing Test FLAG_C_NO_STRICT_ALIASING
-- Performing Test FLAG_C_NO_STRICT_ALIASING - Success
-- Performing Test FLAG_CXX_NO_STRICT_ALIASING
-- Performing Test FLAG_CXX_NO_STRICT_ALIASING - Success
-- Performing Test FLAG_C_NO_EXCEPTIONS
-- Performing Test FLAG_C_NO_EXCEPTIONS - Success
-- Performing Test FLAG_CXX_NO_EXCEPTIONS
-- Performing Test FLAG_CXX_NO_EXCEPTIONS - Success
-- Performing Test FLAG_C_VISIBILITY_INLINES_HIDDEN
-- Performing Test FLAG_C_VISIBILITY_INLINES_HIDDEN - Failed
-- Performing Test FLAG_CXX_VISIBILITY_INLINES_HIDDEN
-- Performing Test FLAG_CXX_VISIBILITY_INLINES_HIDDEN - Success
-- Performing Test FLAG_C_VISIBILITY_HIDDEN
-- Performing Test FLAG_C_VISIBILITY_HIDDEN - Success
-- Performing Test FLAG_CXX_VISIBILITY_HIDDEN
-- Performing Test FLAG_CXX_VISIBILITY_HIDDEN - Success
-- Performing Test FLAG_C_FOMIT_FRAME_POINTER
-- Performing Test FLAG_C_FOMIT_FRAME_POINTER - Success
-- Performing Test FLAG_CXX_FOMIT_FRAME_POINTER
-- Performing Test FLAG_CXX_FOMIT_FRAME_POINTER - Success
-- Performing Test FLAG_C_GGDB
-- Performing Test FLAG_C_GGDB - Success
-- Performing Test FLAG_CXX_GGDB
-- Performing Test FLAG_CXX_GGDB - Success
-- Looking for pthread.h
-- Looking for pthread.h - found
-- Performing Test CMAKE_HAVE_LIBC_PTHREAD
-- Performing Test CMAKE_HAVE_LIBC_PTHREAD - Failed
-- 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.29.1")
-- Found OpenGL: /usr/lib/x86_64-linux-gnu/libGL.so
-- Found X11: /usr/include
-- 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
-- Xrandr found
-- Checking for module 'xi>=1.5.0'
-- Found xi, version 1.7.10
-- X11 support enabled
-- Checking for module 'egl'
-- No package 'egl' found
-- Could NOT find EGL (missing: EGL_INCLUDE_DIRS EGL_LIBRARIES)
CMake Warning at CMakeLists.txt:558 (message):
EGL support enabled but not found. This build will not support EGL.
-- Could NOT find FFmpeg (missing: FFmpeg_INCLUDE_avcodec FFmpeg_LIBRARY_avcodec FFmpeg_INCLUDE_avformat FFmpeg_LIBRARY_avformat FFmpeg_INCLUDE_avutil FFmpeg_LIBRARY_avutil FFmpeg_INCLUDE_swresample FFmpeg_LIBRARY_swresample FFmpeg_INCLUDE_swscale FFmpeg_LIBRARY_swscale avcodec avformat avutil swresample swscale)
-- libav/ffmpeg not found, disabling AVI frame dumps
-- Found LIBUDEV: /usr/lib/x86_64-linux-gnu/libudev.so
CMake Error at /usr/share/cmake-3.16/Modules/FindPackageHandleStandardArgs.cmake:146 (message):
Could NOT find LIBEVDEV (missing: LIBEVDEV_LIBRARY LIBEVDEV_INCLUDE_DIR)
Call Stack (most recent call first):
/usr/share/cmake-3.16/Modules/FindPackageHandleStandardArgs.cmake:393 (_FPHSA_FAILURE_MESSAGE)
CMake/FindLIBEVDEV.cmake:30 (find_package_handle_standard_args)
CMakeLists.txt:603 (find_package)
-- Configuring incomplete, errors occurred!
See also "/media/userfl1/ae60cecf-9e99-4186-87cb-089776e4420e/dolphin-emu/Build/CMakeFiles/CMakeOutput.log".
See also "/media/userfl1/ae60cecf-9e99-4186-87cb-089776e4420e/dolphin-emu/Build/CMakeFiles/CMakeError.log".
CMakeError.log:
Code:
Performing C SOURCE FILE Test FLAG_C_VISIBILITY_INLINES_HIDDEN failed with the following output:
Change Dir: /media/userfl1/ae60cecf-9e99-4186-87cb-089776e4420e/dolphin-emu/Build/CMakeFiles/CMakeTmp
Run Build Command(s):/usr/bin/make cmTC_13ece/fast && /usr/bin/make -f CMakeFiles/cmTC_13ece.dir/build.make CMakeFiles/cmTC_13ece.dir/build
make[1]: Entering directory '/media/userfl1/ae60cecf-9e99-4186-87cb-089776e4420e/dolphin-emu/Build/CMakeFiles/CMakeTmp'
Building C object CMakeFiles/cmTC_13ece.dir/src.c.o
/usr/bin/cc -DFLAG_C_VISIBILITY_INLINES_HIDDEN -Werror -fvisibility-inlines-hidden -o CMakeFiles/cmTC_13ece.dir/src.c.o -c /media/userfl1/ae60cecf-9e99-4186-87cb-089776e4420e/dolphin-emu/Build/CMakeFiles/CMakeTmp/src.c
cc1: error: command line option '-fvisibility-inlines-hidden' is valid for C++/ObjC++ but not for C [-Werror]
cc1: all warnings being treated as errors
make[1]: *** [CMakeFiles/cmTC_13ece.dir/build.make:66: CMakeFiles/cmTC_13ece.dir/src.c.o] Error 1
make[1]: Leaving directory '/media/userfl1/ae60cecf-9e99-4186-87cb-089776e4420e/dolphin-emu/Build/CMakeFiles/CMakeTmp'
make: *** [Makefile:121: cmTC_13ece/fast] Error 2
Source file was:
int main(void) { return 0; }
Performing C SOURCE FILE Test CMAKE_HAVE_LIBC_PTHREAD failed with the following output:
Change Dir: /media/userfl1/ae60cecf-9e99-4186-87cb-089776e4420e/dolphin-emu/Build/CMakeFiles/CMakeTmp
Run Build Command(s):/usr/bin/make cmTC_b41f6/fast && /usr/bin/make -f CMakeFiles/cmTC_b41f6.dir/build.make CMakeFiles/cmTC_b41f6.dir/build
make[1]: Verzeichnis „/media/userfl1/ae60cecf-9e99-4186-87cb-089776e4420e/dolphin-emu/Build/CMakeFiles/CMakeTmp“ wird betreten
Building C object CMakeFiles/cmTC_b41f6.dir/src.c.o
/usr/bin/cc -DCMAKE_HAVE_LIBC_PTHREAD -o CMakeFiles/cmTC_b41f6.dir/src.c.o -c /media/userfl1/ae60cecf-9e99-4186-87cb-089776e4420e/dolphin-emu/Build/CMakeFiles/CMakeTmp/src.c
Linking C executable cmTC_b41f6
/usr/bin/cmake -E cmake_link_script CMakeFiles/cmTC_b41f6.dir/link.txt --verbose=1
/usr/bin/cc -DCMAKE_HAVE_LIBC_PTHREAD CMakeFiles/cmTC_b41f6.dir/src.c.o -o cmTC_b41f6
/usr/bin/ld: CMakeFiles/cmTC_b41f6.dir/src.c.o: in function `main':
src.c:(.text+0x46): undefined reference to `pthread_create'
/usr/bin/ld: src.c:(.text+0x52): undefined reference to `pthread_detach'
/usr/bin/ld: src.c:(.text+0x63): undefined reference to `pthread_join'
collect2: error: ld returned 1 exit status
make[1]: *** [CMakeFiles/cmTC_b41f6.dir/build.make:87: cmTC_b41f6] Fehler 1
make[1]: Verzeichnis „/media/userfl1/ae60cecf-9e99-4186-87cb-089776e4420e/dolphin-emu/Build/CMakeFiles/CMakeTmp“ wird verlassen
make: *** [Makefile:121: cmTC_b41f6/fast] Fehler 2
Source file was:
#include <pthread.h>
void* test_func(void* data)
{
return data;
}
int main(void)
{
pthread_t thread;
pthread_create(&thread, NULL, test_func, NULL);
pthread_detach(thread);
pthread_join(thread, NULL);
pthread_atfork(NULL, NULL, NULL);
pthread_exit(NULL);
return 0;
}
Determining if the function pthread_create exists in the pthreads failed with the following output:
Change Dir: /media/userfl1/ae60cecf-9e99-4186-87cb-089776e4420e/dolphin-emu/Build/CMakeFiles/CMakeTmp
Run Build Command(s):/usr/bin/make cmTC_34281/fast && /usr/bin/make -f CMakeFiles/cmTC_34281.dir/build.make CMakeFiles/cmTC_34281.dir/build
make[1]: Verzeichnis „/media/userfl1/ae60cecf-9e99-4186-87cb-089776e4420e/dolphin-emu/Build/CMakeFiles/CMakeTmp“ wird betreten
Building C object CMakeFiles/cmTC_34281.dir/CheckFunctionExists.c.o
/usr/bin/cc -DCHECK_FUNCTION_EXISTS=pthread_create -o CMakeFiles/cmTC_34281.dir/CheckFunctionExists.c.o -c /usr/share/cmake-3.16/Modules/CheckFunctionExists.c
Linking C executable cmTC_34281
/usr/bin/cmake -E cmake_link_script CMakeFiles/cmTC_34281.dir/link.txt --verbose=1
/usr/bin/cc -DCHECK_FUNCTION_EXISTS=pthread_create CMakeFiles/cmTC_34281.dir/CheckFunctionExists.c.o -o cmTC_34281 -lpthreads
/usr/bin/ld: -lpthreads kann nicht gefunden werden
collect2: error: ld returned 1 exit status
make[1]: *** [CMakeFiles/cmTC_34281.dir/build.make:87: cmTC_34281] Fehler 1
make[1]: Verzeichnis „/media/userfl1/ae60cecf-9e99-4186-87cb-089776e4420e/dolphin-emu/Build/CMakeFiles/CMakeTmp“ wird verlassen
make: *** [Makefile:121: cmTC_34281/fast] Fehler 2