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

Tags: BlackBerry Developers

Similar Questions

  • 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.

  • 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.

  • 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

  • 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.

  • 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.

  • Trouble with application sining in momentics ide

    Hello! I develop 10.2 native sdk application. When I try to create the Release version and sign with my certificate of momentics ide shows me the following errors:

    "Error: Code signing request failed because [access_shared] entry-Point-System-equity is not allowed."

    and

    "Error: Code signing request failed because [access_internet] entry-Point-System-equity is not allowed."

    But it is part of the official documentation of development BB:

    Element value prompted limited since

    access_shared Yes NO. BlackBerry 10.0.0

    Element value prompted limited since

    access_internet NO. NO. BlackBerry 10.0.0

    This means that permissions app 'access_shared' and 'access_internet' are available from 10.0.0 API level and above.

    My bar file permissions - descriptor.xml:

    run_native
        access_shared
        access_internet

    How can I fix this error?

    Thank you.

    Hoc is in votis.

    The current syntax for the authorization of the app should be without the system attribute, that is to say:

    access_shared
        access_internet

    is a good way.

  • 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.

  • Problem with compiling QT application

    Hi people,

    Palybook is in general a nice tab, my wife a QA test lead on our society and she's like to test the new application and material, but after 1.5 hours of research, I look at and test drive android is crashes WOW... real QA. QNX works very well.

    But, I'm a developer, and I have a strange problem with QT env for Simulator playbook.

    I use manual http://wiki.qt-project.org/QNX to build qt for qnx env.

    Any compilation fine and installed in the directory prefix as well.

    Then I prepare simple program ' Hello world ' to test whether anything can build successfully.

    My system is gentoo with kernel 3.2.12

    my project as:

    /home/miha/playbook_simulator_2_0/qt/x86/bin/qmake -project
    
    which qcc
    /home/miha/playbook_simulator_2_0/bbndk-2.0/host/linux/x86/usr/bin/qcc
    
    which make
    /home/miha/playbook_simulator_2_0/bbndk-2.0/host/linux/x86/usr/bin/make
    

    chain of QCC

    qcc -Vgcc_ntox86 -c -fstack-protector -fstack-protector-all -Wno-psabi -O2 -Wall -W -D_REENTRANT -DQ_OS_BLACKBERRY -DQT_NO_DEBUG -DQT_GUI_LIB -DQT_CORE_LIB -DQT_SHARED -I../../x86/mkspecs/unsupported/blackberry-x86-qcc -I. -I../../x86/include/QtCore -I../../x86/include/QtGui -I../../x86/include -I. -I. -I../../../bbndk-2.0/target/qnx6/usr/include -I../../../bbndk-2.0/target/qnx6/usr/include/freetype2 -o main.o main.c
    

    QNX variable:

    QNX_CONFIGURATION=/home/miha/.rim/bbndk
    QNX_TARGET=/home/miha/playbook_simulator_2_0/bbndk-2.0/target/qnx6
    QNX_HOST=/home/miha/playbook_simulator_2_0/bbndk-2.0/host/linux/x86
    

    and have a strange output in the console: (~ 2700 output lines)

    In file included from ../../x86/include/QtCore/qobjectdefs.h:45,                 from ../../x86/include/QtCore/qobject.h:47,                 from ../../x86/include/QtCore/qcoreapplication.h:45,                 from ../../x86/include/QtGui/qapplication.h:45,                 from ../../x86/include/QtGui/QApplication:1,                 from main.c:1:../../x86/include/QtCore/qnamespace.h:54: warning: return type defaults to 'int'../../x86/include/QtCore/qnamespace.h: In function 'QT_MODULE':../../x86/include/QtCore/qnamespace.h:54: error: expected declaration specifiers before 'namespace'../../x86/include/QtCore/qnamespace.h:1799: error: expected declaration specifiers before 'Q_DECLARE_OPERATORS_FOR_FLAGS'../../x86/include/QtCore/qnamespace.h:1820: error: expected declaration specifiers before 'class'../../x86/include/QtCore/qnamespace.h:1875: error: expected declaration specifiers before ';' tokenIn file included from ../../x86/include/QtCore/qobject.h:47,                 from ../../x86/include/QtCore/qcoreapplication.h:45,                 from ../../x86/include/QtGui/qapplication.h:45,                 from ../../x86/include/QtGui/QApplication:1,                 from main.c:1:../../x86/include/QtCore/qobjectdefs.h:51: error: expected declaration specifiers before 'QT_MODULE'../../x86/include/QtCore/qobjectdefs.h:55: error: expected declaration specifiers before 'class'../../x86/include/QtCore/qobjectdefs.h:143: error: expected declaration specifiers before 'template'../../x86/include/QtCore/qobjectdefs.h:146: error: expected declaration specifiers before 'template'../../x86/include/QtCore/qobjectdefs.h:217: error: expected declaration specifiers before 'Q_CORE_EXPORT'
    
    . . . . . . . . . .
    

    Can someone help me with this? or someone knows what is happening and how to fix this strange situation?

    Mike.

    Have you tried to compile it in Qt Creator?

    And did you use Qt download on: http://openbbnews.wordpress.com/2012/03/29/qt-update-2/

    There is no real need to compile by yourself

    SRY, I could not help you directly, cause I use Windows XP to compile for Playbook. The Linux installer does not work with my 32-bit Kubuntu.

    [edit]

    found this:

    http://StackOverflow.com/questions/7512433/error-expected-declaration-specifiers-before-namespace

    [/ Edit]

  • 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.

  • Problems with games under Windows 7

    Someone knows a problem to start Freecell or Solitare under Windows 7? First of all, I fell into it when I bought a new computer (HP Pavilion Elite). When you play games the screen starts blinking annoying way when the mouse is turned on. I returned the computer at Best Buy and the Geek Squad confirmed my problem using their mouse and the monitor. They exchanged the computer for a computer to identicle who then developed similar problems. This was again confirmed by the Geek Squad. They exchanged this computer for an Asus CG series which now shows similar problems in slightly less (though still annoying). If these simple games wasn't buying intention, they revealed a problem that appears to me as being caused by Windows 7. I had years of experience with these games under Windows Vista with no problems at all.

    Hello
     
    I recommend you to update the display adapter drivers and see if it makes a difference. You must be logged on as administrator to perform these steps. 
     
    1. open Device Manager by clicking the Start button, click on the Control Panel, clicking system and Maintenance, and then clicking Device Manager. If you are prompted for an administrator password or a confirmation, type the password or provide confirmation.
    2. in Device Manager, locate the graphics card and then double-click the device name.
    3. click Driver tab, then click on uninstall the driver and follow the instructions.
     
    Restart the computer and let the computer install the generic drivers.
     
    Now, try to follow the link provided to update a hardware driver that is not working properly and check the question below.
     
     
    If the problem persists then you need to download the latest drivers for card viedeo and install it successfully.
     
    To get the latest drivers, you must contact the manufacturer of your hardware.
     
    If you still experience the problem, then you can create a new user profile.
     
    Steps to create a new user account:
     
    Open user accounts by clicking the Start button, clicking Control Panel, clicking user accounts and family safety, then clicking on user accounts.
    Click on manage another account. If you are prompted for an administrator password or a confirmation, type the password or provide confirmation.
     
    Click on create a new account.
    Type the name you want to assign to the user account, click an account type, and then click on create an account.
    Now search for the question.
     
    For your reference:
     
    Thank you, and in what concerns:
    I. Suuresh Kumar-Microsoft Support.
    Visit our Microsoft answers feedback Forum and let us know what you think.
  • 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 SQLDeveloper?

    I noticed sometimes when I compile a PL/SQL package in SQLDeveloper (5440 v1.5.1 build) it tells me that the package was compiled successfully, even if there are errors in the package. Disconnect and reconnect seem to allow me to review the errors, but when I click on "compile" it tells me it is successful and shows as valid.

    Any ideas why it does this? The problem seemed to go away by himself before, but he doesn't want to go now, I even restarted my computer and it always tells me that everything's fine and dandy...

    I had this same problem awhile back.

    (Still do, but I've found a workaround.)  :))

    Do you get many warnings during compilation, but no error?

    If so, because it shows only the first X problems and if the X first issues are not errors and warnings, it won't show you errors. Apparently, it's a fault of the database.

    I found two workaround solutions.

    1. fix the reasons that cause the warnings is displayed. If you do this, eventually the errors will show.

    Unfortunately for plan #1 above, there is another flaw in the database that returns incorrect alerts. If so, move to the #2 plan.

    2. There is a setting that disables the feature that displays warnings from the compiler. If you do this, you won't see any warnings (even those you should be set!), but at least you will be able to see the mistakes.

    Hope that helps and that you have not found a new default instead!

Maybe you are looking for

  • C50 - A satellite 19 t - no sound - need to win 10 drivers

    No sound from my laptop Satellite 19 C50 - A t and now I want to download the driver for Windows 10 How can it help me?

  • Spigot of Malware

    Hi all I was pretty sure that MacBook Pro didn't need of any antivirus software for the last 8 months. But yesterday I was taken up by seeing tap malware to the macbook. So I installed Sophos AV in my MacBook Pro. He allowed the malware soon. Sophos

  • How to connect my iPhone via bluetooth with the mcd289 hi-fi sony

    Hi all I feel like this is a stupid question, but I can't for the life of understand me. I have an iPhone running iOS 9.1 5. I just bought a Sony CMT - X5CDB hi-fi Mcd289. It has built in bluetooth. I followed the instructions to associate my phone a

  • After you install an audio convert I have no volume and it says that my computer was not installed

    I installed an audio converter after that my computer said that I needed now, I have no volume. I've been bad shot I have no volume now installed in my computer, I don't have the software that came with it I don't know if they gave it to me or not. h

  • HP Solution Center does not properly

    When I start Solution Cnter, only the frame and loading, no text buttons and the buttons are not active. Running Win7 Pro 64 bit. I have uninstall all HP software and everything reinstalled. Printer and the computer is connected to the network. Print