Welcome!

Welcome to the official BlackBerry Support Community Forums.

This is your resource to discuss support topics with your peers, and learn from each other.

inside custom component

Native Development

Reply
Developer
Posts: 149
Registered: ‎04-23-2011
My Device: BlackBerry 9700 Bold
My Carrier: Turkcell

Can't Run Carousel Sample from Community Samples - Getting "Launch Failed No Binaries" Error

Hi,

 

I am getting "Launch Failed No Binaries Error" when trying to run the sample application (Carousel from the Community Samples). I cleaned the project, set the Simulator-Debug option in the Build Configuration and ran Build Project. The simulator is also working. I am getting the following output.

 

What do I need to run the sample? Thanks in advance.

 

 

 

**** Build of configuration Simulator-Debug for project carousel ****

 

make -j4 Device-Debug

C:/bbndk/host_10_1_0_132/win32/x86/usr/bin/qmake -spec unsupported/blackberry-armv7le-qcc -o arm/Makefile carousel.pro CONFIG+=device

WARNING: Failure to find: ../src/*.h

WARNING: Failure to find: ../src/*.h

C:/bbndk/host_10_1_0_132/win32/x86/usr/bin/qmake -spec unsupported/blackberry-x86-qcc -o x86/Makefile carousel.pro CONFIG+=simulator

WARNING: Failure to find: ../src/*.h

WARNING: Failure to find: ../src/*.h

make -C ./translations -f Makefile update release

make[1]: Entering directory `C:/Users/Burak/Downloads/stumpers/bbjamcarousel/translations'

C:/bbndk/host_10_1_0_132/win32/x86/usr/bin/lupdate carousel.pro

C:/bbndk/host_10_1_0_132/win32/x86/usr/bin/lrelease carousel.pro

Updating 'C:/Users/Burak/Downloads/stumpers/bbjamcarousel/translations/carousel_en_GB.qm'...

Generated 0 translation(s) (0 finished and 0 unfinished)

Updating 'C:/Users/Burak/Downloads/stumpers/bbjamcarousel/translations/carousel_fr.qm'...

Generated 0 translation(s) (0 finished and 0 unfinished)

Updating 'C:/Users/Burak/Downloads/stumpers/bbjamcarousel/translations/carousel_it.qm'...

Generated 0 translation(s) (0 finished and 0 unfinished)

Updating 'C:/Users/Burak/Downloads/stumpers/bbjamcarousel/translations/carousel_de.qm'...

Generated 0 translation(s) (0 finished and 0 unfinished)

Updating 'C:/Users/Burak/Downloads/stumpers/bbjamcarousel/translations/carousel_es.qm'...

Generated 0 translation(s) (0 finished and 0 unfinished)

Updating 'C:/Users/Burak/Downloads/stumpers/bbjamcarousel/translations/carousel.qm'...

Generated 0 translation(s) (0 finished and 0 unfinished)

Updating 'carousel_en_GB.ts'...

Found 0 source text(s) (0 new and 0 already existing)

Updating 'carousel_fr.ts'...

Found 0 source text(s) (0 new and 0 already existing)

Updating 'carousel_it.ts'...

Found 0 source text(s) (0 new and 0 already existing)

Updating 'carousel_de.ts'...

Found 0 source text(s) (0 new and 0 already existing)

Updating 'carousel_es.ts'...

Found 0 source text(s) (0 new and 0 already existing)

Updating 'carousel.ts'...

Found 0 source text(s) (0 new and 0 already existing)

make[1]: Leaving directory `C:/Users/Burak/Downloads/stumpers/bbjamcarousel/translations'

make -C ./arm -f Makefile debug

make[1]: Entering directory `C:/Users/Burak/Downloads/stumpers/bbjamcarousel/arm'

make -f Makefile.Debug

make[2]: Entering directory `C:/Users/Burak/Downloads/stumpers/bbjamcarousel/arm'

qcc -Vgcc_ntoarmv7le -c -Wno-psabi -lang-c++ -fstack-protector -fstack-protector-all -mcpu=cortex-a9 -g -Wno-psabi -Wall -W -D_REENTRANT -DQT_NO_IMPORT_QT47_QML -DQ_OS_BLACKBERRY -DQT_DECLARATIVE_LIB -DQT_SCRIPT_LIB -DQT_SVG_LIB -DQT_SQL_LIB -DQT_XMLPATTERNS_LIB -DQT_XML_LIB -DQT_GUI_LIB -DQT_NETWORK_LIB -DQT_CORE_LIB -DQT_SHARED -Ic:/bbndk/target_10_1_0_1020/qnx6/usr/share/qt4/mkspecs/unsupported/blackberry-armv7le-qcc -I../../bbjamcarousel -Ic:/bbndk/target_10_1_0_1020/qnx6/usr/include/qt4/QtCore -Ic:/bbndk/target_10_1_0_1020/qnx6/usr/include/qt4/QtNetwork -Ic:/bbndk/target_10_1_0_1020/qnx6/usr/include/qt4/QtGui -Ic:/bbndk/target_10_1_0_1020/qnx6/usr/include/qt4/QtXml -Ic:/bbndk/target_10_1_0_1020/qnx6/usr/include/qt4/QtXmlPatterns -Ic:/bbndk/target_10_1_0_1020/qnx6/usr/include/qt4/QtSql -Ic:/bbndk/target_10_1_0_1020/qnx6/usr/include/qt4/QtSvg -Ic:/bbndk/target_10_1_0_1020/qnx6/usr/include/qt4/QtScript -Ic:/bbndk/target_10_1_0_1020/qnx6/usr/include/qt4/QtDeclarative -Ic:/bbndk/target_10_1_0_1020/qnx6/usr/include/qt4 -I../src -Io.le-v7-g/.moc -Ic:/bbndk/target_10_1_0_1020/qnx6/usr/include -Ic:/bbndk/target_10_1_0_1020/qnx6/usr/include/freetype2 -I. -o o.le-v7-g/.obj/Carousel.o ../src/Carousel.cpp

qcc -Vgcc_ntoarmv7le -c -Wno-psabi -lang-c++ -fstack-protector -fstack-protector-all -mcpu=cortex-a9 -g -Wno-psabi -Wall -W -D_REENTRANT -DQT_NO_IMPORT_QT47_QML -DQ_OS_BLACKBERRY -DQT_DECLARATIVE_LIB -DQT_SCRIPT_LIB -DQT_SVG_LIB -DQT_SQL_LIB -DQT_XMLPATTERNS_LIB -DQT_XML_LIB -DQT_GUI_LIB -DQT_NETWORK_LIB -DQT_CORE_LIB -DQT_SHARED -Ic:/bbndk/target_10_1_0_1020/qnx6/usr/share/qt4/mkspecs/unsupported/blackberry-armv7le-qcc -I../../bbjamcarousel -Ic:/bbndk/target_10_1_0_1020/qnx6/usr/include/qt4/QtCore -Ic:/bbndk/target_10_1_0_1020/qnx6/usr/include/qt4/QtNetwork -Ic:/bbndk/target_10_1_0_1020/qnx6/usr/include/qt4/QtGui -Ic:/bbndk/target_10_1_0_1020/qnx6/usr/include/qt4/QtXml -Ic:/bbndk/target_10_1_0_1020/qnx6/usr/include/qt4/QtXmlPatterns -Ic:/bbndk/target_10_1_0_1020/qnx6/usr/include/qt4/QtSql -Ic:/bbndk/target_10_1_0_1020/qnx6/usr/include/qt4/QtSvg -Ic:/bbndk/target_10_1_0_1020/qnx6/usr/include/qt4/QtScript -Ic:/bbndk/target_10_1_0_1020/qnx6/usr/include/qt4/QtDeclarative -Ic:/bbndk/target_10_1_0_1020/qnx6/usr/include/qt4 -I../src -Io.le-v7-g/.moc -Ic:/bbndk/target_10_1_0_1020/qnx6/usr/include -Ic:/bbndk/target_10_1_0_1020/qnx6/usr/include/freetype2 -I. -o o.le-v7-g/.obj/main.o ../src/main.cpp

C:/bbndk/host_10_1_0_132/win32/x86/usr/bin/moc.exe -DQT_NO_IMPORT_QT47_QML -DQ_OS_BLACKBERRY -DQT_DECLARATIVE_LIB -DQT_SCRIPT_LIB -DQT_SVG_LIB -DQT_SQL_LIB -DQT_XMLPATTERNS_LIB -DQT_XML_LIB -DQT_GUI_LIB -DQT_NETWORK_LIB -DQT_CORE_LIB -DQT_SHARED -Ic:/bbndk/target_10_1_0_1020/qnx6/usr/share/qt4/mkspecs/unsupported/blackberry-armv7le-qcc -I../../bbjamcarousel -Ic:/bbndk/target_10_1_0_1020/qnx6/usr/include/qt4/QtCore -Ic:/bbndk/target_10_1_0_1020/qnx6/usr/include/qt4/QtNetwork -Ic:/bbndk/target_10_1_0_1020/qnx6/usr/include/qt4/QtGui -Ic:/bbndk/target_10_1_0_1020/qnx6/usr/include/qt4/QtXml -Ic:/bbndk/target_10_1_0_1020/qnx6/usr/include/qt4/QtXmlPatterns -Ic:/bbndk/target_10_1_0_1020/qnx6/usr/include/qt4/QtSql -Ic:/bbndk/target_10_1_0_1020/qnx6/usr/include/qt4/QtSvg -Ic:/bbndk/target_10_1_0_1020/qnx6/usr/include/qt4/QtScript -Ic:/bbndk/target_10_1_0_1020/qnx6/usr/include/qt4/QtDeclarative -Ic:/bbndk/target_10_1_0_1020/qnx6/usr/include/qt4 -I../src -Io.le-v7-g/.moc -Ic:/bbndk/target_10_1_0_1020/qnx6/usr/include -Ic:/bbndk/target_10_1_0_1020/qnx6/usr/include/freetype2 -I. -D__QNXNTO__ ../src/Carousel.hpp -o o.le-v7-g/.moc/moc_Carousel.cpp

qcc -Vgcc_ntoarmv7le -c -Wno-psabi -lang-c++ -fstack-protector -fstack-protector-all -mcpu=cortex-a9 -g -Wno-psabi -Wall -W -D_REENTRANT -DQT_NO_IMPORT_QT47_QML -DQ_OS_BLACKBERRY -DQT_DECLARATIVE_LIB -DQT_SCRIPT_LIB -DQT_SVG_LIB -DQT_SQL_LIB -DQT_XMLPATTERNS_LIB -DQT_XML_LIB -DQT_GUI_LIB -DQT_NETWORK_LIB -DQT_CORE_LIB -DQT_SHARED -Ic:/bbndk/target_10_1_0_1020/qnx6/usr/share/qt4/mkspecs/unsupported/blackberry-armv7le-qcc -I../../bbjamcarousel -Ic:/bbndk/target_10_1_0_1020/qnx6/usr/include/qt4/QtCore -Ic:/bbndk/target_10_1_0_1020/qnx6/usr/include/qt4/QtNetwork -Ic:/bbndk/target_10_1_0_1020/qnx6/usr/include/qt4/QtGui -Ic:/bbndk/target_10_1_0_1020/qnx6/usr/include/qt4/QtXml -Ic:/bbndk/target_10_1_0_1020/qnx6/usr/include/qt4/QtXmlPatterns -Ic:/bbndk/target_10_1_0_1020/qnx6/usr/include/qt4/QtSql -Ic:/bbndk/target_10_1_0_1020/qnx6/usr/include/qt4/QtSvg -Ic:/bbndk/target_10_1_0_1020/qnx6/usr/include/qt4/QtScript -Ic:/bbndk/target_10_1_0_1020/qnx6/usr/include/qt4/QtDeclarative -Ic:/bbndk/target_10_1_0_1020/qnx6/usr/include/qt4 -I../src -Io.le-v7-g/.moc -Ic:/bbndk/target_10_1_0_1020/qnx6/usr/include -Ic:/bbndk/target_10_1_0_1020/qnx6/usr/include/freetype2 -I. -o o.le-v7-g/.obj/moc_Carousel.o o.le-v7-g/.moc/moc_Carousel.cpp

qcc -Vgcc_ntoarmv7le -lang-c++ -Wl,-rpath-link,C:/bbndk/target_10_1_0_1020/qnx6/armle-v7/lib -Wl,-rpath-link,C:/bbndk/target_10_1_0_1020/qnx6/armle-v7/usr/lib -o o.le-v7-g/carousel o.le-v7-g/.obj/Carousel.o o.le-v7-g/.obj/main.o o.le-v7-g/.obj/moc_Carousel.o -LC:/bbndk/target_10_1_0_1020/qnx6/armle-v7/lib -LC:/bbndk/target_10_1_0_1020/qnx6/armle-v7/usr/lib -LC:/bbndk/target_10_1_0_1020/qnx6/armle-v7/usr/lib/qt4/lib -LC:/bbndk/target_10_1_0_1020/qnx6//usr/lib/qt4/lib -lbb -lbbcascades -lQtDeclarative -lQtScript -lQtSvg -lQtSql -lsqlite3 -lz -lQtXmlPatterns -lQtXml -lQtGui -lQtNetwork -lsocket -lQtCore -lm -lbps

make[2]: Leaving directory `C:/Users/Burak/Downloads/stumpers/bbjamcarousel/arm'

make[1]: Leaving directory `C:/Users/Burak/Downloads/stumpers/bbjamcarousel/arm'

 

**** Build Finished ****

Developer
Posts: 133
Registered: ‎05-10-2013
My Device: Blackberry Z10
My Carrier: -

Re: Can't Run Carousel Sample from Community Samples - Getting "Launch Failed No Binaries" Error

[ Edited ]

The first line of the output says it all: make -j4 Device-Debug. You're attempting to build a device-debug while in configuration simulator-debug. Right-click the project and select Build Configurations > Set Activeand select Simulator-Debug. Then right click again and select build. It should build correctly.

 

Now, right click and select run->, then run configurations... On the new screen, press the top left blank page button with a little yellow star (new config). It will assign the current build (sim-debug or current build), then click run. If it doesn't run, try building with different configurations (debug, release, etc) and go from there. That, or work your way back changing things around.

----------------------------------------
Remember to mark the thread as solved at the post that solved your problem, and if you like a post, like it!
Developer
Posts: 149
Registered: ‎04-23-2011
My Device: BlackBerry 9700 Bold
My Carrier: Turkcell

Re: Can't Run Carousel Sample from Community Samples - Getting "Launch Failed No Binaries" Error

Thanks, but I am still getting the same error. I am pretty sure that the active build configuration is set to sim-debug. However, make -j4 Device-Debug command runs whenever I try to run.

 

The contents of the Makefile are:

 

QMAKE_TARGET

= carousel

QMAKE

= $(QNX_HOST)/usr/bin/qmake

TARGET

= $(QMAKE_TARGET)

 

 

all: Makefile

$(QMAKE_TARGET)

 

clean:

$(MAKE)-C ./arm -f Makefile sureclean

 

$(MAKE)-C ./x86 -f Makefile sureclean

 

 

Makefile: FORCE

$(QMAKE) -spec unsupported/blackberry-armv7le-qcc -o arm/Makefile $(QMAKE_TARGET).pro CONFIG+=device

 

$(QMAKE) -spec unsupported/blackberry-x86-qcc -o x86/Makefile $(QMAKE_TARGET).pro CONFIG+=simulator

 

$(MAKE)-C ./translations -f Makefile update release

 

FORCE:

$(QMAKE_TARGET)

: device simulator

 

device:

$(MAKE)-C ./arm -f Makefile all

 

Device-Debug: Makefile

$(MAKE)-C ./arm -f Makefile debug

 

Device-Release: Makefile

$(MAKE)-C ./arm -f Makefile release

 

simulator:

$(MAKE)-C ./x86 -f Makefile all

 

Simulator-Debug: Makefile

$(MAKE) -C ./x86 -f Makefile debug

 

 

 

Perhaps, I need to change something in the Makefile?

Developer
Posts: 133
Registered: ‎05-10-2013
My Device: Blackberry Z10
My Carrier: -

Re: Can't Run Carousel Sample from Community Samples - Getting "Launch Failed No Binaries" Error

Your makefile looks fine to me. Try cleaning your project before building. If that doesn't work, check the bar-descriptor.xml file. No binaries means it can't find the built binaries. Since you didn't get an error on build, they're probably at the wrong location. The Simulator-Debug configuration might be pointing to a wrong asset path:

 

<asset path="arm/o.le-v7-g/myappname" entry="true" type="Qnx/Elf">myappname</asset>

 instead of the correct path for the simulator binaries:

<asset path="x86/o-g/myappname" entry="true" type="Qnx/Elf">myappname</asset>
----------------------------------------
Remember to mark the thread as solved at the post that solved your problem, and if you like a post, like it!
Developer
Posts: 149
Registered: ‎04-23-2011
My Device: BlackBerry 9700 Bold
My Carrier: Turkcell

Re: Can't Run Carousel Sample from Community Samples - Getting "Launch Failed No Binaries" Error

[ Edited ]

It displays a warning stating that "Source file of asset carousel does not exist"

 

I don't see any binaries in

x86/o-g/ or

x86/o-g/carousel

 

It looks like I could not manage to build the project for the simulator.

 

My configuration in bar-descriptor.xml:

 

<configurationname="Simulator-Debug"><platformArchitecture>x86</platformArchitecture><assetpath="x86/o-g/carousel"entry="true"type="Qnx/Elf">carousel</asset></configuration>

 

 

Previously I had the following, and deleted the lines other than Simulator-Debug.

 

configuration.png 

 

 

Whatever I do, I cannot make it build for the simulator...

 

I wonder what stupid thing I am doing or missing and need help...

 

 

 

 

 

 

 

 

Developer
Posts: 1,739
Registered: ‎04-08-2010
My Device: Passport Silver, PRIV
My Carrier: Telekom.de, O2, Vodafone

Re: Can't Run Carousel Sample from Community Samples - Getting "Launch Failed No Binaries" Error

haven't tried this sample, but sometimes samples are built against an older release and not working.

then the fastest way to make it run:

create a new project

copy over src and assets

add libs in .pro

set permissions in bar descripter

and you're done

-------------------------------------------------------------------------------
ekke (independent software architect, rosenheim, germany)

BlackBerry Elite Developer
BlackBerry Platinum Enterprise Partner
International Development native Mobile Business Apps
BlackBerry 10 | Qt Mobile (Android, iOS)
Workshops / Trainings / Bootcamps

blog: http://ekkes-corner.org
mobile-development: http://appbus.org Twitter: @ekkescorner
Retired
Posts: 749
Registered: ‎12-16-2008
My Device: BlackBerry Z30
My Carrier: Bell

Re: Can't Run Carousel Sample from Community Samples - Getting "Launch Failed No Binaries" Error

I just imported the sample in the 10.2 beta, selected the project and my device, built, and then ran it with no problems.

 

If you are using the 10.1 SDK, you may need to clean it first or change the target as Ekke says, but the sample itself should still be fine.

Paul Bernhardt
Application Development Consultant
BlackBerry
@PBernhardt

Did this answer your question? Please accept this post as the solution.
Found a bug? Report it to the Developer Issue Tracker
Developer
Posts: 149
Registered: ‎04-23-2011
My Device: BlackBerry 9700 Bold
My Carrier: Turkcell

Re: Can't Run Carousel Sample from Community Samples - Getting "Launch Failed No Binaries" Error

The problem is that it was not building the binary for the simulator. It may work fine on an acutal device, but I don't have a device.

 

Even though I select Simulator-debug as active confiuguration and clean the project before building again, it is still building for the device. 

Retired
Posts: 749
Registered: ‎12-16-2008
My Device: BlackBerry Z30
My Carrier: Bell

Re: Can't Run Carousel Sample from Community Samples - Getting "Launch Failed No Binaries" Error

Can you try it in the 10.2 beta SDK? Properly setting the build and run configurations can be a bit of a headache in the old tools.

 

Otherwise, make sure your run configuration is also properly set up to be pointing at the simulator. Use the wizard to auto detect and create the simulator as a target.

Paul Bernhardt
Application Development Consultant
BlackBerry
@PBernhardt

Did this answer your question? Please accept this post as the solution.
Found a bug? Report it to the Developer Issue Tracker
Developer
Posts: 24
Registered: ‎05-16-2013
My Device: Developer
My Carrier: Developer

Re: Can't Run Carousel Sample from Community Samples - Getting "Launch Failed No Binaries" Error

Click on edit configuration and press delete.This will delete your configuration file. Now create new configuration file for debug. Hope this will solve your problem.