I just worked the CMake configuration command
cmake -G"Unix Makefiles"
/cygdrive/C/Users/somia/Downloads/libjpeg-turbo-3.1.1/
and my woes were definitely due to having an msys cmake in my PATH. So,
guys, the guesses that I was trying with a Windows CMake were close but not
right on. It was *bash* that was my downfall, oddly enough. The first time
I invoked cmake I didn't have a cygwin cmake, and bash found the command
late in my PATH in the MSYS tree and hashed (stored) that path, so that
even after I installed cygwin cmake it kept calling msys cmake. Msys cmake
has now gone away for a lengthy vacation and cygwin cmake is producing a
configuration that is not quite successful but at least is more complete,
with real configure errors.
Thanks to Eliot Moss as well as Brian Ingles and Kevin Schnitzius.
The code I am trying to build under cygwin is from www.libjpeg-turbo.org.
I said that configuration was not quite successful. Here's what happened:
$ cmake -G"Unix Makefiles"
/cygdrive/C/Users/somia/Downloads/libjpeg-turbo-3.1.1/
cmake -G"Unix Makefiles" /cygdrive/C/Users/somia/Downloads/libjpeg-turbo-3.1.1/
-- The C compiler identification is GNU 12.5.0
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - failed
-- Check for working C compiler: /bin/gcc.exe
-- Check for working C compiler: /bin/gcc.exe - works
-- Detecting C compile features
-- Detecting C compile features - done
-- CMAKE_BUILD_TYPE = Release
-- VERSION = 3.1.1, BUILD = 20250719
CMake Error at CMakeLists.txt:107 (math):
math cannot parse the expression: " * 8": syntax error, unexpected
exp_TIMES (2).
-- ERROR-bit build (i386)
-- CMAKE_INSTALL_PREFIX = /opt/libjpeg-turbo
-- CMAKE_INSTALL_BINDIR = bin (/opt/libjpeg-turbo/bin)
-- CMAKE_INSTALL_DATAROOTDIR = (/opt/libjpeg-turbo)
-- CMAKE_INSTALL_DOCDIR = doc (/opt/libjpeg-turbo/doc)
-- CMAKE_INSTALL_INCLUDEDIR = include (/opt/libjpeg-turbo/include)
-- CMAKE_INSTALL_LIBDIR = lib32 (/opt/libjpeg-turbo/lib32)
-- CMAKE_INSTALL_MANDIR = man (/opt/libjpeg-turbo/man)
-- Shared libraries enabled (ENABLE_SHARED = 1)
-- Static libraries enabled (ENABLE_STATIC = 1)
-- Arithmetic decoding support enabled (WITH_ARITH_DEC = 1)
-- Arithmetic encoding support enabled (WITH_ARITH_ENC = 1)
-- TurboJPEG API library enabled (WITH_TURBOJPEG = 1)
-- TurboJPEG Java wrapper disabled (WITH_JAVA = 0)
-- Emulating libjpeg API/ABI v6.2 (WITH_JPEG7 = 0, WITH_JPEG8 = 0)
-- libjpeg API shared library version = 62.4.0
-- Compiler flags = -O3 -DNDEBUG
-- Linker flags = -Wl,--enable-auto-import
-- Looking for sys/types.h
-- Looking for sys/types.h - found
-- Looking for stdint.h
-- Looking for stdint.h - found
-- Looking for stddef.h
-- Looking for stddef.h - found
-- Check size of size_t
-- Check size of size_t - done
-- Check size of unsigned long
-- Check size of unsigned long - done
-- Performing Test HAVE_BUILTIN_CTZL
-- Performing Test HAVE_BUILTIN_CTZL - Success
-- Performing Test RIGHT_SHIFT_IS_UNSIGNED
-- Performing Test RIGHT_SHIFT_IS_UNSIGNED - Failed
-- Performing Test HIDDEN_WORKS
-- Performing Test HIDDEN_WORKS - Success
-- HIDDEN = __attribute__((visibility("hidden")))
-- Performing Test INLINE_WORKS
-- Performing Test INLINE_WORKS - Success
-- INLINE = __inline__ __attribute__((always_inline)) (FORCE_INLINE = 1)
-- Performing Test HAVE_THREAD_LOCAL
-- Performing Test HAVE_THREAD_LOCAL - Success
-- THREAD_LOCAL = __thread
-- Performing Test HAVE_VERSION_SCRIPT
-- Performing Test HAVE_VERSION_SCRIPT - Success
-- Linker supports GNU-style version scripts
-- CMAKE_EXECUTABLE_SUFFIX = .exe
-- Looking for a ASM_NASM compiler
-- Looking for a ASM_NASM compiler - /usr/bin/nasm.exe
-- The ASM_NASM compiler identification is NASM
-- Found assembler: /usr/bin/nasm.exe
-- CMAKE_ASM_NASM_COMPILER = /usr/bin/nasm.exe
-- CMAKE_ASM_NASM_OBJECT_FORMAT = win32
-- CMAKE_ASM_NASM_FLAGS = -DWIN32 -DPIC
-- SIMD extensions: i386 (WITH_SIMD = 1)
-- FLOATTEST8 = sse
-- FLOATTEST12 =
-- Configuring incomplete, errors occurred!
-- Soren
--
Problem reports: https://cygwin.com/problems.html
FAQ: https://cygwin.com/faq/
Documentation: https://cygwin.com/docs.html
Unsubscribe info: https://cygwin.com/ml/#unsubscribe-simple