Cross-compile from Linux Docker Container to Windows - How to get Zstandard support for resource Compression
-
I am building Qt6(Linux Host) and Qt6 Mingw Crosscompile Toolchain in a Ubuntu 24.04 Docker Container for later Cross Compilation of an Application.
The Linux Host Qt6 has zlib and zstd installed and configure gives
system zlib ... yes
Zstandard support ... yes
When configuring Qt6 for Windows cross build (MinGW Toolchain) config summary says:
system zlib ... yes
Zstandard support ... no
My guess is that zstd for MinGw is not installed. And i can't find a package containing zstd and MinGW like i did
for zlib (which is installed).
So is there a bundled Version?
The reason i suggest that this is needed, when crosscompiling an application i get :
undefined reference to `qResourceFeatureZstd()' when linking the resources with mingw ld.
I have tried Qt6.8.3. -
I am building Qt6(Linux Host) and Qt6 Mingw Crosscompile Toolchain in a Ubuntu 24.04 Docker Container for later Cross Compilation of an Application.
The Linux Host Qt6 has zlib and zstd installed and configure gives
system zlib ... yes
Zstandard support ... yes
When configuring Qt6 for Windows cross build (MinGW Toolchain) config summary says:
system zlib ... yes
Zstandard support ... no
My guess is that zstd for MinGw is not installed. And i can't find a package containing zstd and MinGW like i did
for zlib (which is installed).
So is there a bundled Version?
The reason i suggest that this is needed, when crosscompiling an application i get :
undefined reference to `qResourceFeatureZstd()' when linking the resources with mingw ld.
I have tried Qt6.8.3.@Zuuka said in Cross-compile from Linux Docker Container to Windows - How to get Zstandard support for resource Compression:
And i can't find a package containing zstd and MinGW like i did
for zlib (which is installed).See e.g. https://packages.msys2.org/packages/mingw-w64-x86_64-zstd
-
Thank your for reply. I am not using msys2 though. How can i get the package for Ubuntu24?
Need for building myself using mingw?! :/
Another question would be. Maybe only one of both is needed for compressing resources?
Either zlib or zstd?! Can i force what to use or are both needed? -
I don't see why this dll should not work. Simply try it out...