[英]Compiling Desktop applications for the ARM platform is not supported
我正在Visual Studio 2013上測試Boost 1.5.7。當我鍵入boostrap生成二進制文件時,我在boostrap.log中發現以下錯誤
為此,我使用VS2013 ARM交叉工具命令提示符。 我鍵入cd C:/ boost_1_57_0,然后鍵入bootstrap並按eneter來構建boostrap。
###
### Using 'vc12' toolset.
###
C:\boost_1_57_0\boost_1_57_0\tools\build\src\engine>if exist bootstrap rd /S /Q bootstrap
C:\boost_1_57_0\boost_1_57_0\tools\build\src\engine>md bootstrap
C:\boost_1_57_0\boost_1_57_0\tools\build\src\engine>cl /nologo /RTC1 /Zi /MTd /Fobootstrap/ /Fdbootstrap/ -DNT -DYYDEBUG -wd4996 kernel32.lib advapi32.lib user32.lib /Febootstrap\jam0 command.c compile.c constants.c debug.c execcmd.c execnt.c filent.c frames.c function.c glob.c hash.c hdrmacro.c headers.c jam.c jambase.c jamgram.c lists.c make.c make1.c object.c option.c output.c parse.c pathnt.c pathsys.c regexp.c rules.c scan.c search.c subst.c timestamp.c variable.c modules.c strings.c filesys.c builtins.c md5.c class.c cwd.c w32_getreg.c native.c modules/set.c modules/path.c modules/regex.c modules/property-set.c modules/sequence.c modules/order.c
command.c
C:\Program Files (x86)\Microsoft Visual Studio 12.0\VC\INCLUDE\crtdefs.h(404) : fatal error C1189: #error : Compiling Desktop applications for the ARM platform is not supported.
compile.c
C:\Program Files (x86)\Microsoft Visual Studio 12.0\VC\INCLUDE\crtdefs.h(404) : fatal error C1189: #error : Compiling Desktop applications for the ARM platform is not supported.
constants.c
debug.ca
C:\Program Files (x86)\Microsoft Visual Studio 12.0\VC\INCLUDE\crtdefs.h(404) : fatal error C1189: #error : Compiling Desktop applications for the ARM platform is not supported.
execcmd.c
C:\Program Files (x86)\Microsoft Visual Studio 12.0\VC\INCLUDE\crtdefs.h(404) : fatal error C1189: #error : Compiling Desktop applications for the ARM platform is not supported.
execnt.c
C:\Program Files (x86)\Microsoft Visual Studio 12.0\VC\INCLUDE\crtdefs.h(404) : fatal error C1189: #error : Compiling Desktop applications for the ARM platform is not supported.
filent.c
C:\Program Files (x86)\Microsoft Visual Studio 12.0\VC\INCLUDE\crtdefs.h(404) : fatal error C1189: #error : Compiling Desktop applications for the ARM platform is not supported.
frames.c
C:\Program Files (x86)\Microsoft Visual Studio 12.0\VC\INCLUDE\crtdefs.h(404) : fatal error C1189: #error : Compiling Desktop applications for the ARM platform is not supported.
function.c
C:\Program Files (x86)\Microsoft Visual Studio 12.0\VC\INCLUDE\crtdefs.h(404) : fatal error C1189: #error : Compiling Desktop applications for the ARM platform is not supported.
glob.c
C:\Program Files (x86)\Microsoft Visual Studio 12.0\VC\INCLUDE\crtdefs.h(404) : fatal error C1189: #error : Compiling Desktop applications for the ARM platform is not supported.
hash.c
C:\Program Files (x86)\Microsoft Visual Studio 12.0\VC\INCLUDE\crtdefs.h(404) : fatal error C1189: #error : Compiling Desktop applications for the ARM platform is not supported.
hdrmacro.c
C:\Program Files (x86)\Microsoft Visual Studio 12.0\VC\INCLUDE\crtdefs.h(404) : fatal error C1189: #error : Compiling Desktop applications for the ARM platform is not supported.
headers.c
C:\Program Files (x86)\Microsoft Visual Studio 12.0\VC\INCLUDE\crtdefs.h(404) : fatal error C1189: #error : Compiling Desktop applications for the ARM platform is not supported.
jam.c
C:\Program Files (x86)\Microsoft Visual Studio 12.0\VC\INCLUDE\crtdefs.h(404) : fatal error C1189: #error : Compiling Desktop applications for the ARM platform is not supported.
jambase.c
jamgram.c
C:\Program Files (x86)\Microsoft Visual Studio 12.0\VC\INCLUDE\crtdefs.h(404) : fatal error C1189: #error : Compiling Desktop applications for the ARM platform is not supported.
lists.c
C:\Program Files (x86)\Microsoft Visual Studio 12.0\VC\INCLUDE\crtdefs.h(404) : fatal error C1189: #error : Compiling Desktop applications for the ARM platform is not supported.
make.c
C:\Program Files (x86)\Microsoft Visual Studio 12.0\VC\INCLUDE\crtdefs.h(404) : fatal error C1189: #error : Compiling Desktop applications for the ARM platform is not supported.
make1.c
C:\Program Files (x86)\Microsoft Visual Studio 12.0\VC\INCLUDE\crtdefs.h(404) : fatal error C1189: #error : Compiling Desktop applications for the ARM platform is not supported.
object.c
C:\Program Files (x86)\Microsoft Visual Studio 12.0\VC\INCLUDE\crtdefs.h(404) : fatal error C1189: #error : Compiling Desktop applications for the ARM platform is not supported.
Generating Code...
Compiling...
option.c
C:\Program Files (x86)\Microsoft Visual Studio 12.0\VC\INCLUDE\crtdefs.h(404) : fatal error C1189: #error : Compiling Desktop applications for the ARM platform is not supported.
output.c
C:\Program Files (x86)\Microsoft Visual Studio 12.0\VC\INCLUDE\crtdefs.h(404) : fatal error C1189: #error : Compiling Desktop applications for the ARM platform is not supported.
parse.c
C:\Program Files (x86)\Microsoft Visual Studio 12.0\VC\INCLUDE\crtdefs.h(404) : fatal error C1189: #error : Compiling Desktop applications for the ARM platform is not supported.
pathnt.c
C:\Program Files (x86)\Microsoft Visual Studio 12.0\VC\INCLUDE\crtdefs.h(404) : fatal error C1189: #error : Compiling Desktop applications for the ARM platform is not supported.
pathsys.c
C:\Program Files (x86)\Microsoft Visual Studio 12.0\VC\INCLUDE\crtdefs.h(404) : fatal error C1189: #error : Compiling Desktop applications for the ARM platform is not supported.
regexp.c
C:\Program Files (x86)\Microsoft Visual Studio 12.0\VC\INCLUDE\crtdefs.h(404) : fatal error C1189: #error : Compiling Desktop applications for the ARM platform is not supported.
rules.c
C:\Program Files (x86)\Microsoft Visual Studio 12.0\VC\INCLUDE\crtdefs.h(404) : fatal error C1189: #error : Compiling Desktop applications for the ARM platform is not supported.
scan.c
C:\Program Files (x86)\Microsoft Visual Studio 12.0\VC\INCLUDE\crtdefs.h(404) : fatal error C1189: #error : Compiling Desktop applications for the ARM platform is not supported.
search.c
C:\Program Files (x86)\Microsoft Visual Studio 12.0\VC\INCLUDE\crtdefs.h(404) : fatal error C1189: #error : Compiling Desktop applications for the ARM platform is not supported.
subst.c
C:\Program Files (x86)\Microsoft Visual Studio 12.0\VC\INCLUDE\crtdefs.h(404) : fatal error C1189: #error : Compiling Desktop applications for the ARM platform is not supported.
timestamp.c
C:\Program Files (x86)\Microsoft Visual Studio 12.0\VC\INCLUDE\crtdefs.h(404) : fatal error C1189: #error : Compiling Desktop applications for the ARM platform is not supported.
variable.c
C:\Program Files (x86)\Microsoft Visual Studio 12.0\VC\INCLUDE\crtdefs.h(404) : fatal error C1189: #error : Compiling Desktop applications for the ARM platform is not supported.
modules.c
C:\Program Files (x86)\Microsoft Visual Studio 12.0\VC\INCLUDE\crtdefs.h(404) : fatal error C1189: #error : Compiling Desktop applications for the ARM platform is not supported.
strings.c
C:\Program Files (x86)\Microsoft Visual Studio 12.0\VC\INCLUDE\crtdefs.h(404) : fatal error C1189: #error : Compiling Desktop applications for the ARM platform is not supported.
filesys.c
C:\Program Files (x86)\Microsoft Visual Studio 12.0\VC\INCLUDE\crtdefs.h(404) : fatal error C1189: #error : Compiling Desktop applications for the ARM platform is not supported.
builtins.c
C:\Program Files (x86)\Microsoft Visual Studio 12.0\VC\INCLUDE\crtdefs.h(404) : fatal error C1189: #error : Compiling Desktop applications for the ARM platform is not supported.
md5.c
C:\Program Files (x86)\Microsoft Visual Studio 12.0\VC\INCLUDE\crtdefs.h(404) : fatal error C1189: #error : Compiling Desktop applications for the ARM platform is not supported.
class.c
C:\Program Files (x86)\Microsoft Visual Studio 12.0\VC\INCLUDE\crtdefs.h(404) : fatal error C1189: #error : Compiling Desktop applications for the ARM platform is not supported.
cwd.c
C:\Program Files (x86)\Microsoft Visual Studio 12.0\VC\INCLUDE\crtdefs.h(404) : fatal error C1189: #error : Compiling Desktop applications for the ARM platform is not supported.
w32_getreg.c
C:\Program Files (x86)\Microsoft Visual Studio 12.0\VC\INCLUDE\crtdefs.h(404) : fatal error C1189: #error : Compiling Desktop applications for the ARM platform is not supported.
Generating Code...
Compiling...
native.c
C:\Program Files (x86)\Microsoft Visual Studio 12.0\VC\INCLUDE\crtdefs.h(404) : fatal error C1189: #error : Compiling Desktop applications for the ARM platform is not supported.
set.c
C:\Program Files (x86)\Microsoft Visual Studio 12.0\VC\INCLUDE\crtdefs.h(404) : fatal error C1189: #error : Compiling Desktop applications for the ARM platform is not supported.
path.c
C:\Program Files (x86)\Microsoft Visual Studio 12.0\VC\INCLUDE\crtdefs.h(404) : fatal error C1189: #error : Compiling Desktop applications for the ARM platform is not supported.
regex.c
C:\Program Files (x86)\Microsoft Visual Studio 12.0\VC\INCLUDE\crtdefs.h(404) : fatal error C1189: #error : Compiling Desktop applications for the ARM platform is not supported.
property-set.c
C:\Program Files (x86)\Microsoft Visual Studio 12.0\VC\INCLUDE\crtdefs.h(404) : fatal error C1189: #error : Compiling Desktop applications for the ARM platform is not supported.
sequence.c
C:\Program Files (x86)\Microsoft Visual Studio 12.0\VC\INCLUDE\crtdefs.h(404) : fatal error C1189: #error : Compiling Desktop applications for the ARM platform is not supported.
order.c
C:\Program Files (x86)\Microsoft Visual Studio 12.0\VC\INCLUDE\crtdefs.h(404) : fatal error C1189: #error : Compiling Desktop applications for the ARM platform is not supported.
Generating Code...
頭文件中的行號411
/* Verify ARM Desktop SDK available */
#if defined (_M_ARM)
#if _CRT_BUILD_DESKTOP_APP && !_ARM_WINAPI_PARTITION_DESKTOP_SDK_AVAILABLE
#error Compiling Desktop applications for the ARM platform is not supported.
#endif /* _CRT_BUILD_DESKTOP_APP && !_ARM_WINAPI_PARTITION_DESKTOP_SDK_AVAILABLE */
#endif /* defined (_M_ARM) */
為了克服這個問題
1. i have installed VS again with windows phone SDK and tools for maintaining store apps for windows 8.
2. i have run vsvars32.bat which is located in C:\Program Files (x86)\Microsoft Visual Studio 12.0\Common7\Tools - in visual studio Developer Command Prompt for VS2013 i type
cd C:\Program Files (x86)\Microsoft Visual Studio 12.0\Common7\Tools
vsvar32.bat and hit enter
3. i tesed another machine which gave me the same error
4.
但對我沒有任何作用。 任何幫助表示贊賞。
https://connect.microsoft.com/VisualStudio/feedback/details/745580/arm-configuration-doesnt-work
你可以試試這個...
使用“ VS2013開發人員命令提示符”工具
聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.