Sigmanificient | No sure this is the proper room, but i am making a project with Qt6, and i have issues when using the qtimageformats plugin in my project.
When I pulled the deps into my devShell, the tiff image format (which is part of qtimageformats) is not found:
qDebug() << QImageReader::supportedImageFormats();
QList("bmp", "cur", "gif", "ico", "jfif", "jpeg", "jpg", "pbm", "pgm", "png", "ppm", "xbm", "xpm")
After digging a bit, i come across https://discourse.nixos.org/t/python-qt-woes/11808/10, and after applying
shellHook = ''
setQtEnvironment=$(mktemp --suffix .setQtEnvironment.sh)
echo "shellHook: setQtEnvironment = $setQtEnvironment"
makeWrapper "/bin/sh" "$setQtEnvironment" "''${qtWrapperArgs[@]}"
sed "/^exec/d" -i "$setQtEnvironment"
source "$setQtEnvironment"
'';
it seems to properly find the formats:
QList("bmp", "cur", "gif", "icns", "ico", "jfif", "jp2", "jpeg", "jpg", "mng", "pbm", "pgm", "png", "ppm", "tga", "tif", "tiff", "wbmp", "webp", "xbm", "xpm")
My issue: This seems super hacky and was proposed back in 2021. Is there anyhting new on the matter? A better approach?
| 15:45:29 |