Skip to content
This repository has been archived by the owner on Aug 20, 2020. It is now read-only.

Fixed the compile error #246

Merged
merged 2 commits into from
Jul 24, 2014
Merged

Fixed the compile error #246

merged 2 commits into from
Jul 24, 2014

Conversation

qjia7
Copy link
Contributor

@qjia7 qjia7 commented Jul 17, 2014

BUG-240

the ozone/media uses mesa header GL/gl.h. However, video.gypi didn't add it
in the include_dirs. So, that will result in 'fatal error: GL/gl.h: No such
file or directory'. Meanwhile, it will fix BUG-240

@kalyankondapally
Copy link
Contributor

Can u check if it resolves #240 too.

@qjia7
Copy link
Contributor Author

qjia7 commented Jul 17, 2014

@kalyankondapally Please check the comment I added in #240. I don't know how to build your env. I tried it in linux. However, I met some error I haven't solved. So I use crosswalk for tizen as the building env. In fact, my error log is not exactly same with #240. After solving my issue, I can successfully build a crosswalk rpm package. I installed it in ivi. The mp4 video works well with hardware acceleration.

@kalyankondapally
Copy link
Contributor

@qjia7 It might be due to the order of dependencies in Chromium. I myself am not sure how to fix this.

I tried this on my side and it doesn't seem to fix it. If you want to enable this for Tizen, one intermediate solution is to have this feature enabled only with use_ozone_hwa(or something meaningful) flag enabled. This would be disabled by default and only enabled with Tizen on crosswalk side. We can get rid of this once we are able to fix the compiling issue with Chromium.

@tiagovignatti
Copy link
Contributor

@qjia7 I'd like to fix this for once to both Crosswalk and Chromium Browser -- I know that Chromium is not under your work scope but that's the basic platform we use in Ozone-Wayland development. So given that you're checking this problem already, the effort to correctly fix it for once for the rest of the platforms shouldn't be hard.

Thanks.

@sjnewbury
Copy link
Contributor

This isn't working for me on Gentoo. I'll try to figure out why this isn't working here and provide a patch.

@sjnewbury
Copy link
Contributor

@qjia7 I think my problem is due to a dependency issue. "gl" isn't getting built before the ozone media HWA component which means the gl bindings haven't been generated yet.

@sjnewbury
Copy link
Contributor

@qjia7 Running "eninja -C out/Release gl eninja -C out/Release gl" first gives a successful build. So there's definitely something missing with the dependencies, but adding ui/gl to ozone/media/DEPS didn't do the trick.

@qjia7
Copy link
Contributor Author

qjia7 commented Jul 21, 2014

@sjnewbury @kalyankondapally If you run 'ninja -C out/Release wayland', is there any compile error or link error?

@sjnewbury
Copy link
Contributor

@qjia7 When building the "wayland" target I get the same error as before:
In file included from ../../ozone/media/vaapi_video_decode_accelerator.h:30:0,
from ../../ozone/media/media_ozone_platform_wayland.cc:9:
../../ui/gl/gl_bindings.h:230:36: fatal error: gl_bindings_autogen_gl.h: No such file or directory
#include "gl_bindings_autogen_gl.h"
^
compilation terminated.

I'm building again with -j1 to see if a non-parallel build makes a difference.

@qjia7
Copy link
Contributor Author

qjia7 commented Jul 22, 2014

@kalyankondapally @tiagovignatti @sjnewbury Please review it again. I think this time it should fix bug-240. Moreover, this patch need to keep consistent with chromium's change (I will submit it later). Otherwise, it will cause a circle detected in the gyp. To verify it, I past the chromium's change as below: In file src/ui/gl/gl.gyp remove

-        ['use_ozone==1', {
-          'dependencies': [
-            '../ozone/ozone.gyp:ozone',
-          ],
-        }],

BUG-240

the ozone/media uses mesa header GL/gl.h. However, video.gypi didn't add it
in the include_dirs. So, that will result in 'fatal error: GL/gl.h: No such
file or directory'. Meanwhile, it will fix BUG-240
@tiagovignatti
Copy link
Contributor

