cd StormLib/
> make -f Makefile.linux
......
usr/bin/ld: i386 architecture of input file `src/jenkins/lookup3.o' is incompatible with i386:x86-64 output
/usr/bin/ld: src/FileStream.o: in function `LinearStream_Read(TLinearStream*, unsigned long long*, void*, unsigned int)':
FileStream.cpp:(.text+0xd97): undefined reference to `__udivdi3'
/usr/bin/ld: src/FileStream.o: in function `PartialStream_Read(TPartialStream*, unsigned long long*, void*, unsigned int)':
FileStream.cpp:(.text+0x12c1): undefined reference to `__udivdi3'
/usr/bin/ld: src/FileStream.o: in function `PartialStream_Open(TPartialStream*)':
FileStream.cpp:(.text+0x18de): undefined reference to `__udivdi3'
/usr/bin/ld: src/SBaseFileTable.o: in function `GetFileIndex_Het(_TMPQArchive*, char const*)':
SBaseFileTable.cpp:(.text+0x1390): undefined reference to `__umoddi3'
/usr/bin/ld: src/SBaseFileTable.o: in function `AllocateHetEntry(_TMPQArchive*, _TFileEntry*)':
SBaseFileTable.cpp:(.text+0x1546): undefined reference to `__umoddi3'
/usr/bin/ld: src/SBaseFileTable.o: in function `LoadMpqDataBitmap(_TMPQArchive*, unsigned long long, bool*)':
SBaseFileTable.cpp:(.text+0x3194): undefined reference to `__udivdi3'
/usr/bin/ld: src/SFileOpenArchive.o: in function `CreateFileBitmap(_TMPQArchive*, _TMPQBitmap*, bool)':
SFileOpenArchive.cpp:(.text+0x98): undefined reference to `__udivdi3'
/usr/bin/ld: src/libtommath/bn_mp_div_d.o: in function `mp_div_d':
bn_mp_div_d.c:(.text+0x222): undefined reference to `__udivdi3'
/usr/bin/ld: src/libtommath/bn_mp_div.o: in function `mp_div':
bn_mp_div.c:(.text+0x3a8): undefined reference to `__udivdi3'
/usr/bin/ld: src/adpcm/adpcm.o: file class ELFCLASS32 incompatible with ELFCLASS64
/usr/bin/ld: final link failed: file in wrong format
collect2: error: ld returned 1 exit status
make: *** [Makefile.linux:252: libStorm.so] Error 1
> uname -a
Linux tehfishybeast 5.15.14-200.fc35.x86_64 #1 SMP Tue Jan 11 16:49:27 UTC 2022 x86_64 x86_64 x86_64 GNU/Linux
OS: Fedora release 35 (Thirty Five) x86_64
Probably should use external submodule like other projects do, MPQExtractor. https://github.com/ladislav-zezula/StormLib