Using versionCheckHook Running phase: unpackPhase unpacking source archive /nix/store/3pmkxaw6f2wpm9qnl1y4qwm5ifg7y3b9-source source root is source Running phase: patchPhase applying patch /nix/store/mclflx0mikr3vsxxswafwrlgxqc7anw2-5fa99b5271a3c80a13c78062d7adc6310222dd8e.patch patching file lib/include/ultrahdr/ultrahdrcommon.h applying patch /nix/store/hr4sy37kbw68887m6p011kdp9znfcnis-gtest.patch patching file CMakeLists.txt Hunk #1 succeeded at 512 (offset -24 lines). Hunk #2 succeeded at 640 (offset -25 lines). applying patch /nix/store/h8qliqvly4zy5d7dsj9zq6pprr3f9y1n-remove-platform-and-detection-logic.patch patching file CMakeLists.txt Hunk #1 succeeded at 30 (offset 5 lines). Hunk #2 succeeded at 228 (offset -21 lines). Hunk #3 succeeded at 477 (offset -34 lines). patching file cmake/package.cmake applying patch /nix/store/yk5g4fc4lq26kxsaadxfm3qww3p305s9-13a058f452d846e43d4691f6885eeeaa8b0ea8d0.patch patching file lib/include/ultrahdr/icc.h Hunk #1 succeeded at 19 (offset 6 lines). patching file lib/include/ultrahdr/jpegrutils.h Hunk #1 succeeded at 19 (offset 6 lines). patching file lib/include/ultrahdr/multipictureformat.h Hunk #1 succeeded at 19 (offset 6 lines). Running phase: updateAutotoolsGnuConfigScriptsPhase Running phase: configurePhase cmake flags: -GNinja -DCMAKE_FIND_USE_SYSTEM_PACKAGE_REGISTRY=OFF -DCMAKE_FIND_USE_PACKAGE_REGISTRY=OFF -DCMAKE_EXPORT_NO_PACKAGE_REGISTRY=ON -DCMAKE_BUILD_TYPE=Release -DCMAKE_INSTALL_LOCALEDIR=/nix/store/9v0bi55idbw2ch246cz9mr1v1ws1cyp6-libultrahdr-1.4.0/share/locale -DCMAKE_INSTALL_LIBEXECDIR=/nix/store/9v0bi55idbw2ch246cz9mr1v1ws1cyp6-libultrahdr-1.4.0/libexec -DCMAKE_INSTALL_LIBDIR=/nix/store/9v0bi55idbw2ch246cz9mr1v1ws1cyp6-libultrahdr-1.4.0/lib -DCMAKE_INSTALL_DOCDIR=/nix/store/9v0bi55idbw2ch246cz9mr1v1ws1cyp6-libultrahdr-1.4.0/share/doc/libuhdr -DCMAKE_INSTALL_INFODIR=/nix/store/9v0bi55idbw2ch246cz9mr1v1ws1cyp6-libultrahdr-1.4.0/share/info -DCMAKE_INSTALL_MANDIR=/nix/store/9v0bi55idbw2ch246cz9mr1v1ws1cyp6-libultrahdr-1.4.0/share/man -DCMAKE_INSTALL_INCLUDEDIR=/nix/store/z73k2qfya47iqrwi95854pjzba3cz4rw-libultrahdr-1.4.0-dev/include -DCMAKE_INSTALL_SBINDIR=/nix/store/9v0bi55idbw2ch246cz9mr1v1ws1cyp6-libultrahdr-1.4.0/sbin -DCMAKE_INSTALL_BINDIR=/nix/store/9v0bi55idbw2ch246cz9mr1v1ws1cyp6-libultrahdr-1.4.0/bin -DCMAKE_INSTALL_NAME_DIR=/nix/store/9v0bi55idbw2ch246cz9mr1v1ws1cyp6-libultrahdr-1.4.0/lib -DCMAKE_STRIP=/nix/store/vdaz6sk455r8sbpi7wzaf9vlz5i9yyvx-gcc-wrapper-15.2.0/bin/strip -DCMAKE_RANLIB=/nix/store/vdaz6sk455r8sbpi7wzaf9vlz5i9yyvx-gcc-wrapper-15.2.0/bin/ranlib -DCMAKE_AR=/nix/store/vdaz6sk455r8sbpi7wzaf9vlz5i9yyvx-gcc-wrapper-15.2.0/bin/ar -DCMAKE_C_COMPILER=gcc -DCMAKE_CXX_COMPILER=g++ -DCMAKE_INSTALL_PREFIX=/nix/store/9v0bi55idbw2ch246cz9mr1v1ws1cyp6-libultrahdr-1.4.0 -DUHDR_BUILD_TESTS:BOOL=TRUE -DCMAKE_CROSSCOMPILING:BOOL=FALSE CMake Deprecation Warning at CMakeLists.txt:22 (cmake_policy): The OLD behavior for policy CMP0091 will be removed from a future version of CMake. The cmake-policies(7) manual explains that the OLD behaviors of all policies are deprecated and that a policy should be set to OLD only under specific short-term circumstances. Projects should be ported to the NEW behavior and not rely on setting a policy to OLD. -- The C compiler identification is GNU 15.2.0 -- The CXX compiler identification is GNU 15.2.0 -- Detecting C compiler ABI info -- Detecting C compiler ABI info - done -- Check for working C compiler: /nix/store/vdaz6sk455r8sbpi7wzaf9vlz5i9yyvx-gcc-wrapper-15.2.0/bin/gcc - skipped -- Detecting C compile features -- Detecting C compile features - done -- Detecting CXX compiler ABI info -- Detecting CXX compiler ABI info - done -- Check for working CXX compiler: /nix/store/vdaz6sk455r8sbpi7wzaf9vlz5i9yyvx-gcc-wrapper-15.2.0/bin/g++ - skipped -- Detecting CXX compile features -- Detecting CXX compile features - done -- No target type chosen, selecting Shared -- Performing Test CMAKE_HAVE_LIBC_PTHREAD -- Performing Test CMAKE_HAVE_LIBC_PTHREAD - Success -- Found Threads: TRUE -- Found JPEG: /nix/store/2my7dfwg31bziws1ck2sqrwbj05nbdn1-libjpeg-turbo-3.1.4.1/lib/libjpeg.so (found version "62") -- Configuring done (0.7s) -- Generating done (0.0s) CMake Warning: Manually-specified variables were not used by the project: CMAKE_EXPORT_NO_PACKAGE_REGISTRY -- Build files have been written to: /build/source/build cmake: enabled parallel building cmake: enabled parallel installing Running phase: buildPhase build flags: -j48 [1/61] Building CXX object CMakeFiles/image_io.dir/third_party/image_io/src/base/byte_pointer_data_destination.cc.o [2/61] Building CXX object CMakeFiles/image_io.dir/third_party/image_io/src/base/data_range_tracking_destination.cc.o [3/61] Building CXX object CMakeFiles/image_io.dir/third_party/image_io/src/base/data_segment_data_source.cc.o [4/61] Building CXX object CMakeFiles/image_io.dir/third_party/image_io/src/jpeg/jpeg_xmp_info_builder.cc.o [5/61] Building CXX object CMakeFiles/image_io.dir/third_party/image_io/src/base/data_segment.cc.o [6/61] Building CXX object CMakeFiles/image_io.dir/third_party/image_io/src/base/byte_buffer.cc.o [7/61] Building CXX object CMakeFiles/image_io.dir/third_party/image_io/src/base/message_writer.cc.o [8/61] Building CXX object CMakeFiles/image_io.dir/third_party/image_io/src/base/data_line_map.cc.o [9/61] Building CXX object CMakeFiles/image_io.dir/third_party/image_io/src/base/string_ref_data_source.cc.o [10/61] Building CXX object CMakeFiles/image_io.dir/third_party/image_io/src/modp_b64/modp_b64.cc.o [11/61] Building CXX object CMakeFiles/image_io.dir/third_party/image_io/src/base/message_handler.cc.o [12/61] Building CXX object CMakeFiles/image_io.dir/third_party/image_io/src/jpeg/jpeg_image_extractor.cc.o [13/61] Building CXX object CMakeFiles/image_io.dir/third_party/image_io/src/utils/file_utils.cc.o [14/61] Building CXX object CMakeFiles/image_io.dir/third_party/image_io/src/jpeg/jpeg_xmp_data_extractor.cc.o [15/61] Building CXX object CMakeFiles/image_io.dir/third_party/image_io/src/jpeg/jpeg_segment.cc.o [16/61] Building CXX object CMakeFiles/image_io.dir/third_party/image_io/src/base/data_context.cc.o [17/61] Building CXX object CMakeFiles/image_io.dir/third_party/image_io/src/jpeg/jpeg_xmp_info.cc.o [18/61] Building CXX object CMakeFiles/image_io.dir/third_party/image_io/src/base/ostream_ref_data_destination.cc.o [19/61] Building CXX object CMakeFiles/image_io.dir/third_party/image_io/src/jpeg/jpeg_scanner.cc.o [20/61] Building CXX object CMakeFiles/image_io.dir/third_party/image_io/src/xml/xml_handler.cc.o [21/61] Building CXX object CMakeFiles/image_io.dir/third_party/image_io/src/xml/xml_token_context.cc.o [22/61] Building CXX object CMakeFiles/image_io.dir/third_party/image_io/src/xml/xml_writer.cc.o [23/61] Building CXX object CMakeFiles/image_io.dir/third_party/image_io/src/jpeg/jpeg_marker.cc.o [24/61] Building CXX object CMakeFiles/image_io.dir/third_party/image_io/src/xml/xml_pi_rule.cc.o [25/61] Building CXX object CMakeFiles/image_io.dir/third_party/image_io/src/xml/xml_attribute_rule.cc.o [26/61] Building CXX object CMakeFiles/image_io.dir/third_party/image_io/src/jpeg/jpeg_segment_lister.cc.o [27/61] Building CXX object CMakeFiles/image_io.dir/third_party/image_io/src/xml/xml_element_rules.cc.o [28/61] Building CXX object CMakeFiles/image_io.dir/third_party/image_io/src/xml/xml_rule.cc.o [29/61] Building CXX object CMakeFiles/image_io.dir/third_party/image_io/src/extras/base64_decoder_data_destination.cc.o [30/61] Building CXX object CMakeFiles/core.dir/lib/src/multipictureformat.cpp.o [31/61] Building CXX object CMakeFiles/image_io.dir/third_party/image_io/src/base/data_scanner.cc.o [32/61] Building CXX object CMakeFiles/core.dir/lib/src/jpegdecoderhelper.cpp.o [33/61] Building CXX object CMakeFiles/image_io.dir/third_party/image_io/src/base/istream_ref_data_source.cc.o [34/61] Building CXX object CMakeFiles/image_io.dir/third_party/image_io/src/xml/xml_reader.cc.o [35/61] Building CXX object CMakeFiles/image_io.dir/third_party/image_io/src/jpeg/jpeg_info_builder.cc.o [36/61] Building CXX object CMakeFiles/core.dir/lib/src/jpegencoderhelper.cpp.o [37/61] Building CXX object CMakeFiles/image_io.dir/third_party/image_io/src/gcontainer/gcontainer.cc.o [38/61] Building CXX object CMakeFiles/image_io.dir/third_party/image_io/src/jpeg/jpeg_segment_builder.cc.o [39/61] Building CXX object CMakeFiles/core.dir/lib/src/icc.cpp.o [40/61] Building CXX object CMakeFiles/image_io.dir/third_party/image_io/src/xml/xml_cdata_and_comment_rules.cc.o [41/61] Linking CXX static library libimage_io.a [42/61] Building CXX object CMakeFiles/core.dir/lib/src/gainmapmetadata.cpp.o [43/61] Building CXX object CMakeFiles/core.dir/lib/src/editorhelper.cpp.o [44/61] Building CXX object CMakeFiles/ultrahdr_app.dir/examples/ultrahdr_app.cpp.o [45/61] Building CXX object CMakeFiles/ultrahdr_unit_test.dir/tests/jpegencoderhelper_test.cpp.o [46/61] Building CXX object CMakeFiles/ultrahdr_unit_test.dir/tests/gainmapmetadata_test.cpp.o [47/61] Building CXX object CMakeFiles/core.dir/lib/src/jpegrutils.cpp.o [48/61] Building CXX object CMakeFiles/ultrahdr_unit_test.dir/tests/jpegdecoderhelper_test.cpp.o [49/61] Building CXX object CMakeFiles/ultrahdr_unit_test.dir/tests/icchelper_test.cpp.o [50/61] Building CXX object CMakeFiles/core.dir/lib/src/gainmapmath.cpp.o [51/61] Building CXX object CMakeFiles/core.dir/lib/src/ultrahdr_api.cpp.o [52/61] Building CXX object CMakeFiles/core.dir/lib/src/jpegr.cpp.o [53/61] Linking CXX static library libcore.a [54/61] Linking CXX static library libuhdr.a [55/61] Linking CXX executable ultrahdr_app [56/61] Linking CXX shared library libuhdr.so.1.4.0 [57/61] Creating library symlink libuhdr.so.1 libuhdr.so [58/61] Building CXX object CMakeFiles/ultrahdr_unit_test.dir/tests/editorhelper_test.cpp.o [59/61] Building CXX object CMakeFiles/ultrahdr_unit_test.dir/tests/jpegr_test.cpp.o [60/61] Building CXX object CMakeFiles/ultrahdr_unit_test.dir/tests/gainmapmath_test.cpp.o [61/61] Linking CXX executable ultrahdr_unit_test buildPhase completed in 1 minutes 29 seconds Running phase: checkPhase check flags: -j48 test [0/1] Running tests... Test project /build/source/build Start 1: UHDRUnitTests, 1/1 Test #1: UHDRUnitTests, ................... Passed 48.17 sec 100% tests passed, 0 tests failed out of 1 Total Test time (real) = 48.17 sec checkPhase completed in 49 seconds Running phase: installPhase install flags: -j48 install [0/1] Install the project... -- Install configuration: "Release" -- Installing: /nix/store/9v0bi55idbw2ch246cz9mr1v1ws1cyp6-libultrahdr-1.4.0/lib/pkgconfig/libuhdr.pc -- Installing: /nix/store/9v0bi55idbw2ch246cz9mr1v1ws1cyp6-libultrahdr-1.4.0/lib/libuhdr.so.1.4.0 -- Installing: /nix/store/9v0bi55idbw2ch246cz9mr1v1ws1cyp6-libultrahdr-1.4.0/lib/libuhdr.so.1 -- Installing: /nix/store/9v0bi55idbw2ch246cz9mr1v1ws1cyp6-libultrahdr-1.4.0/lib/libuhdr.so -- Installing: /nix/store/z73k2qfya47iqrwi95854pjzba3cz4rw-libultrahdr-1.4.0-dev/include/ultrahdr_api.h -- Installing: /nix/store/9v0bi55idbw2ch246cz9mr1v1ws1cyp6-libultrahdr-1.4.0/lib/libuhdr.a -- Installing: /nix/store/9v0bi55idbw2ch246cz9mr1v1ws1cyp6-libultrahdr-1.4.0/bin/ultrahdr_app -- You may need to add path /nix/store/9v0bi55idbw2ch246cz9mr1v1ws1cyp6-libultrahdr-1.4.0//nix/store/9v0bi55idbw2ch246cz9mr1v1ws1cyp6-libultrahdr-1.4.0/lib/ to LD_LIBRARY_PATH if binaries are unable to load uhdr library e.g. export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:/nix/store/9v0bi55idbw2ch246cz9mr1v1ws1cyp6-libultrahdr-1.4.0//nix/store/9v0bi55idbw2ch246cz9mr1v1ws1cyp6-libultrahdr-1.4.0/lib/ Running phase: fixupPhase Moving /nix/store/9v0bi55idbw2ch246cz9mr1v1ws1cyp6-libultrahdr-1.4.0/lib/pkgconfig to /nix/store/z73k2qfya47iqrwi95854pjzba3cz4rw-libultrahdr-1.4.0-dev/lib/pkgconfig Patching '/nix/store/z73k2qfya47iqrwi95854pjzba3cz4rw-libultrahdr-1.4.0-dev/lib/pkgconfig/libuhdr.pc' includedir to output /nix/store/z73k2qfya47iqrwi95854pjzba3cz4rw-libultrahdr-1.4.0-dev shrinking RPATHs of ELF executables and libraries in /nix/store/9v0bi55idbw2ch246cz9mr1v1ws1cyp6-libultrahdr-1.4.0 shrinking /nix/store/9v0bi55idbw2ch246cz9mr1v1ws1cyp6-libultrahdr-1.4.0/lib/libuhdr.so.1.4.0 shrinking /nix/store/9v0bi55idbw2ch246cz9mr1v1ws1cyp6-libultrahdr-1.4.0/bin/ultrahdr_app checking for references to /build/ in /nix/store/9v0bi55idbw2ch246cz9mr1v1ws1cyp6-libultrahdr-1.4.0... patching script interpreter paths in /nix/store/9v0bi55idbw2ch246cz9mr1v1ws1cyp6-libultrahdr-1.4.0 stripping (with command strip and flags -S -p) in /nix/store/9v0bi55idbw2ch246cz9mr1v1ws1cyp6-libultrahdr-1.4.0/lib /nix/store/9v0bi55idbw2ch246cz9mr1v1ws1cyp6-libultrahdr-1.4.0/bin shrinking RPATHs of ELF executables and libraries in /nix/store/z73k2qfya47iqrwi95854pjzba3cz4rw-libultrahdr-1.4.0-dev checking for references to /build/ in /nix/store/z73k2qfya47iqrwi95854pjzba3cz4rw-libultrahdr-1.4.0-dev... patching script interpreter paths in /nix/store/z73k2qfya47iqrwi95854pjzba3cz4rw-libultrahdr-1.4.0-dev stripping (with command strip and flags -S -p) in /nix/store/z73k2qfya47iqrwi95854pjzba3cz4rw-libultrahdr-1.4.0-dev/lib Running phase: installCheckPhase Executing versionCheckPhase Successfully managed to find version 1.4.0 in the output of the command /nix/store/9v0bi55idbw2ch246cz9mr1v1ws1cyp6-libultrahdr-1.4.0/bin/ultrahdr_app --version unsupported option --version ## ultra hdr demo application. lib version: v1.4.0 Usage : ultrahdr_app -m mode of operation. [0:encode, 1:decode] ## encoder options : -p raw hdr intent input resource (10-bit), required for encoding scenarios 0, 1, 2, 3. -y raw sdr intent input resource (8-bit), required for encoding scenarios 1, 2. -a raw hdr intent color format, optional. [0:p010, 4: rgbahalffloat, 5:rgba1010102 (default)] -b raw sdr intent color format, optional. [1:yuv420, 3:rgba8888 (default)] -i compressed sdr intent input resource (jpeg), required for encoding scenarios 2, 3, 4. -g compressed gainmap input resource (jpeg), required for encoding scenario 4. -w input file width, required for encoding scenarios 0, 1, 2, 3. -h input file height, required for encoding scenarios 0, 1, 2, 3. -C hdr intent color gamut, optional. [0:bt709, 1:p3 (default), 2:bt2100] -c sdr intent color gamut, optional. [0:bt709 (default), 1:p3, 2:bt2100] -t hdr intent color transfer, optional. [0:linear, 1:hlg (default), 2:pq] It should be noted that not all combinations of input color format and input color transfer are supported. srgb color transfer shall be paired with rgba8888 or yuv420 only. hlg, pq shall be paired with rgba1010102 or p010. linear shall be paired with rgbahalffloat. -q quality factor to be used while encoding sdr intent, optional. [0-100], 95 : default. -e compute psnr, optional. [0:no (default), 1:yes] -R color range of hdr intent, optional. [0:narrow-range (default), 1:full-range]. -s gainmap image downsample factor, optional. [integer values in range [1 - 128] (1 : default)]. -Q quality factor to be used while encoding gain map image, optional. [0-100], 95 : default. -G gamma correction to be applied on the gainmap image, optional. [any positive real number (1.0 : default)]. -M select multi channel gain map, optional. [0:disable, 1:enable (default)]. -D select encoding preset, optional. [0:real time, 1:best quality (default)]. -k min content boost recommendation, must be in linear scale, optional. [any positive real number] -K max content boost recommendation, must be in linear scale, optional.[any positive real number] -L set target display peak brightness in nits, optional. For HLG content, this defaults to 1000 nits. For PQ content, this defaults to 10000 nits. any real number in range [203, 10000]. -x binary input resource containing exif data to insert, optional. ## decoder options : -j ultra hdr compressed input resource, required. -o output transfer function, optional. [0:linear, 1:hlg (default), 2:pq, 3:srgb] -O output color format, optional. [3:rgba8888, 4:rgbahalffloat, 5:rgba1010102 (default)] It should be noted that not all combinations of output color format and output transfer function are supported. srgb output color transfer shall be paired with rgba8888 only. hlg, pq shall be paired with rgba1010102. linear shall be paired with rgbahalffloat. -u enable gles acceleration, optional. [0:disable (default), 1:enable]. ## common options : -z output filename, optional. in encoding mode, default output filename 'out.jpeg'. in decoding mode, default output filename 'outrgb.raw'. -f gainmap metadata config file. in encoding mode, resource from which gainmap metadata is read, required for encoding scenario 4. in decoding mode, resource to which gainmap metadata is written, optional. ## examples of usage : ## encode scenario 0 : ultrahdr_app -m 0 -p cosmat_1920x1080_p010.yuv -w 1920 -h 1080 -q 97 -a 0 ultrahdr_app -m 0 -p cosmat_1920x1080_rgba1010102.raw -w 1920 -h 1080 -q 97 -a 5 ultrahdr_app -m 0 -p cosmat_1920x1080_p010.yuv -w 1920 -h 1080 -q 97 -C 1 -t 2 -a 0 ultrahdr_app -m 0 -p cosmat_1920x1080_rgba1010102.raw -w 1920 -h 1080 -q 97 -C 1 -t 2 -a 5 ## encode scenario 1 : ultrahdr_app -m 0 -p cosmat_1920x1080_p010.yuv -y cosmat_1920x1080_420.yuv -w 1920 -h 1080 -q 97 -a 0 -b 1 ultrahdr_app -m 0 -p cosmat_1920x1080_rgba1010102.raw -y cosmat_1920x1080_rgba8888.raw -w 1920 -h 1080 -q 97 -a 5 -b 3 ultrahdr_app -m 0 -p cosmat_1920x1080_p010.yuv -y cosmat_1920x1080_420.yuv -w 1920 -h 1080 -q 97 -C 2 -c 1 -t 1 -a 0 -b 1 ultrahdr_app -m 0 -p cosmat_1920x1080_rgba1010102.raw -y cosmat_1920x1080_rgba8888.raw -w 1920 -h 1080 -q 97 -C 2 -c 1 -t 1 -a 5 -b 3 ultrahdr_app -m 0 -p cosmat_1920x1080_p010.yuv -y cosmat_1920x1080_420.yuv -w 1920 -h 1080 -q 97 -C 2 -c 1 -t 1 -e 1 -a 0 -b 1 ## encode scenario 2 : ultrahdr_app -m 0 -p cosmat_1920x1080_p010.yuv -y cosmat_1920x1080_420.yuv -i cosmat_1920x1080_420_8bit.jpg -w 1920 -h 1080 -t 1 -o 3 -O 3 -e 1 -a 0 -b 1 ultrahdr_app -m 0 -p cosmat_1920x1080_rgba1010102.raw -y cosmat_1920x1080_420.yuv -i cosmat_1920x1080_420_8bit.jpg -w 1920 -h 1080 -t 1 -o 3 -O 3 -e 1 -a 5 -b 1 ## encode scenario 3 : ultrahdr_app -m 0 -p cosmat_1920x1080_p010.yuv -i cosmat_1920x1080_420_8bit.jpg -w 1920 -h 1080 -t 1 -o 1 -O 5 -e 1 -a 0 ultrahdr_app -m 0 -p cosmat_1920x1080_rgba1010102.raw -i cosmat_1920x1080_420_8bit.jpg -w 1920 -h 1080 -t 1 -o 1 -O 5 -e 1 -a 5 ## encode scenario 4 : ultrahdr_app -m 0 -i cosmat_1920x1080_420_8bit.jpg -g cosmat_1920x1080_420_8bit.jpg -f metadata.cfg ## encode at high quality : ultrahdr_app -m 0 -p hdr_intent.raw -y sdr_intent.raw -w 640 -h 480 -c -t