[Solved] Doxygen for Qt Creator 2.7.0
-
no.... I have never written one, Ill have to see how do that.
I had a question for you in my lost post. I built the doxygen project in the end :D
however, there is no dll output from it, I am not sure what to do with the output to use it with my QtCreator... any hint?
Thanks :)
-
There should be a dll.
...\creator_build\lib\qtcreator\plugins\QtProject\Doxygen.dll
...\creator_build\lib\qtcreator\plugins\QtProject\Doxygen.pluginspec
are the places where I placed them. It is the same spot as the standard creator plugins are.
At the of the qmake run it should have told you where the DESTDIR is. -
Placed a bug report "QTWEBSITE-527":https://bugreports.qt-project.org/browse/QTWEBSITE-527
A bit hard to describe what happened.Anyway I had started "a thread on this issue":http://qt-project.org/forums/viewthread/29122/ already earlier today.
-
nice one for the bug report :)
Also I found that dll, it was not in the output folder it was in a new folder:
C:\Qt\qtcreator-doxygen\lib\qtcreator\plugins\KofeeBut as you said it was specified in the comments of the .pro file :D
So, I am on my clean PC I will transfer/copy these files to the correct location on my dev PC with the doxygen plugin.
You mentioned modifying the pluginspec file... it looks ok to me, ill try it as it is first see what happens :)
Nearly there!, I was starting to doubt :o
-
The pluginspec I have updated to reflect the exact new version (2.6.0 in my case). I was wondering if this is required, since one would expect to specify the minimum version of compatibility.
Also the other pluginspecs seem to be the current version and it did not hurt :-) -
(this might be a repeat... another post was lost :o)
I have now built QtCreator 2.7.0 and then doxygen and got the dll and plugin spec.
I checked the pluginspec (all versions where 2.7.0) so all looked good. Then I copied the dll and plugin spec into my plugins folder:
- Qt\Qt5.0.2\Tools\QtCreator\lib\qtcreator\plugins\Kofee\
But I get this error and am not sure where to go next:
bq. C:\Qt\Qt5.0.2\Tools\QtCreator\lib\qtcreator\plugins\Kofee\Doxygen.dll: Cannot load library C:/Qt/Qt5.0.2/Tools/QtCreator/lib/qtcreator/plugins/Kofee/Doxygen.dll: The specified procedure could not be found.
-
Sorry koahnig, I did not quite understand what you mean in your last post. Should move the dll/plugin spec to a different location?
-
To me it looks like you load the plugin from the build folder "...\QtCreator\lib\qtcreator\plugins\Kofee\
With building the creator itself there is a folder ...\creator_build\lib\qtcreator\plugins\QtProject\ AFAIK it contains all plugins as shipped with creator (e.g. CppEditor.dll, ClassView.dll, and all the others).
I have copied the Doxygen.dll and its pluginspec to this folder. This works in my case.
However, I do not remember why I can find the dll and pluginspec there. Done it half a year ago. Did I move for a reason or not? No glue :-(
I adapted the Doxygen plugin for my needs and I did a couple of recompilations. Therefore, I had set the destination folder to this folder at some point. That I do remember, but not why I ended up to place the stuff this way. -
Hey.... it took me a while to understand what is going on, but I think I figured it out (well, at least figured out how to get it to work).
So, I see the location that you mentioned, I don't think that matters where you put it :)
What I was doing is:
- Building QtCreator 2.7.0
- Building Doxygen plugin for 2.7.0
- Taking the doxygen plugin and putting it in the lib folder of my SDK 5.0.2 version of QtCreator 2.7.0
This gave me the error:
bq. C:\Qt\Qt5.0.2\Tools\QtCreator\lib\qtcreator\plugins\Kofee\Doxygen.dll: Cannot load library C:/Qt/Qt5.0.2/Tools/QtCreator/lib/qtcreator/plugins/Kofee/Doxygen.dll: The specified procedure could not be found.
So then I put the built version of QtCreator libraries into my SDK QtCreator libraries folder (and replaced the existing ones) and I got similar errors! - this was very strange to me because I was assuming the two should be identical.
Then I replaced the old Qt 2.7.0 with my built Qt 2.7.0 and added Doxygen to the libs folder (under the koffee folder) and it all worked!
The only slight difference I seem to have now is that when I run old Qt 2.7.0 directly from the .exe it runs fine. But when I run new Qt it can't find all the dlls (like core.dll) so I have to add the paths first.... but how does old Qt work?, somehow the exe must know the paths....
Well I can add the paths to the PATH variable and be done with it!
Thanks for all help :), I will wiki it at some point as it seems to be an operation that can go wrong if you don't know what you are doing :o
-
Congratulation for mastering the process. !! :D
There are some differences on my side.
First I used a standalone version, since an SDK was not available. Do not think that this matters.
Second have build creator completely separate and kept it this way.
Third, I have build the doxygen plugin and copied it to my own build of creator.I have also the Qt libs as used for building creator in my path. I thought that it was a left over from the past, but that must be the purpose.
Looking forward for your wiki entry. ;-)
-
Thank you very much, could not have done it without your help :) ill make a final post to send the wiki link so you can approve it :o
But first I will treat myself with the fun part of actually using doxygen :D
-
Wiki done:
"doxygen-qtCreator":http://qt-project.org/wiki/Doxygen_Plugin_for_QtCreator
thanks for all your help :)
-
[quote author="code_fodder" date="1372682446"]Wiki done:
"doxygen-qtCreator":http://qt-project.org/wiki/Doxygen_Plugin_for_QtCreator
thanks for all your help :)[/quote]
Looks great! Thanks a lot.
I have done a correction for special thanks. I have extended the Doxygen plugin for my own purposes. However, I could not bring these changes into the distro.