Thursday, November 17, 2022
HomeGame DevelopmentHow does cocos2d-x-4 cross-compile? I compiled cocos2d-x-4 on aarch64 ubuntu system unsuccessfully?...

How does cocos2d-x-4 cross-compile? I compiled cocos2d-x-4 on aarch64 ubuntu system unsuccessfully? – cocos2d-x


  1. On the ARCH64-bit Ubuntu 20.04 system,
    Compilation instruments:
    gcc-9-aarch64-linux-gnu
    g+±9-aarch64-linux-gnu
    After compiling the cocos2d-x-4 supply code and cross-compiling the libchipmunk 7.0.0 library, the next issues are encountered within the construct instance:
    Copying lua scripts …

Copying assets for lua-tests …

[ 8%] Constructed goal SYNC_RESOURCE-cpp-tests

copying to /dwelling/firefly/cocos2d-x-4/construct/linux-build/bin/lua-tests/Sources/res

Copying assets for HelloCpp …

copying to /dwelling/firefly/cocos2d-x-4/construct/linux-build/bin/HelloCpp/Sources

[ 9%] Constructed goal exterior

copying to /dwelling/firefly/cocos2d-x-4/construct/linux-build/bin/lua-tests/Sources/res

[ 9%] Constructed goal SYNC_RESOURCE-HelloCpp

[ 9%] Constructed goal COPY_LUA-lua-tests

[ 9%] Constructed goal SYNC_RESOURCE-lua-tests

[ 78%] Constructed goal cocos2d

[ 78%] Linking CXX executable …/…/…/bin/HelloCpp/HelloCpp

[ 79%] Linking CXX executable …/…/…/bin/cpp-empty-test/cpp-empty-test

[ 86%] Constructed goal luacocos2d

[ 86%] Linking CXX executable …/…/…/bin/lua-empty-test/lua-empty-test

/usr/bin/ld: …/…/…/…/…/exterior/freetype2/prebuilt/linux/64-bit/libfreetype.a(ftinit.o): Relocations in generic ELF (EM: 62)

/usr/bin/ld: …/…/…/…/…/exterior/freetype2/prebuilt/linux/64-bit/libfreetype.a(ftinit.o): Relocations in generic ELF (EM: 62)

/usr/bin/ld: …/…/…/…/…/exterior/freetype2/prebuilt/linux/64-bit/libfreetype.a(ftinit.o): Relocations in generic ELF (EM: 62)

/usr/bin/ld: …/…/…/…/…/exterior/freetype2/prebuilt/linux/64-bit/libfreetype.a: error including symbols: file in unsuitable format

collect2: error: ld returned 1 exit standing

make[2]: *** [engine/tests/cpp-empty-test/CMakeFiles/cpp-empty-test.dir/build.make:152: bin/cpp-empty-test/cpp-empty-test] Error 1

make[1]: *** [CMakeFiles/Makefile2:1233: engine/tests/cpp-empty-test/CMakeFiles/cpp-empty-test.dir/all] Error 2

RELATED ARTICLES

LEAVE A REPLY

Please enter your comment!
Please enter your name here

- Advertisment -
Google search engine

Most Popular

Recent Comments