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

Thank you for visiting the BlackBerry Support Community Forums.

BlackBerry will be closing the BlackBerry Support Community Forums Device Forums on April 1st (Developers, see below)

BlackBerry remains committed to providing excellent customer support to our customers. We are delighted to direct you to the CrackBerry Forums, a well-established and thorough support channel, for continued BlackBerry support. Please visit http://forums.crackberry.com or http://crackberry.com/ask. You can also continue to visit BlackBerry Support or the BlackBerry Knowledge Base for official support options available for your BlackBerry Smartphone.

"When we launched CrackBerry.com 10 years ago, we set out to make it a fun and useful destination where BlackBerry Smartphone owners could share their excitement and learn to unleash the full potential of their BlackBerry. A decade later, the CrackBerry community is as active and passionate as ever and I know our knowledgeable members and volunteers will be excited to welcome and assist more BlackBerry owners with their questions."

- Kevin Michaluk, Founder, CrackBerry.com

Developers, for more information about the BlackBerry Developer Community please review Join the Conversation on the BlackBerry Developer Community Forums found on Inside BlackBerry.

New Developer
Posts: 13
Registered: ‎09-20-2012
My Device: alph
My Carrier: n/a

Cannot compile BB10 sample native app HelloWorldDisplay in Momentics



I'm having trouble compiling the HelloWorldDisplay native appusing the Momentics IDE.

I have followed through the Getting Started guide on the BB10 native SDK developer pages:




I downloaded the sample apps and attempted to import and build the HelloWorldDisplay app by right clicking it and selecting build.


The build fails and the following console output is displayed:


**** Build of configuration Device-Debug for project HelloWorldDisplay ****

make all 
make -j 1 -CDevice-Debug -fmakefile all 
make[1]: Entering directory `C:/Users/pro-cln0042/Downloads/Code/BB10Examples/HelloWorldDisplay/Device-Debug'
make[1]: Leaving directory `C:/Users/pro-cln0042/Downloads/Code/BB10Examples/HelloWorldDisplay/Device-Debug'
make[1]: *** No rule to make target `HelloWorldDisplay', needed by `all'.  Stop.
make: *** [all] Error 2

**** Build Finished ****

Was I wrong in thinking that Momentics was supposed to handle this automatically, and that I should just be able to right-click->build without settings up any compilers, build files etc?


I'm new to BB development and Eclipse/Momentics in general. Any advice on how to resolve these errors would be much appreciated.


Posts: 329
Registered: ‎05-07-2012
My Device: BB Alpha
My Carrier: N/A

Re: Cannot compile BB10 sample native app HelloWorldDisplay in Momentics

Hi there, Welcome to the forums!


When you are importing the project into Momentics, are you using Import -> CascadesProject? make sure you are not importing the project as any other type (such as makefile project, etc...);


Let me know if you make progress;


Good luck!




New Developer
Posts: 13
Registered: ‎09-20-2012
My Device: alph
My Carrier: n/a

Re: Cannot compile BB10 sample native app HelloWorldDisplay in Momentics

Thanks for your reply. I imported the project using import -> general -> existing projects into workspace. I did not import as a cascades project (this option was not available) as I believe HelloWorldDisplay is listed under the native app samples. I followed the instructions listed given at:




Other developers appear to have similar problems running this example, but we were all able to successfully import, build and deploy the "Geolocation" example without errors. It was suggested that perhaps some of the native samples are not compatible with the latest ndk?


Many thanks

Posts: 26
Registered: ‎09-23-2012
My Device: Playbook, Z10LE
My Carrier: tnl

Re: Cannot compile BB10 sample native app HelloWorldDisplay in Momentics

I have all the examples run without problems. I advise you to go to the "samples->NDK Sample Project" from page "welcome" in Momentics IDE and select any of the examples available in the NDK.
New Developer
Posts: 10
Registered: ‎08-23-2013
My Device: Blackberry Z10
My Carrier: Bell Mobility

Re: Cannot compile BB10 sample native app HelloWorldDisplay in Momentics

I had the same issue, both Makefile were missing in the project dir and (projectdir)/translations.

I simply copied one from another project and changed the project name(QMAKE_TARGET), nothing else seemed to be project specific.

It built without any problem.