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


Dolphin, the GameCube and Wii emulator - Forums › Dolphin Emulator Discussion and Support › Support v
« Previous 1 ... 229 230 231 232 233 ... 1197 Next »

Error 127 when building dolphin from source [OSX]
View New Posts | View Today's Posts

Thread Rating:
  • 1 Vote(s) - 5 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Thread Modes
Error 127 when building dolphin from source [OSX]
11-03-2018, 07:33 AM
#1
fudgepop01 Offline
Junior Member
**
Posts: 8
Threads: 4
Joined: Dec 2016
I've been dealing with this issue for the past four hours and I can't seem to figure out any way to make this work.

The first error I received was when I followed the standard steps:
1. "git pull <dolphin github link>" into wherever I wanted it to go
2. "mkdir build"
3. "cmake .."

but here it gives me the error

```
CMake Error at /usr/local/lib/cmake/Qt5Core/Qt5CoreConfig.cmake:15 (message):
 The imported target "Qt5::Core" references the file

    "/usr/local/.//mkspecs/macx-clang"

 but this file does not exist. [...]
```

after attempting to install qt5  the standard way (I presumed I was supposed to go to "https://www.qt.io/download" and choose the open source version), I got the same error. 

that's when I resorted to trying to build through the QT-Creator application. This seemed to work initially. It went through and configured CMake properly, but then upon attempting to build the default configuration, it decided to fail at ~82% completion here:

```
[color=#0000aa]17:20:06: Starting: "/Applications/CMake.app/Contents/bin/cmake" --build . --target all[/color]
[color=#000000][ 1%] Built target bdisasm[/color]
[color=#000000][ 1%] Built target cpp-optparse[/color]
[color=#000000][ 5%] Built target glslang[/color]
[color=#000000][ 5%] Built target pugixml[/color]
[color=#000000][ 6%] Built target enet[/color]
[color=#000000][ 7%] Built target xxhash[/color]
[color=#000000][ 7%] Built target lzo2[/color]
[color=#000000][ 9%] Built target png[/color]
[color=#000000][ 10%] Built target SoundTouch[/color]
[color=#000000][ 10%] Built target sfml-system[/color]
[color=#000000][ 11%] Built target sfml-network[/color]
[color=#000000][ 13%] Built target miniupnpc[/color]
[color=#000000][ 13%] Built target discord-rpc[/color]
[color=#000000][ 15%] Built target speex[/color]
[color=#000000][ 16%] Built target cubeb[/color]
[color=#000000][ 17%] Built target audiocommon[/color]
[color=#000000][ 23%] Built target mbedcrypto[/color]
[color=#000000][ 24%] Built target mbedx509[/color]
[color=#000000][ 25%] Built target mbedtls[/color]
[color=#000000][ 32%] Built target common[/color]
[color=#000000][ 32%] Built target traversal_server[/color]
[color=#000000][ 35%] Built target discio[/color]
[color=#000000][ 36%] Built target usb[/color]
[color=#000000][ 36%] Built target hidapi[/color]
[color=#000000][ 39%] Built target inputcommon[/color]
[color=#000000][ 41%] Built target videosoftware[/color]
[color=#000000][ 41%] Built target videonull[/color]
[color=#000000][ 44%] Built target videoogl[/color]
[color=#000000][ 51%] Built target videocommon[/color]
[color=#000000][ 81%] Built target core[/color]
[color=#000000][ 82%] Built target uicommon[/color]
[color=#000000][ 82%] Automatic MOC for target dolphin-emu[/color]
[color=#000000][ 82%] Built target dolphin-emu_autogen[/color]
[color=#000000][ 82%] Generating zh_TW/dolphin-emu.mo[/color]
[color=#aa0000]/bin/sh: cmake: command not found[/color]
[color=#aa0000]make[2]: *** [Source/Core/DolphinQt/zh_TW/dolphin-emu.mo] Error 127        <--- this is supposedly the root of the issue according to the creator[/color]
[color=#aa0000]make[1]: *** [Source/Core/DolphinQt/CMakeFiles/dolphin-emu.dir/all] Error 2[/color]
[color=#aa0000]make: *** [all] Error 2[/color]
[color=#aa0000]17:20:08: The process "/Applications/CMake.app/Contents/bin/cmake" exited with code 2.[/color]
[color=#aa0000]Error while building/deploying project dolphin-emu (kit: Desktop Qt 5.12.0 clang 64bit)[/color]
[color=#aa0000]When executing step "CMake Build"[/color]
```

Does anyone have any ideas about how to fix this error?
Find
Reply
11-03-2018, 11:27 AM (This post was last modified: 11-03-2018, 11:27 AM by JonnyH.)
#2
JonnyH Offline
Shameless AMD shill
**********
Developers (Some Administrators and Super Moderators)
Posts: 701
Threads: 0
Joined: May 2017
Yeah, building on mac is a clusterfuck with no standard paths or locations. Welcome to Apple Big Grin

You need to add the CMake binary directory to your environment's PATH. Cmake ends up making new cmake instances to deal with cross compilation - even if you don't happen to be using that here it's still required.

Installing cmake through homebrew, for example, installs it to a location already in your PATH.

As for the qt error, I know using the homebrew qt install you have to run cmake with "-DCMAKE_PREFIX_PATH=$(brew --prefix qt5)" - that expands to a directory where the file "mkspecs/macx-clang" exists. Does a similar path exist in the version of QT you installed? If so setting the CMAKE_PREFIX_PATH accordingly may help?

