Error when compiling on windows #4379
-
I'm starting to use botan in my project, I need the lib on both x64 and x86 but I'm getting an error on Windows to compile In x64 mode I get zlib error, I am trying to compile as follows
Error:
And in x86 mode
When I compile I get the error
And a question I wanted to ask is it possible to generate an sln file for the Windows compiler? |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments
-
Botan's build system isn't able to find zlib on your system without some extra help. On unix based systems it would simply look at the system's default locations, but this concept doesn't exist in the same way on Windows, unfortunately. Please try providing the include and library locations like this: ./configure.py [... any other flags ...] --with-zlib --with-external-includedir=C:/your/path/to/zlib/include --with-external-libdir=C:/you/path/to/zlib/lib Regarding the x86 issue, this is a bit a shot in the dark, but my guess: Did you run this in an x86_64 Visual Studio environment? Because, the build system picked up a compiler that doesn't seem to support building for x86_32.
Unfortunately not, our build system is fairly low-level and can only generate |
Beta Was this translation helpful? Give feedback.
-
I managed to compile it, thanks for the help |
Beta Was this translation helpful? Give feedback.
Botan's build system isn't able to find zlib on your system without some extra help. On unix based systems it would simply look at the system's default locations, but this concept doesn't exist in the same way on Windows, unfortunately. Please try providing the include and library locations like this:
Regarding the x86 issue, this is a bit a shot in the dark, but my guess: Did you run this in an x86_64 Visual Studio environment? Because, the build system picked up a compiler that doesn't seem to support building for x86_32.
Typically y…