Qt Forum

    • Login
    • Search
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Groups
    • Search
    • Unsolved

    Update: Forum Guidelines & Code of Conduct

    "network error" while building for symbian

    Installation and Deployment
    3
    4
    3427
    Loading More Posts
    • 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
      hsn22 last edited by

      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 Reply Quote 0
      • H
        hsn22 last edited by

        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 Reply Quote 0
        • E
          Eddy last edited by

          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 Reply Quote 0
          • M
            madoodia last edited by

            Thanks you very much hsn22

            good point

            1 Reply Last reply Reply Quote 0
            • First post
              Last post