Important: Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

[solved] My app crashed after using macdeployqt (Qt5.2 RC 1)



  • Actually,I got stuck when I tried to build Qt from source. Particularly, they were some errors about webkit...I am trying to solve it.



  • I followed these steps again:
    1)git clone git://gitorious.org/qt/qt5.git qt5
    2) cd qt5
    3) ./init-repository
    4) ./qtrepotools/bin/qt5_tool -p
    5) .........

    but got this at step 4,

    Entering 'qtactiveqt'
    Fetching origin
    Fetching gerrit
    ssh: connect to host codereview.qt-project.org port 22: Operation timed out
    fatal: Could not read from remote repository.

    Please make sure you have the correct access rights
    and the repository exists.
    error: Could not fetch gerrit
    Stopping at 'qtactiveqt'; script returned non-zero status.



  • seems I'm not alone. someone has posted it "Here":https://bugreports.qt-project.org/browse/QTBUG-21139 ,but no reply.



  • I've downloaded qt5.2 source code and built it successfully. but it makes no difference.
    [quote author="SGaist" date="1388791987"]Can you build Qt from sources and use this one to create your application ? I didn't have that problem with a current git build[/quote]


  • Lifetime Qt Champion

    Do you mean, the source tar.gz or from git ?



  • The former, the problem is still there when I try to git.



  • Provisional measures :
    adding the following code to main.cpp (before QApplication a(argc, argv));

    I think the path of loading plugins has to be loaded before running QApplication a(argc, argv);
    @int main(int argc, char *argv[])
    {
    QString path = QString(argv[0]);
    QString end = path.split("/").last();
    path.remove(path.length() - end.length(), end.length());
    QDir dir(path);
    dir.cdUp();
    dir.cd("PlugIns");
    QApplication::setLibraryPaths(QStringList(dir.absolutePath()));

    QApplication a(argc, argv);
    

    ......
    @

    [quote author="SGaist" date="1388791987"]Can you build Qt from sources and use this one to create your application ? I didn't have that problem with a current git build[/quote]


  • Lifetime Qt Champion

    Wasn't that part of a bug report ?


Log in to reply