Bug 56517 - cerbero bootstrap failed on Mac os x 10.8.2
Summary: cerbero bootstrap failed on Mac os x 10.8.2
Status: RESOLVED FIXED
Alias: None
Product: GStreamer SDK
Classification: Unclassified
Component: General (show other bugs)
Version: unspecified
Hardware: x86-64 (AMD64) Mac OS X (All)
: medium normal
Assignee: bugs
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2012-10-29 08:36 UTC by jettatang
Modified: 2014-12-02 13:25 UTC (History)
1 user (show)

See Also:
i915 platform:
i915 features:


Attachments
Fix the issue handling new path for GL headers in 10.8 (924 bytes, patch)
2013-01-18 18:00 UTC, Thibault Saunier
Details | Splinter Review

Description jettatang 2012-10-29 08:36:28 UTC
Base on http://docs.gstreamer.com/display/GstSDK/Installing+on+Mac+OS+X
The recommended system is Mac OS X Lion, So i'm not sure whether this is a bug.

OS: Mac OS X 10.8.2
Python 2.7
cerbero downloaded with "git clone"

where i run "./cerbero-uninstalled bootstrap" the following errors appear:

Traceback (most recent call last):
  File "/usr/local/bin/cerbero", line 8, in <module>
    load_entry_point('cerbero==0.1.0', 'console_scripts', 'cerbero')()
  File "/Library/Python/2.7/site-packages/cerbero-0.1.0-py2.7.egg/cerbero/main.py", line 120, in main
    Main(sys.argv[1:])
  File "/Library/Python/2.7/site-packages/cerbero-0.1.0-py2.7.egg/cerbero/main.py", line 53, in __init__
    self.load_config()
  File "/Library/Python/2.7/site-packages/cerbero-0.1.0-py2.7.egg/cerbero/main.py", line 89, in load_config
    self.config.load(self.args.config)
  File "/Library/Python/2.7/site-packages/cerbero-0.1.0-py2.7.egg/cerbero/config.py", line 100, in load
    self.load_defaults()
  File "/Library/Python/2.7/site-packages/cerbero-0.1.0-py2.7.egg/cerbero/config.py", line 327, in load_defaults
    self.set_property('data_dir', self._find_data_dir())
  File "/Library/Python/2.7/site-packages/cerbero-0.1.0-py2.7.egg/cerbero/config.py", line 378, in _find_data_dir
    raise FatalError("Data dir not found")
cerbero.errors.FatalError: Fatal Error: Data dir not found
Comment 1 jettatang 2012-10-29 08:43:31 UTC
Sorry, change the traceback:

./cerbero-uninstalled bootstrap
WARNING: Using default configuration because /Users/apple/.cerbero/cerbero.cbc is missing
Traceback (most recent call last):
  File "./cerbero/main.py", line 89, in load_config
    self.config.load(self.args.config)
  File "./cerbero/config.py", line 119, in load
    self._load_platform_config()
  File "./cerbero/config.py", line 289, in _load_platform_config
    self.parse(config_path, reset=False)
  File "./cerbero/config.py", line 154, in parse
    filename)
ConfigurationError: Configuration Error: Could not include config file (/Users/apple/Dev/Gstreamer-sdk/cerbero/config/darwin.config)
Configuration Error: Could not include config file (/Users/apple/Dev/Gstreamer-sdk/cerbero/config/darwin.config)
Comment 2 Andoni Morales Alastruey 2012-10-29 19:52:03 UTC
Hi,

Using the default configuration shouldn't throw an exception in any case.
The current traceback when loading the config file fails is not very helpful and that's now fixed upstream. Could you please pull master, run the same command again and post back the traceback so that we can debug what's wrong in the config file?
Comment 3 Andoni Morales Alastruey 2012-10-29 20:04:24 UTC
It looks like the 10.8 SDK install the GL headers in a different place. I can't install this SDK right now you so I would appreciate if you can help us a bit.
Could you please confirm that the following path exists /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.8.sdk/?
Is there any folder named GL in this path?

