2023.08.09 17:07 "[Tiff] Continuing Problems with Error messages with CFA tags: Unknown tags v 4.5.1", by Darral Freund

2023.08.09 19:21 "Re: [Tiff] Continuing Problems with Error messages with CFA tags: Unknown tags v 4.5.1", by Bob Friesenhahn

I compiled the code with:

g++ -std=c++17 16bit_raw1.cpp -ltiff -L/usr/local/lib -I/usr/local/include -o 16bit_raw

And it compiled successfully, but when executed I get:

TIFFSetField: 16bitRaw.dng: Unknown tag 33422.
TIFFSetField: 16bitRaw.dng: Unknown tag 33421.

The mere passing of time does not cause something to be supported.

Recently there was an attempt to add all of the DNG tags to libtiff (not yet released), but it caused some serious regressions. So that part of the updates are currently disabled in the Git version. So it is not clear if the tags you want to use are directly supported.

I tried the compile solution Fabian identified using the static library, as follows:

g++ 16bit_raw1.cpp -Wall  /usr/local/lib/libtiff.a -I/usr/local/include -o 16bit_raw

But that yields a variety of compile errors as follows:

Undefined symbols for architecture arm64:

Extra care needs to be taken when using a static library because they do not remember/replay the libraries that they are dependent upon. Perhaps using values from pkg-config will help. For example:

   g++ 16bit_raw1.cpp -Wall $(pkg-config --cflags --libs --static libtiff-4)

Make sure that it is using the correct library. It may be necessary to update the PKG_CONFIG_PATH environment variable to make sure that the correct pkg-config file is found. When in doubt, read the manual page for pkg-config.


Bob Friesenhahn
bfriesen@simple.dallas.tx.us, http://www.simplesystems.org/users/bfriesen/
GraphicsMagick Maintainer, http://www.GraphicsMagick.org/
Public Key, http://www.simplesystems.org/users/bfriesen/public-key.txt