-
-
Notifications
You must be signed in to change notification settings - Fork 267
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
Support Android Targets #1410
Comments
You can pre-populate the file needed - you need to do a search. However we do have CMake support in the src/CMakeLists.txt file for using the file. About line 1028 HDF5_USE_PREGEN variable. |
@byrnHDF can you point to a documentation on how to I'm a bit lost in regards of Can you give me a hint into the correct direction. Thanks. |
Some references first: A note found during search: make sure you set the CMAKE_FIND_ROOT_PATH variable to a path where you have an exact copy of the root filesystem you have on your target device (with libraries and binaries pre-compiled for the target processor). |
Initial release_docs file: INSTALL_cross_compile.txt Cross-compiling has several consequences for CMake: Cross-compiling support means that CMake separates information about the CMake uses a toolchain of utilities to compile, link libraries and create CMake stores info about the current toolchain in the following variables: As for the host and target operating systems, CMake stores their names in the Put the toolchain variables into a separate file (e.g. <toolchain_name>.cmake) Structure of the toolchain fileIn fact, the toolchain file doesn’t have any structure. You can put anything you References: |
The one file that needs to be pre-generated is the H5Tinit.c file. The variables indicated in the error log (see above) are the variables that need to match the target system. The HDF5 CMake variables; |
There may be more HDF5 files that will need adjustments for different platforms, but H5Tinit.c is the key file. The next possible issue might be the H5pubconf.h file that is generated - if that happens we can adjust the PREGEN code blocks to account for it. |
I also encountered this problem, how to get the value of the variable matching the target system? |
Can this issue be closed?
Cross compiling should basically just work now |
@derobins Thanks for your effort. I tried the master branch HEAD and it was successfully built, so this can be closed now. |
The cross compiling is broken again: CMake Error: try_run() invoked in cross-compiling mode, please set the following cache variables appropriately:
H5_LDOUBLE_TO_LONG_SPECIAL_RUN (advanced)
H5_LDOUBLE_TO_LONG_SPECIAL_RUN__TRYRUN_OUTPUT (advanced)
For details see /github/home/.ndk-pkg/run/524/hdf5/src/_/TryRunResults.cmake
CMake Error: try_run() invoked in cross-compiling mode, please set the following cache variables appropriately:
H5_LONG_TO_LDOUBLE_SPECIAL_RUN (advanced)
H5_LONG_TO_LDOUBLE_SPECIAL_RUN__TRYRUN_OUTPUT (advanced)
For details see /github/home/.ndk-pkg/run/524/hdf5/src/_/TryRunResults.cmake
CMake Error: try_run() invoked in cross-compiling mode, please set the following cache variables appropriately:
H5_LDOUBLE_TO_LLONG_ACCURATE_RUN (advanced)
H5_LDOUBLE_TO_LLONG_ACCURATE_RUN__TRYRUN_OUTPUT (advanced)
For details see /github/home/.ndk-pkg/run/524/hdf5/src/_/TryRunResults.cmake
CMake Error: try_run() invoked in cross-compiling mode, please set the following cache variables appropriately:
H5_LLONG_TO_LDOUBLE_CORRECT_RUN (advanced)
H5_LLONG_TO_LDOUBLE_CORRECT_RUN__TRYRUN_OUTPUT (advanced)
For details see /github/home/.ndk-pkg/run/524/hdf5/src/_/TryRunResults.cmake
CMake Error: try_run() invoked in cross-compiling mode, please set the following cache variables appropriately:
H5_DISABLE_SOME_LDOUBLE_CONV_RUN (advanced)
H5_DISABLE_SOME_LDOUBLE_CONV_RUN__TRYRUN_OUTPUT (advanced)
For details see /github/home/.ndk-pkg/run/524/hdf5/src/_/TryRunResults.cmake |
Was this the develop branch? Looks like the checks were reverted about 5 weeks ago. |
Yes, I use the default breach: develop. |
https://support.hdfgroup.org/ftp/HDF5/releases/hdf5-1.13/hdf5-1.13.0/src/hdf5-1.13.0.tar.bz2
It seems that this project do not support cross-compiling. how can I skip these build time checks? Thanks.
The text was updated successfully, but these errors were encountered: