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
New Contributor
Posts: 2
Registered: ‎01-31-2013
My Device: Z10
My Carrier: 491725499181

Unable to build Cascades C++ Cookbook for the Simulator

Hi,

 

I've installed the latest BB 10 simulator and Native SDK on Mac OS X, updated to the latest Native SDK from within Eclipse. Building and deploying the included samples to the simulator works fine, however trying to use the Cascades C++ cookbook  always yields errors. I tried to install them using the "Import existing project" wizard and selecting the archive file. For the C++ Cookbook I get these "problems" after the setting the active build configuration to the simulator and cleaning the project:

 

Description Resource Path Location Type
Attribute 'id' is deprecated, please remove. bar-descriptor.xml /cascadescookbookcpp line 42 BlackBerry App Manifest Problem
Attribute 'id' is deprecated, please remove. bar-descriptor.xml /cascadescookbookcpp line 46 BlackBerry App Manifest Problem
Attribute 'id' is deprecated, please remove. bar-descriptor.xml /cascadescookbookcpp line 51 BlackBerry App Manifest Problem
Attribute 'id' is deprecated, please remove. bar-descriptor.xml /cascadescookbookcpp line 55 BlackBerry App Manifest Problem
Invalid project path: Include path not found (/Users/nika/Development/BlackBerryWorkspace/cascadescookbookcpp/Device-Debug/). cascadescookbookcpp pathentry Path Entry Problem
Source file of asset "cascadescookbookcpp.so" does not exist. bar-descriptor.xml /cascadescookbookcpp line 49 BlackBerry App Manifest Problem
Source file of asset "cascadescookbookcpp" does not exist. bar-descriptor.xml /cascadescookbookcpp line 44 BlackBerry App Manifest Problem
Source file of asset "cascadescookbookcpp" does not exist. bar-descriptor.xml /cascadescookbookcpp line 53 BlackBerry App Manifest Problem
Source file of asset "cascadescookbookcpp" does not exist. bar-descriptor.xml /cascadescookbookcpp line 57 BlackBerry App Manifest Problem
Unrecognized or misplaced element 'cascadesTheme' bar-descriptor.xml /cascadescookbookcpp line 76 BlackBerry App Manifest Problem

 

Trying to build the project for the simulator yields

 

