Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

libignition-rendering4 v6_6.0.0 #19

Merged
merged 34 commits into from
Oct 7, 2021
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
34 commits
Select commit Hold shift + click to select a range
03c387e
updated v6_6.0.0
regro-cf-autotick-bot Oct 1, 2021
cb913ee
MNT: Re-rendered with conda-build 3.21.4, conda-smithy 3.12, and cond…
regro-cf-autotick-bot Oct 1, 2021
d5ae016
Update conda-forge.yml
traversaro Oct 3, 2021
fc056fd
Create 452.patch
traversaro Oct 4, 2021
dc720bc
Update meta.yaml
traversaro Oct 4, 2021
4bb37bc
Create remove_problematic_ignogre_logic.patch
traversaro Oct 4, 2021
1b2e83d
Update meta.yaml
traversaro Oct 4, 2021
9570ec8
Update remove_problematic_ignogre_logic.patch
traversaro Oct 4, 2021
572ed75
Update remove_problematic_ignogre_logic.patch
traversaro Oct 4, 2021
88d8416
Update remove_problematic_ignogre_logic.patch
traversaro Oct 4, 2021
1523773
Update remove_problematic_ignogre_logic.patch
traversaro Oct 6, 2021
6330804
Update remove_problematic_ignogre_logic.patch
traversaro Oct 6, 2021
911aef1
Update build.sh
traversaro Oct 6, 2021
acccc1f
Update remove_problematic_ignogre_logic.patch
traversaro Oct 6, 2021
9d4bf26
Update build.sh
traversaro Oct 6, 2021
7c24cfd
Update remove_problematic_ignogre_logic.patch
traversaro Oct 6, 2021
9b59fc3
Update remove_problematic_ignogre_logic.patch
traversaro Oct 6, 2021
7a3153d
Update meta.yaml
traversaro Oct 6, 2021
04088f9
Update build.sh
traversaro Oct 6, 2021
194316b
Update meta.yaml
traversaro Oct 6, 2021
43f80ff
Create 454.patch
traversaro Oct 6, 2021
27f44fc
Update meta.yaml
traversaro Oct 6, 2021
7123db7
Update build.sh
traversaro Oct 6, 2021
71420d9
Update build.sh
traversaro Oct 6, 2021
2278e75
Update bld.bat
traversaro Oct 6, 2021
135ed9d
Update build.sh
traversaro Oct 7, 2021
854a571
Update bld.bat
traversaro Oct 7, 2021
47a5e89
Create yum_requirements.txt
traversaro Oct 7, 2021
bf90575
MNT: Re-rendered with conda-build 3.21.4, conda-smithy 3.12, and cond…
Oct 7, 2021
b4cbfed
Delete yum_requirements.txt
traversaro Oct 7, 2021
4aa39cc
Update build.sh
traversaro Oct 7, 2021
c0eb198
Update bld.bat
traversaro Oct 7, 2021
cc49b0d
MNT: Re-rendered with conda-build 3.21.4, conda-smithy 3.12, and cond…
Oct 7, 2021
d043d4d
Update build.sh
traversaro Oct 7, 2021
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .azure-pipelines/azure-pipelines-win.yml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion .ci_support/linux_64_ogre1.10.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ c_compiler_version:
cdt_name:
- cos6
channel_sources:
- conda-forge,defaults
- conda-forge
channel_targets:
- conda-forge main
cxx_compiler:
Expand Down
2 changes: 1 addition & 1 deletion .ci_support/linux_64_ogre1.12.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ c_compiler_version:
cdt_name:
- cos6
channel_sources:
- conda-forge,defaults
- conda-forge
channel_targets:
- conda-forge main
cxx_compiler:
Expand Down
2 changes: 1 addition & 1 deletion .ci_support/osx_64_ogre1.10.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ c_compiler:
c_compiler_version:
- '11'
channel_sources:
- conda-forge,defaults
- conda-forge
channel_targets:
- conda-forge main
cxx_compiler:
Expand Down
2 changes: 1 addition & 1 deletion .ci_support/osx_64_ogre1.12.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ c_compiler:
c_compiler_version:
- '11'
channel_sources:
- conda-forge,defaults
- conda-forge
channel_targets:
- conda-forge main
cxx_compiler:
Expand Down
2 changes: 1 addition & 1 deletion .ci_support/osx_arm64_ogre1.10.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ c_compiler:
c_compiler_version:
- '11'
channel_sources:
- conda-forge/label/rust_dev,conda-forge
- conda-forge
channel_targets:
- conda-forge main
cxx_compiler:
Expand Down
2 changes: 1 addition & 1 deletion .ci_support/osx_arm64_ogre1.12.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ c_compiler:
c_compiler_version:
- '11'
channel_sources:
- conda-forge/label/rust_dev,conda-forge
- conda-forge
channel_targets:
- conda-forge main
cxx_compiler:
Expand Down
2 changes: 1 addition & 1 deletion .ci_support/win_64_ogre1.10.yaml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
c_compiler:
- vs2017
channel_sources:
- conda-forge,defaults
- conda-forge
channel_targets:
- conda-forge main
cxx_compiler:
Expand Down
2 changes: 1 addition & 1 deletion .ci_support/win_64_ogre1.12.yaml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
c_compiler:
- vs2017
channel_sources:
- conda-forge,defaults
- conda-forge
channel_targets:
- conda-forge main
cxx_compiler:
Expand Down
22 changes: 11 additions & 11 deletions README.md

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion conda-forge.yml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
bot:
abi_migration_branches: [v4]
abi_migration_branches: [v4, v5]
build_platform: {osx_arm64: osx_64}
conda_forge_output_validation: true
test_on_native_only: true
23 changes: 23 additions & 0 deletions recipe/452.patch
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
From b224a6e2a469d8bb89558ead069339b798111440 Mon Sep 17 00:00:00 2001
From: Silvio Traversaro <[email protected]>
Date: Mon, 4 Oct 2021 16:32:03 +0200
Subject: [PATCH] ogre: Add missing required Paging component