Thanks
Comment 4 jettatang 2012-10-30 00:37:54 UTC
(In reply to comment #3)
> It looks like the 10.8 SDK install the GL headers in a different place. I
> can't install this SDK right now you so I would appreciate if you can help
> us a bit.
> Could you please confirm that the following path exists
> /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/
> Developer/SDKs/MacOSX10.8.sdk/?
> Is there any folder named GL in this path?
> 
> Thanks

cd /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.8.sdk/ 

find . -name "GL*" (Is this right?)

./System/Library/Frameworks/GLKit.framework
./System/Library/Frameworks/GLKit.framework/GLKit
./System/Library/Frameworks/GLKit.framework/Versions/A/GLKit
./System/Library/Frameworks/GLKit.framework/Versions/A/Headers/GLKBaseEffect.h
./System/Library/Frameworks/GLKit.framework/Versions/A/Headers/GLKEffectProperty.h
./System/Library/Frameworks/GLKit.framework/Versions/A/Headers/GLKEffectPropertyFog.h
./System/Library/Frameworks/GLKit.framework/Versions/A/Headers/GLKEffectPropertyLight.h
./System/Library/Frameworks/GLKit.framework/Versions/A/Headers/GLKEffectPropertyMaterial.h
./System/Library/Frameworks/GLKit.framework/Versions/A/Headers/GLKEffectPropertyTexture.h
./System/Library/Frameworks/GLKit.framework/Versions/A/Headers/GLKEffectPropertyTransform.h
./System/Library/Frameworks/GLKit.framework/Versions/A/Headers/GLKEffects.h
./System/Library/Frameworks/GLKit.framework/Versions/A/Headers/GLKit.h
./System/Library/Frameworks/GLKit.framework/Versions/A/Headers/GLKitBase.h
./System/Library/Frameworks/GLKit.framework/Versions/A/Headers/GLKMath.h
./System/Library/Frameworks/GLKit.framework/Versions/A/Headers/GLKMathTypes.h
./System/Library/Frameworks/GLKit.framework/Versions/A/Headers/GLKMathUtils.h
./System/Library/Frameworks/GLKit.framework/Versions/A/Headers/GLKMatrix3.h
./System/Library/Frameworks/GLKit.framework/Versions/A/Headers/GLKMatrix4.h
./System/Library/Frameworks/GLKit.framework/Versions/A/Headers/GLKMatrixStack.h
./System/Library/Frameworks/GLKit.framework/Versions/A/Headers/GLKNamedEffect.h
./System/Library/Frameworks/GLKit.framework/Versions/A/Headers/GLKQuaternion.h
./System/Library/Frameworks/GLKit.framework/Versions/A/Headers/GLKReflectionMapEffect.h
./System/Library/Frameworks/GLKit.framework/Versions/A/Headers/GLKSkyboxEffect.h
./System/Library/Frameworks/GLKit.framework/Versions/A/Headers/GLKTextureLoader.h
./System/Library/Frameworks/GLKit.framework/Versions/A/Headers/GLKVector2.h
./System/Library/Frameworks/GLKit.framework/Versions/A/Headers/GLKVector3.h
./System/Library/Frameworks/GLKit.framework/Versions/A/Headers/GLKVector4.h
./System/Library/Frameworks/GLUT.framework
./System/Library/Frameworks/GLUT.framework/GLUT
./System/Library/Frameworks/GLUT.framework/Versions/A/GLUT
Comment 5 jettatang 2012-10-30 01:29:07 UTC
I just can find the GL folder in MacOSX10.7 sdk:
/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.7.sdk/usr/X11/include/GL

(In reply to comment #3)
> It looks like the 10.8 SDK install the GL headers in a different place. I
> can't install this SDK right now you so I would appreciate if you can help
> us a bit.
> Could you please confirm that the following path exists
> /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/
> Developer/SDKs/MacOSX10.8.sdk/?
> Is there any folder named GL in this path?
> 
> Thanks
Comment 6 jettatang 2012-10-30 01:36:50 UTC
(In reply to comment #2)
> Hi,
> 
> Using the default configuration shouldn't throw an exception in any case.
> The current traceback when loading the config file fails is not very helpful
> and that's now fixed upstream. Could you please pull master, run the same
> command again and post back the traceback so that we can debug what's wrong
> in the config file?

WARNING: Using default configuration because /Users/apple/.cerbero/cerbero.cbc is missing
Traceback (most recent call last):
  File "./cerbero/utils/__init__.py", line 234, in parse_file
    execfile(filename, dict)
  File "/Users/apple/Dev/Gstreamer-sdk/cerbero/config/darwin.config", line 101, in <module>
    raise Exception ("GL headers path not found: %s" % gl_headers)
Exception: GL headers path not found: /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.8.sdk/usr/X11/include/GL
Configuration Error: Could not include config file (/Users/apple/Dev/Gstreamer-sdk/cerbero/config/darwin.config)
Comment 7 Thibault Saunier 2013-01-18 18:00:39 UTC
Created attachment 73251 [details] [review]
Fix the issue handling new path for GL headers in 10.8
Comment 8 Andoni Morales Alastruey 2013-01-18 18:48:43 UTC
Comment on attachment 73251 [details] [review]
Fix the issue handling new path for GL headers in 10.8

Review of attachment 73251 [details] [review]:
-----------------------------------------------------------------

Looks good to me!


Use of freedesktop.org services, including Bugzilla, is subject to our Code of Conduct. How we collect and use information is described in our Privacy Policy.