Build the error associated with a class - why?

I have a class that I am creating I can use in any application as a utility class to call the browser.

However, when I add this class to an application - any application, including the HelloCascades - the build fails.

By comparing the console logs I see this at the end of a good generation (without this class)

"
CQS-Vgcc_ntox86-lang-c ++ - Wl, - rpath - link, C:, bbndkbeta4, target_10_0_9_1101, qnx6 / x 86/lib - Wl, - rpath - link, C:, bbndkbeta4, target_10_0_9_1101, qnx6 / x 86/usr/lib - o o-g/hellocascades o-g/.obj/hellocascadesapp.o o-g/.obj/main.o o-g/.obj/moc_hellocascadesapp.o - LC: / bbndkbeta4/target_10_0_9_1101/qnx6 / x 86/lib - LC: / bbndkbeta4/target_10_0_9_1101/qnx6 / x 86/usr/lib - LC : / bbndkbeta4/target_10_0_9_1101/qnx6 / x 86/usr/lib/qt4/lib-LC: / bbndkbeta4/target_10_ 0_9_1101/qnx6 / / usr/lib/qt4/lib - lbb - lbbcascades - lQtDeclarative - lQtScript - lQtSvg - lQtSql - lQtXmlPatterns - lQtXml - lQtGui - lQtNetwork - lsocket - lQtCore - lm - lbps
make [2]: leaving directory had: / downloads/BB10/samples/Cascades-samples-master/hellocascades / x 86 '
make [1]: leaving directory had: / downloads/BB10/samples/Cascades-samples-master/hellocascades / x 86 '
Not find qmake configuration directoryCould not found qmake extended from fichierExemple to use OS configuration before installing MAKEFILE_GENERATOR

"

But I can't see the following at the end of the construction that fails:

"

CQS-Vgcc_ntox86 - c - Wno-psabi-lang-c ++ 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: / bbndkbeta4/target_10_0_9_1101/qnx6/usr/share/qt4/mkspecs/no taken into charge/blackberry - x 86 - CQS -... /... /hellocascades - Ic: / bbndkbeta4/target_10_0_9_1101/qnx6/usr/include/qt4/QtCore - Ic: / bbndkbeta4/target_10_0_9_1101/qnx6/usr/include/qt4/QtNetwork - Ic: / bbndkbeta4/target_10_0_9_1101/qnx6/usr/include/qt4/QtGui - Ic: / bbndkbeta4/target_10_0_9_1101/qnx6/usr/include/qt4/QtXml - Ic: / bbndkbeta4/target_10_0_9_1101/qnx6/usr/include/qt4/QtXmlPatterns - Ic : / bbndkbeta4/target_10_0_9_1101/qnx6/usr/include/qt4/QtSql - Ic: / bbndkbeta4/target_10_0_9_1101 / QNX6/usr/include/qt4/QtSvg - Ic: / bbndkbeta4/target_10_0_9_1101/qnx6/usr/include/qt4/QtScript - Ic: / bbndkbeta4/target_10_0_9_1101/qnx6/usr/include/qt4/QtDeclarative - Ic: / bbndkbeta4/target_10_0_9_1101/qnx6/usr/include/qt4 - I... / SRC-Io-g/.moc - Ic : / bbndkbeta4/target_10_0_9_1101/qnx6/usr/include - Ic: / bbndkbeta4/target_10_0_9_1101/qnx6/usr/include/freetype2 - i. o o-g/.obj/hellocascadesapp.o... /SRC/hellocascadesapp.cpp
CQS-Vgcc_ntox86-lang-c ++ - Wl, - rpath - link, C:, bbndkbeta4, target_10_0_9_1101, qnx6 / x 86/lib - Wl, - rpath - link, C:, bbndkbeta4, target_10_0_9_1101, qnx6 / x 86/usr/lib - o o-g/hellocascades o-g/.obj/hellocascadesapp.o o-g/.obj/invokeBrowser.o o-g/.obj/main.o o-g/.obj/moc_hellocascadesapp.o o-g/.obj/moc_invokeBrowser.o - LC: / bbndkbeta4/target_10_0_9_1101/qnx6 / x 86/lib - LC: / bbndkbeta4/target_10_0_9_1101/qnx6 / x 86/usr/lib - LC : / bbndkbeta4/target_10_0_9_1101/qnx6 / x 86/usr / lib/qt4/lib - LC: / bbndkbeta4/target_10_0_9_1101/qnx6 / / usr/lib/qt4/lib - lbb - lbbcascades - lQtDeclarative - lQtScript - lQtSvg - lQtSql - lQtXmlPatterns - lQtXml - lQtGui - lQtNetwork - lsocket - lQtCore - lm - lbps
Not find qmake configuration not found directoryCould extended fichierExemple of use OS qmake configuration before you set MAKEFILE_GENERATORC:\bbndkbeta4\host_10_0_9_284\win32\x86\usr\bin\ntox86-ld: o-g/.obj/invokeBrowser.o: reference to undefined symbol '_ZN2bb6system13InvokeRequest11setMimeTypeERK7QString'
make [2]: leaving directory had: / downloads/BB10/samples/Cascades-samples-master/hellocascades / x 86 '
make [1]: leaving directory had: / downloads/BB10/samples/Cascades-samples-master/hellocascades / x 86 '
C:\bbndkbeta4\host_10_0_9_284\win32\x86\usr\bin\ntox86-ld: Notes: '_ZN2bb6system13InvokeRequest11setMimeTypeERK7QString' is defined in DSO C:/bbndkbeta4/target_10_0_9_1101/qnx6/x86/usr/lib/libbbsystem.so.1 try so add to the linker command line
C:/bbndkbeta4/target_10_0_9_1101/QNX6/x86/usr/lib/libbbsystem.so.1: could not read symbols: invalid operation
CC: C:/bbndkbeta4/host_10_0_9_284/win32 / x 86/usr/bin/ntox86-ld caught signal 1
make [2]: * [o-g/hellocascades] error 1
make [1]: * [debug] error 2
make: * [Simulator-Debug] error 2

