Display of newspapers without QNX Momentics IDE

Hello world!

I switched to QT Creator for faster compilation & deployment.

Everything works including fines of debugging, but it displays no newspapers (qDebug etc.).

I know that newspapers should be directed to stdout/stderr if they should be displayed in the console of QNX Momentics.

This is done using qInstallMsgHandler and it works. But it does not work in QT Creator.

So the question is:

How QNX Momentics intercepts not newspapers once they are redirected to stderr/stdout?

I was able to view the logs via SSH using the following method. He works for slogger2, but I don't know how to access the output stdout/stderr:

(1) start blackberry connect

/ Applications/bbndk/host_10_0_9_52/darwin / x 86/usr/bin/blackberry-connect 192.168.157.128 - password devicePass - sshPublicKey «/Users/User/.config/QtProject/qtcreator/qnx/BlackBerry Simulator/id_rsa.pub»

(2) ssh [email protected] "/Users/User/.config/QtProject/qtcreator/qnx/BlackBerry Simulator/id_rsa.

(3) slog2info w | grep qt - msg

All suggestions are welcome!

He can't not stunts.

I followed this guide:

http://Qt-project.org/wiki/Qt-creator-with-BlackBerry-10

Automatic completion did not work initially. I don't know why, maybe the roads were too long?

As a solution, I created a symbolic link in the my project folder:

include->/Applications/bbndk/target_10_0_9_386/qnx6/usr/include

Then I added the following lines to the .pro file:

INCLUDEPATH += include include/qt4/QtCore
LIBS += -lbbcascades

In addition, newspapers started working after restart.

Everything works now.

p.s. I use Mac OS X Lion.

Tags: BlackBerry Developers

