Can't make Cocos 2d-x on Ubuntu 17.10

Answers are here:Can't make Cocos2d-x compile on Ubuntu 18.04