Cannot compile sample

Cannot compile for linux

/usr/local/include/Urho3D/Input/InputEvents.h:28:36: fatal error: SDL/SDL_gamecontroller.h: No such file or directory
#include <SDL/SDL_gamecontroller.h>

Welcome to our forums. The problem should be on the way you have generated your build tree. Did you use our common build system?

Is there some sample for it?

Read the online doc if you haven’t done so.

This is tutorial is not friendly. Is there some sample on github?

Yes, the link I provided is not a tutorial per se. Other is probably able to help you with what you are looking for.

Do you mean sample of using Urho as library?
I always copy-pasted CMake project from the page above, set Urho home and generated new project.
I am win user tho.

what method do you use to set URHO3D_HOME?

I cant figure out how to set it using cmake with the command line?

Well, usually I put my project near the Urho things and do something like this:
Linux may have different paths.

You can set it externally as build option like the rest or set it as host environment variable. Once the value is cached in the build tree then you don’t need to set it again when doing CMake rerun or when building.

This is my CMakeList:

Define target name

cmake_minimum_required(VERSION 3.5)


set (TARGET_NAME TestProject)

add_executable(TestProject main.cpp)

target_link_libraries(TestProject ${URHO3D_HOME}/lib/libUrho3D.a )
target_include_directories(TestProject PRIVATE ${URHO3D_HOME}/include/ ${URHO3D_HOME}/include/Urho3D/ThirdParty/ )

Now I have problem with:
…/Urho3D/lib/libUrho3D.a(OGLTextureCube.cpp.o): In function Urho3D::TextureCube::Release()': OGLTextureCube.cpp:(.text+0x1ed): undefined reference toglDeleteTextures’