BUG - Error building coco2d-x on Linux

Hi.

Today I downloaded cocos2d-x from git repository and tried to compile it.

I got some errors about dependencies (zlib, and so on). Once I solved that by installing the required packages, I did run the following commands:

./build-linux.sh clean
./build-linux.sh

The point is that I got the following error messages:

building cocos2dx*****
make:**** No rule to make target `…/platform/Linux/CCAplication_linux.o’, needed by `libcocos2d.so’. Stop.
cp: cannot stat `libcocos2d.so’: No such file or directory
>
**building cocosdenshion*
make:*** No rule to make target `…/Linux/FmodAudioPlayer.o’, needed by `libcocosdenshion.so’. Stop.
cp: cannot stat `libcocosdenshion.so’: No such file or directory

Files
CCAplication_linux.cpp
and
FmodAudioPlayer.cpp

don’t exist so make cannot apply an implicit rule to create

CCAplication_linux.o

and

FmodAudioPlayer.o

then I looked for rules to build both CCAplication_linux.o and FmodAudioPlayer.o but I didn’t find anything.

Does anyone have any clue?

My environment:

Ubuntu Linux 32bits version 10.10.

Regards.


Please,

Let me correct my last post.

Files CCAplication_linux.cpp and FmodAudioPlayer.cpp do EXIST in the project.

Regards.


Please,

Hi. After digging in the code and by paying a little more attention I noticed that makefile

/cocos2dx/proj.linux/Makefile

It was

…/platform/Linux/CCAplication_linux.o > …/platform/Linux/CCEGLView_linux.o >

but this path is wrong. The path contain a folder named l*inux and notL*inux (with lower case l).

So, the correct commands on Makefile are

…/platform/linux/CCAplication_linux.o > …/platform/linux/CCEGLView_linux.o
The same problem is the cause of compilation error of FmodAudioPlayer. The original

//cocos2d-x/CocosDenshion/proj.linux/Makefile

file looks like

OBJECTS = …/Linux/FmodAudioPlayer.o > …/Linux/SimpleAudioEngine.o >

but the correct is:

OBJECTS = …/linux/FmodAudioPlayer.o > …/linux/SimpleAudioEngine.o >

That solved my problem and I successfully compiled cocos2d-x and CocosDenshion.

Regards.


Please,

Thanks for the information! I was going crazy bacause of this same issue.

Created an account just to say thanks. Never would have noticed myself.