[gdal-dev] jpeg2000/jasper error compiling gdal 2.1 from git release branch
Donovan Cameron
sault.don at gmail.com
Wed Dec 7 09:22:54 PST 2016
Morning Everyone!
Jasper was update in Arch Linux today and trying to build gdal 2.1 from
the git 2.1 release branch (r36743) the compile fails with a jpeg2000 +
jasper error:
make -C jpeg2000 install-obj
make[2]: Entering directory
'/tmp/makepkg/gdal-filegdb/src/gdal-2.1/frmts/jpeg2000'
g++ -I/tmp/makepkg/gdal-filegdb/src/gdal-2.1/port
-I/tmp/makepkg/gdal-filegdb/src/gdal-2.1/gcore
-I/tmp/makepkg/gdal-filegdb/src/gdal-2.1/alg
-I/tmp/makepkg/gdal-filegdb/src/gdal-2.1/ogr
-I/tmp/makepkg/gdal-filegdb/src/gdal-2.1/ogr/ogrsf_frmts
-I/tmp/makepkg/gdal-filegdb/src/gdal-2.1/gnm
-I/tmp/makepkg/gdal-filegdb/src/gdal-2.1/apps -march=native -O2 -pipe
-fstack-protector --param=ssp-buffer-size=4 -D_FORTIFY_SOURCE=2 -fPIC
-Wall -Wextra -Winit-self -Wunused-parameter -Wformat
-Werror=format-security -Wno-format-nonliteral -Wlogical-op -Wshadow
-Werror=vla -Wnull-dereference -Wduplicated-cond -Wmissing-declarations
-Wnon-virtual-dtor -Woverloaded-virtual -fno-operator-names
-DOGR_ENABLED -D_FORTIFY_SOURCE=2
-I/tmp/makepkg/gdal-filegdb/src/gdal-2.1/port -I/usr/include
-DGDAL_COMPILATION -c -o ../o/jpeg2000dataset.o jpeg2000dataset.cpp
g++ -I/tmp/makepkg/gdal-filegdb/src/gdal-2.1/port
-I/tmp/makepkg/gdal-filegdb/src/gdal-2.1/gcore
-I/tmp/makepkg/gdal-filegdb/src/gdal-2.1/alg
-I/tmp/makepkg/gdal-filegdb/src/gdal-2.1/ogr
-I/tmp/makepkg/gdal-filegdb/src/gdal-2.1/ogr/ogrsf_frmts
-I/tmp/makepkg/gdal-filegdb/src/gdal-2.1/gnm
-I/tmp/makepkg/gdal-filegdb/src/gdal-2.1/apps -march=native -O2 -pipe
-fstack-protector --param=ssp-buffer-size=4 -D_FORTIFY_SOURCE=2 -fPIC
-Wall -Wextra -Winit-self -Wunused-parameter -Wformat
-Werror=format-security -Wno-format-nonliteral -Wlogical-op -Wshadow
-Werror=vla -Wnull-dereference -Wduplicated-cond -Wmissing-declarations
-Wnon-virtual-dtor -Woverloaded-virtual -fno-operator-names
-DOGR_ENABLED -D_FORTIFY_SOURCE=2
-I/tmp/makepkg/gdal-filegdb/src/gdal-2.1/port -I/usr/include
-DGDAL_COMPILATION -c -o ../o/jpeg2000_vsil_io.o jpeg2000_vsil_io.cpp
In file included from /usr/include/jasper/jasper.h:68:0,
from jpeg2000_vsil_io.h:33,
from jpeg2000_vsil_io.cpp:77:
jpeg2000_vsil_io.cpp: In function ‘void
JPEG2000_VSIL_jas_stream_initbuf(jas_stream_t*, int, char*, int)’:
jpeg2000_vsil_io.cpp:212:32: error: ‘uchar’ was not declared in this scope
stream->bufbase_ = JAS_CAST(uchar *, buf);
^
jpeg2000_vsil_io.cpp:212:23: error: expected primary-expression before
‘)’ token
stream->bufbase_ = JAS_CAST(uchar *, buf);
^
make[2]: *** [../../GDALmake.opt:648: ../o/jpeg2000_vsil_io.o] Error 1
make[2]: Leaving directory
'/tmp/makepkg/gdal-filegdb/src/gdal-2.1/frmts/jpeg2000'
make[1]: *** [GNUmakefile:15: jpeg2000-install-obj] Error 2
make[1]: Leaving directory '/tmp/makepkg/gdal-filegdb/src/gdal-2.1/frmts'
make: *** [GNUmakefile:88: frmts-target] Error 2
I have the following versions installed:
jasper 1.900.31
openjpeg2 2.1.2
--
Kind regards,
Donovan
More information about the gdal-dev
mailing list