[SOLVED] Install Doxygen for Qt Creator 3.1.2 (Windows)



  • Hey,

    I tried to install the doxygen plugin with Qt Creator 3.1.2 and Qt SDK 5.3.1.
    I followed this tutorial http://qt-project.org/wiki/Doxygen_Plugin_for_QtCreator, but I am still failing.
    Here is my enviroment setup for batch:
    @

    @@echo off
    set PATH=C:\WINDOWS\system32;C:\WINDOWS;C:\WINDOWS\System32\Wbem;C:\MinGW\msys\1.0\bin;C:\Perl64\site\bin;C:\Perl64\bin;E:\Programme\Qt\5.3\mingw482_32\bin;E:\Programme\Qt\Tools\mingw482_32\bin;E:\Programme\Qt\Tools\QtCreator\bin;%PATH%
    echo %PATH%
    set QMAKESPEC=win32-g++
    cd E:\Programme\Qt
    cmd

    @

    My first step was to compile the Ct Creator. So I download the source and called qmake -r and after generating the makefiles I ran jom. After serveral minutes it seems fine. I tried to start the exe and a error appeared that told me some .dlls are missing (like Qt5Core.dll). So I copied from the SDK folder and now the new error is:
    "Failed to load core: E:\Programme\Qt\qt-creator-opensource-src-3.1.2\lib\qtcreator\plugins\QtProject\Core.dll"
    But this confuse me, because I can find this file under this dirctory and I dont know why it cant be load.

    Do you have experience to install doxygen this way? Do you have any idea how to solve it?


  • Moderators

    The PATH setting does not have the folder with the new Qt creator exe.

    I am using this here:
    @
    rem setup qt environment
    set QTDIR=c:\Qt\5.3\mingw482_32
    set PATH=%QTDIR%\bin;c:\Qt\Tools\mingw482_32\bin;c:\Qt\Tools\QtCreatorExt\bin;%PATH%
    set QMAKESPEC=win32-g++
    start /b bin\qtcreator.exe
    @



  • Hey, so i need another batch to start my own compiled QtCreator? I did'nt know that. I can start QtCreator now, thank you. But isn't there a little mistake in your batch file? The last row have to be "start /b qtcreator.exe" not "start /b bin\qtcreator.exe", or?

    However, now I have another problem. I can't compile the doxygen plugin. After ran jom, these are the errors.

    bq. In file included from doxygen.cpp:21:0:
    doxygen.h:23:45: fatal error: libs/3rdparty/cplu
    directory
    #include <libs/3rdparty/cplusplus/Symbols.h>

    bq. compilation terminated.
    release/qrc_doxygen.cpp:9:28: fatal error: QtCore/qglobal.h: No such file or dir
    ectory
    #include <QtCore/qglobal.h>

    bq. In file included from release/moc_doxygenplugin.cpp:9:0:
    release/../doxygenplugin.h:24:42: fatal error: libs/extensionsystem/iplugin.h: N
    o such file or directory
    #include <libs/extensionsystem/iplugin.h>

    bq. doxygensettingsstruct.cpp:21:23: fatal error: QStringList: No such file or direc
    tory
    #include <QStringList>

    Did I miss something else in my enviroment batch?
    @
    @@echo off
    set PATH=C:\WINDOWS\system32;C:\WINDOWS;C:\WINDOWS\System32\Wbem;C:\MinGW\msys\1.0\bin;C:\Perl64\site\bin;C:\Perl64\bin;E:\Programme\Qt\5.3\mingw482_32\bin;E:\Programme\Qt\Tools\mingw482_32\bin;E:\Programme\Qt\Tools\QtCreator\bin;E:\Programme\Qt\qt-creator-opensource-src-3.1.2\bin;%PATH%
    echo %PATH%
    set QMAKESPEC=win32-g++
    cd E:\Programme\Qt
    cmd

    @



  • Refer the below link, You will get the compiled binary itself.

    "QtCreator-Doxygen...":http://dev.kofee.org/projects/qtcreator-doxygen/wiki


  • Moderators

    [quote author="MisteKiste" date="1424851623"]Hey, so i need another batch to start my own compiled QtCreator? I did'nt know that. I can start QtCreator now, thank you. But isn't there a little mistake in your batch file? The last row have to be "start /b qtcreator.exe" not "start /b bin\qtcreator.exe", or?

    [/quote]

    That is the batch I am using. Since I start it simply from one folder up I have to add "bin" to the relative path. You might have to adjust for your needs.

    [quote author="MisteKiste" date="1424851623"]
    @
    @@echo off
    set PATH=C:\WINDOWS\system32;C:\WINDOWS;C:\WINDOWS\System32\Wbem;
    C:\MinGW\msys\1.0\bin;C:\Perl64\site\bin;C:\Perl64\bin;E:\Programme\Qt\5.3\mingw482_32\bin;
    E:\Programme\Qt\Tools\mingw482_32\bin;
    E:\Programme\Qt\Tools\QtCreator\bin; <---- this seems to point to old Qt creator not your compilation
    E:\Programme\Qt\qt-creator-opensource-src-3.1.2\bin;%PATH%
    echo %PATH%
    set QMAKESPEC=win32-g++
    cd E:\Programme\Qt
    cmd
    @
    [/quote]
    I had to put some end of line into your posted batch.
    As far as I see there is the old and the new Qt bin folder in the path settings. That is not healthy.
    Further more did you compile Doxygen plugin as well?



  • There is an easier way to install this plugin :o ? Thanks bagavathikum.., it works instantly with QtCreator 3.0.1.

    But doxygen just fetch two of my classes and generate the doxygen document. Do you have an idea why? My other classes have doxygen comments too. :(

    edit:
    okay I solved it. Just open the doxygen wizzard and did check on "Scan recursively"


Log in to reply
 

Looks like your connection to Qt Forum was lost, please wait while we try to reconnect.