"network error" while building for symbian

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

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


    changing this to

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

    fixed the problem.

    thanks to tsimpson on the irc channel for the help.

  • Thanks for sharing your solution!

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

  • Thanks you very much hsn22

    good point

Log in to reply