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]

Tags: BlackBerry Developers

Similar Questions

  • iOS 10 problems with the Mail application

    Dear Apple and community support,

    Here's my problem:

    I have upgraded to iOS 10 on my iPhone 5s this afternoon (September 13), and now I'm not able to open e-mail - Yahoo!, and Gmail. I can receive emails, I'm not able to view the body of these emails. When I press on them, all I see is a blank white page. I can't answer emails either. I can only their flag or remove them. However, I am able to compose new e-mail messages.

    Here are the steps that I've taken to try to solve my problem:

    1. Restarted my phone
    2. Remove and re-add my Mail accounts
    3. Made a backup and a restore full while that plugged into my laptop with the latest version of iTunes.

    I should be grateful if you would help or more information on this issue.

    Thank you

    Emily

    I also have problems with the Mail application.  On my iphone, ipad, and Mac Pro.  I have several addresses, a MSN, another on Go Daddy and Gmail.  I have various weird problems with threads and every day he re-charge my emails, like if I have never read before.  Something is really problematic with Mail.

    Can the people of APPLE, you help me?

  • Problem with downloading of applications and updates

    Hello

    I get the error when you try to download certain applications from the Mac App Store.

    And when I try to update applications.

    Here is a log from the console:

    storedownloadd [493]: * the Assertion failure in French-[CheckPreflightOperation verifyDistributionAtURL:allowsDevSign:allowsUnsigned:osVersionToBeInstalled: err or: distributionController:], /Library/Caches/com.apple.xbs/Sources/Commerce/Commerce-462.9/CommerceKit/Check PreflightOperation.m:291

    I have a month old Macbook Pro. I have no problem with downloading the applications from my old Macbook on the same network.

    What should I do?

    Hello..

    Start Safe Mode removes the system caches that can help.

    Upper left corner of your screen, click on the Apple  > Shut Down.

    After your Mac stops, wait 10 seconds, then press the power button.

    As soon as you hear the startup tone, hold down the SHIFT key. You must press the SHIFT key as soon as possible once you hear the startup tone, but not before.

    Release the SHIFT key when you see the gray Apple logo and progress indicator.

    Once you are in Mode without failure, return to the menu Apple . In the drop-down list, click: reboot


    Then try the App Store.

    On Safe Mode

  • Silverlight works do not mistake 'here's a problem with my Silverlight application

    Hello

    I'm fighting for use Sky go as he continues to tell me that there is a problem with my Silverlight application. It allows to work properly and I tried to use the difficulty winodws me page and to uninstall and reinstall with reboot between however it still does not. I also checked that it works as an add on.

    Any other advice?

    Thank you

    Claire

    then try to ask for help here:

    http://helpforum.sky.com/

    or

    http://help.sky.com/articles?product=sky-go

    or

    https://contactus.sky.com/UK

  • problems with the adobe application manager

    I have problems with the adobe Application Manager.

    Please see the links below.

    Hope this will help you.

    Kind regards

    Hervé Khare

  • I have a problem with creative cloud applications is not to be downloaded or updated date on my i mac, current applications, I still have work. I uninstalled the cc application and re-installed but without success, in the apps tab there is no error code o

    I have a problem with creative cloud applications is not to be downloaded or updated date on my i mac, current applications, I still have work. I uninstalled the cc application and re-installed but without success, on the applications tab there is no code error only saying download error out area allowing you to charge applications call does not work... any suggestions?

    Hi James,

    Please follow the article: CC help | Download error in the applications tab of Creative Cloud Desktop Application to get this fixed number.

    Please let us know any questions.

    Thank you

    Yann Arora

  • problem with update of applications

    Hello, I had a problem to update my applications this screenshot above is always like that there not is finished. Can someone help me with this problem?

    Sign out of your Apple ID: settings > iTunes and App Store > Apple ID

    Force reboot

    Reconnect

  • Firefox has only display problems in the upper left region of only my Dell U3011 monitor; the monitor does not have these problems with any other application

    Some parts of the Firefox window are translucent, allowing the image of the desktop to show through. These regions are anything but great internet site central image which behaves normally. Unless the desktop is completely black this problem makes reading the tabs, address bar and the bookmark are difficult if not impossible. I encounter this problem only on my new Dell U3011 monitor. Firefox is the only application that has this issue on the Dell monitor. The monitor built into the laptop that animates the Dell monitor does not exhibit this problem. The laptop is a Lenovo W540 running Windows 7 64-bit. Thank you very much for your help. Steve Schupbach

    Hello stevesch

    first see : problem with Firefox going transparent troubleshoot and find a solution

    then with patience to see:

    questions/940393

    questions/940389

    questions/940374

    questions/940377

    questions/940384

    questions/940395

    Thank you

  • APEX 5 - problem with computations in applications.

    Hi experts,

    I am facing some problems with calculations and expressions too.

    I have two EPS. Dev and Prod (4.2). I upgraded to 5.0 apex in the dev environment.

    After a few don't test with applications no DEV I have problem with computation - nothing is changed in both of the approx.

    For example: I use point computation to only display the sysdate value - 10 after a label. (some info default filtering).

    On prod ENV everything works OK - value appears when I reference by + ITEM.

    This same article on DEV invariably shows nothing. There is no error in the LOG.

    PROD:

    2015-05-26_131505.png

    2015-05-26_131613.png

    TEST

    2015-05-26_131541.png

    2015-05-26_131632.png

    Is there a difference any to save the session state for items? Before that the regions are displayed?

    I have same problem when I want to use certain conditions to show some ITEMS/REGIONS/DA... where some ITEM_VALUE is used.

    I tried the same thing on apex.oracle.com.

    For EXAMPLE:

    Some button should only appear if a page element value is not zero (: P_ITEM is not null). (I tried DA or simple condition - screenshot below)

    He worked in APEX 4.2 but not in 5.0 for me.

    If I use PL/SQL Expression and type "1 = 1", everything works. But I need the old feature where I can use the comparison of point values page.

    This does not work for me in the Page load DA. It has never triggered.

    2015-05-26_132610.png

    I work with APEX about 6 years, but I have never seen this.

    Concerning

    J

    Hello

    I don't know if I understand your DA it checks the P1_TEST "is not zero", but this element of the page is set anywhere on your page, then this condition DA won't be ever true. For your calculation, the calculated value is correctly displayed next to your agenda of the P1_DATE_FROM page. I'll have a look at what is happening with 'SQL Expression. But please be aware that this is just a warning in the Page Designer, you will still be able to use "SQL Expression".

    Concerning

    Patrick

  • Creative sync cloud app. problem with the web application

    Hello

    I have some problems with the synchronization of files in the creative Cloud Files folder on my computer (I use a Mac) and the Creative Cloud Web App. practically the files I have on my computer folder do not appear on the web (and I can't create links of sharing for them) and vice versa. We have a team account and we can exchange files between us, but nothing appears on the web application. The problem applies to all members of the team.

    There is a problem with the service or it could be a local problem?

    Thank you

    Florin

    @ursuss - what you see in the creative Cloud Files folder on your computer must match what you see on the site Active CC to https://assets.adobe.com/files.

    Use the collector for the Adobe Log tool to https://helpx.adobe.com/creative-cloud/kb/cc-log-collector.html and newspapers as well as the explanation of the problem by e-mail at [email protected]. Please provide additional information indicated by Warner Harress in this Adobe forum post https://forums.adobe.com/message/8385752#8385752.

  • Problem with the license application

    Hello

    I have a request to the AppWorld, currently in a project, and I had already planned to use the license model to try to buy &.

    Now I want to change that for the purchase, but the AppWorld won't let me. Whenever I have change the licensing model, and save my changes I opens the page for editing once again, and what do I see here? The license model is always try to buy &. I've changed everything, rest has changed, but not the model license.

    What is the problem with AppWorld?

    Ah, I see. Well, this actually a documentation bug or a bug in their implementation of these changes.

    Whatever it is, if you don't have any rejection of worry, you can always create a new product and see if you can see the license type to what you want this time. You can change the name on the old, or otherwise change to ensure that it does not interfere with the new (although as far as I know, the only problem would be that you can not have two valid products with the same name, and that won't be a problem for you here).

  • Problem with the mail application after upgrading to El Capitan

    Hello

    I've recently updated to snow leopard at el capitan on a 2009 macbook pro.

    I can't send e-mail from the mail since the upgrade application.

    Incoming mail server address is grayed out in the settings preference of apps under 'Account Information'. It reads "p02 - imap.mail.me.com. My full username iCloud is also grayed out. It doesn't seem to be a way to fix this. I believe that the correct server address should be "imap.mail.me.com".

    The outgoing server address is "stmp.mail.me.com".

    ICloud Drive switch makes no difference. I also tried to remove the iCloud account on the 'Accounts' page under preferences app mail and setting up the account again. Also makes no difference.

    I can send emails with mail on my iPhone application and receive emails on my mac and iPhone.

    Any suggestions on how to solve this problem would be greatly appreciated.

    See you soon

    You go to System Preferences-> Internet accounts to fix the details of the server. These things are more fixed inside the Mail application. It may seem strange, but it makes sense, since the accounts are used for email and other services. Now, is there a central location for this.

  • Problems with a console application

    Hello

    I developed an application in LabWindows. Now, I want to link it with the console. I don't know how I can call my *.exe data and files, the program needs. When I run the program there is a problem. I generate a signal for example 10 seconds, but in reality, I generate only 550 MS so the conclusion is, that the program ends before should really finish.

    I have no idea whence this behavior. I tried to turn the when to stop, but the program has not competed in any of my breakpoints.

    So I think that I have a failure in the main menu. Subsequently, you can see the test how I tried to run. (Here, I can switch my program)

    int main (int argc, char * argv [])
    {
    // **********************************************************************************
    Calls the interface
    // **********************************************************************************

    If (InitCVIRTE (0, argv, 0) == 0)
    Returns - 1;    / * memory * /.
    If ((PanelHandle = LoadPanel (0, "AWG.uir", MainPanel)))<>
    Returns - 1;
    argc = 2;

    argv [1] = "test.uir";
    if(argc == 1)
    {
    DisplayPanel (PanelHandle);
    RunUserInterface ();
    DiscardPanel (PanelHandle);
    return 0;
    }
    else if (argc > 1)
    {
    Load the file, the program must

    If (RecallPanelState (PanelHandle, argv [1], 0))< >
    MessagePopup ("error", "File could not be loaded!");

    Gets a value that is important for the program
    GetCtrlVal (PanelHandle, MainPanel_TREE, & g_Mode);

    Starts the program
    ChooseMode (MainPanelHandle);
    }
    }

    My Messenger runs into the ChooseMode and the program starts. It extends to all the funktion and I see the small part of the signal that I described above.

    Made a mistake when I wrote this part or is there a lack of part for my correct program execution?

    Best regards

    If you have a user interface, why not to call ProcessSystemEvents ()?

    I imagine that you view settings in the user interface, and other items on the delivery of the program, as well as value of the State on what he does and bmaybe a progress bar or a similar method to inform the user of the program activity. At the end of the program, a function may call QuitUserInterface to close the program.

  • Problem with stand-alone application

    Hello. It's my first time here in NOR. Need for support from the masters. This is the situation.

    Main problem: image display

    When I try to do a stand-alone application, the "image display" vi will not work. I'm missing DLL here? Nothing seems wrong with the vi or the vision. I can make KING in the external window, etc.

    I also tried to make a simple program that displays a white image using the image Board, but there is still no display.

    I can also ask what dll is required to make a labview program stand alone with vision and imaq.

    Hello

    To deploy an application that uses the functions of the Vision Development Module, you need the runtime of the Vision and a license of execution for this on the deployment computer. If you use the NO-IMAQdx driver for use with firewire and GigE cameras, you also have a license for Acquisition of Vision software on desktop deployment.

    If you do not use the functions of the Vision Development Module or driver OR-IMAQdx, all you would need is the driver OR IMAQ. The Image display control began with NOR-IMAQ 2.6, so make sure that you install a version of NOR-IMAQ that supports the control of display Image and LabVIEW 7.0 on desktop deployment. Please refer to this Web page to check the compatibility of the versions of NOR-IMAQ and LabVIEW: http://digital.ni.com/public.nsf/allkb/6B55FF09D1FBD3108625719600650B7C?OpenDocument .

  • Problem with deploying Qt applications on playbook

    I'm just starting the native BlackBerry development. So the questions can be silly. I'm developing an application that requires a rich user interface. So I googled a bit and found that SDK native BlackBerry tablet OS was support for Qt I downloaded Qt for BlackBerry from github. I created a small window with a Hello World label and a text field. I've deployed it on my playbook. Everything went well but the problem is there's just too much time. Is it normal to take so much time? (like 10-15 minutes) And is there one better alternative to the use of Qt?

    Another thing I would be able to use the basic features of the native user interface using Qt? As recording and playback?

    For BlackBerry 10 there is the waterfall framework integrated into the IDE. Is there something similar for the playbook? Please help me find some answers.

    Hello

    For applications with no qml Qt database, I have these libs in my deployment folder:

    libQtCore.so.4,  libQtNetwork.so.4,  libQtOpenGL.so.4,   libQtSvg.so.4,
    libQtGui.so.4,     libQtXmlPatterns.so.4
    

    For qml applications, I have these:

    libQtCore.so.4,        libQtNetwork.so.4,  libQtSql.so.4,          libQtXml.so.4, libQtDeclarative.so.4,  libQtOpenGL.so.4,   libQtSvg.so.4,
    libQtGui.so.4,          libQtScript.so.4,   libQtXmlPatterns.so.4
    

    There are many examples and tutorials delivered with Qt, but also a wealth of information on the web.

    You can include the header bps file in your Qt application to use the native functions for the playbook and there are some examples here to access sound, etc.

    Good luck!

    Jon

Maybe you are looking for