Hello,
I’m attempting to use zlib (the version that comes with Unreal Engine) to uncompress some data that comes from a server. I’ve added the following to my .Build.cs file…
AddEngineThirdPartyPrivateStaticDependencies(Target, “zlib”);
…and I’m including the following file in my code: #include “ThirdParty/zlib/zlib-1.2.5/Inc/zlib.h”
Everything works great when I run my game through the editor (which is running on Windows 10). The problem is that when I try to package the game for Android, I get some error messages that appear to be related to zlib:
PackagingResults: Error: ‘_LARGEFILE64_SOURCE’ is not defined, evaluates to 0 [-Werror,-Wundef]
PackagingResults: Error: ‘_FILE_OFFSET_BITS’ is not defined, evaluates to 0 [-Werror,-Wundef]
PackagingResults: Error: ‘_LARGEFILE64_SOURCE’ is not defined, evaluates to 0 [-Werror,-Wundef]
PackagingResults: Error: ‘_FILE_OFFSET_BITS’ is not defined, evaluates to 0 [-Werror,-Wundef]
I don’t have any clue on what to try to resolve these errors. Does anyone have any experience getting zlib to work in an Android project? Thanks in advance!