@qjia7 noupe. We obviously cannot remove that snip from src/ui/gl/gl.gyp because the gl layer explicitly depend on Ozone. This is wrong and won't be accepted upstream.

I'll start to look how to proper fix this whole thing now. I'm coming back here soon.

@sjnewbury
Copy link
Contributor

@qjia7 I get a successful build with your commit as it stands now.

@tiagovignatti
Copy link
Contributor

hi back. The root problem is that content/ should probably pull in the source files of Ozone-Wayland and then there wouldn't be a problem with cycling dependency. I'll talk with Chromium upstream and try to see the best way to solve that. In any case, I think we should unlock this and go with @qjia7 solution for now.

@qjia7 can you please send another pull request, adding that src/ui/gl/gl.gyp changes in a patch inside patches/ Ozone-Wayland directory?

@qjia7
Copy link
Contributor Author

qjia7 commented Jul 23, 2014

@tiagovignatti Have submitted another PR #249. Thank you.

tiagovignatti added a commit that referenced this pull request Jul 24, 2014
Fixed the compile error
@tiagovignatti tiagovignatti merged commit 11e87c0 into intel:master Jul 24, 2014
qjia7 added a commit to qjia7/crosswalk that referenced this pull request Jul 26, 2014
Currently, the ozone-wayland depends on ui/gl. However, that will cause cycling dependency error. So temporarily remove ozone dependency for gl
until we find a better way. Refer to intel/ozone-wayland#240 and intel/ozone-wayland#246
qjia7 added a commit to qjia7/chromium-crosswalk that referenced this pull request Jul 28, 2014
Currently, the ozone-wayland depends on ui/gl. However, that will cause cycling
dependency error. So temporarily remove ozone dependency for gl until we find a
better way.

Refer to intel/ozone-wayland#240 and
intel/ozone-wayland#246
rakuco pushed a commit to crosswalk-project/chromium-crosswalk that referenced this pull request Aug 11, 2014
Currently, the ozone-wayland depends on ui/gl. However, that will cause cycling
dependency error. So temporarily remove ozone dependency for gl until we find a
better way.

Refer to intel/ozone-wayland#240 and
intel/ozone-wayland#246
darktears pushed a commit to crosswalk-project/chromium-crosswalk that referenced this pull request Aug 15, 2014
Currently, the ozone-wayland depends on ui/gl. However, that will cause cycling
dependency error. So temporarily remove ozone dependency for gl until we find a
better way.

Refer to intel/ozone-wayland#240 and
intel/ozone-wayland#246
darktears pushed a commit to crosswalk-project/chromium-crosswalk that referenced this pull request Aug 18, 2014
Currently, the ozone-wayland depends on ui/gl. However, that will cause cycling
dependency error. So temporarily remove ozone dependency for gl until we find a
better way.

Refer to intel/ozone-wayland#240 and
intel/ozone-wayland#246
darktears pushed a commit to crosswalk-project/chromium-crosswalk that referenced this pull request Aug 18, 2014
Currently, the ozone-wayland depends on ui/gl. However, that will cause cycling
dependency error. So temporarily remove ozone dependency for gl until we find a
better way.

Refer to intel/ozone-wayland#240 and
intel/ozone-wayland#246
darktears pushed a commit to crosswalk-project/chromium-crosswalk that referenced this pull request Aug 21, 2014
Currently, the ozone-wayland depends on ui/gl. However, that will cause cycling
dependency error. So temporarily remove ozone dependency for gl until we find a
better way.

Refer to intel/ozone-wayland#240 and
intel/ozone-wayland#246
darktears pushed a commit to crosswalk-project/chromium-crosswalk that referenced this pull request Aug 22, 2014
Currently, the ozone-wayland depends on ui/gl. However, that will cause cycling
dependency error. So temporarily remove ozone dependency for gl until we find a
better way.

