docker-on-pc: conan install . -pr:h=gcc-10-armhf -pr:b=gcc-9
Cross-build from 'Linux:x86_64' to 'Linux:armv7hf'
...
ERROR: There are invalid packages (packages that cannot exist for this configuration):
hdf5/1.10.6: Invalid ID: Current recipe doesn't support cross-building (yet)
...
@pavelb-techspark It looks like I am in the same boat - needing to build a library depending on hdf5 via conan on armv8 - do you have any plans to submit a PR for your fix?
Description
HDF5 can't yet be cross-built but I can build HDF5 on a raspberry and then upload the packages to the local cache.
However,
validate
disallows me to use such a package for cross-building, because it raises errorConanInvalidConfiguration
.Package and Environment Details
Conan profile
gcc-10-armhf: include(./profile) include(./minimal)
[settings] os=Linux arch=armv7hf compiler=gcc compiler.version=10 compiler.libcxx=libstdc++11 build_type=Release
[env] CMAKE_CXX_COMPILER=arm-linux-gnueabihf-g++-10 CXX=arm-linux-gnueabihf-g++-10 LD=arm-linux-gnueabihf-ld AR=arm-linux-gnueabihf-ar AS=arm-linux-gnueabihf-gcc-10 CMAKE_C_COMPILER=arm-linux-gnueabihf-gcc-10 FC=arm-linux-gnueabihf-gfortran-10 STRIP=arm-linux-gnueabihf-strip CC=arm-linux-gnueabihf-gcc-10 RANLIB=arm-linux-gnueabihf-ranlib OBJCOPY=arm-linux-gnueabihf-objcopy
[options] qt:cross_compile=arm-linux-gnueabihf-
gcc-9: include(./profile)
[settings] os=Linux arch=x86_64 compiler=gcc compiler.version=9 compiler.libcxx=libstdc++11 build_type=Release
[options]
*:shared=True
icu:shared=False
hdf5:shared=False opencv:shared=False qt:shared=True
hdf5:enable_cxx=True
hdf5:fPIC=True
hdf5:hl=True
hdf5:parallel=False
hdf5:shared=False
hdf5:szip_support=None
hdf5:with_zlib=True
Steps to reproduce
raspberry: conan install -r conancenter hdf5/1.10.6@ -pr:b=gcc-10-armhf -pr:h=gcc-10-armhf raspberry: conan upload "hdf5/1.10.6" -r local
docker-on-pc: conan install . -pr:h=gcc-10-armhf -pr:b=gcc-9 Cross-build from 'Linux:x86_64' to 'Linux:armv7hf' ... ERROR: There are invalid packages (packages that cannot exist for this configuration): hdf5/1.10.6: Invalid ID: Current recipe doesn't support cross-building (yet) ...
Logs
Click to expand log
``` Put your log output here ```