Similar Questions

  • SSL handshake failed in the BB10 QNX Momentics IDE

    I am trying to connect to a web service that uses the SSL protocol. I work with Blackberry 10 in C++ with the QNX Momentics IDE of. The connection that I am doing is this:

    URL: 'https://movilapi...'.

    Code:

    networkAccessManager = new QNetworkAccessManager(this);
        bool res = connect(networkAccessManager, SIGNAL(finished(QNetworkReply*)),
                this, SLOT(requestFinished(QNetworkReply*)));
    
        Q_ASSERT(res);
        Q_UNUSED(res);
    
        QNetworkRequest request = QNetworkRequest(QUrl(url));
        request.setRawHeader("User-Agent", "bb-phone/20120910");
        request.setRawHeader("Content-Type", "application/json");
        request.setRawHeader("Content-Length", postDataSize);
    
        QSslConfiguration sslConfig = request.sslConfiguration();
        sslConfig.setPeerVerifyMode(QSslSocket::VerifyNone);
        sslConfig.setProtocol(QSsl::TlsV1);
        request.setSslConfiguration(sslConfig);
    
            networkAccessManager->post(request, outData);
    

    I still get the same error, regardless of the service which I try to reach. The answer is: SSL handshake failed

    Please help, I have searched for hours without success. Thank you.

    After getting in contact with the RIM a little personal on this issue, we discovered that the TLS/SSL server does not tolerate some extensions, so with the following code of Qt to turn off extensions, the connection was properly made over https:

    QSslConfiguration cfg(request.sslConfiguration());
    cfg.setSslOption(QSsl::SslOptionDisableSessionTickets, true);
    request.setSslConfiguration(cfg);
    

    I want to make special mention of the Department development of applications of Research In Motion for the attention and effort invested on this issue until we finally got the right way to go.

    Here is the code to connect to the case wherever everyone faces this need:

    networkAccessManager = new QNetworkAccessManager(this);
    bool res = connect(networkAccessManager, SIGNAL(finished(QNetworkReply*)),
                this, SLOT(requestFinished(QNetworkReply*)));
    QNetworkRequest request = QNetworkRequest(QUrl(url));
    request.setRawHeader("User-Agent", "BB_PHONE/20120926");
    request.setRawHeader("Content-Type", "application/json");
    request.setRawHeader("Content-Length", postDataSize);
    
    QSslConfiguration sslConfig = request.sslConfiguration();
    sslConfig.setPeerVerifyMode(QSslSocket::VerifyNone);
    sslConfig.setPeerVerifyDepth(1);
    sslConfig.setProtocol(QSsl::TlsV1);
    sslConfig.setSslOption(QSsl::SslOptionDisableSessionTickets, true);
    
    request.setSslConfiguration(sslConfig);
    networkAccessManager->post(request, outData);
    
  • Clean install QNX Momentics IDE but no. SDK can be found.

    I unstall the old version, delete the folder and install the QNX Momentics IDE in the default directory;

    When I try to create a workspce, it appears without SDK is located. Install a software development kit to enable the QNX Momentics features.

    Anyone has the same problem?

    Found the problem

    in the windows--> the Blackberry SDK native short cut tap

    C:\bbndk\ide\win32\x86\eclipse\qde.exe

    To take

    C:\bbndk\bbndk.bat (bbndk_admin.bat)

    Then the problem is resolved.

  • Pretty print Qt containers when debugging QNX Momentics IDE

    Hi all

    I wonder if anyone knows how to display the containers in a human readable way under debugging Qt?

    So, IE if I str ("hello") QString under debug I want to see 'Hello' as the value of str instead of lots of pointers

    Thank you

    Philippe

    Yes, you can have the debugger QNX Momentics IDE show the string in the window of variables properly.

    Directions for use:

    Window-> Preferences-> C / C++-> debug-> GDB and make sure that "pretty printing" is enabled

    Make a file called .gdbinit in the folder root of your project and put this:

    Python
    import sys
    sys. Path.Insert (0, '.')
    of qt4 import register_qt4_printers
    register_qt4_printers (no)
    end

    Then copy the qt4.py file from: https://projects.kde.org/projects/extragear/kdevelop/kdevelop/repository/revisions/master/changes/de...

    Place this file in the same working directory (the directory of the project).  Or you can put somewhere else and replace the "." in "sys.path.insert (0, '.').  with the folder that contains the qt4.py

    Next time you run the debugger, it should show the QString.

    If you have any problems (it does not), you can see the gdb trace console and the gdb console (try: source .gdbinit) to see the errors.

    I still have to do with the dinkum STL.   I just started...  PM me if you want that the instructions once I'm done...

    p.s. Thanks to the kdevelop team who made this python module.

    Edit: removed game print pretty line in .gdbinit.  correctly implemented by the ide from qnx.

  • If register with RIM signing do not work correctly in QNX Momentics IDE®

    Hello

    I reveiced files of the SJC. ® For QNX Momentics IDE, I open the preferences-> BlackBerry Tablet OS-> signature - > save.

    I complete the form with the SJC, pine files and passwords. When I submit the form, everything is ok and I receive an email to confirm that I am registered.

    But the problem is when I restart QNX Momentics IDE®, BlackBerry Tablet OS->-> RIM signing authority signature it says "saved: No.

    If I try to record again, QNX Momentics IDE® say that I'me is already registered, and I need to contact RIM to add another user (I don't want to add another user).

    Someone had the same problem? How to fix this?

    Best regards

    System Specs:

    Windows 7 32 bit under parallels on Mac OS x 10.6.8 6.0.12090

    ® For QNX Momentics IDE for BlackBerry® native SDK for Tablet OS Version: 1.0.0 Build id: 201110112127

    There is a bug in NDK 1.0 with localized Windows versions and the signature. This bug has been fixed in NDK 2.0, which should be published very soon. You can also use the beta version 3 If you can't wait for the release of the NDK 2.0 GA.

    Unfortunately, you will need to ask new SJC files and resave.

  • Build the project fails on QNX momentics IDE

    Software: Native SDK 2.0 beta3 QNX momentics IDE

    Problem: after press build project, no file bar.

    Have tried these methods:
    a.Restart pc and playbook on failure
    b on blackberry desktop software fail
    invalid c.Check os version
    d.REINSTALL blackberry sdk native-beta3 fail

    Does anyone know how to solve the problem?

    Thank you for your attention.

    Generation of a project does not generate a BAR file.

    Launch (run or debug) an application generates a BAR file development mode.

    Export Release Build Wizard generates an output mode BAR file.

    HTH,

    Christian

  • QNX Momentics IDE connection to the server at startup?

    Whenever I run my QNX Momentics IDE it try to connect to a server on port 4455. Anyone know what it is? It doesn't seem to be only a COMPLETE domain name attached to the IP address that is what worries me.

    Native development kit, reaching out to the targets of BlackBerry (PlayBook, Dev Alpha or Simulator), you have set up to see if they are available.

  • Need help to add the libcurl library in QNX momentics IDE

    Hello

    I am new to the native SDK development for Tablet OS, I'm working on an application that were a part of the user interface, we need to manage the HTTP connections and also need to run in the background.

    I tried, but was unable to download the library libcurl to handle HTTP connections. Can someone give me the link to download the file to library for QNX momentics IDE and a source code example of the use of this library for manipulation of HTTP requests analysis JSON ?

    Also, I need to find a way to run my application in the background. So I'm looking for something to do.

    Thanks in advance .

    libcurl is integrated in the NDK. Simply import the headers in the file "curl" such as . Be sure to refer to the library (curl) in your project.

  • QNX Momentics IDE design mode

    Hi people - I just started development in QNX Momentics IDE and I, no matter what I try, doesn't happen in "design" mode  It is disabled, even when training following the exact steps in the video tutorials on web Blackberry based on. Are there cases where the IDE would be denied the opportunity to 'design' when you view a QML file?

    Check the settings of the editor on BlackBerry/QML, uncheck the box "disable", re - open a qml file. It must run the compatibility check.

  • Printing on console in QNX Momentics IDE?

    How can I actually go about printing to the console of one of my cpp files?  All I'm doing is printing data, so that I know what I'm working with and then proceed accordingly.

    When working on Android apps in Eclipse, all I had to do was type System.out.println (); and fill it with any object or variable and it would spit out.  I can't find something similar here.

    Thanks in advance!

    qDebug() and similar forms of output should go to the output of "slog2" for the application, which wrote a special area of RAM disk file wherever it is controllable Momentics using some feature view log (you'll have to google or search the Forum... I don't use it) or by connecting to the device with SSH and using 'slog2info w' or a similar form of this command.

    An output is not redirected it should end by in the output/log logs file, which is written in the actual flash file system and thus a target less desirable slog2 and you can also view that via the IDE or via SSH, in this case using the 'cat', or even 'tail-f newspaper/Journal"only after changing the directory current for sandbox of your app folder.

  • Problem with compiling under QNX Momentics IDE

    Hello! I developed a small application based on Qt for BlackBerry Playbook.

    When I try to build my app in debug mode of Simulator, NDK error reports:

    CC: cannot specify - P, - C, - E, - c or S - with o and multiple files

    How can I fix this error?

    You do not have a typing error:

    -DQ_MOC_OUTPUT_REVISION = 63
    

    If it should not be:

    -DQ_MOC_OUTPUT_REVISION=63
    
  • "Could not connect to internet" Blackberry SDK (QNX Momentics IDE)

    Hello

    I'm looking to do a development of blackberry, but I can't get the SDK to update.  I get the message "Could not connect to" internet on the canvas when I start the SDK

    I checked my firewall settings and I added manually to the qde.exe in the exceptions, but still no luck.  Has anyone encountered this before? I tried to go to: help-> update API levels and I get: "cannot download SDK information."  When I checked the error log, I noticed this message: java.net.ConnectException: Connection timed out: connect

    My OS:

    Windows 7 - Service Pack 1

    8 GB Ram

    I had to enter the proxy information in the Preferences tab (Window - Preferences, then general-> network connections).  After you restart the SDK it worked!

  • Porting Qt for Qnx Momentics application

    Hey, I wanted to know if its possible to transfer my Qt to the Qnx Momentics IDE application. I search everywhere to search to find the documentation or instuctions on how but cannot find information porting of Qt Creator

    Basically, that's what I

    I carried the Qt for Qt Creator application and have successfully got running on the Alpha of Dev

    Now I want to:

    1 import / move more Qt App to the IDE from Qnx

    2. remove the Qt INTERFACE and rebuild the App for UI in the cascades while keeping the back end qt

    So can I keep the rear end of Qt and rebuild this Interface in waterfalls?

    If for anoyone can point me to the documentation on how I can move the porject in Qnx Momentics.

    NOTE: Im fully aware im not able to mix code UI/Interface Qt with waterfalls. I have to choose one or the other. in this case, I want to replace the user of Qt interface with waterfalls

    Thanks in adavnce, happy coding and porting

    Yes, QDE is QNX Momentics IDE. I think it is easier to move their inverse:

    Create a new project in Momentics, and then move the source one of the old project files in new (with the exception of the classes related to the GUI). And then recreate the GUI.

    On QT Creator / waterfalls:

    To set up QT Creator, follow the steps on the wiki:

    http://Qt-project.org/wiki/setting-up-Qt-Creator-for-BlackBerry-and-QNX

    I think you have already done this.

    Then create a Qt Quick project (wiki describes this step).

    After that remove all Qt Quick related features of the project and add libraries of stunts in the .pro file. This is how my project file looks like this:

    TEMPLATE = app
    
    # Please do not modify the following line.
    #include(qmlapplicationviewer/qmlapplicationviewer.pri)
    
    # Additional import path used to resolve QML modules in Creator's code model
    QML_IMPORT_PATH =
    
    QT += declarative script xmlpatterns xml sql network svg
    
    INCLUDEPATH += src
    
    # Workaround for autocompletion bug
    INCLUDEPATH += include include/cpp include/qt4/QtCore include/qt4/QtSql include/qt4/QtNetwork
    
    LIBS += -lbbcascades -lbbcascadesmultimedia -lbbdevice -lbbplatform -lbbpim -lbbdata -lbbcascadespickers -lbbsystem -lbbmultimedia
    
    # The .cpp file which was generated for your project. Feel free to hack it.
    SOURCES += main.cpp \
       ...other cpp files...
    
    OTHER_FILES += bar-descriptor.xml \
        qml/main.qml
    
    HEADERS += \
       ...header files...
    

    Then update file bar - descriptor.xml. You can use the Momentics generated file as a template. Here's my bar - descriptor.xml (replace application_name and paths):

    
    http://www.qnx.com/schemas/application/1.0">
        com.mydomain
        Application Name
        1.0.0
        Application Description
        
            none
            false
            true
            portrait
        
        
        
        
        run_native
        MyApplication
        qml
        assets
        
            assets/images/icons/applicationIcon114.png
        
        
           assets/images/splash/portrait768x1280.jpg
           assets/images/splash/portrait720x1280.jpg
        
    
    

    After this attempt to create and deploy a simple project of Cascades. If everything is ok, start moving your old project files (file-by-file).

    Important:

    AutoComplete does not work initially. All stunts and Qt classes will be highlighted in red.

    Wiki describes some workaround solutions. The one I use is create a symbolic link in your project file to point to the ndk includes the folder:

    lrwxr-xr-x @ staff 1 user 55 15 Dec 19:23 include->/Applications/bbndk/target_10_0_9_1673/qnx6/usr/include

    Then, add the following line to the .pro file:

    INCLUDEPATH += include include/cpp include/qt4/QtCore include/qt4/QtSql include/qt4/QtNetwork
    

    Autocompletion should work after that. I use Qt Creator on MacOS, this may not apply to the version of Windows.

  • Momentics IDE installation problems

    I tried today to use QNX Momentics IDE 10.2.0.115 on OS X 10.9 and I get FMV related issues.

    Here is this that java-version on my machine says:

    java version "1.7.0_45"
    Java(TM) SE Runtime Environment (build 1.7.0_45-b18)
    Java HotSpot(TM) 64-Bit Server VM (build 24.45-b08, mixed mode)
    

    And here's what error I get when I run qde:

    2013-10-29 20:53:31.941 qde[2082:507] Error loading /Library/Java/JavaVirtualMachines/jdk1.7.0_45.jdk/Contents/MacOS/libjli.dylib:  dlopen(/Library/Java/JavaVirtualMachines/jdk1.7.0_45.jdk/Contents/MacOS/libjli.dylib, 265): no suitable image found.  Did find:
    /Library/Java/JavaVirtualMachines/jdk1.7.0_45.jdk/Contents/MacOS/libjli.dylib: mach-o, but wrong architecture
    

    It looks like so there is an inconsistency that the IDE expects 32-bit JVM so that my computer is the 64 bit one.

    We should expect the IDE to run on a 64-bit JVM?

    After more frustrating google search I came to the conclusion that my JVM was strictly 64 bit and that the IDE runs only on 32-bit.

    Initially, I downloaded the Oracle's JVM and apparently it comes in 64-bit only. I then installed the Apple Java from http://support.apple.com/kb/DL1572 and now I am running

  • Momentics problem: "requires" com.qnx.tools.ide.sdk.indexer [132.0.0,133.0.0) ".

    I have a recent Momentics and when I go to "Install New Software" "All available Sites" and "Index of native SDK for BlackBerry 10" it says there's an update for the BlackBerry SDK native 10.2 132.0.0 but when I try to update I get an error: "cannot complete the installation because one or more required items be found.» Software being installed: BlackBerry SDK native 10.2 132.0.0 (blackberry_native_sdk_index.10.2.0.1155.group 132.0.0) missing requirement: BlackBerry SDK native 10.2 requires 132.0.0 (blackberry_native_sdk_index.10.2.0.1155.group 132.0.0) ' com.qnx.tools.ide.sdk.indexer [132.0.0,133.0.0) "' but it is not found" I search my computer and it look as if there is a newer version of this index of the file it mentions.] Is there something I can do? Also another problem: when I go to 'Help' "Check for Updates" it says there are all sorts of resources available. I'm trying to update and it seems to do and then it asks to restart, but they are always there to be updated? What is going on?

    Can you try to install the last 10.3.1 beta SDK BlackBerry?  It can include the missing element.  I don't know what is missing from this error.  The steps to upgrade to 10.3.1 beta can be found here: https://developer.blackberry.com/native/downloads/releasenotes/

