Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. Installation and Deployment
  4. "network error" while building for symbian
QtWS25 Last Chance

"network error" while building for symbian

Scheduled Pinned Locked Moved Installation and Deployment
4 Posts 3 Posters 3.8k Views
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • H Offline
    H Offline
    hsn22
    wrote on last edited by
    #1

    hey guys,

    i've been playing with cordova (a cross platform mobile development library, for those who do not know). i made a few modifications in the file that is available at "this link":https://github.com/cordova/cordova-qt. however, when i try to build it, i get this error:

    Starting C:\middler\cordovaqt-build-simulator\release\cordovaqt.exe...
    Using "C:/middler/cordovaqt-build-simulator/release" as working dir
    C:/middler/cordovaqt-build-simulator/release/qml/main.qml: Network error
    C:\middler\cordovaqt-build-simulator\release\cordovaqt.exe exited with code 0

    i've been searching for so long, but have been unable to find a single helpful link. i've cleaned the project and run qmake on it and then built but it still keeps giving that same error.

    any help would be appreciated.

    1 Reply Last reply
    0
    • H Offline
      H Offline
      hsn22
      wrote on last edited by
      #2

      so, ive found the answer, and want to leave it here in case anybody needs it later on:

      the "network error" was due to incorrect QURLs being used in the cordova code. for eg, on line 60 in main.cpp, the line is:

      @
      view->setSource(QUrl(QString("%1/qml/main_harmattan.qml").arg(Cordova::instance()->workingDir())));
      @

      changing this to

      @
      view->setSource(QUrl::fromLocalFile ("/qml/main_harmattan.qml"));
      @

      fixed the problem.

      thanks to tsimpson on the irc channel for the help.

      1 Reply Last reply
      0
      • EddyE Offline
        EddyE Offline
        Eddy
        wrote on last edited by
        #3

        Thanks for sharing your solution!

        Could you please edit your first post and add [solved] to the title? Thanks.

        Qt Certified Specialist
        www.edalsolutions.be

        1 Reply Last reply
        0
        • M Offline
          M Offline
          madoodia
          wrote on last edited by
          #4

          Thanks you very much hsn22

          good point

          1 Reply Last reply
          0

          • Login

          • Login or register to search.
          • First post
            Last post
          0
          • Categories
          • Recent
          • Tags
          • Popular
          • Users
          • Groups
          • Search
          • Get Qt Extensions
          • Unsolved