Closed Tobias-Fischer closed 4 years ago
It would also be great if Codec_FreeImage could be included
Note that this is needed for rviz
compilation :)
do you want to try your hand at a PR?
btw for RViz there is one additional challenge / trick that we need to do:
In these lines above, at configuration time the path is hard-coded into the binary. conda does some magic to find these hard coded values and change them (because conda binaries are relocatable and you can install them into any "prefix"). but this doesn't work and has ugly side effects with std::strings (as they have a small buffer optimization)...
my fix was to remove these lines and insert a "getenv("CONDA_PREFIX");" there (or something similar). Just wanted to point this out in case you're hitting that issue.
I'll play around a little with it as time permits.
So far, a local build leads to:
-- The following OPTIONAL packages could NOT be located on your system.
-- Consider installing them to enable more features from this software.
+ zziplib: Extract data from zip archives <http://zziplib.sourceforge.net>
+ freeimage: Support for commonly used graphics image formats <http://freeimage.sourceforge.net>
+ OpenGL: Support for the OpenGL and OpenGL 3+ render systems <http://www.opengl.org/>
+ OpenGL ES 2.x: Support for the OpenGL ES 2.x render system <http://www.khronos.org/opengles/>
+ cg: C for graphics shader language <http://developer.nvidia.com/object/cg_toolkit.html>
+ OpenEXR: Load High dynamic range images <http://www.openexr.com/>
+ SDL2: Simple DirectMedia Library needed for input handling in samples <https://www.libsdl.org/>
+ Doxygen: Tool for building API documentation <http://doxygen.org>
+ Softimage: Softimage SDK needed for building XSIExporter <FALSE>
which explains why RenderSystem_GL is not being built.
Hi @wolfv - I just created a PR. As I am not sure how to test the new package locally in my conda environment, I have not yet encountered the rviz issue you mentioned.
rviz
seems to run fine for me after the merge of #16. Quite a pain as it has a lot of dependencies in the catkin_ws, but it works. I guess the aim is that there will be more feedstocks for these packages in the future?
Fixes required to get rviz
running are merging of https://github.com/ros-visualization/rviz/pull/1434 into melodic-devel
and some smaller fixes:
diff --git a/ogre_media/fonts/liberation_sans.fontdef b/ogre_media/fonts/liberation_sans.fontdef
index e714db0f..311a7ac5 100644
--- a/ogre_media/fonts/liberation_sans.fontdef
+++ b/ogre_media/fonts/liberation_sans.fontdef
@@ -1,12 +1,12 @@
-Liberation Sans
-{
- type truetype
- source liberation-sans/LiberationSans-Regular.ttf
- size 18
- resolution 96
-}
+// Liberation Sans
+// {
+// type truetype
+// source liberation-sans/LiberationSans-Regular.ttf
+// size 18
+// resolution 96
+// }
-# Ogre >= 1.10 has changed the format
+// Ogre >= 1.10 has changed the format
font "Liberation Sans"
{
type truetype
diff --git a/src/python_bindings/sip/CMakeLists.txt b/src/python_bindings/sip/CMakeLists.txt
index 4efebe63..4df7bba5 100644
--- a/src/python_bindings/sip/CMakeLists.txt
+++ b/src/python_bindings/sip/CMakeLists.txt
@@ -45,7 +45,7 @@ include(${python_qt_binding_EXTRAS_DIR}/sip_helper.cmake)
# set(rviz_sip_INCLUDE_DIRS ${rviz_INCLUDE_DIRS} "${PROJECT_SOURCE_DIR}/src" ${catkin_INCLUDE_DIRS} ${EXPORT_HEADER_DIR})
set(rviz_sip_INCLUDE_DIRS
"${PROJECT_SOURCE_DIR}/src"
- $<TARGET_PROPERTY:rviz,EXPORT_HEADER_DIR>
+ ${EXPORT_HEADER_DIR}
${OGRE_OV_INCLUDE_DIRS}
${catkin_INCLUDE_DIRS}
)
Issue:
RenderSystem_GL.so
is not being exported. See:I can see that
-DOGRE_BUILD_RENDERSYSTEM_GL=TRUE
in https://github.com/conda-forge/ogre-feedstock/blob/master/recipe/build.sh so I am not sure why this happens.Please let me know if you need any additional information.
Many thanks, Tobias
Environment (
conda list
):Details about
conda
and system (conda info
):