-
Notifications
You must be signed in to change notification settings - Fork 169
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
Feature reqeust: a Yocto meta layer of ecal #241
Comments
Hi fei4xu, At the moment, from our side there is not really the use-case for yocto and thus we lack the know-how on how to write a recipe for it. Thus I doubt that we will have an officially maintained yocto recipe for ecal in the forseeable future. |
Hi @fei4xu, I agree with Florian Reimold, we currently do not have the "need" to provide yocto recipes. |
@Kerstin-Keller Since you mentioned In my yocto eCAL is built from source, but I'd like it to be compatible to the installed PPA versions for thirdparty like |
@FlorianReimold Do you know regarding the ppa? |
The PPA eCAL 5.8.7 is built with the following settings: This basically uses the versions provided by Canonical whenever possible. Keep in mind that This is taken from an ARM64 build log: |
Hi, thanks for all the support here. I'd like to share my yocto eCal patch here, just one for simpleini .cmake file: diff --git a/cmake/Modules/Findsimpleini.cmake b/cmake/Modules/Findsimpleini.cmake
index 453d5098..9853c820 100644
--- a/cmake/Modules/Findsimpleini.cmake
+++ b/cmake/Modules/Findsimpleini.cmake
@@ -4,6 +4,7 @@ find_path(simpleini_INCLUDE_DIR
include
${CONAN_SIMPLEINI_ROOT}/include
${CMAKE_SOURCE_DIR}/thirdparty/simpleini
+ NO_CMAKE_FIND_ROOT_PATH
)
if(simpleini_INCLUDE_DIR-NOTFOUND)
I'm not a cmake expert but some search online led me to |
the |
@fei4xu can you share your recipe? How are you handling HDF5 dependency? Are you pulling down the precompiled debs to install in your system root? In the cross compilation example that was just merged, only HDF5 and OpenSSL are assumed to be installed in the system root, the other items are built as part of the CMake project. |
@christopherbate Yes, I'd love to see people working on Yocto with eCAL. # https://continental.github.io/ecal/development/ecal_cmake_options.html
EXTRA_OECMAKE="-DCMAKE_BUILD_TYPE=Release \
-DHAS_QT5=OFF \
-DBUILD_SAMPLES=ON \
-DBUILD_PY_BINDING=OFF \
-DECAL_INCLUDE_PY_SAMPLES=OFF \
-DECAL_THIRDPARTY_BUILD_PROTOBUF=OFF \
-DECAL_THIRDPARTY_BUILD_GTEST=OFF \
-DECAL_THIRDPARTY_BUILD_SPDLOG=ON \
-DECAL_THIRDPARTY_BUILD_TINYXML2=ON \
-DECAL_THIRDPARTY_BUILD_TERMCOLOR=ON \
-DECAL_THIRDPARTY_BUILD_FINEFTP=ON \
-DECAL_THIRDPARTY_BUILD_CURL=OFF \
-DECAL_THIRDPARTY_BUILD_HDF5=OFF \
-DCPACK_PACK_WITH_INNOSETUP=OFF \
" You can see that hdf5 is build externally by yocto, as suggested earlier. DEPENDS += " zlib protobuf protobuf-native curl asio tclap hdf5 hdf5-native"
# by `DEPENDS += hdf5-native`, h5diff is polulated into "${WORKDIR}/recipe-sysroot-native"
# Copy from ${WORKDIR}/recipe-sysroot-native to ${WORKDIR}/recipe-sysroot to make hdf5's cmake happy, so ecal's cmake is happy
do_configure_prepend() {
cp ${WORKDIR}/recipe-sysroot-native/usr/bin/h5* ${WORKDIR}/recipe-sysroot/usr/bin/
cp ${WORKDIR}/recipe-sysroot-native/usr/bin/*h5 ${WORKDIR}/recipe-sysroot/usr/bin/
} You can also see my hack of hdf5 above which I'm not very sure but it worked in my environment. I also raised the question on https://stackoverflow.com/a/66881677/10838321, but here is the warning: my solution was downvoted. |
Is your feature request related to a problem? Please describe.
I'd like to include ecal in my Yocto project, so I need to create my own recipe for it.
During the process, there was several issues fixed in dirty ways, might not be the best way to do it.
Describe the solution you'd like
A officail maintained yocto recipe for ecal
Additional context
Currently I'm using Yocto 3.1, dunfell, on Ubuntu 18 as the host PC.
The text was updated successfully, but these errors were encountered: