I have gotten a further after installing latest cmake.
Unfortunately, the build fails with this error (On Solaris 10):
[ 26%] Building C object src/lib/openjpip/CMakeFiles/openjpip_local.dir/openjpip.c.o
In file included from /home/bfriesen/src/graphics/openjpeg-svn/src/lib/openjp2/opj_stdint.h:29:0,
from /home/bfriesen/src/graphics/openjpeg-svn/src/lib/openjpip/byte_manager.h:35,
from /home/bfriesen/src/graphics/openjpeg-svn/src/lib/openjpip/index_manager.h:34,
from /home/bfriesen/src/graphics/openjpeg-svn/src/lib/openjpip/target_manager.h:35,
from /home/bfriesen/src/graphics/openjpeg-svn/src/lib/openjpip/cachemodel_manager.h:35,
from /home/bfriesen/src/graphics/openjpeg-svn/src/lib/openjpip/channel_manager.h:36,
from /home/bfriesen/src/graphics/openjpeg-svn/src/lib/openjpip/session_manager.h:35,
from /home/bfriesen/src/graphics/openjpeg-svn/src/lib/openjpip/openjpip.h:34,
from /home/bfriesen/src/graphics/openjpeg-svn/src/lib/openjpip/openjpip.c:32:
/home/bfriesen/src/graphics/openjpeg-svn/src/lib/openjp2/opj_config.h:21:0: warning: "_FILE_OFFSET_BITS" redefined [enabled by default]
In file included from /usr/local/lib/gcc/i386-pc-solaris2.10/4.7.1/include-fixed/iso/stdlib_iso.h:39:0,
from /usr/include/stdlib.h:18,
from /home/bfriesen/src/graphics/openjpeg-svn/src/lib/openjpip/openjpip.c:31:
/usr/local/lib/gcc/i386-pc-solaris2.10/4.7.1/include-fixed/sys/feature_tests.h:196:0: note: this is the location of the previous definition
In file included from /home/bfriesen/src/graphics/openjpeg-svn/src/lib/openjpip/openjpip.c:32:0:
/home/bfriesen/src/graphics/openjpeg-svn/src/lib/openjpip/openjpip.h:281:23: error: conflicting types for 'index_t'
In file included from /usr/include/time.h:22:0,
from /home/bfriesen/src/graphics/openjpeg-svn/src/lib/openjpip/channel_manager.h:34,
from /home/bfriesen/src/graphics/openjpeg-svn/src/lib/openjpip/session_manager.h:35,
from /home/bfriesen/src/graphics/openjpeg-svn/src/lib/openjpip/openjpip.h:34,
from /home/bfriesen/src/graphics/openjpeg-svn/src/lib/openjpip/openjpip.c:32:
/usr/include/sys/types.h:109:16: note: previous declaration of 'index_t' was here
gmake[2]: *** [src/lib/openjpip/CMakeFiles/openjpip_local.dir/openjpip.c.o] Error 1
gmake[1]: *** [src/lib/openjpip/CMakeFiles/openjpip_local.dir/all] Error 2
gmake: *** [all] Error 2
It seems that src/lib/openjpip/openjpip.h uses:
typedef index_param_t index_t;
which conflicts with this from /usr/include/sys/types.h :
typedef short index_t;
I encounter the same problem under OpenIndiana 151a5.
Then I attempted a compile on another common system (FreeBSD 8) and
encountered a different failure:
[ 0%] Building C object src/lib/openjp2/CMakeFiles/openjp2.dir/bio.c.o
In file included from /home/bfriesen/src/graphics/openjpeg-svn/src/lib/openjp2/opj_malloc.h:89,
from /home/bfriesen/src/graphics/openjpeg-svn/src/lib/openjp2/opj_includes.h:150,
from /home/bfriesen/src/graphics/openjpeg-svn/src/lib/openjp2/bio.c:32:
/usr/include/malloc.h:3:2: error: #error "<malloc.h> has been replaced by <stdlib.h>"
gmake[2]: *** [src/lib/openjp2/CMakeFiles/openjp2.dir/bio.c.o] Error 1
gmake[1]: *** [src/lib/openjp2/CMakeFiles/openjp2.dir/all] Error 2
gmake: *** [all] Error 2
On this system it did not even manage to compile a single file.
Bob