jmcnamara / libxlsxwriter

A C library for creating Excel XLSX files.
https://libxlsxwriter.github.io
Other
1.48k stars 330 forks source link

cmake errors #409

Closed justdomyself closed 11 months ago

justdomyself commented 11 months ago

when I use cmake ,cmd like this:

cmake -DCMAKE_TOOLCHAIN_PATH=imx6ull.cmake

imx6ull.cmake:

set(TOOLCHAIN_DIR /opt/fsl-imx-x11/4.1.15-2.1.0/sysroots/)
set(CMAKE_SYSROOT ${TOOLCHAIN_DIR}/cortexa7hf-neon-poky-linux-gnueabi)
set(CMAKE_C_COMPILER ${TOOLCHAIN_DIR}/x86_64-pokysdk-linux/usr/bin/arm-poky-linux/arm-poky-linux-gcc
)
set(CMAKE_CXX_COMPILER ${TOOLCHAIN_DIR}/x86_64-pokysdk-linux/usr/bin/arm-poky-linux/arm-poky-linux-g++)

set(CMAKE_C_FLAGS "-march=armv7ve -mfpu=neon -mfloat-abi=hard -mcpu=cortex-a7")
set(CMAKE_FIND_ROOT_PATH_MODE_PROGRAM NEVER)
set(CMAKE_FIND_ROOT_PATH_MODE_LIBRARY ONLY)
set(CMAKE_FIND_ROOT_PATH_MODE_INCLUDE ONLY)

errors:

-- Found ZLIB: /opt/fsl-imx-x11/4.1.15-2.1.0/sysroots/cortexa7hf-neon-poky-linux-gnueabi/usr/lib/libz.so (found suitable version "1.2.11", minimum required is "1.0") 
zlib version: 
-- Check if the system is big endian
-- Searching 16 bit integer
-- Looking for sys/types.h
-- Looking for sys/types.h - not found
-- Looking for stdint.h
-- Looking for stdint.h - not found
-- Looking for stddef.h
-- Looking for stddef.h - not found
-- Check size of unsigned short
-- Check size of unsigned short - failed
-- Check size of unsigned int
-- Check size of unsigned int - failed
-- Check size of unsigned long
-- Check size of unsigned long - failed
CMake Error at /opt/fsl-imx-xwayland/5.4-zeus/sysroots/x86_64-pokysdk-linux/usr/share/cmake-3.15/Modules/TestBigEndian.cmake:50 (message):
  no suitable type found
Call Stack (most recent call first):
  CMakeLists.txt:248 (TEST_BIG_ENDIAN)

-- Configuring incomplete, errors occurred!
See also "/home/alientek/Desktop/cmake/imx6/libxlsxwriter/CMakeFiles/CMakeOutput.log".
See also "/home/alientek/Desktop/cmake/imx6/libxlsxwriter/CMakeFiles/CMakeError.log".
You have changed variables that require your cache to be deleted.
Configure will be re-run and you may have to reset some variables.
The following variables have changed:
CMAKE_C_COMPILER= /opt/fsl-imx-x11/4.1.15-2.1.0/sysroots/x86_64-pokysdk-linux/usr/bin/arm-poky-linux-gnueabi/arm-poky-linux-gnueabi-gcc
CMAKE_CXX_COMPILER= /opt/fsl-imx-x11/4.1.15-2.1.0/sysroots/x86_64-pokysdk-linux/usr/bin/arm-poky-linux-gnueabi/arm-poky-linux-gnueabi-g++

-- Generating done
CMake Generate step failed.  Build files cannot be regenerated correctly.
make: *** [Makefile:988: cmake_check_build_system] Error 1
jmcnamara commented 11 months ago

It looks like there may be an issue with the recently added CMakeLists.txt check for Big Endianness in the commit 44e72c5862f9d549453a4ff6e8ceab0da19705e5

Could you disable this check or git checkout back to the previous commit (31b331462d4312402503510cb2d0bbec629c1891) and see if it resolves the issue.

jmcnamara commented 11 months ago

Could you disable this check or git checkout back to the previous commit (https://github.com/jmcnamara/libxlsxwriter/commit/31b331462d4312402503510cb2d0bbec629c1891) and see if it resolves the issue.

@justdomyself Any feedback on this?

jmcnamara commented 11 months ago

Closing due to lack of follow up.