I downloaded cocos2d-x ver 3.15.1. After cmake, while i make cocos2d under Ubuntu occured link error:
[ 85%] Linking CXX executable ../../bin/cpp-tests/cpp-tests
/usr/bin/ld: ../../../../external/websockets/prebuilt/linux/64-bit/libwebsockets.a(libwebsockets.c.o): unrecognized relocation (0x2a) in section «.text»
/usr/bin/ld: final link failed: Bad value
collect2: error: ld returned 1 exit status
make[2]: *** [bin/cpp-tests/cpp-tests] Error 1
make[1]: *** [tests/cpp-tests/CMakeFiles/cpp-tests.dir/all] Error 2
make: *** [all] Error 2
How can I deal with it?