gpt4 book ai didi

c++ - BlackBerry 示例项目不会为 VS 编译

转载 作者:行者123 更新时间:2023-11-28 06:47:15 24 4
gpt4 key购买 nike

老实说,我不是 100% 确定我在看这个输出。我能说的最好的是 VCInstallDir 宏存在问题,并且可能 qcc 编译器路径未设置为 ("C:\bbndk_vs\host_10_3_0_2702\win32\x86\usr\bin") 我不知道如何验证这一点。

现在我很乐意就此征求第二意见。如果有人能准确地告诉我我需要修复什么,那也太好了,我将不胜感激!

如果我使用 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 ==========

最佳答案

不知道为什么10.2没有安装编译器。我可能会搜索黑莓开发者表格来解决这个问题。

但是 10.3 错误.. 我相信这是发生的,因为 qcc 编译器不接受目录路径中的空格。所有与 BlackBerry 相关的 sdk 路径都缺少空格,但是该错误指向 windows sdk 目录。

这个问题的问题可以/已经通过从属性页中删除与黑莓无关的目录来解决。

关于c++ - BlackBerry 示例项目不会为 VS 编译,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/24741338/

24 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com