Description Resource Path Location Type
make: *** [Simulator-Debug] Error 2 cascadescookbookcpp C/C++ Problem
make[1]: *** [debug] Error 2 cascadescookbookcpp C/C++ Problem
make[2]: *** [o-g/cascadescookbookcpp] Error 1 cascadescookbookcpp C/C++ Problem
undefined reference to `ActivityIndicatorRecipe::ActivityIndicatorRecipe(bb::cascades::Container*)' cascadescookbookapp.cpp /cascadescookbookcpp/src line 368 C/C++ Problem
undefined reference to `AnimationRecipe::AnimationRecipe(bb::cascades::Container*)' cascadescookbookapp.cpp /cascadescookbookcpp/src line 360 C/C++ Problem
undefined reference to `ButtonRecipe::ButtonRecipe(bb::cascades::Container*)' cascadescookbookapp.cpp /cascadescookbookcpp/src line 344 C/C++ Problem
undefined reference to `ColorRecipe::ColorRecipe(bb::cascades::Container*)' cascadescookbookapp.cpp /cascadescookbookcpp/src line 356 C/C++ Problem
undefined reference to `CustomDialogRecipe::CustomDialogRecipe(bb::cascades::Container*)' cascadescookbookapp.cpp /cascadescookbookcpp/src line 376 C/C++ Problem
undefined reference to `DateTimePickerRecipe:Smiley Very HappyateTimePickerRecipe(bb::cascades::Container*)' cascadescookbookapp.cpp /cascadescookbookcpp/src line 364 C/C++ Problem
undefined reference to `DockLayoutRecipe:Smiley Very HappyockLayoutRecipe(bb::cascades::Container*)' cascadescookbookapp.cpp /cascadescookbookcpp/src line 354 C/C++ Problem
undefined reference to `DropDownRecipe:Smiley Very HappyropDownRecipe(bb::cascades::Container*)' cascadescookbookapp.cpp /cascadescookbookcpp/src line 366 C/C++ Problem
undefined reference to `GestureHandlerRecipe::GestureHandlerRecipe(bb::cascades::Container*)' cascadescookbookapp.cpp /cascadescookbookcpp/src line 378 C/C++ Problem
undefined reference to `ImagePaintRecipe::ImagePaintRecipe(bb::cascades::Container*)' cascadescookbookapp.cpp /cascadescookbookcpp/src line 380 C/C++ Problem
undefined reference to `ImageRecipe::ImageRecipe(bb::cascades::Container*)' cascadescookbookapp.cpp /cascadescookbookcpp/src line 340 C/C++ Problem
undefined reference to `InputRecipe::InputRecipe(bb::cascades::Container*)' cascadescookbookapp.cpp /cascadescookbookcpp/src line 350 C/C++ Problem
undefined reference to `Intro::Intro(bb::cascades::Container*)' cascadescookbookapp.cpp /cascadescookbookcpp/src line 338 C/C++ Problem
undefined reference to `LabelRecipe::LabelRecipe(bb::cascades::Container*)' cascadescookbookapp.cpp /cascadescookbookcpp/src line 352 C/C++ Problem
undefined reference to `NineSliceRecipe::NineSliceRecipe(bb::cascades::Container*)' cascadescookbookapp.cpp /cascadescookbookcpp/src line 342 C/C++ Problem
undefined reference to `OrientationRecipe:Smiley SurprisedrientationRecipe(bb::cascades::Container*)' cascadescookbookapp.cpp /cascadescookbookcpp/src line 358 C/C++ Problem
undefined reference to `PixelBufferRecipe:Smiley TongueixelBufferRecipe(bb::cascades::Container*)' cascadescookbookapp.cpp /cascadescookbookcpp/src line 382 C/C++ Problem
undefined reference to `ProgressIndicatorRecipe:Smiley TonguerogressIndicatorRecipe(bb::cascades::Container*)' cascadescookbookapp.cpp /cascadescookbookcpp/src line 370 C/C++ Problem
undefined reference to `SelectionRecipe:Smiley FrustratedelectionRecipe(bb::cascades::Container*)' cascadescookbookapp.cpp /cascadescookbookcpp/src line 348 C/C++ Problem
undefined reference to `SheetRecipe:Smiley FrustratedheetRecipe(bb::cascades::Container*)' cascadescookbookapp.cpp /cascadescookbookcpp/src line 374 C/C++ Problem
undefined reference to `SliderRecipe:Smiley FrustratedliderRecipe(bb::cascades::Container*)' cascadescookbookapp.cpp /cascadescookbookcpp/src line 346 C/C++ Problem
undefined reference to `StockCurveRecipe:Smiley FrustratedtockCurveRecipe(bb::cascades::Container*)' cascadescookbookapp.cpp /cascadescookbookcpp/src line 362 C/C++ Problem
undefined reference to `WebViewRecipe::WebViewRecipe(bb::cascades::Container*)' cascadescookbookapp.cpp /cascadescookbookcpp/src line 372 C/C++ Problem

 

Building for the device:

 

Description Resource Path Location Type
make: *** [Device-Debug] Error 2 cascadescookbookcpp C/C++ Problem
make[1]: *** [debug] Error 2 cascadescookbookcpp C/C++ Problem
make[2]: *** [o.le-v7-g/cascadescookbookcpp] Error 1 cascadescookbookcpp C/C++ Problem
undefined reference to `ActivityIndicatorRecipe::ActivityIndicatorRecipe(bb::cascades::Container*)' cascadescookbookapp.cpp /cascadescookbookcpp/src line 368 C/C++ Problem
undefined reference to `AnimationRecipe::AnimationRecipe(bb::cascades::Container*)' cascadescookbookapp.cpp /cascadescookbookcpp/src line 360 C/C++ Problem
undefined reference to `ButtonRecipe::ButtonRecipe(bb::cascades::Container*)' cascadescookbookapp.cpp /cascadescookbookcpp/src line 344 C/C++ Problem
undefined reference to `ColorRecipe::ColorRecipe(bb::cascades::Container*)' cascadescookbookapp.cpp /cascadescookbookcpp/src line 356 C/C++ Problem
undefined reference to `CustomDialogRecipe::CustomDialogRecipe(bb::cascades::Container*)' cascadescookbookapp.cpp /cascadescookbookcpp/src line 376 C/C++ Problem
undefined reference to `DateTimePickerRecipe:Smiley Very HappyateTimePickerRecipe(bb::cascades::Container*)' cascadescookbookapp.cpp /cascadescookbookcpp/src line 364 C/C++ Problem
undefined reference to `DockLayoutRecipe:Smiley Very HappyockLayoutRecipe(bb::cascades::Container*)' cascadescookbookapp.cpp /cascadescookbookcpp/src line 354 C/C++ Problem
undefined reference to `DropDownRecipe:Smiley Very HappyropDownRecipe(bb::cascades::Container*)' cascadescookbookapp.cpp /cascadescookbookcpp/src line 366 C/C++ Problem
undefined reference to `GestureHandlerRecipe::GestureHandlerRecipe(bb::cascades::Container*)' cascadescookbookapp.cpp /cascadescookbookcpp/src line 378 C/C++ Problem
undefined reference to `ImagePaintRecipe::ImagePaintRecipe(bb::cascades::Container*)' cascadescookbookapp.cpp /cascadescookbookcpp/src line 380 C/C++ Problem
undefined reference to `ImageRecipe::ImageRecipe(bb::cascades::Container*)' cascadescookbookapp.cpp /cascadescookbookcpp/src line 340 C/C++ Problem
undefined reference to `InputRecipe::InputRecipe(bb::cascades::Container*)' cascadescookbookapp.cpp /cascadescookbookcpp/src line 350 C/C++ Problem
undefined reference to `Intro::Intro(bb::cascades::Container*)' cascadescookbookapp.cpp /cascadescookbookcpp/src line 338 C/C++ Problem
undefined reference to `LabelRecipe::LabelRecipe(bb::cascades::Container*)' cascadescookbookapp.cpp /cascadescookbookcpp/src line 352 C/C++ Problem
undefined reference to `NineSliceRecipe::NineSliceRecipe(bb::cascades::Container*)' cascadescookbookapp.cpp /cascadescookbookcpp/src line 342 C/C++ Problem
undefined reference to `OrientationRecipe:Smiley SurprisedrientationRecipe(bb::cascades::Container*)' cascadescookbookapp.cpp /cascadescookbookcpp/src line 358 C/C++ Problem
undefined reference to `PixelBufferRecipe:Smiley TongueixelBufferRecipe(bb::cascades::Container*)' cascadescookbookapp.cpp /cascadescookbookcpp/src line 382 C/C++ Problem
undefined reference to `ProgressIndicatorRecipe:Smiley TonguerogressIndicatorRecipe(bb::cascades::Container*)' cascadescookbookapp.cpp /cascadescookbookcpp/src line 370 C/C++ Problem
undefined reference to `SelectionRecipe:Smiley FrustratedelectionRecipe(bb::cascades::Container*)' cascadescookbookapp.cpp /cascadescookbookcpp/src line 348 C/C++ Problem
undefined reference to `SheetRecipe:Smiley FrustratedheetRecipe(bb::cascades::Container*)' cascadescookbookapp.cpp /cascadescookbookcpp/src line 374 C/C++ Problem
undefined reference to `SliderRecipe:Smiley FrustratedliderRecipe(bb::cascades::Container*)' cascadescookbookapp.cpp /cascadescookbookcpp/src line 346 C/C++ Problem
undefined reference to `StockCurveRecipe:Smiley FrustratedtockCurveRecipe(bb::cascades::Container*)' cascadescookbookapp.cpp /cascadescookbookcpp/src line 362 C/C++ Problem
undefined reference to `WebViewRecipe::WebViewRecipe(bb::cascades::Container*)' cascadescookbookapp.cpp /cascadescookbookcpp/src line 372 C/C++ Problem

 