---
CMakeLists.txt | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/CMakeLists.txt b/CMakeLists.txt
index 5ace9885..216aacc2 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -61,7 +61,7 @@ endif()

#--------------------------------------
# Find OGRE
-list(APPEND ign_ogre_components "RTShaderSystem" "Terrain" "Overlay")
+list(APPEND ign_ogre_components "RTShaderSystem" "Terrain" "Overlay" "Paging")

# Ogre versions greater than 1.9 are not officialy supported.
# Display a warning for the users on this setup unless they provide

40 changes: 40 additions & 0 deletions recipe/454.patch
Original file line number Diff line number Diff line change
@@ -0,0 +1,40 @@
From 25abfaa578de547ec885936cabf7e202c685ab33 Mon Sep 17 00:00:00 2001
From: Silvio Traversaro <[email protected]>
Date: Wed, 6 Oct 2021 19:45:53 +0200
Subject: [PATCH] ogre: Do not assume that ogre plugins have lib prefix on
macOS

Signed-off-by: Silvio <[email protected]>
---
ogre/src/OgreRenderEngine.cc | 11 ++++-------
1 file changed, 4 insertions(+), 7 deletions(-)

diff --git a/ogre/src/OgreRenderEngine.cc b/ogre/src/OgreRenderEngine.cc
index b9e394462..ed66934ec 100644
--- a/ogre/src/OgreRenderEngine.cc
+++ b/ogre/src/OgreRenderEngine.cc
@@ -421,20 +421,17 @@ void OgreRenderEngine::LoadPlugins()
std::vector<std::string>::iterator piter;

#ifdef __APPLE__
- std::string prefix = "lib";
std::string extension = ".dylib";
#elif _WIN32
- std::string prefix = "";
std::string extension = ".dll";
#else
- std::string prefix = "";
std::string extension = ".so";
#endif

- plugins.push_back(path+"/"+prefix+"RenderSystem_GL");
- plugins.push_back(path+"/"+prefix+"Plugin_ParticleFX");
- plugins.push_back(path+"/"+prefix+"Plugin_BSPSceneManager");
- plugins.push_back(path+"/"+prefix+"Plugin_OctreeSceneManager");
+ plugins.push_back(path+"/RenderSystem_GL");
+ plugins.push_back(path+"/Plugin_ParticleFX");
+ plugins.push_back(path+"/Plugin_BSPSceneManager");
+ plugins.push_back(path+"/Plugin_OctreeSceneManager");

#ifdef HAVE_OCULUS
plugins.push_back(path+"/Plugin_CgProgramManager");
9 changes: 7 additions & 2 deletions recipe/bld.bat
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,8 @@ cmake ^
-DCMAKE_INSTALL_PREFIX=%LIBRARY_PREFIX% ^
-DCMAKE_BUILD_TYPE=Release ^
-DCMAKE_INSTALL_SYSTEM_RUNTIME_LIBS_SKIP=True ^
-DSKIP_ogre2:BOOL=ON ^
-DSKIP_optix:BOOL=ON ^
%SRC_DIR%
if errorlevel 1 exit 1

Expand All @@ -18,5 +20,8 @@ cmake --build . --config Release --target install
if errorlevel 1 exit 1

:: Test.
ctest --output-on-failure -C Release -E "INTEGRATION|PERFORMANCE|REGRESSION|UNIT_RenderingIface_TEST|check_"
if errorlevel 1 exit 1
:: Do not run tests as they require to open a display and this is not supported on CI at the moment
:: See https://github.com/conda-forge/libignition-rendering4-feedstock/pull/19#issuecomment-937678806
:: set RENDER_ENGINE_VALUES=ogre
:: ctest --output-on-failure -C Release -E "INTEGRATION|PERFORMANCE|REGRESSION|UNIT_RenderingIface_TEST|check_"
:: if errorlevel 1 exit 1
14 changes: 10 additions & 4 deletions recipe/build.sh
Original file line number Diff line number Diff line change
Expand Up @@ -13,11 +13,17 @@ cmake ${CMAKE_ARGS} .. \
-DCMAKE_INSTALL_SYSTEM_RUNTIME_LIBS_SKIP=True \
-DFREEIMAGE_RUNS:BOOL=ON \
-DFREEIMAGE_RUNS__TRYRUN_OUTPUT:STRING="" \
-DFREEIMAGE_COMPILES:BOOL=ON
-DFREEIMAGE_COMPILES:BOOL=ON \
-DSKIP_ogre2:BOOL=ON \
-DSKIP_optix:BOOL=ON