(For example, $(brew --prefix qt5) on my machine returns "/usr/local/opt/qt" - so the full path for the missing file is "/usr/local/opt/qt/mkspecs/macx-clang" - so you should just set it to the path that contains the "mkspecs" folder, not the whole path to the macx-clang file itself)
Find
Reply
11-03-2018, 12:15 PM
#3
fudgepop01 Offline
Junior Member
**
Posts: 8
Threads: 4
Joined: Dec 2016
(11-03-2018, 11:27 AM)JonnyH Wrote: Yeah, building on mac is a clusterfuck with no standard paths or locations. Welcome to Apple Big Grin

You need to add the CMake binary directory to your environment's PATH. Cmake ends up making new cmake instances to deal with cross compilation - even if you don't happen to be using that here it's still required.

Installing cmake through homebrew, for example, installs it to a location already in your PATH.

As for the qt error, I know using the homebrew qt install you have to run cmake with "-DCMAKE_PREFIX_PATH=$(brew --prefix qt5)" - that expands to a directory where the file "mkspecs/macx-clang" exists. Does a similar path exist in the version of QT you installed? If so setting the CMAKE_PREFIX_PATH accordingly may help?

(For example, $(brew --prefix qt5) on my machine returns "/usr/local/opt/qt" - so the full path for the missing file is "/usr/local/opt/qt/mkspecs/macx-clang" - so you should just set it to the path that contains the "mkspecs" folder, not the whole path to the macx-clang file itself)

LMFAO normally I love developing on a mac for web development (webassembly is really cool) because i'm a MACochist but this is just too much. This is where I'm currently at

```
[...]

[color=#000000][ 31%] Building CXX object Source/Core/Common/CMakeFiles/common.dir/Version.cpp.o[/color]
[color=#000000][ 31%] Building CXX object Source/Core/Common/CMakeFiles/common.dir/Logging/ConsoleListenerNix.cpp.o[/color]
[color=#000000][ 31%] Building CXX object Source/Core/Common/CMakeFiles/common.dir/x64ABI.cpp.o[/color]
[color=#000000][ 31%] Building CXX object Source/Core/Common/CMakeFiles/common.dir/x64Emitter.cpp.o[/color]
[color=#000000][ 31%] Building CXX object Source/Core/Common/CMakeFiles/common.dir/x64FPURoundMode.cpp.o[/color]
[color=#000000][ 31%] Building CXX object Source/Core/Common/CMakeFiles/common.dir/x64CPUDetect.cpp.o[/color]
[color=#000000][ 31%] Building CXX object Source/Core/Common/CMakeFiles/common.dir/GL/GLUtil.cpp.o[/color]
[color=#000000][ 31%] Building CXX object Source/Core/Common/CMakeFiles/common.dir/GL/GLExtensions/GLExtensions.cpp.o[/color]
[color=#000000][ 31%] Building CXX object Source/Core/Common/CMakeFiles/common.dir/GL/GLContext.cpp.o[/color]
[color=#000000][ 31%] Building CXX object Source/Core/Common/CMakeFiles/common.dir/GL/GLInterface/AGL.mm.o[/color]
[color=#000000][ 32%] Linking CXX static library libcommon.a[/color]
[color=#000000][ 32%] Built target common[/color]
[color=#000000]Scanning dependencies of target traversal_server[/color]
[color=#000000][ 32%] Building CXX object Source/Core/Common/CMakeFiles/traversal_server.dir/TraversalServer.cpp.o[/color]
[color=#aa0000]make[2]: *** No rule to make target `/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.13.sdk/System/Library/Frameworks/AppKit.framework', needed by `Binaries/traversal_server'. Stop.[/color]
[color=#aa0000]make[1]: *** [Source/Core/Common/CMakeFiles/traversal_server.dir/all] Error 2[/color]
[color=#aa0000]make: *** [all] Error 2[/color]
[color=#aa0000]22:07:15: The process "/Applications/CMake.app/Contents/bin/cmake" exited with code 2.[/color]
[color=#aa0000]Error while building/deploying project dolphin-emu (kit: Desktop Qt 5.12.0 clang 64bit)[/color]
[color=#aa0000]When executing step "CMake Build"[/color]
[color=#0000aa]22:07:15: Elapsed time: 02:28.[/color]
[color=#0000aa]```[/color]

[color=#333333]for some ungodly reason it appears we went back in time to where it only gets to this step in the compilation process. This is for any of the configurations. It goes this far in both VSCode and QTCreator. It looks like it has something to do with dlls and CMake rules, - but - because I'm a filthy web developer I don't have much knowledge about cmake configurations at this point in time. Any idea what I should do?[/color]
p, li { white-space: pre-wrap; }
Find
Reply
11-03-2018, 12:35 PM
#4
fudgepop01 Offline
Junior Member
**
Posts: 8
Threads: 4
Joined: Dec 2016
I might actually be dumb. It appears that I updated my XCode between now and when this started. As such, I'd imagine i'll need to redownload the files from git and have the linker go through and relink everything and etc.

Oh well, I'mma go switch to Mojave and see what happens. Weeeeeeeeee
Find
Reply
11-04-2018, 10:11 AM
#5
JonnyH Offline
Shameless AMD shill
**********
Developers (Some Administrators and Super Moderators)
Posts: 701
Threads: 0
Joined: May 2017
If you updated the compiler or any part of the toolchain, it should be sufficient to completely remove the cmake output directory and run the config again. You should never need to "redownload" from git, as the local git repository contains all the data needed to restore the exact same versions as upstream.
Find
Reply
« Next Oldest | Next Newest »


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


Users browsing this thread: 2 Guest(s)



Powered By MyBB | Theme by Fragma

Linear Mode
Threaded Mode