невозможно построить и развернуть какие-либо примеры каскадных приложений в симуляторе

У меня установлены последние (по состоянию на 01.05.2013) SDK и Simulator (10.1.0.1483). Я также загрузил образцы с github и разархивировал на своем ПК.

Вот шаги, которые я предпринимаю, пытаясь запустить пример приложения:

  1. Я запускаю симулятор и выбираю вариант (2) для BB10 All-Touch.
  2. Я запускаю Momentics IDE

    Файл -> Импорт -> BlackBerry (Существующий код...) -> Далее ->

    Расположение кода: C:\Users\Michal\Documents\Cascades-Samples-master\hellocascades

    Язык: С++

    -> Готово

  3. В Project Explorer -> щелкните правой кнопкой мыши hellocascades -> Build Configurations -> Set Active -> 5-Simulator-Debug

  4. Я нажимаю стрелку рядом с зеленой кнопкой «Запустить от имени» -> «Выполнить конфигурации» -> «Группа запуска» -> «Приложение BlackBerry C++» (hellocascades-Simulator-Debug отображается в раскрывающемся списке) -> «Добавить новую цель» (на главной вкладке) -> Auto-Discover (я выбираю IP-адрес симулятора) -> Готово -> Я выделяю IP-адрес в параметрах цели -> Применить -> Закрыть

  5. В Project Explorer -> щелкните правой кнопкой мыши hellocascades -> Build Project

    **** Сборка конфигурации Simulator-Debug для проекта hellocascades ****

    make -j4 Device-Debug make -C .//translations -f Обновление Makefile make1: Вход в каталог 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 directoryC:/Users/Michal/Documents/Cascades-Samples-master/hellocascades/translations' make -C .//translations -f Makefile release make1: вход в каталог 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 directoryC:/Users/Michal/Documents/Cascades-Samples-master/hellocascades/translations' make -C ./arm -f Makefile debug make1: вход в каталог C:/Users/Michal/Documents/Cascades-Samples-master/hellocascades/arm' make -f Makefile.Debug make[2]: Entering directoryC:/Users/Michal/Documents/Cascades-Samples- master/hellocascades/arm' qcc -Vgcc_ntoarmv7le -lang-c++ -Wl,-rpath-link,C:/bbndk/target_10C:/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 directory0_1483/qnx6/armle-v7/lib -Wl,-rpath-link,C:/bbndk/target_10C:/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 directory0_1483/ qnx6/armle-v7/usr/lib -Wl,-rpath-link,C:/bbndk/target_10C:/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 directory0_1483/qnx6/armle-v7/usr/lib/qt4/lib -o o.le-v7-g/hellocascades -LC :/bbndk/target_10C:/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 directory0_1483/qnx6/armle-v7/lib -LC:/b bndk/target_10C:/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 directory0_1483/qnx6/armle-v7/usr/lib -LC:/bbndk/target_10C:/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 directory0_1483/qnx6/armle-v7/usr/lib/qt4/lib -LC:/bbndk/target_10C:/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 directory0_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 directoryC:/Users/Michal/ Документы/Cascades-Samples-master/hellocascades/arm' make1: * [отладка] Ошибка 2 make: * [Device-Debug] Ошибка 2

    **** Сборка завершена ****

введите здесь описание изображения

После попытки запустить его (Зеленая кнопка -> Запустить hellocascades-Simulator-Debug):

Файл программы, указанный в конфигурации запуска, не существует C:\Users\Michal\Documents\Cascades-Samples-master\hellocascades\x86\o-g\hellocascades не найден


person krdx    schedule 01.05.2013    source источник


Ответы (2)


Я могу собрать и запустить/развернуть проект hellocascades на симуляторе BlackBerry.


Выполните шаг 1, как указано.

Для вашего шага 2 попробуйте:

Файл -> Импорт -> Общие (существующие проекты в рабочую область) -> Далее...

Найдите папку проекта hellocascades -> Готово


После импорта проекта в среду IDE выполните шаг 3:

В Project Explorer -> щелкните правой кнопкой мыши hellocascades -> Build Configurations -> Set Active -> 5-Simulator-Debug

а потом..

В Project Explorer -> щелкните правой кнопкой мыши hellocascades -> Build Project


Перейдите к шагу 4 и нажмите «Выполнить» в среде «Выполнить конфигурации» после того, как вы ввели правильные настройки/поля.


После того, как вы нажмете «Выполнить», приложение будет автоматически создано и развернуто на симуляторе BlackBerry.

person sweetiewill    schedule 01.05.2013
comment
Импорт проекта по-другому, как вы предложили, помог. Спасибо! - person krdx; 02.05.2013
comment
Это решение не сработало для меня, пока я не сделал svn revert -R . Это было необходимо, поскольку предыдущий импорт, похоже, внес изменения в проект. - person Mariano Latorre; 04.06.2013
comment
Build Configurations -> Set Active -> 4-Simulator-Debug помог в моей проблеме - person Jonathan Lin; 02.08.2013

Чтобы исправить эту проблему в последующих проектах, сделайте git diff между двумя работающими коммитами и первым сломанным коммитом. Из файла DIFF определите классы, добавленные в проект. Убедитесь, что для каждого класса в файле .pro добавлена ​​соответствующая библиотека.

Например
Если добавляется класс в каталог bb/system, обязательно включите LIBS += -lbbsystem в файл .pro.

person iGbanam    schedule 14.03.2014