jwwalker wrote: ↑Sat Sep 25, 2021 6:09 pm
OK, thanks. With that change, I then got a file not found error on EmptyProject/Dependencies/Ogre/build/include/OgreBuildSettings.h. Apparently the script is assuming that my build output is in a folder "build" in the Ogre repository, which is not where I put it. I addressed that by adding a symbolic link, "build", pointing to the actual build folder. Now I get this:
That's by far the easiest solution. You can also explicitly set another build path using the OGRE_BINARIES CMake variable.
jwwalker wrote: ↑Sat Sep 25, 2021 6:09 pmI don't see a Resources.cfg file in a Data folder anywhere.
I'm not right now near a macOS machine. Could you try this patch?
Code: Select all
diff --git a/Samples/2.0/Tutorials/EmptyProject/CMakeLists.txt b/Samples/2.0/Tutorials/EmptyProject/CMakeLists.txt
index 7089dff51e..8f0a062a75 100644
--- a/Samples/2.0/Tutorials/EmptyProject/CMakeLists.txt
+++ b/Samples/2.0/Tutorials/EmptyProject/CMakeLists.txt
@@ -47,7 +47,7 @@ add_recursive( ./include HEADERS )
if( APPLE )
file( GLOB_RECURSE RESOURCES ./src/*.storyboard )
- set( RESOURCES ${RESOURCES} ./Data/Resources.cfg ./bin/Data )
+ set( RESOURCES ${RESOURCES} ./Data/resources2.cfg ./bin/Data )
endif()
add_executable( ${PROJECT_NAME} WIN32 MACOSX_BUNDLE ${SOURCES} ${HEADERS} ${RESOURCES} )
The CMake script automatically generates resources2.cfg file and it is supposed to be included into the XCode project so that it is bundled with the app; alongside with anything that is dropped into the bin/Data folder.
If the sample complains that files couldn't be loaded because resources2.cfg couldn't be found then likely the patch should be this instead:
Code: Select all
diff --git a/Samples/2.0/Tutorials/EmptyProject/CMakeLists.txt b/Samples/2.0/Tutorials/EmptyProject/CMakeLists.txt
index 7089dff51e..8f0a062a75 100644
--- a/Samples/2.0/Tutorials/EmptyProject/CMakeLists.txt
+++ b/Samples/2.0/Tutorials/EmptyProject/CMakeLists.txt
@@ -47,7 +47,7 @@ add_recursive( ./include HEADERS )
if( APPLE )
file( GLOB_RECURSE RESOURCES ./src/*.storyboard )
- set( RESOURCES ${RESOURCES} ./Data/Resources.cfg ./bin/Data )
+ set( RESOURCES ${RESOURCES} ./bin/Data )
endif()
add_executable( ${PROJECT_NAME} WIN32 MACOSX_BUNDLE ${SOURCES} ${HEADERS} ${RESOURCES} )