make [2]: * [o.le - v7-g/applicationName] make [1]: * [debug] make: * [Device-Debug]
Hello! Below, I'm getting errors when building. Can you please help?
make [2]: * [o.le - v7-g/applicationName] error 1 ApplicationName C/C++ problem
make [1]: * [debug] problem error 2 ApplicationName C/C++
make: * [Device-Debug] problem error 2 ApplicationName C/C++
.pro file looks like this
APP_NAME = ApplicationName
CONFIG += qt warn_on cascades10
include (config. PRI)
LIBS +=-lbbdata
LIBS +=-lbb
The main.cpp file content is less than
#include "applicationui.hpp".
#include "sqlconnect.hpp".
#include
#include
#include
#include
using namespace bb::cascades; Q_DECL_EXPORT int main (int argc, char * argv) { App app (argc, argv); Create the Application UI, this is where the main.qml file is loaded and the stage of the application is set. ApplicationUI support; Enter the main application event loop. Return Application::exec(); } the relevant line is: In conclusion: Add Tags: BlackBerry Developers [E3000] How to make devices available on wireless ethernet? Hi all I used the E3000 for quite a while. A problem that I could not find a solution, it is connected by Ethernet devices cannot be considered the wireless and vice versa. It's especially annoying because I want to access my media servers more wireless, for obvious reasons, but even those who are not visible (and use addresses IP on laptops is a pain in the back) Recommended live chat I go to paid support service, but I'd rather the forums. Will be waiting for advice. Best. Have you tried to fix this by upgrading the firmware of the router? If you haven't tried that yet, do. It is possible that the router must be updated. Reset the router after that and then reconfigure and see if it works correctly after that. I have tried to build and run the project "QXmlStreamReader" with momentics but display as errors The path location type Resource Description My project is to CBC main.cpp qxsrexample.cpp Inc. qxsrexample.h assets hand. QML etc. Reference: http://qt-project.org/doc/qt-4.8/qxmlstreamreader.html And http://developer.Nokia.com/community/wiki/QXmlStreamReader_to_parse_XML_in_Qt I posted a few snippets on the forum some time ago, maybe they are useful: Make mistake while building/running bbutil with cascades app Hi, I am trying to build an opengl are 2.0 app and have pretty much used the tutorial for a cube with waterfalls using a foreignwindow, but the code used opengl 1.0. Since then I tried to use the code from a basic tutorial but I had difficulties to get the bbutil to work. Here is the log: 13:30:23 * incremental Build of the unit for Project X debug configuration *. 13:30:24 completed Build (a 674ms) Any help is appreciated. OK, I managed to correct errors using the wonderful people IRC. Will post a source that uses opengl are 2.0 with the example of stunts to use when he's ready... make [2]: * [o.le - v7-g/MyApp] error 1 Hi guys,. I get the error below at compile time: C:/bbndk/target_10_0_9_1673/QNX6/armle-v7/usr/lib/libbb.so.1 try so add to the linker command line make [1]: leaving directory ' C: / BBWorkspace/MyApp/arm. C:/bbndk/target_10_0_9_1673/QNX6/armle-v7/usr/lib/libbb.so.1: could not read symbols: invalid operation CC: C:/bbndk/host_10_0_9_404/win32 / x 86/usr/bin/ntoarm-ld caught signal 1 make [2]: * [o.le - v7-g/MyApp] error 1 make [1]: * [debug] error 2 make: * [Device-Debug] error 2 and if I block the bellows to the line of code so I don't get above time compilation error: const BB: ImageData imageData = bb: ImageData :: fromPixels (swappedImage.bits (), bb:ixelFormat::RGBX, swappedImage.width (), swappedImage.height (), swappedImage.bytesPerLine ()); m_image = bb: cascades::Image (imageData); MyApp.pro APP_NAME = MyApp CONFIG += qt warn_on cascades10 Core QT += QT += xml Network QT += include (config. PRI) Is there something missing in the .pro file? Add the following line to your .pro file: LIBS +=-lbb solved my problem How can I find my iBook purchased in iTunes? I would like to read my iBook purchased on my PC (running Windows 10) as well as my iPad and iPhone. When I try to find my books bought from iTunes, from 'Books' iTunes library, specifically to the 'My books' button it just tells me "books - books and audio books that you download for your iPad, iPhone or iPod touch are included in your library of books. Then he offers me a button to take back me to the books of the iTunes Store section. I have confirmed that I am absolutely connected to iTunes correctly. 1. How can I find the books I already bought on the iTunes store? 2 can (and if so, how) I read iBooks on my PC. It seems that the devices Apple makes devices more intuitive and the software on the planet... except when it comes to the interface of iTunes. Or... maybe its just me. :-) Help please! You cannot read the books on your pc. Issue of DellSmbios:\Bootsequence Hello is it possible to make device as CDrom, peripheral storage Usb and Diskett idle car and off to the start option via the dell ps provider? I can change the order, but may not know how to disable the specific boot device. Thank you very much for all the advice T. Kromsa No, disabling a boot device is not yet implemented in Dell ps provider. You can check the Dell order. Configure the command cctk bootorder (DCC). Example: CCTK bootorder - sequence = cdrom, hdd.2, hdd.1 - disabledevice = hdd.2 -Vibha Call log error with qmetatype.h? I have this code to get the newspaper to call as a data source But I got this error What will happen to qmetatype.h? Or if you have any code better, please help me. Thank you! Thanks for the help! Always had error with "Q_DECLARE_METATYPE (CallEntryResult)"; "Q_DECLARE_METATYPE (QList Thank you! Problems accessing the C code execution I had difficulties to get C code to run in my project bb10 test.h test.c got it: thread as a test that * should * work I get 'Syntax error' for the extern "C" {line in test.h compiler error is rather vague: make [2]: * [o.le-v7-g/.obj/test.o] error 1 My compiler also gives me this: -Ic: / bbndk/target_10_2_0_1155/qnx6/usr/include/freetype2 - i. o o.le-v7-g/.obj/test.o... /SRC/test.c BB_10 is the name of the project, and there is an empty folder from BB_10 to the JavaScript on the Project Explorer resources, a red X icon on it. Don't know if this is related to all add C files to the project, but the second I delete the C, all the errors disappear. Is there an extra step, or something really simple that I'm missing to get the C code execution? I'm completely stumped. stephenpankiw wrote: When I clean then rebuild I'll leave 2 errors at more than 300, and is fatal errors in common libraries as follows: : / bbndk/target_10_2_0_1155/qnx6/usr/include/qt4/QtCore/qstring.h:54:20: fatal error: string: no such file or directory but qstring.h is in that folder, I don't know how the compiler is absent, he errors or because he cannot find a library more: c:/bbndk/target_10_2_0_1155/QNX6/usr/include/Qt4/QtCore/QByteArray.h:606:1: error: unknown type name 'QByteArray. Can't find the type of QByteArray in qbytearray.h? What is going on? On the first error, he complains on line 54 of qstring.h, not not not find qstring.h. Line 54 of qstring.h is: # include
which seeks to include a system lib. A quick search on Google for "qstring.h:54:20: fatal error: string: no such file or directory" gives a few discussion forums such as: http://Qt-project.org/forums/viewthread/39367 where a person has apparently concluded that their use of the file .h/.c instead de.hpp/.cpp extensions extensions was causing their generation not to seek the library system in the right place. BTW, I'm not snarking you by mentioning research on google, just trying to help and to learn something of myself because I'd run into this problem myself. Hello I am new to the blackberry development. I am working on an app for BB10. my host is w8 64bits. I get this error when I try to compile my application: do: [Device-Debug] error 2 not the error report more descriptive that I've ever seen. can someone point me in the right direction to understand what I did wrong? Here the output of the console: 10:40:21 * incremental Build of the unit for project Geolog debug configuration *. 10:40:23 completed Build (a 2s.136ms) debugging is used for enforcement issues. build problems cannot be debugged. look a few lines, it tells you what the question is: Maybe you typed? A big seems strange. Hi, I've been weeks of work on the BB and had a lot of problems. Some of them have been resolved, some were not without the support of the forum. Now I have a great difficulty that I can't find answer by Googling. I am grateful to some body can help. Here's a simple case that make the big problem for me: 1. create an app without head with Momentics. 2 project will be generated HeadlessApp and HeadlessAppService. Without modification, this code works well. 2. I'm link below to use VibrationController in HeadlessAppService: https://developer.blackberry.com/native/documentation/dev/integrating_cpp_qml/index.html#usingcclass... below the code has been added: -Add codes below to main.cpp HeadlessAppService then add qmlRegisterType as below 3. to confirm the new code, I just right click on the project and select build project. Bang! I got several error I don't understand. (red lines are errors) I give up! Why adding simple code can be a problem? Please help me! Thank you very much! You must add this code into main.cpp to your HeadlessApp, not HeadlessAppService. Your spare part cannot run any UI stuff, trying to save an object any for QML is part of the things in the user interface. But anyway, reading your newspaper from the console, you seem to put in the right place anyway. Did you add this to your headlessTest.pro file: Could not import the blackberry project Hello I downloaded a blackberry project open source from github. Link: https://github.com/williamrjribeiro/wallpaper-ruler-bb10 I imported my momentics IDE, but can't compile or build as he founded errors. The error is: Active entry point is required in the device-cover Configuration. bar - descriptor.xml /WallpaperRuler line 117 problem manifests in BlackBerry App The path location type Resource Description I imported correctly? What is going on? How to solve it? Thank you Hi, I'm looking at the bar file descriptor of the github pages right now and these configurations that displays error message are not there. Here, it's just debugging the device, the device profile, device-liberation and simulator-debug. Delete the rest of the descriptor and mommentics. To do this in mommentics, make right click any project, select the build configurations-> manage. Remove the device-coverage, coverage of the Simulator and Simulator-profile. Error "batteryInfo" has not declared in this scope Hi, I have this error in my project, I understand the example of the battery of the sample, but I get the error of generation. I don't understand this part I declare scope This is the main.cpp Batterysample It's my main.cpp It's my MarcossitMobile10.cpp and get the error in this line that I declare. Help... Organizing in this way PPH, but already now, run nothing comes in my dev alpha application MarcossitMobile10.hpp the qml constructor is bateria.qml and the qml plugin is Battery.qml It will be something else? for example working on the system of the window but in error on mac system 00:43:07 * incremental Build of the unit for project SafetyLink debug configuration *. make - j3 device-Debug do .//translations - C f Makefile update make [1]: entering directory ' / users/shubhendusharma/Documents/gitblackbery10/SafetyLink/translations. /Users/shubhendusharma/documents/Momentics.app/host_10_0_10_536/Darwin/x86/usr/bin/lupdate SafetyLink.pro Update 'SafetyLink.ts '... Found 26 source text (s) (0 new and 26 already existing) make [1]: leaving directory ' / users/shubhendusharma/Documents/gitblackbery10/SafetyLink/translations. do .//translations f - C release of Makefile make [1]: entering directory ' / users/shubhendusharma/Documents/gitblackbery10/SafetyLink/translations. /Users/shubhendusharma/documents/Momentics.app/host_10_0_10_536/Darwin/x86/usr/bin/lrelease SafetyLink.pro Update ' / Users/shubhendusharma/Documents/gitblackbery10/SafetyLink/translations/SafetyLink.qm'... Generated translation (s) 0 (0 finished and unfinished 0) Ignored some 26 untranslated source text (s) make [1]: leaving directory ' / users/shubhendusharma/Documents/gitblackbery10/SafetyLink/translations. make - c / arm f Makefile debugging make [1]: entering directory ' / users/shubhendusharma/Documents/gitblackbery10/SafetyLink/arms. do f Makefile.Debug make [2]: entering directory ' / users/shubhendusharma/Documents/gitblackbery10/SafetyLink/arms. CQS-Vgcc_ntoarmv7le-lang-c ++-Wl,-rpath-link,/Users/shubhendusharma/Documents/Momentics.app/target_10_0_10_822/qnx6/armle-v7/lib-Wl,-rpath-link,/Users/shubhendusharma/Documents/Momentics.app/target_10_0_10_822/qnx6/armle-v7/usr/lib-Wl,-rpath-link,/Users/shubhendusharma/Documents/Momentics.app/target_10_0_10_822/qnx6/armle-v7/usr/lib/qt4/lib -o o.le-v7-g/SafetyLink-L/Users/shubhendusharma/Documents/Momentics.app/target_10_0_10_822/qnx6/armle-v7/lib-L/Users/shubhendusharma/Documents/Momentics.app/target_10_0_10_822/qnx6/armle-v7/usr/lib - L/Users/shubhendusharma/Documents/Momentics.app/target_ 10_0_10_822/QNX6/armle-v7/usr/lib/Qt4/lib-L/users/shubhendusharma/documents/Momentics.app/target_10_0_10_822/QNX6//usr/lib/Qt4/lib - lbbsystem - lbbdata - lbbcascades - lQtDeclarative - lQtScript - lQtSvg - lQtSql-lsqlite3 - lz - lQtXmlPatterns - lQtGui - lQtNetwork - lsocket - lQtCore - lm - lbps Draft MESSAGE: WARNING: unknown QT: qmlProject MESSAGE: WARNING: unknown QT: qmlcc: no file to process make [2]: leaving directory ' / users/shubhendusharma/Documents/gitblackbery10/SafetyLink/arm. make [2]: * [o.le - v7-g/SafetyLink] error 1 make [1]: leaving directory ' / users/shubhendusharma/Documents/gitblackbery10/SafetyLink/arm. make [1]: * [debug] error 2 make: * [Device-Debug] error 2 00:43:07 finished build (a 482ms) until I worked on the window and did some coding but with some problem I start workin on mac OS... the code I devlopeed on the window, when I run on mac error which stuck above... pls help me out and how to parse error above? Please help me I would like to know how does the import. I recommend going through the developer documentation to familiarize themselves with the development of BlackBerry. If you have any questions or encounter any problems, start a thread for them. Can not build waterfalls sample application: can not find the qmake configuration file When you try to build a sample application stunts for debugging on the PlayBook, I have some errors in the output. I am running Windows 7 (64 bit) using the QNX Momentics IDE. Here is the result: ---------------------------------------------------------------- Build the unit for project HelloCascades debug configuration *. make the device debugging Build completed *. I have bolded the output where I think the problem might be involved. Is there a problem with the Makefile, or is it a directory I'm missing, or anything else? I can't see why there is an error while compling. Thanks for any help. I have the same warnings qmake... is not found . But finally, after that I could successfully implement the objective of the Simulator, the sample application running, even with this qmake warnings. Where can I get spare for my Equium A100 keys? Dear all,I hope someone can help. I have an Equium A100 - 338 laptop. I melted the left 'Shift' and left the keys 'Ctrl' (don't ask).Where can I get replacement keys?Cheers in advance Jasonsaxo I downloaded and installed all the drivers for my product - HP ENVY 15 t-j000 Quad Edition (E4T17AV) - and it still shows a lack of PCI Simple Communications Controller Driver. Can someone point me in the right direction please? Is the hardware ID PC BlackBerry passport data of office 7.1 to mixture? Hello. I have a client who had a right to Blackberry Torch until he died. The phone is fully ripe. However, she has made regular backups with Desktop 7.1 she bought a new password and is happy with her, but she needs to transfer old data. I understan MAF 2.1.3 and MCS Hi Experts,How can I map REST services exposed via MCS backend for the MAF business objects?I found this https://blogs.oracle.com/mobile/entry/maf_mcs_utility_accessing_oracle , but where can I download the mafmcsutility.jar and samples?Indications w When I put audio in first pro, he chops of parts out of the audio and makes about half the length, which means half of the necessary audio is cut off.The same audio file plays fine in VLC media player.Can anyone help?
'_ZN2bb6system12SystemDialog23setDismissAutomaticallyEb' is defined in OSR /Applications/Momentics.app/target_10_2_0_1155/qnx6/armle-v7/usr/lib/libbbsystem.so.1 try so add to the linker command line
-lbbsystem
your line of += LIBS in the .pro fileSimilar Questions
make: * [Device-Debug] problem error 2 QXSRExample C/C++
make [2]: * no rule to make target "main.cpp", need to "debug/main.o. Stop. QXSRExample C/C++ problem
make [1]: * [debug] problem error 2 QXSRExample C/C++
make - j8 device-Debug
do .//translations - C f Makefile update
CD arm & C:, bbndk, host_10_2_0_15, win32 / x 86/usr/bin/qmake-blackberry-armv7le-QCC of spec... X.Pro CONFIG += debug_and_release CONFIG += device
make [1]: Entering directory "C: / users/X/momentics-space X/work/translation"
C:, bbndk, host_10_2_0_15, win32 / x 86/usr/bin/lupdate X.pro
Update 'X.ts '...
Found 0 text (s) source (0 new and 0 already existing)
make [1]: leaving directory ' C: / users/X/momentics-space work/X/translations.
do .//translations f - C release of Makefile
make [1]: Entering directory "C: / users/X/momentics-space X/work/translation"
C:, bbndk, host_10_2_0_15, win32 / x 86/usr/bin/lrelease X.pro
Update 'C:/Users/X/momentics-workspace/X/translations/X.qm '...
Generated translation (s) 0 (0 finished and unfinished 0)
make [1]: leaving directory ' C: / users/X/momentics-space work/X/translations.
make - c / arm f Makefile debugging
make [1]: Entering directory "" C: / users/X/momentics-space work/X/arm ' "
do f Makefile.Debug
make [2]: Entering directory "" C: / users/X/momentics-space work/X/arm ' "
CQS-Vgcc_ntoarmv7le - c-Wc,-comprennent-Wc,o.le-v7-g/.obj/X - Wno-psabi - 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_DEBUG-DQT_DECLARATIVE_LIB-DQT_CORE_LIB-DQT_SHARED - Ic: / bbndk/target_10_2_0_1155/qnx6/usr/share/qt4/mkspecs/blackberry-armv7le-CQS -... /... / X Ic: / bbndk/target_10_2_0_1155/qnx6/usr/include/qt4/QtCore - Ic: / bbndk/target_10_2_0_1155/qnx6/usr/include/qt4/QtDeclarative - Ic: / bbndk/target_10_2_0_1155/qnx6/usr/include/qt4 - I...-Io.le-v7-g/.moc/SRC - Ic: / bbndk/target_10_2_0_1155/qnx6/usr/include - Ic: / bbndk/target_10_2_0_1155/qnx6/usr/include/freetype2 - i. o o.le-v7-g/.obj/bbutil.o... /SRC/bbutil.c
Cc1: error: one or more files PCH used have been found, but they were not valid
make [2]: leaving directory ' C: / users/X/momentics-space work/X/arm.
make [1]: leaving directory ' C: / users/X/momentics-space work/X/arm.
Cc1: error: use - Winvalid-pch for more information
Cc1: fatal error: o.le-v7-g/.obj/X: no such file or directory
compilation is complete.
CC: C:/bbndk/host_10_2_0_15/win32/x86/usr/lib/gcc/arm-unknown-nto-qnx8.0.0eabi/4.6.3/cc1 caught signal 1
make [2]: * [o.le-v7-g/.obj/bbutil.o] error 1
make [1]: * [debug] error 2
make: * [Device-Debug] error 2
CallHistoryService callHistoryService;
// Retrieve the default call history account on the device. The
// ID of a valid account is required when calling callHistory()
bb::pim::account::Account defaultAccount = callHistoryService.defaultAccount();
// Create a default-constructed CallHistoryFilter. By passing
// this type of CallHistoryFilter to callHistory(), all calls
// in the call history are returned
CallHistoryFilter defaultFilter;
// Create a CallHistoryParam with contact search disabled.
// Contact search is useful if you want to identify the contacts
// that were involved in a call
CallHistoryParam callHistoryParams;
callHistoryParams.setContactSearchEnabled(false);
// Create a CallHistoryError to store the result of callHistory()
// CallHistoryError::Type *callHistoryError = new CallHistoryError();
// Retrieve the call history
QList
signals:
void calllogLoaded(const QVariant &data);
c:/bbndk/target_10_3_1_995/qnx6/usr/include/qt4/QtCore/qmetatype.h:169:80: error: 'qt_metatype_id' is not a member of 'QMetaTypeId
#ifndef TEST_H_
#define TEST_H_
#ifdef __cplusplus
extern "C" {
#endif
int callMe(void);
#ifdef __cplusplus
}
#endif
#endif /* TEST_H_ */
#include
make [1]: * [debug] error 2
make: * [Device-Debug] error 2
Cc1: error: one or more files PCH used have been found, but they were not valid
Cc1: error: use - Winvalid-pch for more information
Cc1: fatal error: o.le-v7-g/.obj/BB_10: no such file or directory
compilation is complete.
make - j4 device-Debug
do .//translations - C f Makefile update
make [1]: Entering directory "C: / users/abib/momentics-space work/Geolog/translations"
C:, bbndk, host_10_2_0_15, win32 / x 86/usr/bin/lupdate Geolog.pro
Update 'Geolog.ts '...
Found 12 source text (s) (0 new and 12 already existing)
make [1]: leaving directory ' C: / users/abib/momentics-space work/Geolog/translations.
do .//translations f - C release of Makefile
make [1]: Entering directory "C: / users/abib/momentics-space work/Geolog/translations"
C:, bbndk, host_10_2_0_15, win32 / x 86/usr/bin/lrelease Geolog.pro
Update 'C:/Users/abib/momentics-workspace/Geolog/translations/Geolog.qm '...
Generated translation (s) 0 (0 finished and unfinished 0)
Ignored for 12 untranslated source text (s)
make [1]: leaving directory ' C: / users/abib/momentics-space work/Geolog/translations.
make - c / arm f Makefile debugging
make [1]: Entering directory "" C: / users/abib/momentics-space work/Geolog/arm ' "
do f Makefile.Debug
make [2]: Entering directory "" C: / users/abib/momentics-space work/Geolog/arm ' "
CQS-Vgcc_ntoarmv7le - c - Wc, - inclure-Wc,o.le-v7-g/.obj/Geolog-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_DEBUG-DQT_DECLARATIVE_LIB-DQT_NETWORK_LIB-DQT_CORE_LIB-DQT_SHARED - Ic: / bbndk/target_10_2_0_1155/qnx6/usr/share/qt4/mkspecs/blackberry-armv7le-CQS -... /... / Geolog - Ic: / bbndk/target_10_2_0_1155/qnx6/usr/include/qt4/QtCore - Ic: / bbndk/target_10_2_0_1155/qnx6/usr/include/qt4/QtNetwork - Ic: / bbndk/target_10_2_0_1155/qnx6/usr/include/qt4/QtDeclarative - Ic: / bbndk/target_10_2_0_1155/qnx6/usr/inclure/qt4-Io.le-v7-g/.moc - Ic: / bbndk/target_10_2_0_1155/qnx6/usr/include - Ic: / bbndk/target_10_2_0_1155/qnx6/usr/include/freetype2 - i. o o.le-v7-g/.obj/moc_Gab.o o.le-v7-g/.moc/moc_ GAB.cpp
o.Le - V7 - g. MOC/moc_Gab.cpp: in member function ' virtual int Gab::qt_metacall (QMetaObject::Call, int, void *) ':
o.Le - V7 - g. MOC / moc_Gab.cpp:132:63: error: 'isFAvorite' was not declared in this scope
CC: C:/bbndk/host_10_2_0_15/win32/x86/usr/lib/gcc/arm-unknown-nto-qnx8.0.0eabi/4.6.3/cc1plus caught signal 1
make [2]: * [o.le-v7-g/.obj/moc_Gab.o] error 1
make [2]: leaving directory ' C: / users/abib/momentics-space work/Geolog/arm.
make [1]: * [debug] error 2
make [1]: leaving directory ' C: / users/abib/momentics-space work/Geolog/arm.
make: * [Device-Debug] error 2
error: 'isFAvorite' was not declared in this scope
#include
Q_DECL_EXPORT int main(int argc, char **argv)
{
Application app(argc, argv);
qmlRegisterType
08:44:30 **** Incremental Build of configuration Device-Debug for project headlessTest ****
make -j4 Device-Debug
make -C .//translations -f Makefile update
make[1]: Entering directory 'D:/BB-dev/momentics-workspace/headlessTest/translations'
C:/bbndk/host_10_3_1_12/win32/x86/usr/bin/lupdate headlessTest.pro
Updating 'headlessTest.ts'...
Found 2 source text(s) (0 new and 2 already existing)
make[1]: Leaving directory 'D:/BB-dev/momentics-workspace/headlessTest/translations'
make -C .//translations -f Makefile release
make[1]: Entering directory 'D:/BB-dev/momentics-workspace/headlessTest/translations'
C:/bbndk/host_10_3_1_12/win32/x86/usr/bin/lrelease headlessTest.pro
Updating 'D:/BB-dev/momentics-workspace/headlessTest/translations/headlessTest.qm'...
Generated 0 translation(s) (0 finished and 0 unfinished)
Ignored 2 untranslated source text(s)
make[1]: Leaving directory 'D:/BB-dev/momentics-workspace/headlessTest/translations'
make -C ./arm -f Makefile debug
make[1]: Entering directory 'D:/BB-dev/momentics-workspace/headlessTest/arm'
make -f Makefile.Debug
make[2]: Entering directory 'D:/BB-dev/momentics-workspace/headlessTest/arm'
qcc -Vgcc_ntoarmv7le -lang-c++ -Wl,-rpath-link,C:/bbndk/target_10_3_1_995/qnx6/armle-v7/lib -Wl,-rpath-link,C:/bbndk/target_10_3_1_995/qnx6/armle-v7/usr/lib -Wl,-rpath-link,C:/bbndk/target_10_3_1_995/qnx6/armle-v7/usr/lib/qt4/lib -Wl,-rpath-link,C:/bbndk/target_10_3_1_995/qnx6/armle-v7/usr/lib/qt4/lib -o o.le-v7-g/headlessTest o.le-v7-g/.obj/applicationui.o o.le-v7-g/.obj/main.o o.le-v7-g/.obj/moc_applicationui.o -LC:/bbndk/target_10_3_1_995/qnx6/armle-v7/usr/lib/bb1 -LC:/bbndk/target_10_3_1_995/qnx6/armle-v7/lib -LC:/bbndk/target_10_3_1_995/qnx6/armle-v7/usr/lib -LC:/bbndk/target_10_3_1_995/qnx6/armle-v7/usr/lib/qt4/lib -LC:/bbndk/target_10_3_1_995/qnx6//usr/lib/qt4/lib -lbb -lbbsystem -lbbcascades -lQtDeclarative -lQtScript -lQtSvg -lQtSql -lsqlite3 -lz -lQtXmlPatterns -lQtGui -lQtNetwork -lsocket -lQtCore -lm -lbps
o.le-v7-g/.obj/main.o: In function `int qmlRegisterType
LIBS +=-lbbdevice
make: * [Device-Debug] problem error 2 WallpaperRuler C/C++
'MarcossitMobile10::MarcossitMobile10(bb::cascades::Application*)':
../src/MarcossitMobile10.cpp:17:42: error: 'batteryInfo' was not declared in this scope
cc: C:/bbndk/host_10_0_9_404/win32/x86/usr/lib/gcc/arm-unknown-nto-qnx8.0.0eabi/4.6.3/cc1plus caught signal 1
make[2]: *** [o.le-v7-g/.obj/MarcossitMobile10.o] Error 1
make[2]: Leaving directory `C:/Users/marcossit/ndk-10.0.9-workspace/MarcossitMobile10/arm'
make[1]: *** [debug] Error 2
make[1]: Leaving directory `C:/Users/marcossit/ndk-10.0.9-workspace/MarcossitMobile10/arm'
make: *** [Device-Debug] Error 2
**** Build Finished ****
/* Copyright (c) 2012 Research In Motion Limited.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#include
/*
* Copyright (c) 2012 Jason I. Carter
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#include "Flashlight.hpp"
#include
// Default empty project template
#include "MarcossitMobile10.hpp"
#include
qml->setContextProperty("_battery", &batteryInfo);
// Default empty project template
#ifndef MarcossitMobile10_HPP_
#define MarcossitMobile10_HPP_
#include
/* Copyright (c) 2012 Research In Motion Limited.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
import bb.cascades 1.0
import bb.device 1.0
// Page laying out the visual components
Page {
Container {
layout: DockLayout {}
ImageView {
horizontalAlignment: HorizontalAlignment.Fill
verticalAlignment: VerticalAlignment.Fill
imageSource: "asset:///images/bateria/background.png"
}
Battery {
horizontalAlignment: HorizontalAlignment.Center
verticalAlignment: VerticalAlignment.Center
}
Container {
horizontalAlignment: HorizontalAlignment.Center
verticalAlignment: VerticalAlignment.Bottom
bottomPadding: 50
//! [0]
Label {
id: stateLabel
horizontalAlignment: HorizontalAlignment.Center
text: {
switch (_battery.chargingState) {
case BatteryChargingState.Unknown:
return qsTr ("Unknown");
break;
case BatteryChargingState.NotCharging:
return qsTr ("Not Charging");
break;
case BatteryChargingState.Charging:
return qsTr ("Charging");
break;
case BatteryChargingState.Discharging:
return qsTr ("Discharging");
break;
case BatteryChargingState.Full:
return qsTr ("Full");
break;
}
}
textStyle {
color: Color.White
fontSize: FontSize.XLarge
}
}
//! [0]
Label {
id: descriptionLabel
horizontalAlignment: HorizontalAlignment.Center
bottomMargin: 100
text: {
switch (_battery.chargingState) {
case BatteryChargingState.Unknown:
return qsTr ("Something is up with the battery");
break;
case BatteryChargingState.NotCharging:
return qsTr ("Plugged in, just no charge");
break;
case BatteryChargingState.Charging:
return qsTr ("Plugged in");
break;
case BatteryChargingState.Discharging:
return qsTr ("Unplugged and discharging");
break;
case BatteryChargingState.Full:
return qsTr ("Plugged in, full");
break;
}
}
textStyle {
color: Color.Gray
fontSize: FontSize.Large
}
}
}
}
}
/* Copyright (c) 2012 Research In Motion Limited.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
import bb.cascades 1.0
import bb.device 1.0
Container {
preferredWidth: 498
preferredHeight: 318
layout: DockLayout {}
//! [0]
ImageView {
id: batteryOutline
horizontalAlignment: HorizontalAlignment.Center
verticalAlignment: VerticalAlignment.Center
imageSource: _battery.chargingState == BatteryChargingState.Unknown ? "asset:///images/bateria/battery_plugged_error.png" :
_battery.chargingState == BatteryChargingState.NotCharging ? "asset:///images/bateria/battery_plugged_bad.png" :
_battery.chargingState == BatteryChargingState.Charging ? "asset:///images/bateria/battery_plugged.png" :
_battery.chargingState == BatteryChargingState.Discharging ? "asset:///images/bateria/battery.png" :
_battery.chargingState == BatteryChargingState.Full ? "asset:///images/bateria/battery_plugged.png" : ""
}
//! [0]
//! [1]
ImageView {
id: loadingLevel
horizontalAlignment: HorizontalAlignment.Left
verticalAlignment: VerticalAlignment.Center
translationX: 75
preferredWidth: _battery.level * 350.0 / 100.0
imageSource: _battery.level <= 10 ? "asset:///images/bateria/fill_red.png" :
_battery.level <= 20 ? "asset:///images/bateria/fill_yellow.png" :
_battery.level < 100 ? "asset:///images/bateria/fill_grey.png" : "asset:///images/bateria/fill_green.png"
}
//! [1]
ImageView {
id: stateIndicator
horizontalAlignment: HorizontalAlignment.Center
verticalAlignment: VerticalAlignment.Center
imageSource: _battery.chargingState == BatteryChargingState.Unknown ? "asset:///images/bateria/exclamation.png" :
_battery.chargingState == BatteryChargingState.NotCharging ? "asset:///images/bateria/exlamation.png" :
_battery.chargingState == BatteryChargingState.Charging ? "asset:///images/bateria/flash.png" :
_battery.chargingState == BatteryChargingState.Discharging ? "" :
_battery.chargingState == BatteryChargingState.Full ? "" : ""
}
}
qml->setContextProperty("_battery", &batteryInfo);
qml->setContextProperty("_bateria", &batteryInfo);
or
qml->setContextProperty("Battery", &batteryInfo);
C:/SDK/BB10/host/win32/x86\usr\bin\qmake-spec unsupported\blackberry armv7le-g ++ o arm\Makefile device += HelloCascades.pro CONFIG
WARNING: Did not find:... / SRC/.h
WARNING: Did not find:... / SRC/.h
X-unsupported\blackberry-C:/SDK/BB10/host/win32/x86\usr\bin\qmake-spec 86-g ++ o x86\Makefile simulator += HelloCascades.pro CONFIG
WARNING: Did not find:... / SRC/.h
WARNING: Did not find:... / SRC/.h
make - C. / translations f Makefile update release
make [1]: Entering directory "C: / SDK/BB10/Apps/translations
C:/SDK/BB10/host/win32 / x 86/usr/bin/lupdate HelloCascades.pro
Update 'HelloCascades_en_GB.ts '...
Found 0 text (s) source (0 new and 0 already existing)
Update 'HelloCascades_fr.ts '...
Found 0 text (s) source (0 new and 0 already existing)
Update 'HelloCascades_it.ts '...
Found 0 text (s) source (0 new and 0 already existing)
Update 'HelloCascades_de.ts '...
Found 0 text (s) source (0 new and 0 already existing)
Update 'HelloCascades_es.ts '...
Found 0 text (s) source (0 new and 0 already existing)
Update 'HelloCascades.ts '...
Found 0 text (s) source (0 new and 0 already existing)
C:/SDK/BB10/host/win32 / x 86/usr/bin/lrelease HelloCascades.pro
Not found in directory name racineLe qmake configuration is not valid.
Update 'C:/SDKs/BB10/Apps/translations/HelloCascades_en_GB.qm '...
Generated translation (s) 0 (0 finished and unfinished 0)
Update 'C:/SDKs/BB10/Apps/translations/HelloCascades_fr.qm '...
Generated translation (s) 0 (0 finished and unfinished 0)
Update 'C:/SDKs/BB10/Apps/translations/HelloCascades_it.qm '...
Generated translation (s) 0 (0 finished and unfinished 0)
Update 'C:/SDKs/BB10/Apps/translations/HelloCascades_de.qm '...
Generated translation (s) 0 (0 finished and unfinished 0)
Update 'C:/SDKs/BB10/Apps/translations/HelloCascades_es.qm '...
Generated translation (s) 0 (0 finished and unfinished 0)
Update 'C:/SDKs/BB10/Apps/translations/HelloCascades.qm '...
Generated translation (s) 0 (0 finished and unfinished 0)
make [1]: leaving directory ' C: / SDK/BB10/Apps/translations.
make - c / arm f Makefile debugging
make [1]: Entering directory "" C: / SDK/BB10/Apps/arm ' "
do f Makefile.Debug
make [2]: Entering directory "" C: / SDK/BB10/Apps/arm ' "
Not find qmake configuration not found directoryCould extended fichierExemple of use OS qmake configuration before you define MAKEFILE_GENERATOR/usr/bin/sh: C:/Users/ROSSL~1/AppData/Local/Temp/make4028-1.sh: no such file or directory
make [2]: * [o.le - v7-g/HelloCascades] error 127
make [2]: leaving directory ' C: / SDK/BB10/Apps/arm.
make [1]: * [debug] error 2
make [1]: leaving directory ' C: / SDK/BB10/Apps/arm.
make: * [Device-Debug] error 2Maybe you are looking for