Refer to intel/ozone-wayland#240 and
intel/ozone-wayland#246
darktears pushed a commit to crosswalk-project/chromium-crosswalk that referenced this pull request Aug 22, 2014
Currently, the ozone-wayland depends on ui/gl. However, that will cause cycling
dependency error. So temporarily remove ozone dependency for gl until we find a
better way.

Refer to intel/ozone-wayland#240 and
intel/ozone-wayland#246
darktears pushed a commit to crosswalk-project/chromium-crosswalk that referenced this pull request Aug 26, 2014
Currently, the ozone-wayland depends on ui/gl. However, that will cause cycling
dependency error. So temporarily remove ozone dependency for gl until we find a
better way.

Refer to intel/ozone-wayland#240 and
intel/ozone-wayland#246
darktears pushed a commit to crosswalk-project/chromium-crosswalk that referenced this pull request Aug 27, 2014
Currently, the ozone-wayland depends on ui/gl. However, that will cause cycling
dependency error. So temporarily remove ozone dependency for gl until we find a
better way.

Refer to intel/ozone-wayland#240 and
intel/ozone-wayland#246
rakuco pushed a commit to crosswalk-project/chromium-crosswalk that referenced this pull request Aug 29, 2014
Currently, the ozone-wayland depends on ui/gl. However, that will cause cycling
dependency error. So temporarily remove ozone dependency for gl until we find a
better way.

Refer to intel/ozone-wayland#240 and
intel/ozone-wayland#246
rakuco pushed a commit to crosswalk-project/chromium-crosswalk that referenced this pull request Sep 1, 2014
Currently, the ozone-wayland depends on ui/gl. However, that will cause cycling
dependency error. So temporarily remove ozone dependency for gl until we find a
better way.

Refer to intel/ozone-wayland#240 and
intel/ozone-wayland#246
darktears pushed a commit to crosswalk-project/chromium-crosswalk that referenced this pull request Sep 17, 2014
Currently, the ozone-wayland depends on ui/gl. However, that will cause cycling
dependency error. So temporarily remove ozone dependency for gl until we find a
better way.

Refer to intel/ozone-wayland#240 and
intel/ozone-wayland#246
darktears pushed a commit to crosswalk-project/chromium-crosswalk that referenced this pull request Sep 17, 2014
Currently, the ozone-wayland depends on ui/gl. However, that will cause cycling
dependency error. So temporarily remove ozone dependency for gl until we find a
better way.

Refer to intel/ozone-wayland#240 and
intel/ozone-wayland#246
darktears pushed a commit to crosswalk-project/chromium-crosswalk that referenced this pull request Sep 19, 2014
Currently, the ozone-wayland depends on ui/gl. However, that will cause cycling
dependency error. So temporarily remove ozone dependency for gl until we find a
better way.

Refer to intel/ozone-wayland#240 and
intel/ozone-wayland#246
darktears pushed a commit to crosswalk-project/chromium-crosswalk that referenced this pull request Sep 29, 2014
Currently, the ozone-wayland depends on ui/gl. However, that will cause cycling
dependency error. So temporarily remove ozone dependency for gl until we find a
better way.

Refer to intel/ozone-wayland#240 and
intel/ozone-wayland#246
darktears pushed a commit to crosswalk-project/chromium-crosswalk that referenced this pull request Sep 30, 2014
Currently, the ozone-wayland depends on ui/gl. However, that will cause cycling
dependency error. So temporarily remove ozone dependency for gl until we find a
better way.

Refer to intel/ozone-wayland#240 and
intel/ozone-wayland#246
rakuco pushed a commit to crosswalk-project/chromium-crosswalk that referenced this pull request Oct 1, 2014
Currently, the ozone-wayland depends on ui/gl. However, that will cause cycling
dependency error. So temporarily remove ozone dependency for gl until we find a
better way.

Refer to intel/ozone-wayland#240 and
intel/ozone-wayland#246
darktears pushed a commit to crosswalk-project/chromium-crosswalk that referenced this pull request Oct 6, 2014
Currently, the ozone-wayland depends on ui/gl. However, that will cause cycling
dependency error. So temporarily remove ozone dependency for gl until we find a
better way.

