Issue with first project

Anything and everything that's related to OGRE or the wider graphics field that doesn't fit into the other forums.
Post Reply
mgs_oleg
Gnoblar
Posts: 20
Joined: Fri Mar 30, 2018 8:24 pm
x 1

Issue with first project

Post by mgs_oleg »

Hi All,
Having some issues with building project for MS VS 2013.


I have download dource code for 1.10.11. CMake'd that and compiled sources. It is finished OK.
But while follow this article to setp up project, I've create CMakeLists.txt as follows (as it is stated in article)

Code: Select all

 # specify which version you need
find_package(OGRE 1.10 REQUIRED)

# the search paths
include_directories(${OGRE_INCLUDE_DIRS})
link_directories(${OGRE_LIBRARY_DIRS})

# copy essential config files next to our binary where OGRE autodiscovers them

file(COPY ${OGRE_CONFIG_DIR}/plugins.cfg ${OGRE_CONFIG_DIR}/resources.cfg
DESTINATION ${CMAKE_BINARY_DIR})
and set variable OGRE_DIR where OGREConfig.cmake located and got an error

Code: Select all

CMake Error at CMakeLists.txt:10 (file):
  file COPY cannot find "P:/dev/ogre-1.10.11/build/bin/plugins.cfg".

Do you know what might be an issue here ?
paroj
OGRE Team Member
OGRE Team Member
Posts: 1994
Joined: Sun Mar 30, 2014 2:51 pm
x 1074
Contact:

Re: Issue with first project

Post by paroj »

did you build the INSTALL target for ogre? The path should look like "build/sdk/bin".

Also is this a release or debug build? For debug the file is called plugins_d.cfg
mgs_oleg
Gnoblar
Posts: 20
Joined: Fri Mar 30, 2018 8:24 pm
x 1

Re: Issue with first project

Post by mgs_oleg »

Well, just resolved it.
It was issue with name of installation directory.
Thanks
Post Reply