cmake --build . --config Release
cmake --build . --config Release --target install

# UNIT_Heightmap_TEST disabled for https://github.com/conda-forge/libignition-rendering4-feedstock/issues/10
if [[ "${CONDA_BUILD_CROSS_COMPILATION}" != "1" ]]; then
ctest --output-on-failure -C Release -E "INTEGRATION|PERFORMANCE|REGRESSION|UNIT_RenderingIface_TEST|check_UNIT_RenderingIface_TEST|UNIT_Heightmap_TEST"
fi
# if [[ "${CONDA_BUILD_CROSS_COMPILATION}" != "1" ]]; then
# Do not run tests as they require to open a display and this is not supported on CI at the moment
# See https://github.com/conda-forge/libignition-rendering4-feedstock/pull/19#issuecomment-937678806
# export RENDER_ENGINE_VALUES=ogre
# ctest --extra-verbose --output-on-failure -C Release -E "INTEGRATION|PERFORMANCE|REGRESSION|UNIT_RenderingIface_TEST|check_UNIT_RenderingIface_TEST|UNIT_Heightmap_TEST"
# fi
9 changes: 6 additions & 3 deletions recipe/meta.yaml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{% set base_name = "libignition-rendering" %}
{% set version = "5_5.1.0" %}
{% set version = "6_6.0.0" %}
{% set version_package = version.split('_')[1] %}
{% set major_version = version.split('_')[0] %}
{% set name = base_name + major_version %}
Expand All @@ -10,12 +10,15 @@ package:

source:
url: https://github.com/ignitionrobotics/ign-rendering/archive/ignition-rendering{{ version }}.tar.gz
sha256: a26fe32f2dd849bb2ae492fc65b73e730f830f5bf9d763c9e62b6d6672ccf02f
sha256: e9c7740916f2c39df5c1a3e1118bd5f0c137b01e6c513c87f6c8f27713665fd8
patches:
- ogre-version.patch
- 452.patch
- remove_problematic_ignogre_logic.patch
- 454.patch

build:
number: 1
number: 0
run_exports:
- {{ pin_subpackage(name, max_pin='x') }}

Expand Down
49 changes: 49 additions & 0 deletions recipe/remove_problematic_ignogre_logic.patch
Original file line number Diff line number Diff line change
@@ -0,0 +1,49 @@
From 62aabc57e6c18798a8232a7a560c35ebfe088d91 Mon Sep 17 00:00:00 2001
From: Silvio Traversaro <[email protected]>
Date: Mon, 4 Oct 2021 17:14:34 +0200
Subject: [PATCH] Remove problematic IgnOGRE logic

---
CMakeLists.txt | 28 ++++------------------------
1 file changed, 4 insertions(+), 24 deletions(-)

diff --git a/CMakeLists.txt b/CMakeLists.txt
index 51328f1e..719f7721 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -64,30 +64,11 @@ endif()
# Find OGRE
list(APPEND ign_ogre_components "RTShaderSystem" "Terrain" "Overlay")

-# Ogre versions greater than 1.9 are not officialy supported.
-# Display a warning for the users on this setup unless they provide
-# USE_UNOFFICIAL_OGRE_VERSIONS flag
-if (NOT USE_UNOFFICIAL_OGRE_VERSIONS)
- # Only for checking the ogre version
- ign_find_package(IgnOGRE VERSION 1.10 QUIET)
-
- if (OGRE_FOUND)
- IGN_BUILD_WARNING("Ogre 1.x versions greater than 1.9 are not officially supported."
- "The software might compile and even work but support from upstream"
- "could be reduced to accepting patches for newer versions")
- ign_find_package(IgnOGRE VERSION 1.10
- COMPONENTS ${ign_ogre_components}
- REQUIRED_BY ogre
- PRIVATE_FOR ogre)
- else()
- # If ogre 1.10 or greater was not found, then proceed to look for 1.9.x
- # versions which are offically supported
- ign_find_package(IgnOGRE VERSION 1.9.0
- COMPONENTS ${ign_ogre_components}
- REQUIRED_BY ogre
- PRIVATE_FOR ogre)
- endif()
-endif()
+ign_find_package(IgnOGRE VERSION 1.10 COMPONENTS ${ign_ogre_components}
+ REQUIRED_BY ogre PRIVATE_FOR ogre)
+#if(NOT WIN32)
+# target_include_directories(IgnOGRE::IgnOGRE INTERFACE $ENV{CONDA_PREFIX}/include/OGRE/Paging)
+#endif()

if (OGRE_FOUND)
# find boost - mainly needed on macOS and also by the terrain component