[botan-devel] Building Botan trunk on Windows
lists at nightsoul.org
Mon Feb 10 12:19:24 EST 2014
being in need of AEAD, I try to build Botan 1.11 on Windows (ignoring how easy it would be on other OSes...). Rest of the environment is mingw 4.8, targeting an amalgamation build into a Qt 5.1 project.
On a side note: I found the botan.pri file from  to be of little help, its targeted at Botan 1.10 anyway...
So I've run into two nested issues.
First, the configure.py script seems to recognize --without-boost, but doesn't act accordingly. There is still <boost/filesystem.hpp> included in cert/x509/certstor.cpp:9.
Second, after I built boost-filesystem I couldn't figure out a way to tell configure.py where to find it (to build a shared lib). But as I want an amalgamation build anyway, I fixed that by including boost through the qmake project config. Now g++ gives me exactly 2677 errors. The first few look like this: http://pastebin.com/RzTN7VBw
Botan config from botan_all.h:
Marcel at a320 running 'C:\...\Botan-git\configure.py --cc=gcc --cpu=x86_32 --os=mingw --gen-amalgamation --without-boost'
- Compiler: g++ -pthread -g -O3 -momit-leaf-frame-pointer
- Arch: x86_32/x86_32
- OS: mingw
The compiler call for botan_all.cpp is this:
g++ -c -pipe -fno-keep-inline-dllexport -std=c++11 -msse2 -mssse3 -maes -fpermissive -finline-functions -Wno-long-long -g -fexceptions -mthreads -frtti -Wall -Wextra -DUNICODE -DWIN32_LEAN_AND_MEAN -DBOTAN_DLL=Q_DECL_EXPORT -DBOTAN_BUILD_COMPILER_IS_GCC -DBOTAN_TARGET_OS_IS_WINDOWS -DBOTAN_HAS_DYNAMICALLY_LOADED_ENGINE -DBOTAN_HAS_DYNAMIC_LOADER -DBOTAN_HAS_ENTROPY_SRC_CAPI -DBOTAN_HAS_MUTEX_WIN32 -DQT_QML_DEBUG -DQT_DECLARATIVE_DEBUG -DQT_CORE_LIB -I..\BotanTester -I"F:\boost_1_55_0" -I"F:\Qt\5.1.1\mingw48_32\include" -I"F:\Qt\5.1.1\mingw48_32\include\QtCore" -I"debug" -I"." -I"F:\Qt\5.1.1\mingw48_32\mkspecs\win32-g++" -o debug\botan_all.o ..\BotanTester\botan_all.cpp
Please let me know if there's more information I could provide.
More information about the botan-devel