"

I build to debug on the Simulator.  I tried the built device and these failure too.  I also tried 3 Beta and Beta 4.

If you look hard you will see in the Console log this:

ZN2bb6system13InvokeRequest11setMimeTypeERK7QString

Now if I comment the line defining the Mime type, this changes then to complain about

_ZN2bb6system13InvokeRequest6setUriERK7QString

My apologies in advance for the code.  Probably more like to kill, and I'm sure that the code I created is bad c ++, since in reality, I'm a Java learning C++ programmer.  But that being said, I would still like t understand why this class causes the build error.

TIA

/*
 * InvokeBrowser.h
 *
 *  Created on: 30 Nov 2012
 *      Author: ps
 */

#ifndef INVOKEBROWSER_H_
#define INVOKEBROWSER_H_

#include 
#include 
#include 
#include 
#include 

class InvokeBrowser : public QObject {

      Q_OBJECT

public:
    InvokeBrowser(bb::cascades::Container *parent = 0);
    virtual ~InvokeBrowser();

    void launchBrowser(QString);

private:
    void processInvokeReply();
    void showToast(const QString );

    bb::system::InvokeManager* _invokeManager;
    bb::system::InvokeReply * _invokeReply;
    bb::system::InvokeRequest * _request;
};

#endif /* INVOKEBROWSER_H_ */
/*
 * InvokeBrowser.cpp
 *
 *  Created on: 30 Nov 2012
 *      Author: ps
 */

#include "InvokeBrowser.h"

#include 

#include 
#include 
#include 
#include 
#include 
#include 
#include 
#include 

InvokeBrowser::InvokeBrowser(bb::cascades::Container *parent)
    : QObject(parent)  {
}

InvokeBrowser::~InvokeBrowser() {
    // TODO Auto-generated destructor stub
    if ( ! _invokeManager ) {
        delete _invokeManager;
        _invokeManager = 0;
    }
    if ( _request ) {
        delete _request;
        _request = 0;
    }
}

void InvokeBrowser::launchBrowser(const QString URL) {

    // Create a new invocation request
    _request = new bb::system::InvokeRequest();
    _request->setAction(QLatin1String("bb.action.OPEN"));
    _request->setMimeType(QLatin1String("text/html"));
    _request->setUri(URL);

    // Start the invocation
    _invokeManager = new bb::system::InvokeManager();
    _invokeReply = _invokeManager->invoke(*_request);

    if (_invokeReply) {
        // Ensure that processInvokeReply() is called when the invocation has finished
        connect(_invokeReply, SIGNAL(finished()), this, SLOT(processInvokeReply()));
    } else {
        showToast("Error starting browser");
        return;
    }

}

