Discussion Board

Results 1 to 9 of 9
  1. #1
    Registered User theopulus's Avatar
    Join Date
    Jun 2007
    Location
    Spain
    Posts
    18
    I've been doing some tests with the Nokia QT SDK and I'm having some trouble with the utilization of the QT mobility SDK.

    I've used this code:
    Code:
    void MainWindow::on_actionConnect_triggered()
    {
        QNetworkConfigurationManager    manager;
        QNetworkSession                 *session;
    
        const bool canStartIAP = (manager.capabilities() & QNetworkConfigurationManager::CanStartAndStopInterfaces);
            // Is there default access point, use it
        QNetworkConfiguration cfg = manager.defaultConfiguration();
    
        if (!cfg.isValid() || (!canStartIAP && cfg.state() != QNetworkConfiguration::Active)) {
            QMessageBox::information(this, tr("Network"), tr(
                                         "No Access Point found."));
            return;
        }
    
        session = new QNetworkSession(cfg, this);
        session->open();
        session->waitForOpened(-1);
    }
    and I've added this to the .pro file:

    Code:
    QT       += core gui network
    
    CONFIG += mobility
    MOBILITY += systeminfo bearer
    and the error I get is that the file "QtBearerd.lib" cannot be opened when I try to test it with the simulator.

    Any clues?

    Thanks

  2. #2
    Nokia Developer Champion rahulvala's Avatar
    Join Date
    Oct 2008
    Location
    INDIA
    Posts
    2,298
    You have to set the environment to use the Qt mobility API.

    http://wiki.forum.nokia.com/index.ph...t_Mobility_API

    Just check it.

  3. #3
    Registered User theopulus's Avatar
    Join Date
    Jun 2007
    Location
    Spain
    Posts
    18
    Even though I'm using the "Nokia Qt SDK"?? I thought it was already set up...
    Last edited by theopulus; 2010-06-09 at 10:23. Reason: corrected

  4. #4
    Nokia Developer Champion rahulvala's Avatar
    Join Date
    Oct 2008
    Location
    INDIA
    Posts
    2,298
    Using Qt mobility API You can add more module to your Qt package and check the output in the real devices.

    The API available in the mobility are

    Bearer Management
    Contacts
    Publish and Subscribe
    Location
    Messaging
    Multimedia
    Service Framework
    System Information API

    Technology Preview APIs

    Camera
    Sensors
    Versit

    Best regards,

  5. #5
    Registered User theopulus's Avatar
    Join Date
    Jun 2007
    Location
    Spain
    Posts
    18
    Ah, thanks for the info,

    but what I really want to know is if it's needed to set up the Qt Mobility if using the "Nokia Qt SDK Beta", as it has the Qt Mobility already embedded...

    I've just found that Qt Bearerd.lib is not on my system, so I'l take a look around ...

  6. #6
    Registered User theopulus's Avatar
    Join Date
    Jun 2007
    Location
    Spain
    Posts
    18
    Ok, I've just run the SDK Manteinance Tool to see if there is any update available and I've found that there were QT Mobility updates waiting....

    Let's see if it fixes the problem...

  7. #7
    Registered User theopulus's Avatar
    Join Date
    Jun 2007
    Location
    Spain
    Posts
    18
    It didn't :-( Still having the same issue... each time I add bearer to MOBILITY I get this error (regarding QtBearerd.lib) it doesn't happen if I build for the real device, just for the simulator...

  8. #8
    Nokia Developer Champion danhicksbyron's Avatar
    Join Date
    Nov 2009
    Location
    Minnesota, USA
    Posts
    3,209
    Keep in mind that there are different sets of libs for hardware vs simulator. Just because you have one doesn't mean you have the other.

  9. #9
    Registered User theopulus's Avatar
    Join Date
    Jun 2007
    Location
    Spain
    Posts
    18
    Yeah, I've just read that builds made for the Simulator use Qt 4.7 while symbian builds are on 4.6

    Nokia Qt SDK is a Beta... I should already know it...

Similar Threads

  1. Replies: 2
    Last Post: 2007-11-07, 07:55
  2. No library file found matching 'libedll.lib{.lib|.a}' or 'edll.lib'
    By manish_mishra2005 in forum Carbide.c++ IDE and plug-ins (Closed)
    Replies: 5
    Last Post: 2007-08-28, 21:23
  3. Open C libm.lib (math lib) needs update to version 4
    By jimgilmour1 in forum Open C/C++
    Replies: 1
    Last Post: 2007-04-19, 16:51
  4. No library file found matching 'libedll.lib{.lib|.a}' or 'edll.lib'
    By manish_mishra2005 in forum Symbian Tools & SDKs
    Replies: 1
    Last Post: 2007-02-02, 11:12
  5. cannot open input file 'etelmm.lib'
    By liafail in forum Symbian C++
    Replies: 0
    Last Post: 2006-02-24, 01:20

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Nokia Developer aims to help you create apps and publish them so you can connect with users around the world.

京ICP备05048969号  © Copyright Nokia 2013 All rights reserved