Page 1 of 1

How to build a static MSVC library of wimlib?

Posted: Sun May 07, 2023 5:39 am
by yangyulin
My MSVC project need a static version of wimlib, but the official binary only contains the import library of libwim-15.dll. And the are no way (like CMake or Makefile for nmake) to build it.

Re: How to build a static MSVC library of wimlib?

Posted: Sun May 07, 2023 6:24 am
by synchronicity
Building wimlib with MSVC is not supported.

Re: How to build a static MSVC library of wimlib?

Posted: Tue Aug 15, 2023 3:56 am
by gailium
It seems that wimlib used too many GCC and CLANG specific functions, macros and stuff like typeof() and __attribute__.
A port to MSVC should replace these stuff to MSVC specific alternatives, which is theoretically possible but requires a lot of work.
It seems that alignment is broken on msvc. Will make a push request once it is fixed.
Seems that capturing files from the Windows folder is broken on MSVC build.
EDIT: Fixed https://github.com/gailium119/wimlib