How content of cpp-tests/ should look like?

What should be inside of cocos2d-x/build/linux-build/engine/tests/cpp-tests/ directory ?
After I compiled it on Ubuntu I have in there:

CMakeFiles/
cmake_install.cmake
Makefile

Also I would like to know sha256sum of cocos.zip archive and better to publish it beside download link.

Why are you posting another topic about this when we are already talking about it?

should like this

β–Ά tree -L 1
.
β”œβ”€β”€ CMakeCache.txt
β”œβ”€β”€ CMakeFiles
β”œβ”€β”€ Makefile
β”œβ”€β”€ bin
β”œβ”€β”€ cmake_install.cmake
β”œβ”€β”€ engine
└── lib

after you execute make -j 4, the binary will located at bin dir

1 Like

Thanks @drelaptop

I apologize, I was confused for a moment: I thought those topic was about compiling only.
What I’m doing wrong now ?

~/cocos2d-x/build/linux-build/engine/tests/cpp-tests$ make -j 4
[ 1%] Built target xxhash
[ 1%] Built target tinyxml2
[ 3%] Built target recast
[ 3%] Built target unzip
[ 4%] Built target flatbuffers
[ 83%] Built target cocos2d
[100%] Built target cpp_tests
joe@PC:~/cocos2d-x/build/linux-build/engine/tests/cpp-tests$ ls
CMakeFiles cmake_install.cmake Makefile

please see ~/cocos2d-x/build/linux-build, NOT ~/cocos2d-x/build/linux-build/engine/tests/cpp-tests

you can execute make help at the dir which you execute cmake command, to see the targets

I corrected the docs and re-deployed.

Failure again (android project was working though):

joe@PC:~/cocos2d-x/build/linux-build$ make -j 4
[ 0%] Built target unzip
[ 0%] Built target tinyxml2
[ 1%] Built target flatbuffers
[ 3%] Built target recast
[ 4%] Built target xxhash
[ 70%] Built target cocos2d
[ 70%] Built target cpp_empty_test
[ 70%] Built target TemplateCpp
[ 79%] Built target luacocos2d
[ 83%] Built target jscocos2d
[ 84%] Built target lua_empty_test
[ 84%] Built target lua_tests
[ 85%] Built target TemplateLua
[ 86%] Built target js_tests
[ 86%] Built target TemplateJS
[100%] Built target cpp_tests
joe@PC:~/cocos2d-x/build/linux-build$ cd bin
joe@PC:~/cocos2d-x/build/linux-build/bin$ ls
Debug
joe@PC:~/cocos2d-x/build/linux-build/bin$

You can cd Debug to see the detail

The older cmake build didn’t distinguish Debug and Release mode, the latest cmake build do it. So, just move into the bin/Debug dir, you will see the cpp-tests.

1 Like

Yeah, there they are, thanks.
But can’t run them:

joe@PC:~/cocos2d-x/build/linux-build/bin/Debug/cpp_tests$ ./cpp_tests
./cpp_tests: error while loading shared libraries: /home/user/cocos2d-x/external/linux-specific/fmod/prebuilt/64-bit/libfmod.so.6: file too short

Search our GitHub repo for answers on how to fix this. You need to symlink. @drelaptop brought this to my attention and I am working on a proper fix. libfmod.so.6 symlinks lost when package a version Β· Issue #18754 Β· cocos2d/cocos2d-x Β· GitHub

1 Like

Ok, thanks.