Refer to intel/ozone-wayland#240 and
intel/ozone-wayland#246
darktears pushed a commit to crosswalk-project/chromium-crosswalk that referenced this pull request Oct 8, 2014
Currently, the ozone-wayland depends on ui/gl. However, that will cause cycling
dependency error. So temporarily remove ozone dependency for gl until we find a
better way.

Refer to intel/ozone-wayland#240 and
intel/ozone-wayland#246
darktears pushed a commit to crosswalk-project/chromium-crosswalk that referenced this pull request Oct 8, 2014
Currently, the ozone-wayland depends on ui/gl. However, that will cause cycling
dependency error. So temporarily remove ozone dependency for gl until we find a
better way.

Refer to intel/ozone-wayland#240 and
intel/ozone-wayland#246
rakuco pushed a commit to crosswalk-project/chromium-crosswalk that referenced this pull request Oct 10, 2014
Currently, the ozone-wayland depends on ui/gl. However, that will cause cycling
dependency error. So temporarily remove ozone dependency for gl until we find a
better way.

Refer to intel/ozone-wayland#240 and
intel/ozone-wayland#246
rakuco pushed a commit to crosswalk-project/chromium-crosswalk that referenced this pull request Oct 13, 2014
Currently, the ozone-wayland depends on ui/gl. However, that will cause cycling
dependency error. So temporarily remove ozone dependency for gl until we find a
better way.

Refer to intel/ozone-wayland#240 and
intel/ozone-wayland#246
darktears pushed a commit to crosswalk-project/chromium-crosswalk that referenced this pull request Nov 17, 2014
Currently, the ozone-wayland depends on ui/gl. However, that will cause cycling
dependency error. So temporarily remove ozone dependency for gl until we find a
better way.

Refer to intel/ozone-wayland#240 and
intel/ozone-wayland#246
darktears pushed a commit to crosswalk-project/chromium-crosswalk that referenced this pull request Nov 17, 2014
Currently, the ozone-wayland depends on ui/gl. However, that will cause cycling
dependency error. So temporarily remove ozone dependency for gl until we find a
better way.

Refer to intel/ozone-wayland#240 and
intel/ozone-wayland#246
darktears pushed a commit to crosswalk-project/chromium-crosswalk that referenced this pull request Nov 17, 2014
Currently, the ozone-wayland depends on ui/gl. However, that will cause cycling
dependency error. So temporarily remove ozone dependency for gl until we find a
better way.

Refer to intel/ozone-wayland#240 and
intel/ozone-wayland#246
darktears pushed a commit to crosswalk-project/chromium-crosswalk that referenced this pull request Nov 17, 2014
Currently, the ozone-wayland depends on ui/gl. However, that will cause cycling
dependency error. So temporarily remove ozone dependency for gl until we find a
better way.

Refer to intel/ozone-wayland#240 and
intel/ozone-wayland#246
darktears pushed a commit to crosswalk-project/chromium-crosswalk that referenced this pull request Dec 10, 2014
Currently, the ozone-wayland depends on ui/gl. However, that will cause cycling
dependency error. So temporarily remove ozone dependency for gl until we find a
better way.

Refer to intel/ozone-wayland#240 and
intel/ozone-wayland#246
darktears pushed a commit to crosswalk-project/chromium-crosswalk that referenced this pull request Dec 12, 2014
Currently, the ozone-wayland depends on ui/gl. However, that will cause cycling
dependency error. So temporarily remove ozone dependency for gl until we find a
better way.

Refer to intel/ozone-wayland#240 and
intel/ozone-wayland#246
rakuco pushed a commit to crosswalk-project/chromium-crosswalk that referenced this pull request Jan 16, 2015
Currently, the ozone-wayland depends on ui/gl. However, that will cause cycling
dependency error. So temporarily remove ozone dependency for gl until we find a
better way.

Refer to intel/ozone-wayland#240 and
intel/ozone-wayland#246
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants