Cannot find lib in Eclipse on Debian/Linux

Hi,

just set up a new Version of cocos2D-x (2.2). It all works fine on Windows in Visual Studio, but on Debian i’ve encountered following error when compiling the HelloCpp Project in Eclipse:

/usr/bin/ld: cannot find -lcocos2d
/usr/bin/ld: cannot find -lcocosdenshion
collect2: error: ld returned 1 exit status

I’ve ask the search and google but didn’t found anything that was close or could help me out.

Thanks for your answers :slight_smile:
Greetings Mat

PS: Got an offtopic question. Could it be, that the Tutorials in the “Learn” Section may be not up to date?

Hey Mat,

Could you please describe the error step by step?
Thanks?

Hi Minggo,

I’ve installed all the packages (like g++ libx11-dev libxmu-dev eg.) Then I downloaded the cocos2d-x source and started the make command.
Done, I started Eclipse and imported the cocos2D-x projects via “file”>”import” and select your cocos2d-x folder as root. I only select the projects that I like to import, eg. HelloCpp for linux.
After that I got the issure from above, when I click the compile button:
<pre>
/usr/bin/ld: cannot find
lcocos2d
/usr/bin/ld: cannot find -lcocosdenshion
collect2: error: ld returned 1 exit status
make: * [HelloCpp] Fehler 1

Greetings Mat