Operating System: :Ubuntu 18.04:
Render System:
Hi,
I am new to Ogre (and new to using cmake). I followed the tutorials https://ogrecave.github.io/ogre/api/lat ... -ogre.html and https://ogrecave.github.io/ogre/api/latest/setup.html. Then I tried tried to compile the program from the "Setting up" tutorial, but it wouldn't find the "Ogre.h" include.
cmake output:
Code: Select all
-- Found OGRE
-- static : OFF
-- components : Bites;HLMS;MeshLodGenerator;Overlay;Paging;Property;RTShaderSystem;Terrain;Volume
-- plugins : Plugin_BSPSceneManager;Plugin_CgProgramManager;Plugin_OctreeSceneManager;Plugin_PCZSceneManager;Plugin_ParticleFX;RenderSystem_GL;RenderSystem_GL3Plus;Codec_STBI
-- media : /usr/local/share/OGRE/Media
-- Configuring done
-- Generating done
-- Build files have been written to: /home/julian/OGRE/OgreProjects/FirstSteps/build
Code: Select all
/home/julian/OGRE/OgreProjects/FirstSteps/src/main.cpp:2:10: fatal error: Ogre.h: No such file or directory
#include "Ogre.h"
^~~~~~~~
compilation terminated.
CMakeFiles/hello.dir/build.make:62: recipe for target 'CMakeFiles/hello.dir/src/main.cpp.o' failed
make[2]: *** [CMakeFiles/hello.dir/src/main.cpp.o] Error 1
CMakeFiles/Makefile2:67: recipe for target 'CMakeFiles/hello.dir/all' failed
make[1]: *** [CMakeFiles/hello.dir/all] Error 2
Makefile:83: recipe for target 'all' failed
make: *** [all] Error 2
Code: Select all
cmake_minimum_required(VERSION 3.10.2)
project (directory_test)
include_directories(include)
file(GLOB SOURCES "src/*.cpp")
find_package(OGRE 1.11 REQUIRED COMPONENTS Bites RTShaderSystem)
file(COPY ${OGRE_CONFIG_DIR}/resources.cfg DESTINATION ${CMAKE_BINARY_DIR})
add_executable(hello ${SOURCES})
Please bear with me if this is a very stupid beginner's mistake