Maybe you are looking for

  • Compatibility with Windows 10

    I have a late 2008 Mac BookPro and I run Windows 7 (via Boot Camp). Windows always tells me to update Windows 10, but I thought in the past that informed me that my Mac model was not compatible with Windows 10. Is this always true?

  • Where is the next pages drop-down list?

    Next to the buttons to navigate forward or backward between pages viewed, it used to be that a menu drop-down list but this disappeared. This means that if I want to go back to a site I visited five pages ago I must now press the back button five tim

  • just storage on disk of the file please

    I downloaded the executable disk storage driver but don't really want to install it on my dell. I need the driver for my HP laptop files I am trying to revive. I put just the driver on a USB key files to see if I can revive the drive on the HP comput

  • Impossible to install factory default on Equium L40 recovery system

    I'm trying to run a system recovery. Restart by pressing F8, I click on repair computer, select keyboard as UK and press ok. He then asks for butnit administrator password allow me to enter my password. He said: "your account has been disabled. See y

  • Need help in providing an interface for drive HARD Toshiba MK2035GSS

    Hello, is there anyone who can (and want) to help by providing an interface (e-card) or a functional HDD full, with following specifications: Toshiba mk2035gsshdd2a30 zw01 s c The part number is irrelevant, because under the same code p/n, Toshiba di