CMake
.
memalign
is being invoked, which does not exist on some platforms (AIX,...),
in Utilities/gdcmopenjpeg-v1/libopenjpeg/opj_malloc.h
change
#elif !defined(__amd64__) && !defined(__APPLE__)to
#elif !defined(__amd64__) && !defined(__APPLE__) && !defined(_AIX)i.e.
#define HAVE_MEMALIGN #include <malloc.h>has to be inactivated.
On AIX, the build requires at least xlC 8.0.
Even then, in Utilities/gdcmcharls/jpegls.cpp
,
it seems necessary to exclude
# _AIX && __xlC__ #else ##endif
Build example:
# native AIX 5.2/5.3/6.1/7.1 xlC 8.0/12.1/12.1/12.1 export CC=cc; export CXX=xlC; export MAKE=make; export CFLAGS="-O2 -qcpluscmt -D_THREAD_SAFE -D_LARGE_FILES" cmake ./ make make install