-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add v14.1.0 and drop build of v13.5.0
- Loading branch information
Showing
9 changed files
with
21,532 additions
and
6 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,27 @@ | ||
From 0077b01c5b558042c984ef586cc73b7b32f9c6a2 Mon Sep 17 00:00:00 2001 | ||
From: Joakim Haugen <joakim.haugen@sintef.no> | ||
Date: Thu, 26 Oct 2023 14:33:43 +0200 | ||
Subject: [PATCH] Set rpath with | ||
|
||
--- | ||
CMakeLists.txt | 4 ++-- | ||
1 file changed, 2 insertions(+), 2 deletions(-) | ||
|
||
diff --git a/CMakeLists.txt b/CMakeLists.txt | ||
index e04c61bcc..6e94a8052 100644 | ||
--- a/CMakeLists.txt | ||
+++ b/CMakeLists.txt | ||
@@ -427,8 +427,8 @@ mark_as_advanced( | ||
################################################################### | ||
include(ConfigureBuild) | ||
|
||
-set(CMAKE_INSTALL_RPATH "${CMAKE_INSTALL_RPATH};${CMAKE_INSTALL_PREFIX}/${OGRE_LIB_DIRECTORY}") | ||
-set(CMAKE_INSTALL_RPATH_USE_LINK_PATH TRUE) | ||
+set(CMAKE_INSTALL_RPATH "${CMAKE_INSTALL_RPATH};$ORIGIN;$ORIGIN/..;$ORIGIN/../lib;$ORIGIN/../lib/OGRE;$ORIGIN/../..") | ||
+set(CMAKE_INSTALL_RPATH_USE_LINK_PATH FALSE) | ||
|
||
################################################################### | ||
# disable way too common compiler warnings on project level | ||
-- | ||
2.30.2 | ||
|
71 changes: 71 additions & 0 deletions
71
patches/14.1.0-0002-Remove-absolute-paths-from-ogre-config.patch
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,71 @@ | ||
From fc0a1e92c926f86bd8c3f4e5edd9ad36a81f47ba Mon Sep 17 00:00:00 2001 | ||
From: Joakim Haugen <joakim.haugen@sintef.no> | ||
Date: Thu, 26 Oct 2023 14:42:13 +0200 | ||
Subject: [PATCH 1/2] Remove absolute paths from ogre config | ||
|
||
--- | ||
CMake/InstallResources.cmake | 8 ++++---- | ||
CMake/Templates/OgreConfigPaths.h.in | 6 +++--- | ||
Components/Bites/src/OgreGLXConfigDialog.cpp | 2 +- | ||
3 files changed, 8 insertions(+), 8 deletions(-) | ||
|
||
diff --git a/CMake/InstallResources.cmake b/CMake/InstallResources.cmake | ||
index ad531b3cf..cc1285528 100644 | ||
--- a/CMake/InstallResources.cmake | ||
+++ b/CMake/InstallResources.cmake | ||
@@ -33,10 +33,10 @@ endif() | ||
if (NOT OGRE_PLUGINS_PATH) | ||
if (WIN32) | ||
set(OGRE_PLUGINS_PATH "${OGRE_BIN_DIRECTORY}") | ||
- set(OGRE_PLUGIN_DIR_REL "${CMAKE_INSTALL_PREFIX}/${OGRE_BIN_DIRECTORY}") | ||
+ set(OGRE_PLUGIN_DIR_REL "../${OGRE_BIN_DIRECTORY}") | ||
else () | ||
set(OGRE_PLUGINS_PATH "${OGRE_LIB_DIRECTORY}/OGRE") | ||
- set(OGRE_PLUGIN_DIR_REL "${CMAKE_INSTALL_PREFIX}/${OGRE_LIB_DIRECTORY}/OGRE") | ||
+ set(OGRE_PLUGIN_DIR_REL "../../${OGRE_LIB_DIRECTORY}/OGRE") | ||
endif() | ||
else () | ||
set(OGRE_PLUGIN_DIR_REL "${CMAKE_INSTALL_PREFIX}/${OGRE_PLUGINS_PATH}") | ||
@@ -63,8 +63,8 @@ elseif (APPLE) | ||
set(OGRE_SAMPLES_DIR_REL "Contents/Plugins/") | ||
set(OGRE_CFG_INSTALL_PATH "bin") | ||
elseif (UNIX) | ||
- set(OGRE_TEST_MEDIA_DIR_REL "${CMAKE_INSTALL_PREFIX}/Tests/Media") | ||
- set(OGRE_SAMPLES_DIR_REL "${CMAKE_INSTALL_PREFIX}/${OGRE_LIB_DIRECTORY}/OGRE/Samples") | ||
+ set(OGRE_TEST_MEDIA_DIR_REL "../../Tests/Media") | ||
+ set(OGRE_SAMPLES_DIR_REL "../${OGRE_LIB_DIRECTORY}/OGRE/Samples") | ||
endif () | ||
|
||
# generate OgreConfigPaths.h | ||
diff --git a/CMake/Templates/OgreConfigPaths.h.in b/CMake/Templates/OgreConfigPaths.h.in | ||
index d51aab547..e139f5922 100644 | ||
--- a/CMake/Templates/OgreConfigPaths.h.in | ||
+++ b/CMake/Templates/OgreConfigPaths.h.in | ||
@@ -1,8 +1,8 @@ | ||
#ifndef OGRECONFIGPATHS_H_ | ||
#define OGRECONFIGPATHS_H_ | ||
|
||
-#define OGRE_CONFIG_DIR "@CMAKE_INSTALL_PREFIX@/@OGRE_CFG_INSTALL_PATH@" | ||
-#define OGRE_MEDIA_DIR "@CMAKE_INSTALL_PREFIX@/@OGRE_MEDIA_PATH@" | ||
-#define OGRE_PLUGIN_DIR "@OGRE_PLUGIN_DIR_REL@" | ||
+#define OGRE_CONFIG_DIR "@OGRE_CFG_INSTALL_PATH@" | ||
+#define OGRE_MEDIA_DIR "@OGRE_MEDIA_PATH_REL@" | ||
+#define OGRE_PLUGIN_DIR "@OGRE_PLUGIN_DIR_REL@" | ||
|
||
#endif /* OGRECONFIGPATHS_H_ */ | ||
diff --git a/Components/Bites/src/OgreGLXConfigDialog.cpp b/Components/Bites/src/OgreGLXConfigDialog.cpp | ||
index 9ce1157e3..7fea892cc 100644 | ||
--- a/Components/Bites/src/OgreGLXConfigDialog.cpp | ||
+++ b/Components/Bites/src/OgreGLXConfigDialog.cpp | ||
@@ -337,7 +337,7 @@ Pixmap GLXConfigurator::CreateBackdrop(Window rootWindow, int depth) { | ||
Image img; | ||
|
||
// Load backdrop image using OGRE | ||
- String path = FileSystemLayer::resolveBundlePath(OGRE_MEDIA_DIR "/../GLX_backdrop.png"); | ||
+ String path = FileSystemLayer::resolveBundlePath("../" OGRE_MEDIA_DIR "/GLX_backdrop.png"); | ||
DataStreamPtr imgStreamPtr = Root::openFileStream(path); | ||
img.load(imgStreamPtr, "png"); | ||
|
||
-- | ||
2.30.2 | ||
|
Oops, something went wrong.