• Login
  • Register
  • Dolphin Forums
  • Home
  • FAQ
  • Download
  • Wiki
  • Code


Dolphin, the GameCube and Wii emulator - Forums › Dolphin Emulator Discussion and Support › Development Discussion v
« Previous 1 2 3 4 5 ... 116 Next »

Trying to build Dolphin for Mac using GitHub Actions
View New Posts | View Today's Posts

Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Thread Modes
Trying to build Dolphin for Mac using GitHub Actions
03-20-2022, 07:41 AM
#1
BuildMyDolphin Offline
Junior Member
**
Posts: 4
Threads: 1
Joined: Mar 2022
Hey! I'm trying to build Dolphin for MacOS 10.x.x, 11.x.x and 12.x.x

However, I keep getting this error:

Code:
CMake Error at Source/Core/DolphinQt/CMakeLists.txt:9 (find_package):
  By not providing "FindQt5.cmake" in CMAKE_MODULE_PATH this project has
  asked CMake to find a package configuration file provided by "Qt5", but
  CMake did not find one.

  Could not find a package configuration file provided by "Qt5" (requested
  version 5.9) with any of the following names:

    Qt5Config.cmake
    qt5-config.cmake

  Add the installation prefix of "Qt5" to CMAKE_PREFIX_PATH or set "Qt5_DIR"
  to a directory containing one of the above files.  If "Qt5" provides a
  separate development package or SDK, be sure it has been installed.


-- Configuring incomplete, errors occurred!
See also "/Users/runner/work/dolphin/dolphin/build/x86_64/CMakeFiles/CMakeOutput.log".
See also "/Users/runner/work/dolphin/dolphin/build/x86_64/CMakeFiles/CMakeError.log".
Traceback (most recent call last):
Building config:
{
  File "/Users/runner/work/dolphin/dolphin/build/../BuildMacOSUniversalBinary.py", line 367, in <module>
    "build_target": "ALL_BUILD",
    "generator": "Unix Makefiles",
    "build_type": "Release",
    "dst_app": "universal/",
    "entitlements": "../Source/Core/DolphinQt/DolphinEmu.entitlements",
    "run_unit_tests": false,
    "codesign_identity": "-",
    "x86_64_cmake_prefix": "/usr/local",
    "x86_64_qt5_path": "/usr/local/opt/qt5",
    "x86_64_mac_os_deployment_target": "10.13.0",
    "arm64_cmake_prefix": "/opt/homebrew",
    "arm64_qt5_path": "/opt/homebrew/opt/qt5",
    "arm64_mac_os_deployment_target": "11.0.0"
}
    build(conf)
  File "/Users/runner/work/dolphin/dolphin/build/../BuildMacOSUniversalBinary.py", line 276, in build
    subprocess.check_call([
  File "/usr/local/Cellar/python@3.9/3.9.10/Frameworks/Python.framework/Versions/3.9/lib/python3.9/subprocess.py", line 373, in check_call
    raise CalledProcessError(retcode, cmd)
subprocess.CalledProcessError: Command '['cmake', '../../', '-G', 'Unix Makefiles', '-DCMAKE_BUILD_TYPE=Release', '-DCMAKE_CXX_FLAGS="-DMACOS_UNIVERSAL_BUILD=1"', '-DCMAKE_C_FLAGS="-DMACOS_UNIVERSAL_BUILD=1"', '-DCMAKE_SYSTEM_NAME=Darwin', '-DCMAKE_PREFIX_PATH=/usr/local', '-DCMAKE_SYSTEM_PROCESSOR=x86_64', '-DCMAKE_IGNORE_PATH=/opt/homebrew', '-DCMAKE_OSX_DEPLOYMENT_TARGET=10.13.0', '-DMACOS_CODE_SIGNING_IDENTITY=-', '-DMACOS_CODE_SIGNING_IDENTITY_UPDATER=-', '-DMACOS_CODE_SIGNING="ON"']' returned non-zero exit status 1.
Error: Process completed with exit code 1.

This also happens when trying to build on my M1 Mac itself except on my Mac, I get this error:

Code:
CMake Error at Source/Core/DolphinQt/CMakeLists.txt:519 (get_target_property):
  get_target_property() called with non-existent target
  "Qt5::QCocoaIntegrationPlugin".


CMake Error at Source/Core/DolphinQt/CMakeLists.txt:523 (get_target_property):
  get_target_property() called with non-existent target
  "Qt5::QMacStylePlugin".

Could somebody help?

Workflow File
Find
Reply
03-20-2022, 02:59 PM
#2
KHg8m3r Offline
Doesn't sleep, just Dolphin and Robots
*******
Posts: 5,934
Threads: 4
Joined: Sep 2013
Your error is missing Qt5 dependencies. Your Github Actions seems to be missing the QT5 install. IDK how you setup QT5 in Github Actions.

If you build locally on you Mac, follow this https://github.com/dolphin-emu/dolphin/wiki/Building-for-macOS
Find
Reply
03-22-2022, 04:00 AM
#3
BuildMyDolphin Offline
Junior Member
**
Posts: 4
Threads: 1
Joined: Mar 2022
Hello! Thanks, I tried this set of commands (on my local machine):

Code:
export Qt5_DIR=/Users/[myuser]/Qt5.12.12/5.12.12/clang_64/lib/cmake/Qt5/Qt5Config.cmake
export PATH=$PATH:$Qt5_DIR
mkdir -p build            
cd build
cmake ..
make

But I still got this error:

Code:
CMake Error at Source/Core/DolphinQt/CMakeLists.txt:519 (get_target_property):
  get_target_property() called with non-existent target
  "Qt5::QCocoaIntegrationPlugin".


CMake Error at Source/Core/DolphinQt/CMakeLists.txt:523 (get_target_property):
  get_target_property() called with non-existent target
  "Qt5::QMacStylePlugin"
Find
Reply
03-22-2022, 04:06 AM
#4
BuildMyDolphin Offline
Junior Member
**
Posts: 4
Threads: 1
Joined: Mar 2022
Nevermind, I actually had the Homebrew version of qt5 instead of the offline installer one.
Find
Reply
« Next Oldest | Next Newest »


  • View a Printable Version
  • Subscribe to this thread
Forum Jump:


Users browsing this thread: 1 Guest(s)



Powered By MyBB | Theme by Fragma

Linear Mode
Threaded Mode