I have developed a simple Urho3D application using C++ on my Windows PC. Now I want to port this over to run on a ARM based Odroid single board computer running Ubuntu. I have installed Urho3D on the Odroid, run cmake and make. The samples run fine. Now I want to install and complile my Urho3D application. Here is where I installed Urho3D:
/home/odroid/Urho3D
and built it using
./cmake_arm.sh ./build
then I ran make in the ./build directory. As stated, the samples run fine in ./build/bin directory.
My question is how do I setup my project directory correctly. Here is what I’ve tried:
- create project root folder in /home/odroid/game1
- cd game1 and create bin folder
- copy Data and CoreData folders from the SDK install into bin
- copy CMake folder from the SDK install to the project directory
- can add the Urho3D project root directory into the PATH environment
- edit the ~/.bashrc file and add the following line
- export PATH=$PATH:/home/odroid/game1
- export URHO3D_HOME=/home/odroid/Urho3D/build
- reboot
- create a source folder /home/odroid/game1/source
- Copy my .cpp and .h files into the source directory
- in the source folder copy the sample CMakeLists.txt file (replace MyProjectName and MyExecutableName with my project name)
- run cmake ./source
I get a cmake error saying it can’t find UrhoCommon. I’ve tried differnt things and gotten differnt errors. Obviously, I’m doing something wrong and would appreciate some guidance on how to accomplish my objective.