I update the lastest code, the sdl2 is be replaced by glfw3. so I download the glfw3,build and install. but glfw3 default compiled static libirary. than to build cocos2dx will err this:
*/usr/bin/ld: /usr/local/lib/libglfw3.a: relocation R_X86_64_32S against `.rodata’ can not be used when making a shared object; re
compile with -fPIC
/usr/local/lib/libglfw3.a: error adding symbols: 错误的值
collect2: error: ld returned 1 exit status
make: * 错误 1
the solution is change the glfw3’s CMakeLists.txt, turn on the shared libirary.
if you can’t download the glfw3 by youself,then you only need to excute tools/travis-scripts/install_glfw.sh .