-
Notifications
You must be signed in to change notification settings - Fork 626
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix Cmake/compile without KDU, enable exrconv, add docker
- Loading branch information
1 parent
8068615
commit a1e1945
Showing
5 changed files
with
66 additions
and
29 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,53 @@ | ||
# run this docker file outside the openexr-ht folder so Kakadu SDK ZIP is not included in the git repo | ||
# docker build --rm -f ./openexr-ht/Dockerfile_KDU -t openexr-ht-kdu:latest . | ||
# docker run -it --rm -v C:\\temp:/tmp/ openexr-ht-kdu:latest | ||
FROM ubuntu:jammy | ||
|
||
RUN apt-get update | ||
|
||
# disable interactive install | ||
ENV DEBIAN_FRONTEND noninteractive | ||
|
||
# install developement tools | ||
RUN apt-get -y install cmake | ||
RUN apt-get -y install g++ | ||
RUN apt-get -y install git | ||
RUN apt-get -y install unzip | ||
RUN apt-get -y install libnuma-dev | ||
RUN apt-get -y install python3 | ||
|
||
# install developement debugging tools | ||
RUN apt-get -y install valgrind | ||
|
||
# set Kakadu distribution version and unique serial number | ||
ARG KDU_SOURCE_NAME=v8_4_1-00462N | ||
# set path to location of source zip, in this case its here ./v8_2_1-00462N.zip | ||
ARG KDU_SOURCE_ZIP_DIRECTORY=./ | ||
WORKDIR /usr/src/kakadu | ||
COPY $KDU_SOURCE_ZIP_DIRECTORY/$KDU_SOURCE_NAME.zip $KDU_SOURCE_NAME.zip | ||
RUN unzip $KDU_SOURCE_NAME.zip | ||
RUN rm -f $KDU_SOURCE_NAME.zip | ||
# enable HTJ2K | ||
WORKDIR /usr/src/kakadu/$KDU_SOURCE_NAME/ | ||
RUN mv srclib_ht srclib_ht_noopt; cp -r altlib_ht_opt srclib_ht | ||
# compile Kakadu SDK and demo apps with HTJ2K enabled (#define FBC_ENABLED) | ||
WORKDIR /usr/src/kakadu/$KDU_SOURCE_NAME/make | ||
RUN make CXXFLAGS=-DFBC_ENABLED -f Makefile-Linux-x86-64-gcc all_but_jni | ||
# set environment variables | ||
ENV LD_LIBRARY_PATH=$LD_LIBRARY_PATH:/usr/src/kakadu/$KDU_SOURCE_NAME/lib/Linux-x86-64-gcc | ||
ENV PATH=$PATH:/usr/src/kakadu/$KDU_SOURCE_NAME/bin/Linux-x86-64-gcc | ||
ENV KDU_INCLUDE_DIR=/usr/src/kakadu/$KDU_SOURCE_NAME/managed/all_includes | ||
ENV KDU_LIBRARY=/usr/src/kakadu/$KDU_SOURCE_NAME/lib/Linux-x86-64-gcc/libkdu_a84R.so | ||
|
||
# build OpenEXR | ||
WORKDIR /usr/src/OpenEXR | ||
COPY ./openexr-ht . | ||
WORKDIR /usr/src/OpenEXR/build | ||
RUN cmake .. -DKDU_INCLUDE_DIR=$KDU_INCLUDE_DIR -DKDU_LIBRARY=$KDU_LIBRARY | ||
RUN make | ||
RUN make install | ||
|
||
# finalize docker environment | ||
|
||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters