Failed to buidl cef 4430 on Ubuntu 18

Having problems with building or using CEF's C/C++ APIs? This forum is here to help. Please do not post bug reports or feature requests here.

Failed to buidl cef 4430 on Ubuntu 18

Postby towerbit » Thu Aug 19, 2021 12:50 am

I'am trying to build cef 4430 on Ubuntu 18.04,

Code: Select all
ninja -C out/Debug_GN_x64 cef cefclient cefsimple chrome_sandbox


but failed with


../../media/gpu/vaapi/av1_vaapi_video_decoder_delegate.cc:28:22: error: unknown type name 'VASegmentationStructAV1'
void FillSegmentInfo(VASegmentationStructAV1& va_seg_info,
^
../../media/gpu/vaapi/av1_vaapi_video_decoder_delegate.cc:61:24: error: unknown type name 'VAFilmGrainStructAV1'
void FillFilmGrainInfo(VAFilmGrainStructAV1& va_film_grain_info,
^
../../media/gpu/vaapi/av1_vaapi_video_decoder_delegate.cc:184:5: error: unknown type name 'VAWarpedMotionParamsAV1'
VAWarpedMotionParamsAV1 va_warped_motion[7],
^
../../media/gpu/vaapi/av1_vaapi_video_decoder_delegate.cc:195:38: error: use of undeclared identifier 'VAAV1TransformationIdentity'
va_warped_motion[i].wmtype = VAAV1TransformationIdentity;
^
../../media/gpu/vaapi/av1_vaapi_video_decoder_delegate.cc:198:38: error: use of undeclared identifier 'VAAV1TransformationTranslation'
va_warped_motion[i].wmtype = VAAV1TransformationTranslation;
^
../../media/gpu/vaapi/av1_vaapi_video_decoder_delegate.cc:201:38: error: use of undeclared identifier 'VAAV1TransformationRotzoom'
va_warped_motion[i].wmtype = VAAV1TransformationRotzoom;
^
../../media/gpu/vaapi/av1_vaapi_video_decoder_delegate.cc:204:38: error: use of undeclared identifier 'VAAV1TransformationAffine'
va_warped_motion[i].wmtype = VAAV1TransformationAffine;
^
../../media/gpu/vaapi/av1_vaapi_video_decoder_delegate.cc:221:19: error: use of undeclared identifier 'VADecPictureParameterBufferAV1'; did you mean 'VAEncPictureParameterBufferType'?
bool FillTileInfo(VADecPictureParameterBufferAV1& va_pic_param,
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
VAEncPictureParameterBufferType
/usr/include/va/va.h:1547:5: note: 'VAEncPictureParameterBufferType' declared here
VAEncPictureParameterBufferType = 23,
^
../../media/gpu/vaapi/av1_vaapi_video_decoder_delegate.cc:222:19: error: expected expression
const libgav1::TileInfo& tile_info) {
^
../../media/gpu/vaapi/av1_vaapi_video_decoder_delegate.cc:221:51: error: use of undeclared identifier 'va_pic_param'
bool FillTileInfo(VADecPictureParameterBufferAV1& va_pic_param,
^
../../media/gpu/vaapi/av1_vaapi_video_decoder_delegate.cc:222:54: error: expected ';' after top level declarator
const libgav1::TileInfo& tile_info) {
^
;
../../media/gpu/vaapi/av1_vaapi_video_decoder_delegate.cc:781:3: error: unknown type name 'VADecPictureParameterBufferAV1'; did you mean 'VADecPictureParameterBufferVP9'?
VADecPictureParameterBufferAV1 pic_param;
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
VADecPictureParameterBufferVP9
/usr/include/va/va_dec_vp9.h:195:3: note: 'VADecPictureParameterBufferVP9' declared here
} VADecPictureParameterBufferVP9;
^
../../media/gpu/vaapi/av1_vaapi_video_decoder_delegate.cc:782:15: error: unknown type name 'VASliceParameterBufferAV1'; did you mean 'VASliceParameterBufferVC1'?
std::vector<VASliceParameterBufferAV1> slice_params;
^~~~~~~~~~~~~~~~~~~~~~~~~
VASliceParameterBufferVC1
/usr/include/va/va.h:2781:3: note: 'VASliceParameterBufferVC1' declared here
} VASliceParameterBufferVC1;
^
../../media/gpu/vaapi/av1_vaapi_video_decoder_delegate.cc:783:8: error: use of undeclared identifier 'FillAV1PictureParameter'
if (!FillAV1PictureParameter(pic, seq_header, ref_frames, pic_param) ||
^
../../media/gpu/vaapi/av1_vaapi_video_decoder_delegate.cc:784:8: error: use of undeclared identifier 'FillAV1SliceParameters'
!FillAV1SliceParameters(tile_buffers, tile_columns, data, slice_params)) {
^
../../media/gpu/vaapi/av1_vaapi_video_decoder_delegate.cc:797:46: error: unknown type name 'VASliceParameterBufferAV1'; did you mean 'VASliceParameterBufferVC1'?
VASliceParameterBufferType, sizeof(VASliceParameterBufferAV1)));
^~~~~~~~~~~~~~~~~~~~~~~~~
VASliceParameterBufferVC1
/usr/include/va/va.h:2781:3: note: 'VASliceParameterBufferVC1' declared here
} VASliceParameterBufferVC1;
^
16 errors generated.
[25534/50954] CXX obj/media/gpu/vaapi/vaapi/vaapi_dmabuf_video_frame_mapper.o
ninja: build stopped: subcommand failed.



