Ogre Version: 14.3.1
Operating System: MacOS Sequoia 15.0.1
Render System:
I've compile OGRE statically under the folder BuildStatic and am attempting to compile a simple test scene according to the API reference tutorials at https://ogrecave.github.io/ogre/api/lat ... rials.html. I'm using CMake version 3.30.5 and am using the following CMakeLists.txt file:
Code: Select all
cmake_minimum_required(VERSION 3.10)
project("OGRE Project")
set(OGRE_DIR "/Users/admin/ogre/BuildStatic/sdk/CMake")
set(CMAKE_CXX_STANDARD 17)
set(OGRE_VERSION 14.3.1)
find_package(OGRE ${OGRE_VERSION} REQUIRED COMPONENTS Bites CONFIG HINTS "${OGRE_DIR}")
add_executable(project src/main.cpp)
target_link_libraries(project OgreBites)
Here's is the full error and log it outputs:
Code: Select all
-- The C compiler identification is AppleClang 16.0.0.16000026
-- The CXX compiler identification is AppleClang 16.0.0.16000026
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Check for working C compiler: /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/cc - skipped
-- Detecting C compile features
-- Detecting C compile features - done
-- Detecting CXX compiler ABI info
-- Detecting CXX compiler ABI info - done
-- Check for working CXX compiler: /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/c++ - skipped
-- Detecting CXX compile features
-- Detecting CXX compile features - done
CMake Error at /Users/admin/ogre/BuildStatic/sdk/CMake/OGREConfig.cmake:33 (message):
File or directory /Users/admin/ogre/BuildStatic/sdk/lib/OGRE referenced by
variable OGRE_PLUGIN_DIR does not exist !
Call Stack (most recent call first):
/Users/admin/ogre/BuildStatic/sdk/CMake/OGREConfig.cmake:51 (set_and_check)
CMakeLists.txt:20 (find_package)
-- Configuring incomplete, errors occurred!
I have tried setting the OGRE_DIR to BuildStatic/cmake and just BuildStatic, but it had zero effect. I also tried setting OGRE_PLUGIN_DIR directly but it also had no changes, here are the directories I tried:
Code: Select all
/Users/admin/ogre/BuildStatic/PlugIns
/Users/admin/ogre/BuildStatic/Dependencies
/Users/admin/ogre/BuildStatic/Components
/Users/admin/ogre/BuildStatic
/Users/admin/ogre
/Users/admin/ogre/BuildStatic/sdk
/Users/admin/ogre/BuildStatic/sdk/include
Any help is appreciated!