|
Boost : |
Subject: [boost] Problems building Boost libraries for Windows Store when C++/CX is involved
From: Mikael Olenfalk (mikael.olenfalk_at_[hidden])
Date: 2015-10-05 05:48:23
Hi,
I am working on porting the boost libraries we depend on to winrt, most
porting is rather straightforward (basically switch from win32 apis which
are 20 years old to apis which are 15 years old :D ).
However I have hit a bit of a problem when compiling Boost.Log. Boost.Log
depends on Boost.Asio which uses C++/CX to call some of the newer Store
APIs (Windows::Networking and friends).
When I build I get these errors:
compile-c-c++
..\..\..\bin.v2\libs\log\build\msvc-14.0\debug\log-api-winnt\threading-multi\windows-api-store\dump_ssse3.obj
dump_ssse3.cpp
..\..\..\libs\log\src\dump_ssse3.cpp: fatal error C1107: could not find
assembly 'platform.winmd': please specify the assembly search path using
/AI or by setting the LIBPATH environment variable
call "C:\Program Files (x86)\Microsoft Visual Studio
14.0\VC\vcvarsall.bat" x86 store >nul
cl /Zm800 /ZW /EHsc -nologo
@"..\..\..\bin.v2\libs\log\build\msvc-14.0\debug\log-api-winnt\threading-multi\windows-api-store\dump_ssse3.obj.rsp"
(As you can see I have monkey-patched msvc.jam to append the "store"
argument to vcvarsall.bat - to no avail :( -- the monkey-patch is here if
you want to look at it:
https://github.com/mauve/build/commits/universal-windows-boost-1.59.0 )
The @response file looks like this:
"..\..\..\libs\log\src\dump_ssse3.cpp"
-Fo"..\..\..\bin.v2\libs\log\build\msvc-14.0\debug\log-api-winnt\threading-multi\windows-api-store\dump_ssse3.obj"
-TP /Z7 /Od /Ob0 /W3 /GR /MDd /Zc:forScope /Zc:wchar_t /wd4675 /EHs
/arch:SSE2 /bigobj /wd4003 /wd4456 /wd4459 /wd4503 -c
-DBOOST_ALL_NO_LIB=1
-DBOOST_CHRONO_DYN_LINK=1
-DBOOST_DATE_TIME_DYN_LINK=1
-DBOOST_FILESYSTEM_DYN_LINK=1
-DBOOST_LOG_BUILDING_THE_LIB=1
-DBOOST_LOG_DLL
-DBOOST_SPIRIT_USE_PHOENIX_V3=1
-DBOOST_SYSTEM_DYN_LINK=1
-DBOOST_SYSTEM_NO_DEPRECATED
-DBOOST_THREAD_BUILD_DLL=1
-DBOOST_THREAD_DONT_USE_CHRONO=1
-DBOOST_THREAD_USE_DLL=1
-DDATE_TIME_INLINE
-DWINAPI_FAMILY=WINAPI_FAMILY_APP
-D_CRT_SECURE_NO_DEPRECATE
-D_CRT_SECURE_NO_WARNINGS
-D_SCL_SECURE_NO_DEPRECATE
-D_SCL_SECURE_NO_WARNINGS
-D_WIN32_WINNT=0x0603
"-I..\..\.."
Regards,
Mikael
Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk