Building Link Problem on Linux

this is the first time I build the cocos2dproject on ubuntu
but when I following the step 4.1 blow
http://www.cocos2d-x.org/projects/cocos2d-x/wiki/How_to_run_HelloWorld_and_tests_on_linux

I get a link problem:
/host/Android9_NDK/bin/…/lib/gcc/arm-linux-androideabi/4.4.3/…/…/…/…/arm-linux-androideabi/bin/ld: cannot find -lcocos2d
collect2: ld returned 1 exit status
make: * [libhelloworld.so] 错误 1

BTW I had build and run successly the helloworld linux project.

I have found some passage with the same problem to me . but I just have this one error and My OS is Ubuntu 11.04 and the software have updated.

Thank you very much!

The linux port has problems, wait for 0.11 or fall back to 0.9.2 with all the fixes.

When I build HelloLua project, I get the same problem.
I edit the Classes/Android.xml, line 23 change “Android” to “android”, then everything is ok.

我英语不好,我再用中文说一遍:
我在编译HelloLua这个例子的时候,也遇到了这个错误:
cannot find -lcocos2d
collect2: ld returned 1 exit status
make: * [obj/local/armeabi/libgame_logic.so] 错误 1
在ubuntu中遇到这个问题,
在mac os x中并没有这个问题,
我发现HelloLua/Classes/Android.xml中的-L的路径中把android的第一个字母拼成大写了。在mac os x中,路径是大小写不敏感的,在linux中大小写敏感,所以这个路径就是错误的,找不到-lcocos2d。

说的有点儿罗嗦了,就是把大写A 改成小写a,就万事大吉了。

but how do you fix the problem by HelloWorld Linux?:frowning: