ogrecave / ogre-next-deps Goto Github PK
View Code? Open in Web Editor NEWPackaged ogre-next dependencies' sources with a convenient CMake build system.
Packaged ogre-next dependencies' sources with a convenient CMake build system.
With version 16.9.3 of VS 2019 (but I suspect with every version greater-equal than 16.8.x as well) Freeimage doesn't build in non-debug modes. The error is related to OpenJPEG library: uclouvain/openjpeg#1333. For what I've understood, OpenJPEG 2.x versions aren't affected by this issue.
An Freeimage upgrade should hopefully fix the problem.
Here you can find a quick and dirty patch to ovverride the issue.
Following the instructions under: https://ogrecave.github.io/ogre-next/api/2.3/_setting_up_ogre_linux.html
Attempting to build dependencies under Linux results in compiler errors about ISO C++17 such as the following:
ogre-next-deps/src/FreeImage/Source/OpenEXR/Imath/ImathVec.h:227:41: error: ISO C++17 does not allow dynamic exception specifications
227 | const Vec2 & normalizeExc () throw (Iex::MathExc);
Looks like SDL2 is absent in the repo,
CMake Error at C:/Program Files/CMake/share/cmake-3.19/Modules/ExternalProject.cmake:2748 (message):
No download info given for 'SDL2' and its source directory:
F:/DOWNLOADS/ogre-next-deps-master/src/SDL2
is not an existing non-empty directory. Please specify one of:
* SOURCE_DIR with an existing non-empty directory
* DOWNLOAD_COMMAND
* URL
* GIT_REPOSITORY
* SVN_REPOSITORY
* HG_REPOSITORY
* CVS_REPOSITORY and CVS_MODULE
Call Stack (most recent call first):
C:/Program Files/CMake/share/cmake-3.19/Modules/ExternalProject.cmake:3430 (_ep_add_download_command)
src/CMakeLists.txt:174 (ExternalProject_Add)
CMake Deprecation Warning at src/zlib/CMakeLists.txt:1 (cmake_minimum_required):
Compatibility with CMake < 2.8.12 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.
Configuring incomplete, errors occurred!
When attempting to build the dependencies using Xcode 14.3 beta, I got an error:
ld: file not found: /Applications/Xcode14.3-beta.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/arc/libarclite_macosx.a
This doesn't happen with Xcode 14.2. As I understand it, libarclite has something to do with providing runtime compatibility for old versions of macOS. So maybe the problem is that CMakeLists.txt sets CMAKE_OSX_DEPLOYMENT_TARGET
to 10.7, while the minimum officially-supported deployment target for Xcode 14.2 and later is 10.13.
Hello.
I tried to compile for Android. I used this command line:
# Download ogre-next-deps
git clone --recurse-submodules --shallow-submodules https://github.com/OGRECave/ogre-next-deps
# Compile ogre-next-deps
cd ogre-next-deps
mkdir -p build/Android/Release
cd build/Android/Release
cmake \
-DCMAKE_TOOLCHAIN_FILE=/home/username/Android/Sdk/ndk/21.0.6113669/build/cmake/android.toolchain.cmake \
-DANDROID_ABI=arm64-v8a \
-DANDROID_NATIVE_API_LEVEL=24 \
-DCMAKE_BUILD_TYPE=Release \
../../../
make -j9
After make I have these error:
user@WH0118119 Release % make
[ 0%] Creating directories for 'shaderc'
[ 0%] No download step for 'shaderc'
[ 0%] No update step for 'shaderc'
[ 1%] No patch step for 'shaderc'
[ 2%] Performing configure step for 'shaderc'
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Check for working C compiler: /Users/user/Library/Android/sdk/ndk/20.0.5594570/toolchains/llvm/prebuilt/darwin-x86_64/bin/clang - 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: /Users/user/Library/Android/sdk/ndk/20.0.5594570/toolchains/llvm/prebuilt/darwin-x86_64/bin/clang++ - skipped
-- Detecting CXX compile features
-- Detecting CXX compile features - done
-- Shaderc: build type is "Release".
-- Configuring Shaderc to avoid building tests.
-- asciidoctor was not found - no documentation will be generated
-- Found PythonInterp: /usr/local/bin/python3 (found suitable version "3.9.8", minimum required is "3")
-- Found BISON: /usr/bin/bison (found version "2.3")
-- Performing Test COMPILER_SUPPORTS_FALLTHROUGH_WARNING
-- Performing Test COMPILER_SUPPORTS_FALLTHROUGH_WARNING - Success
-- Performing Test COMPILER_SUPPORTS_EXTRA_SEMI_WARNING
-- Performing Test COMPILER_SUPPORTS_EXTRA_SEMI_WARNING - Success
-- Performing Test COMPILER_SUPPORTS_PIC
-- Performing Test COMPILER_SUPPORTS_PIC - Success
CMake Warning (dev) at third_party/spirv-tools/CMakeLists.txt:71 (option):
Policy CMP0077 is not set: option() honors normal variables. Run "cmake
--help-policy CMP0077" for policy details. Use the cmake_policy command to
set the policy and suppress this warning.
For compatibility with older versions of CMake, option is clearing the
normal variable 'SKIP_SPIRV_TOOLS_INSTALL'.
This warning is for project developers. Use -Wno-dev to suppress it.
CMake Error at third_party/spirv-tools/external/CMakeLists.txt:37 (add_subdirectory):
The source directory
/Users/user/work/ogre-next-deps/src/vulkan/shaderc/src/third_party/spirv-tools/external/SPIRV-Headers
does not contain a CMakeLists.txt file.
CMake Error at third_party/CMakeLists.txt:70 (add_subdirectory):
The source directory
/Users/user/work/ogre-next-deps/src/vulkan/shaderc/src/third_party/glslang
does not contain a CMakeLists.txt file.
CMake Error at third_party/CMakeLists.txt:73 (message):
glslang was not found - required for compilation
How I understand I should place SPIRV-Headers and glslang to this directory. Could you please where I should take them and what version?
Hi, just when building these dependencies, python 3.* (I used Pythin 3.10 x64) was beeded to build the "shaderc" project.
Apparently this is a problem on Windows only, MSVC 14 moved std::binary_function into header file "functional"
The solution that worked for me was to add:
#include <functional>
info about this bug was found here:
https://learn.microsoft.com/en-us/answers/questions/1348183/std-binary-function-is-missing-in-msvc-14-37-32822
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.