void InvokeBrowser::processInvokeReply() {

    if ( !_invokeReply ) {
        return;
    }
    // Check for errors during invocation
    switch (_invokeReply->error()) {
        case bb::system::InvokeReplyError::BadRequest:
            showToast("[ErrorBadRequest] Invoke Failed!");
            break;
        case bb::system::InvokeReplyError::Internal:
            showToast("[ErrorInternal] Invoke Failed!");
            break;
        case bb::system::InvokeReplyError::NoTarget:
            showToast("[ErrorNoTarget] Invoke Failed!");
            break;
        case bb::system::InvokeReplyError::TargetNotOwned:
            showToast("[ErrorTargetNotOwned] Invoke Failed.");
            break;
        default:
            break;
    }
    // Delete the reply later on
    _invokeReply->deleteLater();
    _invokeReply = 0;

}

void InvokeBrowser::showToast(const QString toastString) {
    qDebug()<<"Toast: " + toastString;

    bb::system::SystemToast *toast = new bb::system::SystemToast();
    toast->setBody(toastString);
    toast->show();

}

try adding bbsystem library to the list of link libraries

Tags: BlackBerry Developers

Similar Questions

  • Lightroom works only with reduced funktionality. Develop module is not available.  Adobe can not find the license associated with my Adobe why identification code? Every month I pay an amount for PS and LR...

    After the upgrade to Windows 10 Lightroom works only with reduced funktionality. Develop module is not available.  Adobe can not find the license associated with my Adobe why identification code? I bought the license more than 1 year ago. Every month I pay an amount for PS and LR, and for the past 4 months I can't work. Russian support team cannot solve this problem and sent me here.

    Thank you! I reset my password, the problem was in it.

  • Flash Builder random error associated with CFCS 'qnx-screen '.

    Hey all,.

    It's been about 8 months since I finally published my app PlayBook... It's been long since, so I'm a bit rusty...

    I'm seeing my source code, compile it with the new SDK.

    I downloaded the Simulator 2.0, updated the OS on my tablet to 2.0 and installed the new Tablet OS Beta 2.0 SDK.

    I am trying to get my application up and running, and I get this error:

    "Description Resource Path location Type
    "Could not open" / Applications/Adobe Flash Builder 4.5/sdks/RIM/blackberry-tablet-sdk-2.0.0/frameworks/libs/qnx-screen ' PaperRobo unknown Flex problem.

    I use a Mac and Flash Builder 4.5 running

    I use the Flex SDK 4.5.1... and it seems that all the appropriate Blackberry tablet SDK swcs are connected properly... See screenshot:

    Any ideas what's not here?

    It also looks that QNXApplicationEvent no longer exists?

    I also tried to create a new project from scratch and get the same error of Flash Builder

    I don't think that there is nothing wrong with your stature. Try to create a new project, as shown in jtegen and see if it works. If this does not work, you can still manually add the .swc files.

    It seems to be looking for them in the wrong place.

    "/ Applications/Adobe Flash Builder 4.5/sdks/RIM/blackberry-tablet-sdk-2.0.0/framework"

    s/libs/qnx-screen'

    Should be "/ Applications/Adobe Flash Builder 4.5/sdks/RIM/blackberry-tablet-sdk-2.0.0/framework"

    s/libs/qnx/qnx-screen

    If you do this be sure to do the qnx - air.swc marked as external.

  • I get the configuration error associated with a licence of Photosaop CS5. Error: 213:5

    I get the configuration error associated with a licence of Photosaop CS5. Error: 213:5

    This error is due to a permission problem.

    http://helpx.Adobe.com/x-productkb/policy-pricing/activation-error-cod es.html

    Please follow the instructions in the following link to resolve the issue:

    http://helpx.Adobe.com/x-productkb/policy-pricing/configuration-error-CS5.html

    Kind regards

    Ashutosh

  • Change the icons associated with files - it is still possible; It was child's play.

    How can I change the icon associated with a file? For example, if I change the default program for an .ini file, the default icon of a page with a gear in the corner becomes a simple page and I'd rather the icon does not change... just the program I use to open the file. In the previous veersions of Windows, if you want to change the icon associated with a file, you could simply enter properties and continue. Please advise on how to adopt this change of WinVista Home Premium.

    It is not easy and involves editing the registry (this is far from as easy it was XP, that's why you're having trouble).  Here is the procedure: http://www.webtlk.com/2009/03/20/how-to-change-the-icon-assiciated-with-a-file-in-windows-vista-and-windows-7/.  I recommend before starting that you back up your registry database just to be safe.  Here's how: http://www.adamsdvds.co.uk/tutorials/vista/regedit/backup.php.

    I hope this helps.

    Good luck! Lorien - MCSA/MCSE/network + / has + - if this post solves your problem, please click the 'Mark as answer' or 'Useful' button at the top of this message. Marking a post as answer, or relatively useful, you help others find the answer more quickly.

  • The link "forgotten password?" asks me to enter the email associated with the account...

    I forgot my password. I can't create a new account because I get an error message saying that my e-mail address is already associated with an account.  So, I use the link 'forgot password?'.  The link request my email address I provided.  Then I get an error message asking me to enter the email associated with the account.  I'm stuck.  What should I do?

    I'm sorry that you have this problem.

    If you have a snapfish account, use your snapfish e-mail address and the password to connect to ePrintCenter.com with. If you do not have an account, snapfish, go to snapfish.com and create an account and then use the information that you create on snapfish to connect to ePrintCenter.com

  • BlackBerry smartphones can not verify my blacberry id - enter the username associated with this phone - ARGH!

    I just got my blackberry a few days ago and it makes me nuts trying to get this set up. I'm pretty tech savy, but not when it comes to this phone.

    I created an account via blackberry, but then I could not for the life of me remember the password I put on it. So, which became a nightmare and I ended up deleting this account and set up a new through the computer.

    Now, every time I try and connect to this, as the app world to try to put things in place and not - I get the error message "enter the username associated with this smartphone.

    So I enter the new name of user and password I put in place and it works so of course I tried to get all blackberry programs set up on my computer and connect the phone to my computer - but my house is a deadband for cells - so I can't do set up because I can not access my "data plan" in my house.

    I recorded my phone, I have taken the battery all that fun stuff - but it's still not working! That makes me BONKERS - I can not set up email, bbm anything because I can't access my account - ARGH! I really hope that someone can help you.

    No doubt because I posted this - my friend that I couldn't reach finally called me and told me to do a security wipe and then start again. It WORKED! So if anyone has this problem, just try to do a wipe

  • What is the icon associated with a graphic symbol?

    Hello.

    as a beginner in animation and using animate CC, I find a lot of things confused, so I decided to go slowly and carefully through the Adobe Help documentation in order to understand things.

    An example of what I find confusing is the icon associated with a graphic symbol such as illustrated on page 373 of the Adobe animate help PDF is different from the icon that appears in the Animate library panel.

    graphic symbol icon 1.pnggraphic symbol icon 2.png

    For example. I've attached a screenshot of the graphical symbol icon, as shown on page 373 of Adobe animate PDF User Guide, and I have attached a screenshot of the library panel, displaying a symbol graphic icon named "symbol 1", after the bitmap imported PSD has been converted to a graphic symbol.

    You can see that the graphic symbol in the library Panel icon is different from the symbol icon graphic on page 373 of Adobe PDF animate. -each icon consists of a triangle, a circle and a square, but in the PDF version the three forms are arranged differently to the icon displayed in the library panel. that is to say that they are not the same icon.

    Could someone explain to me why the icons are different?

    Thank you.

    I'm guessing a sloppy editing tutorials is at fault. Both icons for graphic symbol and key have changed in CC of Flash versions for icons used in previous versions of CS. I have no idea why this change was made. The only advantage I see is confusing for users.

  • ComboBox - updated database with the ID associated with the selected value

    Hello, first off I am a newbie to developing Flash Builder with PHP, so any help would be mucho appreciated.

    I want to update my database with an id associated with a seletcted value in a combobox

    -I'll create a combox and asociate to a data service that retrieves all possible values

    -With the help of selectedItem, I'm able to the value of the ComboBox to the value associated with the default data object

    -To submit, I want to update the database, not with the value directly, but with its associated id.

    -The list of values are a list of locations with a specific id.

    Here is my code

    ComboBox on a form

    "" < s:Form includeIn = "LocationAdd, LocationUpdate"x ="52" y ="320" defaultButton = "auLocnBtn{}">

    "< s:FormItem label = 'provider ID" "" >

    "" < s:ComboBox id = "spidComboBox" selectedItem ="locations.snam{}" includeIn = "LocationUpdate'x ='97" y ="539"

    creationComplete = "comboBox_creationCompleteHandler (event)" labelField ="name" > ""

    " < s:AsyncListView list =" getSplResult.lastResult{}"/ > "

    < / s:ComboBox >

    < / s:FormItem >

    " < s:Button id ="auLocnBtn"label ="Submit"click ="auLocnBtn_clickHandler (event)"label. LocationUpdate ="Update"tag. LocationAdd ="Add"/ > "

    < / s:Form >

    protected function auLocnBtn_clickHandler(event:MouseEvent):void

    {

    Locations.SPID = parseInt (spidComboBox.selectedItem);

    updateLocationResult.token = locationService.updateLocation (rentals);

    }

    This code will move to the selected item, in this case locations.snam. However, getSpl returns two fields - name and id. I want id associated with locations.snam to use to update the database.

    Do this in php and html is really straight forward, because there is a < value > property that allows me to pass the ID. Something similar in flash builder? I spent hours on this... Please don't laugh, I said I was new on FB!

    See you soon,.

    Brian

    Okay understood outside, what I had to do was

    protected function auLocnBtn_clickHandler(event:MouseEvent):void

    {

    Locations.SPID = parseInt (spidComboBox.selectedItem.spid);

    }

    that is the reference object properties... FB with PHP is great!

    This can be closed.

  • What are the costs associated with the synchronization

    What are the costs associated with the synchronization

    Simple answer is: No. Cost zero.

  • I lost the icons associated with my favorites. I tried to restart my Mac, Safari, resettlement and Add-ons suggested in other forums without success. Is there a way to fix this?

    I lost the icons associated with my favorites. I tried to restart my Mac, Safari, resettlement and Add-ons suggested in other forums without success. Is there a way to fix this?

    Hi rmmilleriii,

    You should take a look at this article which discusses some of the problems with the latest version of Firefox.

    There is some information here that should help you solve your problem. Fortunately, this is a very easy solution.

    Hope this helps!

  • the program associated with the creation of a virtual instrument of Lab View. Please help me

    I have a question with the program associated with the creation of a virtual instrument of Lab View. 1. creation of virtual instrument based on the NI 9401 module mounted on the chassis NI DAQ of Compaq (nor-cDAQ-9172). Creating a virtual tool should apply the following counting pulses in series of the pulse, visualization of data by means of a digital indicator, by comparing the number of impusite with a predetermined value, this value can be assigned by the user. Indicator light when you get to reach the number of pulses, the ability to reset the counter of a button on the front panel. Digital output switch when reaching the number. I hope someone can help me.

    What is your question? You have described what the program is supposed to do, but it is unclear what you're asking about. Do you need help to get started? If so, what you have gone through the tutorials of LabVIEW? You and look at the material in tutorials the NI Developer Zone Learning Center , which provides links to other materials and other. You can also take a course online for free. Have you looked through numerous examples provided with LabVIEW for data acquisition?

  • MediaPlayer 12 on Windows 7 laptop playing my DVD with the sound; MediaPlayer 11 Windows XP desktop reads the DVD even with no sound: WHY?

    MediaPlayer 12 on Windows 7 laptop playing my DVD with the sound; MediaPlayer 11 Windows XP desktop reads the DVD even with no sound: WHY?

    Hello DebbieMarronYM,

    I suggest watching this thread where the poster had the same problem:
    Mind post x which is currently marked as an answer a lot of different solutions that can be useful.
  • We have SQL Server 2005 cluster (3 node cluster), and if we improve this nodes to 2008 R2, the databases associated with the named instance can stay to the version of SQL Server 2005?

    original title: SQL Server 2008

    We have SQL Server 2005 cluster (3 node cluster) and if we improve this nodes to 2008 R2, can the databases associated with the named instance remain to the version of SQL Server 2005, I seem to disagree with this notion, but still need to validation of the pro.

    One way I can think of to achieve this scenario changes the compatibility level to SQL Server 2005 when the node has been upgraded to SQL Server 2008, so we can upgrade databases to SQL 2008 as and when the vendors provide support for this version.

    Hello

    Here is the Vista forums

    Try the links below:

    SQL Server forums

    http://social.technet.Microsoft.com/forums/en-us/category/SQLServer/

    SQL Server TechCenter

    http://TechNet.Microsoft.com/en-us/SQLServer/bb265254.aspx

    Blogs and Forums SQL server 2008

    http://www.Microsoft.com/sqlserver/2008/en/us/forums-blogs.aspx

  • cannot update, uninstall or new installation of itunes and the programs associated with lack of msi files

    cannot update, uninstall or new installation of itunes and the programs associated with lack of msi files

    Hi kenau78,

    a. this problem during installation?

    b. you install an iTunes 32-bit version or 64-bit?

    c. What is the CPU architecture, 32-bit or 64-bit?

    I suggest you to contact the Apple support also, because the problem is with iTunes, from the link given below.

    http://www.Apple.com/support/

    You can also ask your question in the discussion forums Apple from the link below.

    http://discussions.Apple.com

    Concerning

    Arona - Microsoft technical support engineer
    Visit our Microsoft answers feedback Forum and let us know what you think

Maybe you are looking for