我安装了最新的(截至2013年5月1日)SDK和Simulator(10.1.0.1483)。 我还从github下载了样本并在我的PC上解压缩。
以下是我尝试启动示例应用程序时采取的步骤:
我启动Momentics IDE
档案 - >导入 - > BlackBerry(现有代码...) - >下一步 - >
代码位置:C:\ Users \ Michal \ Documents \ Cascades-Samples-master \ hellocascades
语言:C ++
- >完成
在Project Explorer中 - >右键单击hellocascades - >构建配置 - >设置有效 - > 5-模拟器-调试
我按下绿色“Run As”按钮旁边的箭头 - >运行配置 - >发布组 - > BlackBerry C ++ Application(hellocascades-Simulator-Debug出现在下拉列表中) - >添加新目标(在主选项卡中) - >自动发现(我选择模拟器的IP地址) - >完成 - > 我在目标选项中突出显示IP地址 - >申请 - >关闭
在Project Explorer中 - >右键单击hellocascades - >建设项目
****构建配置Simulator-Debug for project hellocascades ****
make -j4 Device-Debug
make -C .//translations -f Makefile update
make 1:输入目录C:/Users/Michal/Documents/Cascades-Samples-master/hellocascades/translations'
C:/bbndk/host_10_1_0_212/win32/x86/usr/bin/lupdate hellocascades.pro
Updating 'hellocascades.ts'...
Found 1 source text(s) (0 new and 1 already existing)
Updating 'hellocascades_en_GB.ts'...
Found 1 source text(s) (0 new and 1 already existing)
Updating 'hellocascades_fr.ts'...
Found 1 source text(s) (0 new and 1 already existing)
Updating 'hellocascades_it.ts'...
Found 1 source text(s) (0 new and 1 already existing)
Updating 'hellocascades_de.ts'...
Found 1 source text(s) (0 new and 1 already existing)
Updating 'hellocascades_es.ts'...
Found 1 source text(s) (0 new and 1 already existing)
make[1]: Leaving directory
C:/ Users / Michal / Documents / Cascades-Samples-master / hellocascades / translations'
make -C .//translations -f Makefile release
make 1:输入目录C:/Users/Michal/Documents/Cascades-Samples-master/hellocascades/translations'
C:/bbndk/host_10_1_0_212/win32/x86/usr/bin/lrelease hellocascades.pro
Updating 'C:/Users/Michal/Documents/Cascades-Samples-master/hellocascades/translations/hellocascades.qm'...
Generated 1 translation(s) (0 finished and 1 unfinished)
Updating 'C:/Users/Michal/Documents/Cascades-Samples-master/hellocascades/translations/hellocascades_en_GB.qm'...
Generated 1 translation(s) (0 finished and 1 unfinished)
Updating 'C:/Users/Michal/Documents/Cascades-Samples-master/hellocascades/translations/hellocascades_fr.qm'...
Generated 1 translation(s) (0 finished and 1 unfinished)
Updating 'C:/Users/Michal/Documents/Cascades-Samples-master/hellocascades/translations/hellocascades_it.qm'...
Generated 1 translation(s) (0 finished and 1 unfinished)
Updating 'C:/Users/Michal/Documents/Cascades-Samples-master/hellocascades/translations/hellocascades_de.qm'...
Generated 1 translation(s) (0 finished and 1 unfinished)
Updating 'C:/Users/Michal/Documents/Cascades-Samples-master/hellocascades/translations/hellocascades_es.qm'...
Generated 1 translation(s) (0 finished and 1 unfinished)
make[1]: Leaving directory
C:/ Users / Michal / Documents / Cascades-Samples-master / hellocascades / translations'
make -C ./arm -f Makefile debug
make 1:输入目录C:/Users/Michal/Documents/Cascades-Samples-master/hellocascades/arm'
make -f Makefile.Debug
make[2]: Entering directory
C:/ Users / Michal / Documents / Cascades-Samples-master / hellocascades / arm'
qcc -Vgcc_ntoarmv7le -lang-c ++ -Wl,-rpath-link,C:/ bbndk / target_10_1_0_1483 / qnx6 / armle-v7 / lib -Wl,-rpath-link,C:/ bbndk / target_10_1_0_1483 / qnx6 / armle-v7 / usr / lib -Wl,-rpath-link,C:/ bbndk / target_10_1_0_1483 / qnx6 / armle-v7 / usr / lib / qt4 / lib -o o.le-v7-g / hellocascades -LC:/ bbndk / target_10_1_0_1483 / qnx6 / armle-v7 / lib -LC:/ bbndk / target_10_1_0_1483 / qnx6 / armle-v7 / usr / lib -LC:/ bbndk / target_10_1_0_1483 / qnx6 / armle-v7 / usr / lib / qt4 / lib -LC:/ bbndk / target_10_1_0_1483 / qnx6 // usr / lib / qt4 / lib -lbbcascades -lQtDeclarative -lQtScript -lQtSvg -lQtSql -lsqlite3 -lz -lQtXmlPatterns -lQtGui -lQtNetwork -lsocket -lQtCore -lm -lbps
cc:没有要处理的文件
make [2]:离开目录C:/Users/Michal/Documents/Cascades-Samples-master/hellocascades/arm'
make[2]: *** [o.le-v7-g/hellocascades] Error 1
make[1]: Leaving directory
C:/ Users / Michal / Documents / Cascades-Samples-master / hellocascades / arm'
make 1: * [debug]错误2
make:* [Device-Debug]错误2
****建立完成****
尝试运行后(绿色按钮 - >运行hellocascades-Simulator-Debug):
启动配置中指定的程序文件不存在 C:\ Users \ Michal \ Documents \ Cascades-Samples-master \ hellocascades \ x86 \ o-g \ hellocascades not found
答案 0 :(得分:4)
我能够在BlackBerry Simulator上构建并运行/部署hellocascades项目。
按照概述执行第1步。
对于第2步,请尝试:
档案 - >导入 - >一般(现有项目进入工作区) - >接下来......
浏览'hellocascades'项目文件夹 - >完成
将项目导入IDE后,请按照步骤3进行操作:
在Project Explorer中 - >右键单击hellocascades - >构建配置 - >设置有效 - > 5-模拟器-调试
然后..
在Project Explorer中 - >右键单击hellocascades - >建设项目
继续执行步骤4,并在输入正确的设置/字段后单击“运行配置”环境中的“运行”。
单击“运行”后,应用程序将自动构建并部署到BlackBerry模拟器
答案 1 :(得分:0)
为了在后续项目中修复此问题,请在两个正在运行的提交和第一个损坏的提交之间执行git diff
。从DIFF文件中,找出添加到项目中的类。确保对于每个类,相应的库都添加到.pro
文件中。
例如
如果添加了bb/system
目录下的类,请确保在LIBS += -lbbsystem
文件中包含.pro