google / mozc

Mozc - a Japanese Input Method Editor designed for multi-platform
Other
2.38k stars 343 forks source link

failed to build Mozc.app #430

Closed ivan05095 closed 3 years ago

ivan05095 commented 6 years ago

Ivans-MacBook-Pro:src ivan$ python build_mozc.py build -c Release mac/mac.gyp:GoogleJapaneseInput mac/mac.gyp:gen_launchd_confs INFO: Running: ninja -C out_mac/Release GoogleJapaneseInput gen_launchd_confs Traceback (most recent call last): File "build_mozc.py", line 1239, in main() File "build_mozc.py", line 1226, in main BuildMain(cmd_opts, cmd_args) File "build_mozc.py", line 857, in BuildMain BuildWithNinja(options, targets) File "build_mozc.py", line 831, in BuildWithNinja RunOrDie([ninja, '-C', build_arg] + ninja_targets) File "/Users/ivan/work/mozc/src/build_tools/util.py", line 92, in RunOrDie process = subprocess.Popen(argv) File "/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/subprocess.py", line 710, in init errread, errwrite) File "/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/subprocess.py", line 1335, in _execute_child raise child_exception OSError: [Errno 2] No such file or directory

when i am building the app for mac it shows likes these? how do i solve it? thanks

ghost commented 6 years ago

This is the same problem I also get, but for unix/ibus/... targets.

ikegami-yukino commented 5 years ago

On macOS 10.14 (Mojave), I also failed to build Mozc.app. But I got the wrong error message.

$ GYP_DEFINES="mac_sdk=10.14 mac_deployment_target=10.9" python build_mozc.py gyp --noqt
$ python build_mozc.py build -c Release mac/mac.gyp:GoogleJapaneseInput mac/mac.gyp:gen_launchd_confs
...
[90/821] MACTOOL copy-bundle-resource ../../mac/Japanese.lproj/Config.xib
/* com.apple.ibtool.document.warnings */
/work/mozc_org/src/mac/Japanese.lproj/Config.xib:global: warning: This file is set to build for a version older than the deployment target. Functionality may be limited. [9]
/* com.apple.ibtool.document.errors */
/work/mozc_org/src/mac/Japanese.lproj/Config.xib:global: error: Compiling for earlier than macOS 10.6 is no longer supported. [12]
ninja: build stopped: subcommand failed.
Traceback (most recent call last):
  File "build_mozc.py", line 1236, in <module>
    main()
  File "build_mozc.py", line 1223, in main
    BuildMain(cmd_opts, cmd_args)
  File "build_mozc.py", line 854, in BuildMain
    BuildWithNinja(options, targets)
  File "build_mozc.py", line 828, in BuildWithNinja
    RunOrDie([ninja, '-C', build_arg] + ninja_targets)
  File "/work/mozc_org/src/build_tools/util.py", line 99, in RunOrDie
    '==========']))
build_tools.util.RunOrDieError: 
==========
 ERROR: ninja -C out_mac/Release GoogleJapaneseInput gen_launchd_confs
==========
akirakubo commented 5 years ago

I was able to reproduce the subcommand failure on macOS 10.13.6 (High Sierra) and Xcode 10 with the latest updates.

I opened src/third_party/breakpad/src/client/mac/sender/Breakpad.xib with Xcode and changed "Builds for" setting from "Unknown macOS Version" to any one in the drop down list (I chose "macOS 10.6 and Later"). After that, build passed.

"Builds for" setting

As the error message says, src/mac/{English,Japanese}.lproj/Config.xib seems to have the same problem. It didn't affect passing build, but Mozc input menu items such as "Preferences..." didn't show in the menu bar unless I changed the setting.

No input menu in menu bar

hiroyuki-komatsu commented 3 years ago

Please let us close this issue as obsolete.

Recent versions (e.g. 6ac62d2e888cabb138c8427e6173c04e07bb60e0) should be buildable.