老实说,我不是100%肯定我正在看这个输出。我能说的最好的是VCInstallDir宏存在问题,可能qcc编译器路径未设置为(" C:\ bbndk_vs \ host_10_3_0_2702 \ win32 \ x86 \ usr \ bin")I不知道如何核实这一点。
现在我很乐意就此得到第二意见。如果有人能告诉我我需要解决的问题,那也很棒,我真的很感激!
如果我使用VS2013的BB10插件选择10.2 sdk进行编译,我会得到此输出:
1>------ Build started: Project: DiceRoller, Configuration: Debug BlackBerry ------
1>Build started 14/07/2014 1:25:05 PM.
1>C:\Program Files (x86)\MSBuild\Microsoft.Cpp\v4.0\V120\Microsoft.CppBuild.targets(361,5): warning MSB8003: Could not find VCInstallDir variable from the registry. TargetFrameworkVersion or PlatformToolset may be set to an invalid version number.
1>InitializeBuildStatus:
1> Touching "Device-Debug\DiceRoller.tlog\unsuccessfulbuild".
1>Link:
1> qcc -o main.o C:/src/2014/BB10/DiceRoller/src/main.c -V"4.6.3,gcc_ntoarmv7le" -c -Wp,-MMD,main.d -Wp,-MT,main.o -g -w3 -lang-c -fexceptions -fstack-protector-all -I"C:\VS2013\VC\include" -I"C:\VS2013\VC\atlmfc\include" -I"C:\Program Files (x86)\Windows Kits\8.1\Include\um" -I"C:\Program Files (x86)\Windows Kits\8.1\Include\shared" -I"C:\Program Files (x86)\Windows Kits\8.1\Include\winrt" -I"C:\src\Libraries" -I"C:\bbndk\target_10_2_0_1155\qnx6\usr\include" -DQCC -D__QCC__ -D__QNX__ -UWIN32 -U_WINDOWS
1> 'qcc' is not recognized as an internal or external command,
1> operable program or batch file.
1> x86\usr\bin\make: *** [main.o] Error 1
1>
1>Build FAILED.
1>
1>Time Elapsed 00:00:01.44
========== Build: 0 succeeded, 1 failed, 0 up-to-date, 0 skipped ==========
如果我使用VS2013的BB10插件选择的10.3 sdk选项中的任何一个进行编译,我得到如下输出:
1>------ Build started: Project: DiceRoller, Configuration: Debug BlackBerry ------
1>Build started 14/07/2014 1:54:48 PM.
1>C:\Program Files (x86)\MSBuild\Microsoft.Cpp\v4.0\V120\Microsoft.CppBuild.targets(361,5): warning MSB8003: Could not find VCInstallDir variable from the registry. TargetFrameworkVersion or PlatformToolset may be set to an invalid version number.
1>InitializeBuildStatus:
1> Touching "Device-Debug\DiceRoller.tlog\unsuccessfulbuild".
1>Link:
1> qcc -o main.o C:/src/2014/BB10/DiceRoller/src/main.c -V"4.6.3,gcc_ntoarmv7le" -c -Wp,-MMD,main.d -Wp,-MT,main.o -g -w3 -lang-c -fexceptions -fstack-protector-all -I"C:\VS2013\VC\include" -I"C:\VS2013\VC\atlmfc\include" -I"C:\Program Files (x86)\Windows Kits\8.1\Include\um" -I"C:\Program Files (x86)\Windows Kits\8.1\Include\shared" -I"C:\Program Files (x86)\Windows Kits\8.1\Include\winrt" -I"C:\src\Libraries" -I"C:\bbndk\target_10_2_0_1155\qnx6\usr\include" -DQCC -D__QCC__ -D__QNX__ -UWIN32 -U_WINDOWS
1> cc1: fatal error: "-IC:\Program Files (x86)\Windows Kits\8.1\Include\um": Invalid argument
1> compilation terminated.
1> cc: C:/bbndk_vs/host_10_3_0_2702/win32/x86/usr/lib/gcc/arm-unknown-nto-qnx8.0.0eabi/4.6.3/cc1 caught signal 1
1> makefile:33: recipe for target 'main.o' failed
1> x86\usr\bin\make: *** [main.o] Error 1
1>
1>Build FAILED.
1>
1>Time Elapsed 00:00:01.76
========== Build: 0 succeeded, 1 failed, 0 up-to-date, 0 skipped ==========
答案 0 :(得分:1)
我不知道10.2为什么没有安装编译器。我可能会搜索黑莓开发者表单来解决这个问题。
然而,10.3错误..这种情况正在发生,我相信,因为qcc编译器不接受目录路径中的空格。所有与BlackBerry相关的sdk路径都没有空格,但该错误指向了一个Windows sdk目录。
通过从属性页中删除非黑莓相关目录,可以修复此问题。
答案 1 :(得分:0)
检查系统上是否有qcc。它没有找到它来运行它。要么是因为它缺失了,要么是在它正在浏览的路径中。不确定VS是使用系统路径还是它自己的路径。