Operating System: Windows 10
Render System: DirectX?
I tried doing the Setting Up an OGRE Project tutorial, and it says nothing about adding any dependencies. I assumed CMake would handle that or something, since the tutorial only mentions putting some lines into your CMakeLists.txt file before it gets into the actual code for the test application. When I went to compile, I got all of these errors telling me it can't open any of the includes, so CMake definitely didn't do anything to add dependencies. I didn't get any errors with my CMakeLists.txt, so I assumed there was nothing wrong with that. Unless I'm wrong, this is telling me that CMake doesn't do anything related to dependencies so I just manually added every folder inside of the sdk folder's "includes" directory (and the subdirectories). This made the header errors go away, but then I got all of these linker errors like these:
Code: Select all
Error LNK2019 unresolved external symbol "__declspec(dllimport) public: __thiscall Ogre::VectorBase<3,float>::VectorBase<3,float>(float,float,float)" (__imp_??0?$VectorBase@$02M@Ogre@@QAE@MMM@Z) referenced in function "public: __thiscall Ogre::Vector<3,float>::Vector<3,float>(float,float,float)" (??0?$Vector@$02M@Ogre@@QAE@MMM@Z) ogreproj C:\coding\OgrePlayground\ogreproj\ogreproj.obj 1
If this problem is because I messed up something in my CMakeLists.txt, here it is just in case:
Code: Select all
cmake_minimum_required (VERSION 2.8)
project (ogreproj)
add_executable(ogreproj ogreproj.cpp)
set(OGRE_DIR C:/coding/OgrePlayground/deps/ogre3d/builds/ogre-1.11.5/sdk/CMake)
# specify which version and components you need
find_package(OGRE 1.11 REQUIRED COMPONENTS Bites RTShaderSystem)
# copy resource.cfg next to our binaries where OGRE looks for it
file(COPY ${OGRE_CONFIG_DIR}/resources.cfg DESTINATION ${CMAKE_BINARY_DIR})