For CodeBlocks, for my current project, in C++, on Linux.
Using the menu in the title bar, we go to “project/build options/linker settings”.
Under “Link Libraries”, we add the paths to these core libs.
…/URHO_BUILD/lib/libUrho3D.a <-- edit these paths as required
/lib/x86_64-linux-gnu/libdl-2.27.so
/usr/lib/x86_64-linux-gnu/libGL.so
Over on the right hand side, under “Other linker options”, we add these guys:
-pthread
-ldl
-lGL
-lGLU
-lGLEW
Now we click on the Search Directories tab, and add these guys:
…/URHO_BUILD/include
…/URHO_BUILD/include/Urho3D/ThirdParty
…/URHO_MASTER/Urho3D/Source/ThirdParty/Bullet/src
source <-- project folder for included Header (.h) files
Anywhere I wrote <-- is a comment, so strip that stuff out.
The above is not perfect, I’ve spent zero time on the build stuff, and little time using Urho (in the scheme of things) but it’s enough to make everything work for me.
Setting up a new project on a new codebase? Let’s call it “teething issues” Yeah, it’s a pain. But once done, is done for life.
For the record, it took me about two or three days to work out all the dependencies and what I needed to add to my compiler and linker settings, and I may have needed to install something third-party as well.