xiruibing / javachromiumembedded

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

Compile errors on Mac with latest (apparent typo introduced by #33 in revision 24) #37

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. Get the latest (revision 25), compile on Mac

What is the expected output? What do you see instead?
CefContext.cpp doesn't build

What version of the product are you using? On what operating system?
Latest - revision 25

Please provide any additional information below.

It's a typo with regard to the placement of the if defined(OS_MACOSX). There's 
a mismatch between { and } as a result. See patch though it's probably just as 
easy to fix it in the editor by hand.

BTW can you confirm you are using LLVM GCC 4.2 and not Apple's one?

Original issue reported on code.google.com by christop...@gmail.com on 3 Feb 2014 at 10:09

Attachments:

GoogleCodeExporter commented 9 years ago
Thanks for the report, but your patch is incorrect. Compile error fixed with 
correct changes in revision 26.

Original comment by magreenb...@gmail.com on 5 Feb 2014 at 7:21

GoogleCodeExporter commented 9 years ago
Ack. Are you able to build a release version of the native libraries? I'm able 
to build the debug version only. For the release configuration, the post build 
step "Strip if needed" fails for me on Build target jcef_helper. A simple yes 
or no will be great :-)

Build target jcef_helper

ProcessInfoPlistFile "./xcodebuild/Release/jcef Helper.app/Contents/Info.plist" 
./third_party/cef/macosx64/cefclient/mac/helper-Info.plist
    cd /Users/ccornu/Documents/data/j/jcef/src
    builtin-infoPlistUtility ./third_party/cef/macosx64/cefclient/mac/helper-Info.plist -genpkginfo "/Users/ccornu/Documents/data/j/jcef/src/./xcodebuild/Release/jcef Helper.app/Contents/PkgInfo" -expandbuildsettings -platform macosx -o "/Users/ccornu/Documents/data/j/jcef/src/./xcodebuild/Release/jcef Helper.app/Contents/Info.plist"

CompileC 
./xcodebuild/jcef.build/Release/jcef_helper.build/Objects-normal/x86_64/jcef_hel
per.o native/jcef_helper.cpp normal x86_64 c++ com.apple.compilers.llvmgcc42
    cd /Users/ccornu/Documents/data/j/jcef/src
    setenv LANG en_US.US-ASCII
    /Applications/Xcode.app/Contents/Developer/usr/bin/llvm-gcc-4.2 -x c++ -arch x86_64 -fmessage-length=0 -pipe -Wno-trigraphs -fno-exceptions -fno-rtti -O3 -Werror -Wnewline-eof -DANGLE_DX11 -DCHROMIUM_BUILD -DUSE_LIBJPEG_TURBO=1 -DENABLE_ONE_CLICK_SIGNIN -DENABLE_REMOTING=1 -DENABLE_WEBRTC=1 -DENABLE_PEPPER_CDMS -DENABLE_CONFIGURATION_POLICY -DENABLE_INPUT_SPEECH -DENABLE_NOTIFICATIONS -DENABLE_HIDPI=1 -DENABLE_EGLIMAGE=1 -DENABLE_TASK_MANAGER=1 -DENABLE_EXTENSIONS=1 -DENABLE_PLUGIN_INSTALLATION=1 -DENABLE_PLUGINS=1 -DENABLE_SESSION_SERVICE=1 -DENABLE_THEMES=1 -DENABLE_AUTOFILL_DIALOG=1 -DENABLE_BACKGROUND=1 -DENABLE_AUTOMATION=1 -DENABLE_GOOGLE_NOW=1 -DCLD_VERSION=2 -DENABLE_FULL_PRINTING=1 -DENABLE_PRINTING=1 -DENABLE_SPELLCHECK=1 -DENABLE_CAPTIVE_PORTAL_DETECTION=1 -DENABLE_APP_LIST=1 -DENABLE_SETTINGS_APP=1 -DENABLE_MANAGED_USERS=1 -DUSING_CEF_SHARED -D__STDC_CONSTANT_MACROS -D__STDC_FORMAT_MACROS -DNDEBUG -DNVALGRIND -DDYNAMIC_ANNOTATIONS_ENABLED=0 -D_FORTIFY_SOURCE=2 -isysroot /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.7.sdk -mmacosx-version-min=10.6 -gdwarf-2 -fvisibility=hidden -fvisibility-inlines-hidden -fno-threadsafe-statics -I/Users/ccornu/Documents/data/j/jcef/src/xcodebuild/Release/include -I. -Ithird_party/cef/macosx64 -I/Users/ccornu/Documents/data/j/jcef/src/./xcodebuild/jcef.build/Release/jcef_helper.build/DerivedSources/x86_64 -I/Users/ccornu/Documents/data/j/jcef/src/./xcodebuild/jcef.build/Release/jcef_helper.build/DerivedSources -Wall -Wendif-labels -Wextra -Wno-unused-parameter -Wno-missing-field-initializers -F/Users/ccornu/Documents/data/j/jcef/src/xcodebuild/Release -fno-strict-aliasing -c /Users/ccornu/Documents/data/j/jcef/src/native/jcef_helper.cpp -o /Users/ccornu/Documents/data/j/jcef/src/./xcodebuild/jcef.build/Release/jcef_helper.build/Objects-normal/x86_64/jcef_helper.o

