libmobi
libmobi copied to clipboard
Building on Windows fails with libxml2.lib(libxml2.dll) : error LNK2005: xmlBufferCreate already defined in xmlwriter.obj
I am sorry, I am not an expert. I'm just trying to build this for Windows 11 x64 I have compiled and installed libxml2-2.13.4 using
cmake -E tar xf libxml2-2.13.4.tar.xz cmake -S libxml2-2.13.4 -B libxml2-2.13.4-build -D LIBXML2_WITH_ICONV=OFF cmake --build libxml2-2.13.4-build --config Release cmake --install libxml2-2.13.4-build
I have also manually compiled zlib-1.3.1 and installed it and now I am trying to compile libmobi
cd C:\Users\codrut\libmobi-0.12\build cmake .. -A x64 -D LibXml2_ROOT="C:/Program Files (x86)/libxml2" -D ZLIB_ROOT="C:\Program Files\zlib" cmake --build . --config Release
this fails with:
MSBuild version 17.11.9+a69bbaaf5 for .NET Framework
1>Checking Build System
Building Custom Rule C:/Users/codrut/libmobi-0.12/tools/CMakeLists.txt
common.c
C:\Users\codrut\libmobi-0.12\tools\common.c(93,13): warning C4996: 'strncpy': This function or variable may be unsafe. Consider using strncpy_s instead. To disable deprecation, use _CRT_SECURE_NO_WARNINGS. See online help for details. [C:\Users\codrut\libmobi-0.12\buil
d\tools\common.vcxproj]
C:\Users\codrut\libmobi-0.12\tools\common.c(97,13): warning C4996: 'strncpy': This function or variable may be unsafe. Consider using strncpy_s instead. To disable deprecation, use _CRT_SECURE_NO_WARNINGS. See online help for details. [C:\Users\codrut\libmobi-0.12\buil
d\tools\common.vcxproj]
C:\Users\codrut\libmobi-0.12\tools\common.c(106,13): warning C4996: 'strncpy': This function or variable may be unsafe. Consider using strncpy_s instead. To disable deprecation, use _CRT_SECURE_NO_WARNINGS. See online help for details. [C:\Users\codrut\libmobi-0.12\bui
ld\tools\common.vcxproj]
C:\Users\codrut\libmobi-0.12\tools\common.c(127,65): warning C4996: 'strerror': This function or variable may be unsafe. Consider using strerror_s instead. To disable deprecation, use _CRT_SECURE_NO_WARNINGS. See online help for details. [C:\Users\codrut\libmobi-0.12\b
uild\tools\common.vcxproj]
C:\Users\codrut\libmobi-0.12\tools\common.c(166,68): warning C4996: 'strerror': This function or variable may be unsafe. Consider using strerror_s instead. To disable deprecation, use _CRT_SECURE_NO_WARNINGS. See online help for details. [C:\Users\codrut\libmobi-0.12\b
uild\tools\common.vcxproj]
C:\Users\codrut\libmobi-0.12\tools\common.c(172,58): warning C4996: 'strerror': This function or variable may be unsafe. Consider using strerror_s instead. To disable deprecation, use _CRT_SECURE_NO_WARNINGS. See online help for details. [C:\Users\codrut\libmobi-0.12\b
uild\tools\common.vcxproj]
C:\Users\codrut\libmobi-0.12\tools\common.c(211,62): warning C4996: 'strerror': This function or variable may be unsafe. Consider using strerror_s instead. To disable deprecation, use _CRT_SECURE_NO_WARNINGS. See online help for details. [C:\Users\codrut\libmobi-0.12\b
uild\tools\common.vcxproj]
C:\Users\codrut\libmobi-0.12\tools\common.c(262,13): warning C4996: 'sscanf': This function or variable may be unsafe. Consider using sscanf_s instead. To disable deprecation, use _CRT_SECURE_NO_WARNINGS. See online help for details. [C:\Users\codrut\libmobi-0.12\build
\tools\common.vcxproj]
C:\Users\codrut\libmobi-0.12\tools\common.c(611,58): warning C4996: 'strerror': This function or variable may be unsafe. Consider using strerror_s instead. To disable deprecation, use _CRT_SECURE_NO_WARNINGS. See online help for details. [C:\Users\codrut\libmobi-0.12\b
uild\tools\common.vcxproj]
common.vcxproj -> C:\Users\codrut\libmobi-0.12\build\tools\common.dir\Release\common.lib
Building Custom Rule C:/Users/codrut/libmobi-0.12/tools/CMakeLists.txt
miniz.c
C:\Users\codrut\libmobi-0.12\src\miniz.c(933,9): warning C4005: 'NDEBUG': macro redefinition [C:\Users\codrut\libmobi-0.12\build\tools\zip.vcxproj]
C:\Users\codrut\libmobi-0.12\src\miniz.c(933,9):
'NDEBUG' previously declared on the command line
zip.vcxproj -> C:\Users\codrut\libmobi-0.12\build\tools\zip.dir\Release\zip.lib
Building Custom Rule C:/Users/codrut/libmobi-0.12/src/CMakeLists.txt
buffer.c
compression.c
debug.c
index.c
C:\Users\codrut\libmobi-0.12\src\index.c(381,5): warning C4996: 'strncpy': This function or variable may be unsafe. Consider using strncpy_s instead. To disable deprecation, use _CRT_SECURE_NO_WARNINGS. See online help for details. [C:\Users\codrut\libmobi-0.12\build\s
rc\mobi.vcxproj]
C:\Users\codrut\libmobi-0.12\src\index.c(914,22): warning C4996: 'strdup': The POSIX name for this item is deprecated. Instead, use the ISO C and C++ conformant name: _strdup. See online help for details. [C:\Users\codrut\libmobi-0.12\build\src\mobi.vcxproj]
C:\Users\codrut\libmobi-0.12\src\index.c(1053,37): warning C4996: 'strdup': The POSIX name for this item is deprecated. Instead, use the ISO C and C++ conformant name: _strdup. See online help for details. [C:\Users\codrut\libmobi-0.12\build\src\mobi.vcxproj]
memory.c
meta.c
C:\Users\codrut\libmobi-0.12\src\meta.c(50,13): warning C4996: 'strcpy': This function or variable may be unsafe. Consider using strcpy_s instead. To disable deprecation, use _CRT_SECURE_NO_WARNINGS. See online help for details. [C:\Users\codrut\libmobi-0.12\build\src\
mobi.vcxproj]
C:\Users\codrut\libmobi-0.12\src\meta.c(51,13): warning C4996: 'strcat': This function or variable may be unsafe. Consider using strcat_s instead. To disable deprecation, use _CRT_SECURE_NO_WARNINGS. See online help for details. [C:\Users\codrut\libmobi-0.12\build\src\
mobi.vcxproj]
C:\Users\codrut\libmobi-0.12\src\meta.c(52,13): warning C4996: 'strcat': This function or variable may be unsafe. Consider using strcat_s instead. To disable deprecation, use _CRT_SECURE_NO_WARNINGS. See online help for details. [C:\Users\codrut\libmobi-0.12\build\src\
mobi.vcxproj]
C:\Users\codrut\libmobi-0.12\src\meta.c(83,17): warning C4996: 'strdup': The POSIX name for this item is deprecated. Instead, use the ISO C and C++ conformant name: _strdup. See online help for details. [C:\Users\codrut\libmobi-0.12\build\src\mobi.vcxproj]
C:\Users\codrut\libmobi-0.12\src\meta.c(85,17): warning C4996: 'strdup': The POSIX name for this item is deprecated. Instead, use the ISO C and C++ conformant name: _strdup. See online help for details. [C:\Users\codrut\libmobi-0.12\build\src\mobi.vcxproj]
C:\Users\codrut\libmobi-0.12\src\meta.c(798,20): warning C4996: 'strdup': The POSIX name for this item is deprecated. Instead, use the ISO C and C++ conformant name: _strdup. See online help for details. [C:\Users\codrut\libmobi-0.12\build\src\mobi.vcxproj]
parse_rawml.c
C:\Users\codrut\libmobi-0.12\src\parse_rawml.c(308,5): warning C4996: 'strcpy': This function or variable may be unsafe. Consider using strcpy_s instead. To disable deprecation, use _CRT_SECURE_NO_WARNINGS. See online help for details. [C:\Users\codrut\libmobi-0.12\bui
ld\src\mobi.vcxproj]
C:\Users\codrut\libmobi-0.12\src\parse_rawml.c(309,5): warning C4996: 'strcat': This function or variable may be unsafe. Consider using strcat_s instead. To disable deprecation, use _CRT_SECURE_NO_WARNINGS. See online help for details. [C:\Users\codrut\libmobi-0.12\bui
ld\src\mobi.vcxproj]
C:\Users\codrut\libmobi-0.12\src\parse_rawml.c(931,32): warning C4267: '-=': conversion from 'size_t' to 'uint32_t', possible loss of data [C:\Users\codrut\libmobi-0.12\build\src\mobi.vcxproj]
C:\Users\codrut\libmobi-0.12\src\parse_rawml.c(1056,17): warning C4996: 'sscanf': This function or variable may be unsafe. Consider using sscanf_s instead. To disable deprecation, use _CRT_SECURE_NO_WARNINGS. See online help for details. [C:\Users\codrut\libmobi-0.12\b
uild\src\mobi.vcxproj]
C:\Users\codrut\libmobi-0.12\src\parse_rawml.c(1092,5): warning C4996: 'strncpy': This function or variable may be unsafe. Consider using strncpy_s instead. To disable deprecation, use _CRT_SECURE_NO_WARNINGS. See online help for details. [C:\Users\codrut\libmobi-0.12\
build\src\mobi.vcxproj]
C:\Users\codrut\libmobi-0.12\src\parse_rawml.c(1096,5): warning C4996: 'strncpy': This function or variable may be unsafe. Consider using strncpy_s instead. To disable deprecation, use _CRT_SECURE_NO_WARNINGS. See online help for details. [C:\Users\codrut\libmobi-0.12\
build\src\mobi.vcxproj]
C:\Users\codrut\libmobi-0.12\src\parse_rawml.c(1151,5): warning C4996: 'strncpy': This function or variable may be unsafe. Consider using strncpy_s instead. To disable deprecation, use _CRT_SECURE_NO_WARNINGS. See online help for details. [C:\Users\codrut\libmobi-0.12\
build\src\mobi.vcxproj]
C:\Users\codrut\libmobi-0.12\src\parse_rawml.c(1186,5): warning C4996: 'strncpy': This function or variable may be unsafe. Consider using strncpy_s instead. To disable deprecation, use _CRT_SECURE_NO_WARNINGS. See online help for details. [C:\Users\codrut\libmobi-0.12\
build\src\mobi.vcxproj]
C:\Users\codrut\libmobi-0.12\src\parse_rawml.c(1301,60): warning C4996: 'strdup': The POSIX name for this item is deprecated. Instead, use the ISO C and C++ conformant name: _strdup. See online help for details. [C:\Users\codrut\libmobi-0.12\build\src\mobi.vcxproj]
C:\Users\codrut\libmobi-0.12\src\parse_rawml.c(1395,5): warning C4996: 'strcpy': This function or variable may be unsafe. Consider using strcpy_s instead. To disable deprecation, use _CRT_SECURE_NO_WARNINGS. See online help for details. [C:\Users\codrut\libmobi-0.12\bu
ild\src\mobi.vcxproj]
C:\Users\codrut\libmobi-0.12\src\parse_rawml.c(1458,13): warning C4996: 'strcat': This function or variable may be unsafe. Consider using strcat_s instead. To disable deprecation, use _CRT_SECURE_NO_WARNINGS. See online help for details. [C:\Users\codrut\libmobi-0.12\b
uild\src\mobi.vcxproj]
C:\Users\codrut\libmobi-0.12\src\parse_rawml.c(1464,9): warning C4996: 'strcat': This function or variable may be unsafe. Consider using strcat_s instead. To disable deprecation, use _CRT_SECURE_NO_WARNINGS. See online help for details. [C:\Users\codrut\libmobi-0.12\bu
ild\src\mobi.vcxproj]
C:\Users\codrut\libmobi-0.12\src\parse_rawml.c(1497,5): warning C4996: 'strcpy': This function or variable may be unsafe. Consider using strcpy_s instead. To disable deprecation, use _CRT_SECURE_NO_WARNINGS. See online help for details. [C:\Users\codrut\libmobi-0.12\bu
ild\src\mobi.vcxproj]
C:\Users\codrut\libmobi-0.12\src\parse_rawml.c(1520,9): warning C4996: 'strcat': This function or variable may be unsafe. Consider using strcat_s instead. To disable deprecation, use _CRT_SECURE_NO_WARNINGS. See online help for details. [C:\Users\codrut\libmobi-0.12\bu
ild\src\mobi.vcxproj]
C:\Users\codrut\libmobi-0.12\src\parse_rawml.c(1525,9): warning C4996: 'strcat': This function or variable may be unsafe. Consider using strcat_s instead. To disable deprecation, use _CRT_SECURE_NO_WARNINGS. See online help for details. [C:\Users\codrut\libmobi-0.12\bu
ild\src\mobi.vcxproj]
C:\Users\codrut\libmobi-0.12\src\parse_rawml.c(1645,58): warning C4996: 'strdup': The POSIX name for this item is deprecated. Instead, use the ISO C and C++ conformant name: _strdup. See online help for details. [C:\Users\codrut\libmobi-0.12\build\src\mobi.vcxproj]
C:\Users\codrut\libmobi-0.12\src\parse_rawml.c(1762,48): warning C4996: 'strdup': The POSIX name for this item is deprecated. Instead, use the ISO C and C++ conformant name: _strdup. See online help for details. [C:\Users\codrut\libmobi-0.12\build\src\mobi.vcxproj]
C:\Users\codrut\libmobi-0.12\src\parse_rawml.c(1809,50): warning C4996: 'strdup': The POSIX name for this item is deprecated. Instead, use the ISO C and C++ conformant name: _strdup. See online help for details. [C:\Users\codrut\libmobi-0.12\build\src\mobi.vcxproj]
read.c
C:\Users\codrut\libmobi-0.12\src\read.c(667,26): warning C4334: '<<': result of 32-bit shift implicitly converted to 64 bits (was 64-bit shift intended?) [C:\Users\codrut\libmobi-0.12\build\src\mobi.vcxproj]
structure.c
util.c
C:\Users\codrut\libmobi-0.12\src\util.c(434,14): warning C4996: 'strcpy': This function or variable may be unsafe. Consider using strcpy_s instead. To disable deprecation, use _CRT_SECURE_NO_WARNINGS. See online help for details. [C:\Users\codrut\libmobi-0.12\build\src
\mobi.vcxproj]
C:\Users\codrut\libmobi-0.12\src\util.c(765,9): warning C4996: 'strncpy': This function or variable may be unsafe. Consider using strncpy_s instead. To disable deprecation, use _CRT_SECURE_NO_WARNINGS. See online help for details. [C:\Users\codrut\libmobi-0.12\build\sr
c\mobi.vcxproj]
C:\Users\codrut\libmobi-0.12\src\util.c(1109,29): warning C4267: '-=': conversion from 'size_t' to 'uint16_t', possible loss of data [C:\Users\codrut\libmobi-0.12\build\src\mobi.vcxproj]
C:\Users\codrut\libmobi-0.12\src\util.c(1164,25): warning C4267: '+=': conversion from 'size_t' to 'uint16_t', possible loss of data [C:\Users\codrut\libmobi-0.12\build\src\mobi.vcxproj]
C:\Users\codrut\libmobi-0.12\src\util.c(1675,5): warning C4996: 'strcpy': This function or variable may be unsafe. Consider using strcpy_s instead. To disable deprecation, use _CRT_SECURE_NO_WARNINGS. See online help for details. [C:\Users\codrut\libmobi-0.12\build\src
\mobi.vcxproj]
C:\Users\codrut\libmobi-0.12\src\util.c(1753,12): warning C4996: 'localtime': This function or variable may be unsafe. Consider using localtime_s instead. To disable deprecation, use _CRT_SECURE_NO_WARNINGS. See online help for details. [C:\Users\codrut\libmobi-0.12\bu
ild\src\mobi.vcxproj]
C:\Users\codrut\libmobi-0.12\src\util.c(2563,52): warning C4267: 'initializing': conversion from 'size_t' to 'const unsigned long', possible loss of data [C:\Users\codrut\libmobi-0.12\build\src\mobi.vcxproj]
C:\Users\codrut\libmobi-0.12\src\util.c(2992,27): warning C4267: '+=': conversion from 'size_t' to 'uint32_t', possible loss of data [C:\Users\codrut\libmobi-0.12\build\src\mobi.vcxproj]
C:\Users\codrut\libmobi-0.12\src\util.c(3228,31): warning C4267: '-=': conversion from 'size_t' to 'uint32_t', possible loss of data [C:\Users\codrut\libmobi-0.12\build\src\mobi.vcxproj]
C:\Users\codrut\libmobi-0.12\src\util.c(3276,31): warning C4267: '+=': conversion from 'size_t' to 'uint32_t', possible loss of data [C:\Users\codrut\libmobi-0.12\build\src\mobi.vcxproj]
C:\Users\codrut\libmobi-0.12\src\util.c(3279,31): warning C4267: '+=': conversion from 'size_t' to 'uint32_t', possible loss of data [C:\Users\codrut\libmobi-0.12\build\src\mobi.vcxproj]
C:\Users\codrut\libmobi-0.12\src\util.c(3282,31): warning C4267: '+=': conversion from 'size_t' to 'uint32_t', possible loss of data [C:\Users\codrut\libmobi-0.12\build\src\mobi.vcxproj]
C:\Users\codrut\libmobi-0.12\src\util.c(3285,31): warning C4267: '+=': conversion from 'size_t' to 'uint32_t', possible loss of data [C:\Users\codrut\libmobi-0.12\build\src\mobi.vcxproj]
C:\Users\codrut\libmobi-0.12\src\util.c(3288,35): warning C4267: '+=': conversion from 'size_t' to 'uint32_t', possible loss of data [C:\Users\codrut\libmobi-0.12\build\src\mobi.vcxproj]
write.c
C:\Users\codrut\libmobi-0.12\src\write.c(464,23): warning C4267: '+=': conversion from 'size_t' to 'uint32_t', possible loss of data [C:\Users\codrut\libmobi-0.12\build\src\mobi.vcxproj]
xmlwriter.c
C:\Users\codrut\libmobi-0.12\src\xmlwriter.c(41,18): warning C4996: 'strdup': The POSIX name for this item is deprecated. Instead, use the ISO C and C++ conformant name: _strdup. See online help for details. [C:\Users\codrut\libmobi-0.12\build\src\mobi.vcxproj]
C:\Users\codrut\libmobi-0.12\src\xmlwriter.c(338,26): warning C4996: 'strdup': The POSIX name for this item is deprecated. Instead, use the ISO C and C++ conformant name: _strdup. See online help for details. [C:\Users\codrut\libmobi-0.12\build\src\mobi.vcxproj]
C:\Users\codrut\libmobi-0.12\src\xmlwriter.c(342,27): warning C4996: 'strdup': The POSIX name for this item is deprecated. Instead, use the ISO C and C++ conformant name: _strdup. See online help for details. [C:\Users\codrut\libmobi-0.12\build\src\mobi.vcxproj]
encryption.c
sha1.c
C:\Users\codrut\libmobi-0.12\src\sha1.c(191,35): warning C4267: '+=': conversion from 'size_t' to 'uint32_t', possible loss of data [C:\Users\codrut\libmobi-0.12\build\src\mobi.vcxproj]
C:\Users\codrut\libmobi-0.12\src\sha1.c(192,31): warning C4267: '+=': conversion from 'size_t' to 'uint32_t', possible loss of data [C:\Users\codrut\libmobi-0.12\build\src\mobi.vcxproj]
randombytes.c
opf.c
C:\Users\codrut\libmobi-0.12\src\opf.c(247,9): warning C4996: 'strcpy': This function or variable may be unsafe. Consider using strcpy_s instead. To disable deprecation, use _CRT_SECURE_NO_WARNINGS. See online help for details. [C:\Users\codrut\libmobi-0.12\build\src\m
obi.vcxproj]
C:\Users\codrut\libmobi-0.12\src\opf.c(375,40): warning C4996: 'strdup': The POSIX name for this item is deprecated. Instead, use the ISO C and C++ conformant name: _strdup. See online help for details. [C:\Users\codrut\libmobi-0.12\build\src\mobi.vcxproj]
C:\Users\codrut\libmobi-0.12\src\opf.c(414,40): warning C4996: 'strdup': The POSIX name for this item is deprecated. Instead, use the ISO C and C++ conformant name: _strdup. See online help for details. [C:\Users\codrut\libmobi-0.12\build\src\mobi.vcxproj]
C:\Users\codrut\libmobi-0.12\src\opf.c(760,25): warning C4996: 'strdup': The POSIX name for this item is deprecated. Instead, use the ISO C and C++ conformant name: _strdup. See online help for details. [C:\Users\codrut\libmobi-0.12\build\src\mobi.vcxproj]
C:\Users\codrut\libmobi-0.12\src\opf.c(761,28): warning C4996: 'strdup': The POSIX name for this item is deprecated. Instead, use the ISO C and C++ conformant name: _strdup. See online help for details. [C:\Users\codrut\libmobi-0.12\build\src\mobi.vcxproj]
C:\Users\codrut\libmobi-0.12\src\opf.c(828,25): warning C4996: 'strdup': The POSIX name for this item is deprecated. Instead, use the ISO C and C++ conformant name: _strdup. See online help for details. [C:\Users\codrut\libmobi-0.12\build\src\mobi.vcxproj]
C:\Users\codrut\libmobi-0.12\src\opf.c(829,28): warning C4996: 'strdup': The POSIX name for this item is deprecated. Instead, use the ISO C and C++ conformant name: _strdup. See online help for details. [C:\Users\codrut\libmobi-0.12\build\src\mobi.vcxproj]
C:\Users\codrut\libmobi-0.12\src\opf.c(1005,17): warning C4996: 'strdup': The POSIX name for this item is deprecated. Instead, use the ISO C and C++ conformant name: _strdup. See online help for details. [C:\Users\codrut\libmobi-0.12\build\src\mobi.vcxproj]
C:\Users\codrut\libmobi-0.12\src\opf.c(1009,17): warning C4996: 'strdup': The POSIX name for this item is deprecated. Instead, use the ISO C and C++ conformant name: _strdup. See online help for details. [C:\Users\codrut\libmobi-0.12\build\src\mobi.vcxproj]
C:\Users\codrut\libmobi-0.12\src\opf.c(1122,9): warning C4996: 'strdup': The POSIX name for this item is deprecated. Instead, use the ISO C and C++ conformant name: _strdup. See online help for details. [C:\Users\codrut\libmobi-0.12\build\src\mobi.vcxproj]
C:\Users\codrut\libmobi-0.12\src\opf.c(1123,9): warning C4996: 'strdup': The POSIX name for this item is deprecated. Instead, use the ISO C and C++ conformant name: _strdup. See online help for details. [C:\Users\codrut\libmobi-0.12\build\src\mobi.vcxproj]
C:\Users\codrut\libmobi-0.12\src\opf.c(1125,53): warning C4996: 'strdup': The POSIX name for this item is deprecated. Instead, use the ISO C and C++ conformant name: _strdup. See online help for details. [C:\Users\codrut\libmobi-0.12\build\src\mobi.vcxproj]
C:\Users\codrut\libmobi-0.12\src\opf.c(1135,21): warning C4996: 'strdup': The POSIX name for this item is deprecated. Instead, use the ISO C and C++ conformant name: _strdup. See online help for details. [C:\Users\codrut\libmobi-0.12\build\src\mobi.vcxproj]
C:\Users\codrut\libmobi-0.12\src\opf.c(1151,51): warning C4996: 'strdup': The POSIX name for this item is deprecated. Instead, use the ISO C and C++ conformant name: _strdup. See online help for details. [C:\Users\codrut\libmobi-0.12\build\src\mobi.vcxproj]
C:\Users\codrut\libmobi-0.12\src\opf.c(1153,51): warning C4996: 'strdup': The POSIX name for this item is deprecated. Instead, use the ISO C and C++ conformant name: _strdup. See online help for details. [C:\Users\codrut\libmobi-0.12\build\src\mobi.vcxproj]
C:\Users\codrut\libmobi-0.12\src\opf.c(1168,68): warning C4996: 'strdup': The POSIX name for this item is deprecated. Instead, use the ISO C and C++ conformant name: _strdup. See online help for details. [C:\Users\codrut\libmobi-0.12\build\src\mobi.vcxproj]
C:\Users\codrut\libmobi-0.12\src\opf.c(1182,69): warning C4996: 'strdup': The POSIX name for this item is deprecated. Instead, use the ISO C and C++ conformant name: _strdup. See online help for details. [C:\Users\codrut\libmobi-0.12\build\src\mobi.vcxproj]
C:\Users\codrut\libmobi-0.12\src\opf.c(1192,62): warning C4996: 'strdup': The POSIX name for this item is deprecated. Instead, use the ISO C and C++ conformant name: _strdup. See online help for details. [C:\Users\codrut\libmobi-0.12\build\src\mobi.vcxproj]
Generating Code...
libxml2.lib(libxml2.dll) : error LNK2005: xmlBufferCreate already defined in xmlwriter.obj [C:\Users\codrut\libmobi-0.12\build\src\mobi.vcxproj]
libxml2.lib(libxml2.dll) : error LNK2005: xmlBufferFree already defined in xmlwriter.obj [C:\Users\codrut\libmobi-0.12\build\src\mobi.vcxproj]
libxml2.lib(libxml2.dll) : error LNK2005: xmlNewTextWriterMemory already defined in xmlwriter.obj [C:\Users\codrut\libmobi-0.12\build\src\mobi.vcxproj]
libxml2.lib(libxml2.dll) : error LNK2005: xmlFreeTextWriter already defined in xmlwriter.obj [C:\Users\codrut\libmobi-0.12\build\src\mobi.vcxproj]
libxml2.lib(libxml2.dll) : error LNK2005: xmlTextWriterStartDocument already defined in xmlwriter.obj [C:\Users\codrut\libmobi-0.12\build\src\mobi.vcxproj]
libxml2.lib(libxml2.dll) : error LNK2005: xmlTextWriterEndDocument already defined in xmlwriter.obj [C:\Users\codrut\libmobi-0.12\build\src\mobi.vcxproj]
libxml2.lib(libxml2.dll) : error LNK2005: xmlTextWriterStartElement already defined in xmlwriter.obj [C:\Users\codrut\libmobi-0.12\build\src\mobi.vcxproj]
libxml2.lib(libxml2.dll) : error LNK2005: xmlTextWriterStartElementNS already defined in xmlwriter.obj [C:\Users\codrut\libmobi-0.12\build\src\mobi.vcxproj]
libxml2.lib(libxml2.dll) : error LNK2005: xmlTextWriterEndElement already defined in xmlwriter.obj [C:\Users\codrut\libmobi-0.12\build\src\mobi.vcxproj]
libxml2.lib(libxml2.dll) : error LNK2005: xmlTextWriterWriteElementNS already defined in xmlwriter.obj [C:\Users\codrut\libmobi-0.12\build\src\mobi.vcxproj]
libxml2.lib(libxml2.dll) : error LNK2005: xmlTextWriterWriteString already defined in xmlwriter.obj [C:\Users\codrut\libmobi-0.12\build\src\mobi.vcxproj]
libxml2.lib(libxml2.dll) : error LNK2005: xmlTextWriterWriteAttribute already defined in xmlwriter.obj [C:\Users\codrut\libmobi-0.12\build\src\mobi.vcxproj]
libxml2.lib(libxml2.dll) : error LNK2005: xmlTextWriterWriteAttributeNS already defined in xmlwriter.obj [C:\Users\codrut\libmobi-0.12\build\src\mobi.vcxproj]
libxml2.lib(libxml2.dll) : error LNK2005: xmlTextWriterSetIndent already defined in xmlwriter.obj [C:\Users\codrut\libmobi-0.12\build\src\mobi.vcxproj]
Creating library C:/Users/codrut/libmobi-0.12/build/src/Release/mobi.lib and object C:/Users/codrut/libmobi-0.12/build/src/Release/mobi.exp
C:\Users\codrut\libmobi-0.12\build\src\Release\mobi.dll : fatal error LNK1169: one or more multiply defined symbols found [C:\Users\codrut\libmobi-0.12\build\src\mobi.vcxproj]
I have installed Visual Studio Build Tools 2022 17.11.4 and CMake 3.30.4 on my Windows