ningniuniu / easymedia

GNU General Public License v3.0
11 stars 5 forks source link

rkmpp/mpp_final_encoder.cc:165:3: error: ‘MppEncCfgSet’ was not declared in this scope; did you mean ‘MppEncCfg’? #1

Open TheSharpOwl opened 3 years ago

TheSharpOwl commented 3 years ago

When I build it with:

cmake .. -DRKMPP=ON -DRKMPP_ENCODER=ON sudo make -j

it shows this error:

/home/firefox/Desktop/easymedia/rkmpp/mpp_final_encoder.cc: In member function ‘virtual bool easymedia::MPPCommonConfig::InitConfig(easymedia::MPPEncoder&, const MediaConfig&)’:
/home/firefox/Desktop/easymedia/rkmpp/mpp_final_encoder.cc:165:3: error: ‘MppEncCfgSet’ was not declared in this scope; did you mean ‘MppEncCfg’?
  165 |   MppEncCfgSet mpp_cfg;
      |   ^~~~~~~~~~~~
      |   MppEncCfg
/home/firefox/Desktop/easymedia/rkmpp/mpp_final_encoder.cc:166:25: error: ‘mpp_cfg’ was not declared in this scope
  166 |   MppEncRcCfg &rc_cfg = mpp_cfg.rc;
1989wanghang commented 3 years ago

must be the mismatch version between easymedia and the mpp you are using. Refer to https://github.com/rockchip-linux/rkmedia,it is the rockchip offcial repository