Any suggestions would be appreciated.
towerbit
Newbie
 
Posts: 8
Joined: Thu Aug 19, 2021 12:08 am

Re: Failed to buidl cef 4430 on Ubuntu 18

Postby magreenblatt » Thu Aug 19, 2021 8:53 am

magreenblatt
Site Admin
 
Posts: 12382
Joined: Fri May 29, 2009 6:57 pm

Re: Failed to buidl cef 4430 on Ubuntu 18

Postby towerbit » Tue Aug 24, 2021 5:58 am

thanks, magreenblatt .

I used the default settings as step #7, and it works.

But, there is a new error
../../cef/test/cefclient/browser/window_test_runner_gtk.cc:7:10: fatal error:' gtk/gtk.h' file not found
#include <gtk/gtk.h>
^~~~~~~~~~
1 error generated.
[41270/41529] CXX obj/cef/ceftests/command_line_unittest.0


It seems that things are almost finished, but I can't go any further.
towerbit
Newbie
 
Posts: 8
Joined: Thu Aug 19, 2021 12:08 am

Re: Failed to buidl cef 4430 on Ubuntu 18

Postby magreenblatt » Tue Aug 24, 2021 10:00 am

Read all of step #7, it also addresses being unable to build the cefclient target.
magreenblatt
Site Admin
 
Posts: 12382
Joined: Fri May 29, 2009 6:57 pm

Re: Failed to buidl cef 4430 on Ubuntu 18

Postby towerbit » Wed Aug 25, 2021 9:40 pm

Thank you for a quick response.

In fact, I didn't compile cefclient, just minimized the compilation of CEF like this:
export PATH=/home/marshall/code/depot_tools:$PATH
cd ~/code/chromium_git/chromium/src/cef
export GN_DEFINES="use_sysroot=true use_allocator=none symbol_level=1 is_cfi=false use_thin_lto=false"
./cef_create_projects.sh
cd ~/code/chromium_git/chromium/src
ninja -C out/Debug_GN_x64 cef
towerbit
Newbie
 
Posts: 8
Joined: Thu Aug 19, 2021 12:08 am

Re: Failed to buidl cef 4430 on Ubuntu 18

Postby ndesktop » Fri Aug 27, 2021 2:33 am

towerbit wrote:export PATH=/home/marshall/code/depot_tools:$PATH

Maybe your PATH is not /home/marshall ?
ndesktop
Master
 
Posts: 750
Joined: Thu Dec 03, 2015 10:10 am

Re: Failed to buidl cef 4430 on Ubuntu 18

Postby magreenblatt » Fri Aug 27, 2021 9:51 am

The “cef” group includes cefclient. You need to specify “cefsimple ceftests” instead (as explained in step #7)
magreenblatt
Site Admin
 
Posts: 12382
Joined: Fri May 29, 2009 6:57 pm

Re: Failed to buidl cef 4430 on Ubuntu 18

Postby towerbit » Sat Aug 28, 2021 8:32 pm

ndesktop wrote:
towerbit wrote:export PATH=/home/marshall/code/depot_tools:$PATH

Maybe your PATH is not /home/marshall ?


I don't think it is a problem. I build the same compiler environment as the guide even the same user account.
towerbit
Newbie
 
Posts: 8
Joined: Thu Aug 19, 2021 12:08 am

Re: Failed to buidl cef 4430 on Ubuntu 18

Postby towerbit » Sat Aug 28, 2021 8:43 pm

magreenblatt wrote:The “cef” group includes cefclient. You need to specify “cefsimple ceftests” instead (as explained in step #7)

What I real need is a libcef.so file within H.264 support, is there any shortcut?
towerbit
Newbie
 
Posts: 8
Joined: Thu Aug 19, 2021 12:08 am

Re: Failed to buidl cef 4430 on Ubuntu 18

Postby towerbit » Sun Sep 05, 2021 10:04 am

towerbit wrote:
magreenblatt wrote:The “cef” group includes cefclient. You need to specify “cefsimple ceftests” instead (as explained in step #7)

What I real need is a libcef.so file within H.264 support, is there any shortcut?

Finally I got the libcef.so by
Code: Select all
ninja -C out/Debug_GN_x64 cefsimple

Thanks a lot.
towerbit
Newbie
 
Posts: 8
Joined: Thu Aug 19, 2021 12:08 am


Return to Support Forum

Who is online

Users browsing this forum: No registered users and 35 guests