×

Discussion Board

Results 1 to 3 of 3
  1. #1
    Registered User
    Join Date
    Mar 2012
    Posts
    5

    "network error" while building cordova 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 files that are available at this link. 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.

  2. #2
    Registered User
    Join Date
    Sep 2011
    Posts
    449

    Re: "network error" while building cordova for symbian

    The link gives page not found reply.

    Can you provide more info on this to be helpful

  3. #3
    Registered User
    Join Date
    Mar 2012
    Posts
    1

    Re: "network error" while building cordova for symbian

    This is because the impelementation in main.cpp is like this:
    view->setSource(QUrl(QString("%1/qml/main.qml").arg(Cordova::instance()->workingDir())));

    and it fails maybe because QUrl constructor uses %1 in non-unix(-alike) systems a bit strangely and outcome is not what you might want.

    I fixed this by changing it to
    view->setSource(QUrl("qml/main.qml"));

    and it seems to work ok.

    On the cordova.cpp you must also put:
    m_workingDir = QApplication::applicationDirPath();
    m_workingDir.cdUp(); <-- this

    Otherwise cordova cannot load your 'xml' and 'www' dir.

    Difficult? Just clone my repo: git://github.com/jvihrial/incubator-cordova-qt.git
    Last edited by jake9xx; 2012-03-22 at 23:09.

Similar Threads

  1. " Program file does not exist " error while building
    By HoodBoss in forum Carbide.c++ IDE and plug-ins (Closed)
    Replies: 9
    Last Post: 2010-06-22, 06:37
  2. Error building Dhrystone as "Phone Release (GCCE) [S60_3rd_FP1]"
    By rhobincu in forum Symbian Tools & SDKs
    Replies: 3
    Last Post: 2007-09-27, 13:13
  3. error PRJ0019: When building Rel_S60_30_GCCE configuration of "Symbian
    By Samosa in forum Carbide.c++ IDE and plug-ins (Closed)
    Replies: 1
    Last Post: 2006-09-05, 10:22
  4. Replies: 0
    Last Post: 2005-03-15, 14:18
  5. Replies: 1
    Last Post: 2004-07-17, 12:08

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •