Linux Hellocpp executable segmentation fault

Hi, I was compiling the linux project and I noticed that when I run the application in the default build folder, it runs fine such as the one located in samples/Cpp/HelloCpp/proj.linux/bin/debug but when I move the executables in a different folder it has a segmentation fault.

Does anyone have any idea or am I missing something?

I tried to move libcocos2d.so and libcocosdension.so in /usr/lib but it still did not work.

Hi yvan,

It might be that the app cannot find the resources. They are usually in a folder relative to the binary of the example app located at …/…/…/Resources where the app is expecting to find the resource files like sprites, fonts and so on.
If you move your binary, you have also move the resources folder accordingly.

/miro/