Santhu / mozc

Automatically exported from code.google.com/p/mozc
0 stars 0 forks source link

Build fail on Mac OSX #166

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
Running: xcodebuild -project 
./build_tools/primitive_tools/primitive_tools.xcodeproj -configuration Release 
-target primitive_tools -parallelizeTargets BUILD_WITH_GYP=1
Build settings from command line:
    BUILD_WITH_GYP = 1

=== BUILD NATIVE TARGET storage OF PROJECT storage WITH CONFIGURATION Release 
===
Check dependencies
error: There is no SDK with the name or path 
'/Users/user/src/mozc/src/base/macosx10.5'

=== BUILD NATIVE TARGET base OF PROJECT base WITH CONFIGURATION Release ===
Check dependencies
error: There is no SDK with the name or path 
'/Users/user/src/mozc/src/base/macosx10.5'

** BUILD FAILED **

The following build commands failed:
    Check dependencies
    Check dependencies
(2 failures)
Traceback (most recent call last):
  File "build_mozc.py", line 1414, in <module>
    main()
  File "build_mozc.py", line 1399, in main
    BuildToolsMain(cmd_opts, cmd_args, original_directory_name)
  File "build_mozc.py", line 963, in BuildToolsMain
    BuildMain(options, ['%s:%s' % (gyp_file, target)], original_directory_name)
  File "build_mozc.py", line 1171, in BuildMain
    BuildOnMac(options, targets, original_directory_name)
  File "build_mozc.py", line 1021, in BuildOnMac
    'BUILD_WITH_GYP=1'])
  File "/Users/user/src/mozc/src/build_tools/util.py", line 98, in RunOrDie
    '==========']))
build_tools.util.RunOrDieError: 
==========
 ERROR: xcodebuild -project ./build_tools/primitive_tools/primitive_tools.xcodeproj -configuration Release -target primitive_tools -parallelizeTargets BUILD_WITH_GYP=1
==========

and i got the error when i sync

>svn: OPTIONS of 'https://zinnia.svn.sourceforge.net/svnroot/zinnia/zinnia': 
Server certificate verification failed: issuer is not trusted 
(https://zinnia.svn.sourceforge.net)

Original issue reported on code.google.com by m...@nzwsch.info on 23 Jun 2012 at 1:36

GoogleCodeExporter commented 9 years ago
Thank you for the report.

Regarding build failure, the target SDK version is currently hard coded at the 
following line to build binaries which can support Mac OS X Leopard (10.5).
http://code.google.com/p/mozc/source/browse/trunk/src/gyp/common.gypi?r=115#777

If you want to build Mozc on Mac, you need to
a. install Mac OS X SDK 10.5 into your build environment, or
b. manually update the above line with some SDK version that is available on 
you build environment.

Issue 80 might be a similar topic.

Regarding the certificate verification error, can you try if the following 
instruction resolves your problem?
http://sourceforge.net/apps/trac/sourceforge/wiki/Subversion#ServerCertificateVe
rificationFailed

Thanks,

Original comment by yukawa@google.com on 23 Jun 2012 at 2:01

GoogleCodeExporter commented 9 years ago
Thanks for the tip and quick reply :-)
i replaced macosx10.5 to 
SDKROOT='/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/De
veloper/SDKs/MacOSX10.7.sdk/'
 (http://stackoverflow.com/a/9852177)

it seems another error. hope this helps.

Original comment by m...@nzwsch.info on 23 Jun 2012 at 2:43

Attachments:

GoogleCodeExporter commented 9 years ago
Yeah I saw the exactly same errors when I tried Clang compiler to build Mozc on 
Linux a couple of weeks before. I have already fixed them in our internal 
repository and the next release is expected to resolve these issues.

As a quick workaround for r115, can you try again after removing the following 
"-Werror" option?
http://code.google.com/p/mozc/source/browse/trunk/src/gyp/common.gypi?r=115#49

Thanks,

Original comment by yukawa@google.com on 23 Jun 2012 at 3:08

GoogleCodeExporter commented 9 years ago
passed build_tools, now i couldn't build.
so i tried several times, i got different errors.
first one is without qt.
second is perhaps forgot installing qt?
last one is installed qt and set locale us-ascii to utf-8

thanks in advice,

Original comment by m...@nzwsch.info on 23 Jun 2012 at 3:57

Attachments:

GoogleCodeExporter commented 9 years ago
Regarding first one (log.txt), I found that we actually received the same 
report as Issue 91. Please replace the
  SetRect(&rect, 0, 0, 1, 1);
in 
http://code.google.com/p/mozc/source/browse/trunk/src/renderer/mac/RendererBaseW
indow.mm#122 with
  rect.top = 0; rect.left = 0; rect.right = 1; rect.bottom = 1;

I don't know well about Qt enabled build on Mac so let me update later.
Thanks!

Original comment by yukawa@google.com on 23 Jun 2012 at 5:07

GoogleCodeExporter commented 9 years ago
We did it! final part was successful. thanks a lot. I don't care using qt 
whatever I installed it by homebrew, it's simple and pretty neat. 
これが成功の証です。keep up the great work.

Regards,

Original comment by m...@nzwsch.info on 23 Jun 2012 at 5:35

GoogleCodeExporter commented 9 years ago
Yey, glad to hear that.

Original comment by yukawa@google.com on 23 Jun 2012 at 5:39

GoogleCodeExporter commented 9 years ago
[deleted comment]
GoogleCodeExporter commented 9 years ago
[deleted comment]
GoogleCodeExporter commented 9 years ago
r131 contains that fix.

Original comment by yukawa@google.com on 28 Mar 2013 at 5:47