Obviously I still have problems starting a project. I used the build script. I went to Ogre/ogre-next to make the following commands:
Code: Select all
cmake -D OGRE_BUILD_RENDERSYSTEM_GL3PLUS=OFF \
-D OGRE_BUILD_LIBS_AS_FRAMEWORKS=NO \
-D OGRE_PLUGIN_LIB_PREFIX=lib \
-D CMAKE_CXX_STANDARD=11 \
-D CMAKE_INSTALL_PREFIX=/Users/tchoune/Documents/dev/cplusplus/Ogre/ogre-next/sdk \
-D CMAKE_CXX_FLAGS="-I/usr/local/include -F/Library/Frameworks" \
-D CMAKE_INSTALL_NAME_DIR=/Users/tchoune/Documents/dev/cplusplus/Ogre/ogre-next/sdk/lib .
cmake .
make -j4 install
Unfortunately, I don't have the files requested in SDK: $PWD/sdk/plugins_tools_d.cfg and $PWD/sdk/plugins_tools.cfg, I only have in $PWD/sdk :
Code: Select all
tchoune@yannicks-MacBook-Pro sdk % ls -l
total 0
drwxr-xr-x 14 tchoune staff 448 Feb 6 13:06 CMake
drwxr-xr-x 18 tchoune staff 576 Feb 6 13:06 Media
drwxr-xr-x 61 tchoune staff 1952 Feb 6 14:27 bin
drwxr-xr-x 4 tchoune staff 128 Feb 6 13:09 include
drwxr-xr-x 21 tchoune staff 672 Feb 6 14:27 lib
I did find a file in SDK/bin/plugins_tools.cfg that I'm replacing with :
Code: Select all
# Defines plugins to load
# Define plugin folder
PluginFolder=/Users/tchoune/Documents/dev/cplusplus/Ogre/ogre-next/sdk/lib
# Define plugins
Plugin=RenderSystem_NULL
Once I've copied the EmptyProject folder from sample 2.0 and renamed it "gameone" and made a symbolic link in
Code: Select all
~/Document/dev/cplusplus/gameone/Dependencies/Ogre
to the
Code: Select all
~/Document/dev/cplusplus/Ogre/ogre-next/
folder
I changed the project variable in ./gameone/CMakeList.txt to : project( gameone )
and run the following commands in the gameone build folder:
Code: Select all
tchoune@yannicks-MacBook-Pro build % cmake -DCMAKE_BUILD_TYPE=Debug -DOGRE_BUILD_LIBS_AS_FRAMEWORKS=0 -DOGRE_STATIC=1 ..
CMake Deprecation Warning at CMakeLists.txt:13 (cmake_minimum_required):
Compatibility with CMake < 3.5 will be removed from a future version of
CMake.
Update the VERSION argument <min> value or use a ...<max> suffix to tell
CMake that the project does not need compatibility with older versions.
-- OgreNext lib name prefix is Ogre
-- Detected DLL build of OgreNext
-- Found SDL2
-- Detected Metal RenderSystem. Linking against it.
-- Copying Hlms data files from Ogre repository
-- Copying Common data files from Ogre repository
-- Copying DLLs and generating Plugins.cfg for Debug
-- Copying DLLs and generating Plugins.cfg for Release
-- Copying DLLs and generating Plugins.cfg for RelWithDebInfo
-- Copying DLLs and generating Plugins.cfg for MinSizeRel
-- Generating /Users/tchoune/Documents/dev/cplusplus/gameone/bin/Data/resources2.cfg from template
/Users/tchoune/Documents/dev/cplusplus/gameone/CMake/Templates/Resources.cfg.in
-- Copying OgreSamplesCommon cpp and header files to
/Users/tchoune/Documents/dev/cplusplus/gameone/include/OgreCommon
/Users/tchoune/Documents/dev/cplusplus/gameone/src/OgreCommon/
-- Configuring done (0.1s)
-- Generating done (0.0s)
-- Build files have been written to: /Users/tchoune/Documents/dev/cplusplus/gameone/build
tchoune@yannicks-MacBook-Pro build % make
...
In file included from /Users/tchoune/Documents/dev/cplusplus/gameone/src/OgreCommon/Utils/TestUtils.cpp:8:
In file included from /Users/tchoune/Documents/dev/cplusplus/gameone/Dependencies/Ogre/OgreMain/include/OgreRoot.h:34:
In file included from /Users/tchoune/Documents/dev/cplusplus/gameone/Dependencies/Ogre/OgreMain/include/OgreSceneManagerEnumerator.h:33:
In file included from /Users/tchoune/Documents/dev/cplusplus/gameone/Dependencies/Ogre/OgreMain/include/OgreSceneManager.h:40:
In file included from /Users/tchoune/Documents/dev/cplusplus/gameone/Dependencies/Ogre/OgreMain/include/OgreAutoParamDataSource.h:33:
In file included from /Users/tchoune/Documents/dev/cplusplus/gameone/Dependencies/Ogre/OgreMain/include/OgreLight.h:35:
In file included from /Users/tchoune/Documents/dev/cplusplus/gameone/Dependencies/Ogre/OgreMain/include/OgreMovableObject.h:36:
In file included from /Users/tchoune/Documents/dev/cplusplus/gameone/Dependencies/Ogre/OgreMain/include/Math/Array/OgreObjectData.h:32:
In file included from /Users/tchoune/Documents/dev/cplusplus/gameone/Dependencies/Ogre/OgreMain/include/Math/Array/OgreArrayAabb.h:44:
In file included from /Users/tchoune/Documents/dev/cplusplus/gameone/Dependencies/Ogre/OgreMain/include/Math/Array/NEON/Single/OgreArrayAabb.h:38:
In file included from /Users/tchoune/Documents/dev/cplusplus/gameone/Dependencies/Ogre/OgreMain/include/Math/Simple/OgreAabb.h:41:
In file included from /Users/tchoune/Documents/dev/cplusplus/gameone/Dependencies/Ogre/OgreMain/include/Math/Simple/C/OgreAabb.h:176:
/Users/tchoune/Documents/dev/cplusplus/gameone/Dependencies/Ogre/OgreMain/include/Math/Simple/C/OgreAabb.inl:109:16: warning: use of bitwise '&' with boolean operands [-Wbitwise-instead-of-logical]
return ( Math::Abs( dist.x ) <= sumHalfSizes.x ) &
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/Users/tchoune/Documents/dev/cplusplus/gameone/Dependencies/Ogre/OgreMain/include/Math/Simple/C/OgreAabb.inl:109:16: note: cast one or both operands to int to silence this warning
/Users/tchoune/Documents/dev/cplusplus/gameone/Dependencies/Ogre/OgreMain/include/Math/Simple/C/OgreAabb.inl:109:16: warning: use of bitwise '&' with boolean operands [-Wbitwise-instead-of-logical]
return ( Math::Abs( dist.x ) <= sumHalfSizes.x ) &
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
&&
/Users/tchoune/Documents/dev/cplusplus/gameone/Dependencies/Ogre/OgreMain/include/Math/Simple/C/OgreAabb.inl:109:16: note: cast one or both operands to int to silence this warning
/Users/tchoune/Documents/dev/cplusplus/gameone/Dependencies/Ogre/OgreMain/include/Math/Simple/C/OgreAabb.inl:130:16: warning: use of bitwise '&' with boolean operands [-Wbitwise-instead-of-logical]
return ( Math::Abs( dist.x ) + other.mHalfSize.x <= mHalfSize.x ) &
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/Users/tchoune/Documents/dev/cplusplus/gameone/Dependencies/Ogre/OgreMain/include/Math/Simple/C/OgreAabb.inl:130:16: note: cast one or both operands to int to silence this warning
/Users/tchoune/Documents/dev/cplusplus/gameone/Dependencies/Ogre/OgreMain/include/Math/Simple/C/OgreAabb.inl:130:16: warning: use of bitwise '&' with boolean operands [-Wbitwise-instead-of-logical]
return ( Math::Abs( dist.x ) + other.mHalfSize.x <= mHalfSize.x ) &
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
&&
/Users/tchoune/Documents/dev/cplusplus/gameone/Dependencies/Ogre/OgreMain/include/Math/Simple/C/OgreAabb.inl:130:16: note: cast one or both operands to int to silence this warning
/Users/tchoune/Documents/dev/cplusplus/gameone/Dependencies/Ogre/OgreMain/include/Math/Simple/C/OgreAabb.inl:142:16: warning: use of bitwise '&' with boolean operands [-Wbitwise-instead-of-logical]
return ( Math::Abs( dist.x ) <= mHalfSize.x ) &
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/Users/tchoune/Documents/dev/cplusplus/gameone/Dependencies/Ogre/OgreMain/include/Math/Simple/C/OgreAabb.inl:142:16: note: cast one or both operands to int to silence this warning
/Users/tchoune/Documents/dev/cplusplus/gameone/Dependencies/Ogre/OgreMain/include/Math/Simple/C/OgreAabb.inl:142:16: warning: use of bitwise '&' with boolean operands [-Wbitwise-instead-of-logical]
return ( Math::Abs( dist.x ) <= mHalfSize.x ) &
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
&&
/Users/tchoune/Documents/dev/cplusplus/gameone/Dependencies/Ogre/OgreMain/include/Math/Simple/C/OgreAabb.inl:142:16: note: cast one or both operands to int to silence this warning
10 warnings generated.
[100%] Linking CXX executable /Users/tchoune/Documents/dev/cplusplus/gameone/bin/Debug/gameone.app/Contents/MacOS/gameone
ld: warning: search path '/Users/tchoune/Documents/dev/cplusplus/gameone/Dependencies/Ogre/build/lib/$(PLATFORM_NAME)/$(CONFIGURATION)' not found
ld: library 'RenderSystem_Metal1' not found
clang: error: linker command failed with exit code 1 (use -v to see invocation)
make[2]: *** [/Users/tchoune/Documents/dev/cplusplus/gameone/bin/Debug/gameone.app/Contents/MacOS/gameone] Error 1
make[1]: *** [CMakeFiles/gameone.dir/all] Error 2
make: *** [all] Error 2
and the Ogre/build/lib/.. :
Code: Select all
tchoune@yannicks-MacBook-Pro gameone % cd /Users/tchoune/Documents/dev/cplusplus/gameone/Dependencies/Ogre/build/lib/
tchoune@yannicks-MacBook-Pro lib % ls
Debug RelWithDebInfo macosx
tchoune@yannicks-MacBook-Pro lib % cd Debug
tchoune@yannicks-MacBook-Pro Debug % ls
Ogre.framework libOgreSamplesCommon.a
it makes a mistake I don't understand. Have there been any differences between the tutorial and the engine's evolutions in terms of folder and file locations?
Thanks in advance,
Yannick