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

Qt Creator built from source does not display Help or Examples pages



  • We are attempting to build the open source version of Qt Creator as a basis for our product's GUI. While we succeed in getting the Qt Creator executable operational, the Examples pages are empty and the Help pages only show the Qt Designer and Qt Linguist manuals. I suspect that something extra needs to be done to process these pages, but we can't figure out what we are omitting.

    Here are the specifications of what we are building and how.

    Qt Creator 4.6.2
    Qt version 5.9.7
    Platform: Redhat Linux 6.8

    Instead of building this in place like the README.md instructions imply, we are trying to output the result to different directory so that we build debug versions of the code. The Qt Creator code itself is in a directory:

    .../qt-creator-opensource-src-4.6.2/

    Adjacent to this is the target directory called qtc-build

    ../qtc-build

    The build command sequence is:

    cd qtc-build
    /hls/stratus/tools/Qt/Qt-5.9.7-linux64-release/bin/qmake -r ../qt-creator-opensource-src-4.6.2 QMAKE_CXXFLAGS=-D_GLIBCXX_USE_CXX11_ABI=0 "CONFIG-=debug CONFIG+=release"
    make

    where the QMAKE_CXXFLAGS flag sets up using gcc 6.3 and the CONFIG flag forces a release version of the build. The "make" command acts on the Makefile generated by the qmake command.

    There are no obvious errors or warnings in the output that indicate a problem, but we still don't see the Examples and most of the Help topics.

    Any suggestions would be appreciated.


  • Lifetime Qt Champion

    Hi and welcome to devnet,

    AFAIK, the examples and the help related to Qt come from Qt itself. Did you configure your custom built Qt Creator for the Qt versions you have installed on your system ?



  • @SGaist I believe so. We did an installation of Qt 5.9.7 in our Linux machine and used the qmake in that distribution to do the build. It certainly worked well enough to build the qtcreator executable. If I do a :

    ldd qtcreator

    call, the qtcreator executable is pointing to the correct shared object libraries as in:

    libQt5Concurrent.so.5 => <install_dir>/Qt/Qt-5.9.7-linux64-release/lib/libQt5Concurrent.so.5 (0x00007fbaa62a0000)

    However, your question makes me wonder if what we are missing is that we did not install Qt as a package like a lot of Linux installations are handled (we don't have root access to allow us to install packages). So we may be missing something in our PATH that the Qt Creator build process assumes will be there.

    I'll check on that.


  • Lifetime Qt Champion

    @danblanks-0 You can add documentation in QtCreator under Options/Help/Documentation

    "We did an installation of Qt 5.9.7 " - how? Using Online/offline installer?

    "So we may be missing something in our PATH that the Qt Creator build process assumes will be there" - I don't see how missing documentation in QtCreator is related to PATH or build process? You just need to tell QtCreator where to look for documentation.



  • We downloaded the Qt 5.9.7 source and untarred it into a directory. There was no installation process beyond that.



  • @danblanks-0
    Sorry, let me amend that. Our build expert did build the Qt source code. And initially he did so using the -no_examples option. He has since corrected that bit, so the examples show up in the Qt Creator directory. But they still do not show up in the Qt Creator Examples page.



  • @danblanks-0
    Is https://stackoverflow.com/questions/45454072/make-qt-creator-to-see-examples-and-docs relevant to your situation. Else Goggle for qt creator examples not showing, there are a few suggestions as to why they are not being found/displayed?



  • @JonB Thanks for the reference. I will pass this on to our build meister and see if it helps. It does look very much like the problem we are having.


Log in to reply