Emulator Issues #12097
closedCompilation on Linux Error.
Added by JojoDojo almost 5 years ago. Updated almost 5 years ago.
0%
Description
When compiling with the given instructions I get this following error when trying to make.
/home/jojo/dolphin/Source/Core/UICommon/UICommon.cpp:400:24: error: variable or field ‘EnableScreenSaver’ declared void
400 | void EnableScreenSaver(Window win, bool enable)
| ^~~~~~
/home/jojo/dolphin/Source/Core/UICommon/UICommon.cpp:400:24: error: ‘Window’ was not declared in this scope
/home/jojo/dolphin/Source/Core/UICommon/UICommon.cpp:400:36: error: expected primary-expression before ‘bool’
400 | void EnableScreenSaver(Window win, bool enable)
| ^~~~
make[2]: *** [Source/Core/UICommon/CMakeFiles/uicommon.dir/build.make:193: Source/Core/UICommon/CMakeFiles/uicommon.dir/UICommon.cpp.o] Error 1
make[1]: *** [CMakeFiles/Makefile2:1963: Source/Core/UICommon/CMakeFiles/uicommon.dir/all] Error 2
make: *** [Makefile:152: all] Error 2
Unfortunately, due to the nature of this bug, I don't think there is anything I can do on my end to resolve this. Let me know if you need any more data and ill try to supply that.
Updated by JojoDojo almost 5 years ago
Updated by Techjar almost 5 years ago
Er, I specifically need to see the output of cmake.
Updated by JojoDojo almost 5 years ago
Techjar wrote:
Er, I specifically need to see the output of cmake.
-- Detected architecture: x86_64
-- Found OpenGL: /usr/lib/x86_64-linux-gnu/libOpenGL.so
-- Xrandr found
-- X11 support enabled
-- EGL OpenGL interface enabled
-- Found avcodec: /usr/include/x86_64-linux-gnu /usr/lib/x86_64-linux-gnu/libavcodec.so
-- Found avformat: /usr/include/x86_64-linux-gnu /usr/lib/x86_64-linux-gnu/libavformat.so
-- Found avutil: /usr/include/x86_64-linux-gnu /usr/lib/x86_64-linux-gnu/libavutil.so
-- Found swresample: /usr/include/x86_64-linux-gnu /usr/lib/x86_64-linux-gnu/libswresample.so
-- Found swscale: /usr/include/x86_64-linux-gnu /usr/lib/x86_64-linux-gnu/libswscale.so
-- Found FFmpeg: /usr/include/x86_64-linux-gnu found components: avcodec avformat avutil swscale
-- libav/ffmpeg found, enabling AVI frame dumps
-- 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)
CMake Warning at CMakeLists.txt:535 (find_package):
By not providing "Findfmt.cmake" in CMAKE_MODULE_PATH this project has
asked CMake to find a package configuration file provided by "fmt", but
CMake did not find one.
Could not find a package configuration file provided by "fmt" (requested
version 6.0) with any of the following names:
fmtConfig.cmake
fmt-config.cmake
Add the installation prefix of "fmt" to CMAKE_PREFIX_PATH or set "fmt_DIR"
to a directory containing one of the above files. If "fmt" provides a
separate development package or SDK, be sure it has been installed.
-- Using static fmt from Externals
-- Version: 6.1.2
-- Build type: Release
-- CXX_STANDARD: 11
-- Could NOT find pugixml (missing: pugixml_LIBRARIES pugixml_INCLUDE_DIRS)
-- Using static pugixml from Externals
-- Using static enet from Externals
-- Using static xxhash from Externals
-- Could NOT find BZip2 (missing: BZIP2_LIBRARIES BZIP2_INCLUDE_DIR)
-- Shared bzip2 not found, falling back to the static library
-- Could NOT find LibLZMA (missing: LIBLZMA_LIBRARY LIBLZMA_HAS_AUTO_DECODER LIBLZMA_HAS_EASY_ENCODER LIBLZMA_HAS_LZMA_PRESET) (found version "5.2.4")
-- Shared lzma not found, falling back to the static library
-- Using shared zlib
-- Checking for module 'minizip>=2.0.0'
-- No package 'minizip' found
-- Shared minizip not found, falling back to the static library
-- Using shared lzo
-- Using shared libpng
-- Using static FreeSurround from Externals
-- Could NOT find CUBEB (missing: CUBEB_INCLUDE_DIR CUBEB_LIBRARY)
-- Using static cubeb from Externals
-- Checking for module 'libusb-1.0'
-- Found libusb-1.0, version 1.0.23
-- 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.5 in /usr/include
-- Using shared SFML
-- Found MINIUPNPC: /usr/include/miniupnpc
-- Using shared miniupnpc
-- Could NOT find MBEDTLS (missing: MBEDTLS_VERSION_OK)
-- Using static mbed TLS from Externals
-- Found CURL: /usr/lib/x86_64-linux-gnu/libcurl.so (found version "7.68.0")
-- Using shared libcurl
-- Using static DiscordRPC from Externals
-- Could NOT find SYSTEMD (missing: SYSTEMD_LIBRARIES SYSTEMD_INCLUDE_DIRS)
-- libsystemd not found, disabling traversal server watchdog support
-- Using static gtest from Externals
-- Could NOT find OpenSLES (missing: OPENSLES_LIBRARY OPENSLES_INCLUDE_DIR)
-- ALSA found, enabling ALSA sound backend
-- PulseAudio found, enabling PulseAudio sound backend
-- Found BlueZ: /usr/lib/x86_64-linux-gnu/libbluetooth.so
-- BlueZ found, enabling bluetooth support
-- Found Qt version 5.12.5
-- Configuring done
-- Generating done
-- Build files have been written to: /home/jojo/dolphin/build
Updated by JojoDojo almost 5 years ago
JojoDojo wrote:
Techjar wrote:
Er, I specifically need to see the output of cmake.
I used the command cmake .. in the newly created build directory.
-- Detected architecture: x86_64
-- Found OpenGL: /usr/lib/x86_64-linux-gnu/libOpenGL.so
-- Xrandr found
-- X11 support enabled
-- EGL OpenGL interface enabled
-- Found avcodec: /usr/include/x86_64-linux-gnu /usr/lib/x86_64-linux-gnu/libavcodec.so
-- Found avformat: /usr/include/x86_64-linux-gnu /usr/lib/x86_64-linux-gnu/libavformat.so
-- Found avutil: /usr/include/x86_64-linux-gnu /usr/lib/x86_64-linux-gnu/libavutil.so
-- Found swresample: /usr/include/x86_64-linux-gnu /usr/lib/x86_64-linux-gnu/libswresample.so
-- Found swscale: /usr/include/x86_64-linux-gnu /usr/lib/x86_64-linux-gnu/libswscale.so
-- Found FFmpeg: /usr/include/x86_64-linux-gnu found components: avcodec avformat avutil swscale
-- libav/ffmpeg found, enabling AVI frame dumps
-- 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)
CMake Warning at CMakeLists.txt:535 (find_package):
By not providing "Findfmt.cmake" in CMAKE_MODULE_PATH this project has
asked CMake to find a package configuration file provided by "fmt", but
CMake did not find one.Could not find a package configuration file provided by "fmt" (requested
version 6.0) with any of the following names:fmtConfig.cmake fmt-config.cmake
Add the installation prefix of "fmt" to CMAKE_PREFIX_PATH or set "fmt_DIR"
to a directory containing one of the above files. If "fmt" provides a
separate development package or SDK, be sure it has been installed.-- Using static fmt from Externals
-- Version: 6.1.2
-- Build type: Release
-- CXX_STANDARD: 11
-- Could NOT find pugixml (missing: pugixml_LIBRARIES pugixml_INCLUDE_DIRS)
-- Using static pugixml from Externals
-- Using static enet from Externals
-- Using static xxhash from Externals
-- Could NOT find BZip2 (missing: BZIP2_LIBRARIES BZIP2_INCLUDE_DIR)
-- Shared bzip2 not found, falling back to the static library
-- Could NOT find LibLZMA (missing: LIBLZMA_LIBRARY LIBLZMA_HAS_AUTO_DECODER LIBLZMA_HAS_EASY_ENCODER LIBLZMA_HAS_LZMA_PRESET) (found version "5.2.4")
-- Shared lzma not found, falling back to the static library
-- Using shared zlib
-- Checking for module 'minizip>=2.0.0'
-- No package 'minizip' found
-- Shared minizip not found, falling back to the static library
-- Using shared lzo
-- Using shared libpng
-- Using static FreeSurround from Externals
-- Could NOT find CUBEB (missing: CUBEB_INCLUDE_DIR CUBEB_LIBRARY)
-- Using static cubeb from Externals
-- Checking for module 'libusb-1.0'
-- Found libusb-1.0, version 1.0.23
-- 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.5 in /usr/include
-- Using shared SFML
-- Found MINIUPNPC: /usr/include/miniupnpc
-- Using shared miniupnpc
-- Could NOT find MBEDTLS (missing: MBEDTLS_VERSION_OK)
-- Using static mbed TLS from Externals
-- Found CURL: /usr/lib/x86_64-linux-gnu/libcurl.so (found version "7.68.0")
-- Using shared libcurl
-- Using static DiscordRPC from Externals
-- Could NOT find SYSTEMD (missing: SYSTEMD_LIBRARIES SYSTEMD_INCLUDE_DIRS)
-- libsystemd not found, disabling traversal server watchdog support
-- Using static gtest from Externals
-- Could NOT find OpenSLES (missing: OPENSLES_LIBRARY OPENSLES_INCLUDE_DIR)
-- ALSA found, enabling ALSA sound backend
-- PulseAudio found, enabling PulseAudio sound backend
-- Found BlueZ: /usr/lib/x86_64-linux-gnu/libbluetooth.so
-- BlueZ found, enabling bluetooth support
-- Found Qt version 5.12.5
-- Configuring done
-- Generating done
-- Build files have been written to: /home/jojo/dolphin/build
Updated by Techjar almost 5 years ago
Interesting, I did notice a mistake in the code there, but it looks like you have Xrandr so you shouldn't be encountering this error. Regardless, can you pull the code from this PR and see if it compiles? https://github.com/dolphin-emu/dolphin/pull/8810
Updated by JojoDojo almost 5 years ago
Techjar wrote:
Interesting, I did notice a mistake in the code there, but it looks like you have Xrandr so you shouldn't be encountering this error. Regardless, can you pull the code from this PR and see if it compiles? https://github.com/dolphin-emu/dolphin/pull/8810
Will do. Will update you either on Github or here if it compiles.
Updated by JojoDojo almost 5 years ago
Techjar wrote:
Interesting, I did notice a mistake in the code there, but it looks like you have Xrandr so you shouldn't be encountering this error. Regardless, can you pull the code from this PR and see if it compiles? https://github.com/dolphin-emu/dolphin/pull/8810
/home/jojo/dolphin/Source/Core/UICommon/UICommon.cpp:400: error: unterminated #else
400 | #if defined(HAVE_XRANDR) && HAVE_XRANDR
|
/home/jojo/dolphin/Source/Core/UICommon/UICommon.cpp:399: error: unterminated #if
399 | #if defined(HAVE_XRANDR) && HAVE_X11
|
/home/jojo/dolphin/Source/Core/UICommon/UICommon.cpp:401:47: error: expected initializer at end of input
401 | void EnableScreenSaver(Window win, bool enable)
| ^
/home/jojo/dolphin/Source/Core/UICommon/UICommon.cpp:401:47: error: expected ‘}’ at end of input
/home/jojo/dolphin/Source/Core/UICommon/UICommon.cpp:53:1: note: to match this ‘{’
53 | {
| ^
make[2]: *** [Source/Core/UICommon/CMakeFiles/uicommon.dir/build.make:193: Source/Core/UICommon/CMakeFiles/uicommon.dir/UICommon.cpp.o] Error 1
make[1]: *** [CMakeFiles/Makefile2:1624: Source/Core/UICommon/CMakeFiles/uicommon.dir/all] Error 2
make: *** [Makefile:152: all] Error 2
I might have modified the source code incorrectly but I doubt it. This is the error message that came up.
Updated by Techjar almost 5 years ago
Yeah looks like you copied the entire diff into the source. Just pull the latest master, the PR is merged now.
Updated by JojoDojo almost 5 years ago
Techjar wrote:
Yeah looks like you copied the entire diff into the source. Just pull the latest master, the PR is merged now.
sorry for late reply.
/home/jojo/dolphin/Source/Core/DolphinQt/MainWindow.cpp:29:10: fatal error: qpa/qplatformnativeinterface.h: No such file or directory
29 | #include <qpa/qplatformnativeinterface.h>
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
compilation terminated.
make[2]: *** [Source/Core/DolphinQt/CMakeFiles/dolphin-emu.dir/build.make:361: Source/Core/DolphinQt/CMakeFiles/dolphin-emu.dir/MainWindow.cpp.o] Error 1
make[1]: *** [CMakeFiles/Makefile2:1904: Source/Core/DolphinQt/CMakeFiles/dolphin-emu.dir/all] Error 2
make: *** [Makefile:152: all] Error 2
This is the cmake .. output:
-- Detected architecture: x86_64
-- Xrandr found
-- X11 support enabled
-- EGL OpenGL interface enabled
-- Found avcodec: /usr/include/x86_64-linux-gnu /usr/lib/x86_64-linux-gnu/libavcodec.so
-- Found avformat: /usr/include/x86_64-linux-gnu /usr/lib/x86_64-linux-gnu/libavformat.so
-- Found avutil: /usr/include/x86_64-linux-gnu /usr/lib/x86_64-linux-gnu/libavutil.so
-- Found swresample: /usr/include/x86_64-linux-gnu /usr/lib/x86_64-linux-gnu/libswresample.so
-- Found swscale: /usr/include/x86_64-linux-gnu /usr/lib/x86_64-linux-gnu/libswscale.so
-- libav/ffmpeg found, enabling AVI frame dumps
-- 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)
CMake Warning at CMakeLists.txt:535 (find_package):
By not providing "Findfmt.cmake" in CMAKE_MODULE_PATH this project has
asked CMake to find a package configuration file provided by "fmt", but
CMake did not find one.
Could not find a package configuration file provided by "fmt" (requested
version 6.0) with any of the following names:
fmtConfig.cmake
fmt-config.cmake
Add the installation prefix of "fmt" to CMAKE_PREFIX_PATH or set "fmt_DIR"
to a directory containing one of the above files. If "fmt" provides a
separate development package or SDK, be sure it has been installed.
-- Using static fmt from Externals
-- Version: 6.1.2
-- Build type: Release
-- CXX_STANDARD: 11
-- Could NOT find pugixml (missing: pugixml_LIBRARIES pugixml_INCLUDE_DIRS)
-- Using static pugixml from Externals
-- Using static enet from Externals
-- Using static xxhash from Externals
-- Could NOT find BZip2 (missing: BZIP2_LIBRARIES BZIP2_INCLUDE_DIR)
-- Shared bzip2 not found, falling back to the static library
-- Could NOT find LibLZMA (missing: LIBLZMA_LIBRARY LIBLZMA_HAS_AUTO_DECODER LIBLZMA_HAS_EASY_ENCODER LIBLZMA_HAS_LZMA_PRESET) (found version "5.2.4")
-- Shared lzma not found, falling back to the static library
-- Using shared zlib
-- Checking for module 'minizip>=2.0.0'
-- No package 'minizip' found
-- Shared minizip not found, falling back to the static library
-- Using shared lzo
-- Using shared libpng
-- Using static FreeSurround from Externals
-- Could NOT find CUBEB (missing: CUBEB_INCLUDE_DIR CUBEB_LIBRARY)
-- Using static cubeb from Externals
-- Using shared LibUSB
-- Found SFML 2.5 in /usr/include
-- Using shared SFML
-- Using shared miniupnpc
-- Using shared mbed TLS
-- Using shared libcurl
-- Using static DiscordRPC from Externals
-- Could NOT find SYSTEMD (missing: SYSTEMD_LIBRARIES SYSTEMD_INCLUDE_DIRS)
-- libsystemd not found, disabling traversal server watchdog support
-- Using static gtest from Externals
-- Could NOT find OpenSLES (missing: OPENSLES_LIBRARY OPENSLES_INCLUDE_DIR)
-- ALSA found, enabling ALSA sound backend
-- PulseAudio found, enabling PulseAudio sound backend
-- BlueZ found, enabling bluetooth support
-- Found Qt version 5.12.5
-- Configuring done
-- Generating done
-- Build files have been written to: /home/jojo/dolphin/build
Updated by Techjar almost 5 years ago
Alright, that's a completely different error. What distro are you running?
Updated by Techjar almost 5 years ago
If you're on Debian/Ubuntu, you need to install qtbase5-private-dev
Updated by JojoDojo almost 5 years ago
Techjar wrote:
If you're on Debian/Ubuntu, you need to install qtbase5-private-dev
Sorry for the late reply. I installed the package and it compiled successfully, thank you.
Updated by Billiard26 almost 5 years ago
- Status changed from New to Fixed
- Fixed in set to 5.0-12026