How to build a static MSVC library of wimlib?

Comments, questions, bug reports, etc.
Post Reply
yangyulin
Posts: 4
Joined: Mon Nov 08, 2021 4:19 am
Location: China

How to build a static MSVC library of wimlib?

Post 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.
synchronicity
Site Admin
Posts: 472
Joined: Sun Aug 02, 2015 10:31 pm

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

Post by synchronicity »

Building wimlib with MSVC is not supported.
gailium
Posts: 6
Joined: Fri Jul 01, 2022 5:23 am

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

Post 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
Post Reply