For the QML version of the cookbook I get

 

Description Resource Path Location Type
Attribute 'id' is deprecated, please remove. bar-descriptor.xml /cascadescookbookqml line 42 BlackBerry App Manifest Problem
Attribute 'id' is deprecated, please remove. bar-descriptor.xml /cascadescookbookqml line 46 BlackBerry App Manifest Problem
Attribute 'id' is deprecated, please remove. bar-descriptor.xml /cascadescookbookqml line 51 BlackBerry App Manifest Problem
Attribute 'id' is deprecated, please remove. bar-descriptor.xml /cascadescookbookqml line 55 BlackBerry App Manifest Problem
Invalid project path: Include path not found (/Users/nika/Development/BlackBerryWorkspace/cascadescookbookqml/Device-Debug/). cascadescookbookqml pathentry Path Entry Problem
Source file of asset "cascadescookbookqml.so" does not exist. bar-descriptor.xml /cascadescookbookqml line 49 BlackBerry App Manifest Problem
Source file of asset "cascadescookbookqml" does not exist. bar-descriptor.xml /cascadescookbookqml line 44 BlackBerry App Manifest Problem
Source file of asset "cascadescookbookqml" does not exist. bar-descriptor.xml /cascadescookbookqml line 53 BlackBerry App Manifest Problem
Source file of asset "cascadescookbookqml" does not exist. bar-descriptor.xml /cascadescookbookqml line 57 BlackBerry App Manifest Problem
Unrecognized or misplaced element 'cascadesTheme' bar-descriptor.xml /cascadescookbookqml line 76 BlackBerry App Manifest Problem

 

However, cleaning and building for the simulator is possible and works. 

 

What's wrong with the C++ version? Is there an additional step I've overlooked?

 

Cheers,

Nils

Highlighted
New Contributor
Posts: 2
Registered: ‎01-31-2013
My Device: Z10
My Carrier: 491725499181

Re: Unable to build Cascades C++ Cookbook for the Simulator

For the QML version I can see 

 

slogger2 buffer handle not initialized. ../../lgmon_api.c, logEvent(), around line 578!

 

in the console. Is this a known bug?

Developer
Posts: 41
Registered: ‎07-07-2009
My Device: Not Specified

Re: Unable to build Cascades C++ Cookbook for the Simulator

I have the same problem, and found that it is because of all codings in recipes folder not being compiled. I have try to do anything I can to include the recipes folder but no clue... So, I solved it by copying all files in recipes folder to src folder.