Ld "./xcodebuild/Release/jcef Helper.app/Contents/MacOS/jcef Helper" normal 
x86_64
    cd /Users/ccornu/Documents/data/j/jcef/src
    setenv MACOSX_DEPLOYMENT_TARGET 10.6
    /Applications/Xcode.app/Contents/Developer/usr/bin/llvm-g++-4.2 -arch x86_64 -isysroot /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.7.sdk -L/Users/ccornu/Documents/data/j/jcef/src/xcodebuild/Release -L/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.7.sdk/System/Library/Frameworks -Lthird_party/cef/macosx64/Release -F/Users/ccornu/Documents/data/j/jcef/src/xcodebuild/Release -filelist "/Users/ccornu/Documents/data/j/jcef/src/./xcodebuild/jcef.build/Release/jcef_helper.build/Objects-normal/x86_64/jcef Helper.LinkFileList" -mmacosx-version-min=10.6 -dead_strip -Wl,-search_paths_first -Wl,-ObjC -Wl,-pie /Users/ccornu/Documents/data/j/jcef/src/third_party/cef/macosx64/xcodebuild/Release/libcef_dll_wrapper.a -framework AppKit -lcef -o "/Users/ccornu/Documents/data/j/jcef/src/./xcodebuild/Release/jcef Helper.app/Contents/MacOS/jcef Helper"

PhaseScriptExecution "Postbuild \"Fix Framework Link\"" 
./xcodebuild/jcef.build/Release/jcef_helper.build/Script-213024CF2B2594275141F09
1.sh
    cd /Users/ccornu/Documents/data/j/jcef/src
    /bin/sh -c /Users/ccornu/Documents/data/j/jcef/src/./xcodebuild/jcef.build/Release/jcef_helper.build/Script-213024CF2B2594275141F091.sh

PhaseScriptExecution "Postbuild \"Change Mach-O Flags\"" 
./xcodebuild/jcef.build/Release/jcef_helper.build/Script-A543731CC89BD4BC2510964
1.sh
    cd /Users/ccornu/Documents/data/j/jcef/src
    /bin/sh -c /Users/ccornu/Documents/data/j/jcef/src/./xcodebuild/jcef.build/Release/jcef_helper.build/Script-A543731CC89BD4BC25109641.sh

PhaseScriptExecution "Postbuild \"Strip If Needed\"" 
./xcodebuild/jcef.build/Release/jcef_helper.build/Script-96A927E9C987A9DE4CFD9A3
3.sh
    cd /Users/ccornu/Documents/data/j/jcef/src
    /bin/sh -c /Users/ccornu/Documents/data/j/jcef/src/./xcodebuild/jcef.build/Release/jcef_helper.build/Script-96A927E9C987A9DE4CFD9A33.sh

Traceback (most recent call last):
  File "/Users/ccornu/Documents/data/j/jcef/src/third_party/cef/macosx64/tools/strip_save_dsym", line 341, in <module>
    sys.exit(main(sys.argv))
  File "/Users/ccornu/Documents/data/j/jcef/src/third_party/cef/macosx64/tools/strip_save_dsym", line 335, in main
    if not strip_and_make_fake_dsym(macho):
  File "/Users/ccornu/Documents/data/j/jcef/src/third_party/cef/macosx64/tools/strip_save_dsym", line 273, in strip_and_make_fake_dsym
    if not make_fake_dsym(macho, dsym):
  File "/Users/ccornu/Documents/data/j/jcef/src/third_party/cef/macosx64/tools/strip_save_dsym", line 196, in make_fake_dsym
    uuids = macho_uuids(macho)
  File "/Users/ccornu/Documents/data/j/jcef/src/third_party/cef/macosx64/tools/strip_save_dsym", line 98, in macho_uuids
    stdout=subprocess.PIPE)
  File "/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/subprocess.py", line 679, in __init__
  File "/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/subprocess.py", line 1228, in _execute_child
OSError: [Errno 2] No such file or directory

Original comment by christop...@gmail.com on 5 Feb 2014 at 8:42