Compilation Issues (QTC 2.6.x)

Added by Piyoosh Mukhija over 5 years ago

Hi,

I was trying to compile from your sources (trunk r.54). I have QtCreator sources (current master) and Qt 4.8.3.

Encountered following issues:
1. Had to change specfile to make dependence on Qt 2.6.x (current version) and changed paths from Nokia to TrollTech.
2. for every overview.setXXXXX(true/false) method calls, I got an error that the method doesn't exist. When I looked into Overview class, the member variables were public and there were no getters or setters.
- For the time-being, I replaced setXXXX calls with direct assignment statements. If there is another way without modifying sources, please tell. (There may be some setting allowing automatic generation of getter and setter methods that you may be using).
3. QTC_ASSERT macro call (at 2 places) didn't end with a ";" which gave an error.
- I added a ";" after the QTC_ASSERT calls whereever required. Alternatively I could comment the assert for now in order to just let compilation proceed as you are returning the variable anyways after assert.

However, even after successful compile with these changes, the plugin behavior was undesirable.
1. In options, the text and icon for the documentation tab were missing and other fields in the tab were not displayed properly.
2. None of the commands for creating documentation (Create docu., Docu file, Docu Project) work. Only doxygen and doxywizard work, probably because they are external commands.


Replies (9)

RE: Compilation Issues (QTC 2.6.x) - Added by Kevin Tanguy over 5 years ago

Hi,

1. "TrollTech"? You mean "QtProject" right?
2. weird... works here with the 2.6.0-rc
3. right, that's a minor change they made
--
1. I also get no text/icon in options for now (looking into it) but everything in the page is fine
2. works here, must be related to 1. and 2. ^, but that would be surprising they broke that much between rc and current master for 2.6 branch

Can you provide your specs please (OS/compiler) along with your build log?

Regards,

k

RE: Compilation Issues (QTC 2.6.x) - Added by ko ahnig over 5 years ago

Hi Kevin

looks like there are not all changes in svn. I have downloaded latest version and compile with qtc 2.6.0 sources.

..\doxygen\doxygenplugin.cpp: In member function 'void DoxyPlugin::Internal::DoxygenPlugin::documentProject()':
..\doxygen\doxygenplugin.cpp:176:26: error: 'class DoxyPlugin::Internal::Doxygen' has no member named 'documentProject'
..\doxygen\doxygenplugin.cpp: In member function 'bool DoxyPlugin::Internal::DoxygenPlugin::buildDocumentation()':
..\doxygen\doxygenplugin.cpp:190:27: error: 'getProjectRoot' is not a member of 'DoxyPlugin::Internal::Doxygen'
..\doxygen\doxygenplugin.cpp: In member function 'void DoxyPlugin::Internal::DoxygenPlugin::doxyfileWizard()':
..\doxygen\doxygenplugin.cpp:223:27: error: 'getProjectRoot' is not a member of 'DoxyPlugin::Internal::Doxygen'
mingw32-make[1]: Leaving directory `C:/Source/qt-creator-2.6.0-src/doxygen-build-Qt4_8_3_MinGW_32_bit-Debug'

Looks like the header file is missing the updates.

regards,
Ko

RE: Compilation Issues (QTC 2.6.x) - Added by Kevin Tanguy over 5 years ago

Hi,

I'm confused... the definitions are there and I don't see a fault on my side. Can you post the full build log after a cleanup (or from scratch)? Also compiler specs could help.

Regards,

k

RE: Compilation Issues (QTC 2.6.x) - Added by ko ahnig over 5 years ago

Hi,

I have cleaned the project and built again. The same issue as before.

09:18:56: Running steps for project doxygen...
09:18:56: Configuration unchanged, skipping qmake step.
09:18:56: Starting: "C:\MinGW\bin\mingw32-make.exe" 
C:/MinGW/bin/mingw32-make -f Makefile.Release
mingw32-make[1]: Entering directory `C:/Source/qt-creator-2.6.0-src/doxygen-build-Qt4_8_3_MinGW_32_bit-Debug'
copy /y ..\doxygen\Doxygen.pluginspec ..\..\..\Qt\qtcreator-doxygen\lib\qtcreator\plugins\Kofee\Doxygen.pluginspec
        1 Datei(en) kopiert.
c:\Qt\4.8.3_MinGW\bin\uic.exe ..\doxygen\doxygensettingswidget.ui -o ui_doxygensettingswidget.h
g++ -x c++-header -c -fno-keep-inline-dllexport -O2 -frtti -fexceptions -mthreads -Wall -Wextra -DUNICODE -DQT_LARGEFILE_SUPPORT -DIDE_LIBRARY_BASENAME=\"lib\" -DQT_NO_CAST_TO_ASCII -DQT_USE_FAST_OPERATOR_PLUS -DQT_USE_FAST_CONCATENATION -DQT_CREATOR -DQT_DLL -DQT_NO_DEBUG -DQT_PLUGIN -DQT_GUI_LIB -DQT_NETWORK_LIB -DQT_CORE_LIB -DQT_HAVE_MMX -DQT_HAVE_SSE -DQT_HAVE_MMXEXT -DQT_HAVE_SSE2 -DQT_THREAD_SUPPORT -I"..\..\..\Qt\4.8.3_MinGW\include\QtCore" -I"..\..\..\Qt\4.8.3_MinGW\include\QtNetwork" -I"..\..\..\Qt\4.8.3_MinGW\include\QtGui" -I"..\..\..\Qt\4.8.3_MinGW\include" -I"c:\Qt\qtcreator-doxygen\\src" -I"..\src\libs" -I"c:\Source\qt-creator-2.6.0-src\tools" -I"..\src\plugins" -I"..\src\libs\3rdparty" -I"..\src\libs\3rdparty\cplusplus" -I"..\src\libs\cplusplus" -I"..\src" -I"..\src\plugins" -I"..\src\libs" -I"..\src\libs\cplusplus" -I"..\src\libs\extensionsystem" -I"..\src\libs\utils" -I"..\src\shared" -I"c:\Source\qt-creator-2.6.0-src\\src\shared\cplusplus" -I"c:\Source\qt-creator-2.6.0-src\\src\3rdparty\cplusplus" -I"..\doxygen" -I"..\..\..\Qt\4.8.3_MinGW\include\ActiveQt" -I"release" -I"." -I"." -I"..\..\..\Qt\4.8.3_MinGW\mkspecs\win32-g++-4.6" -o release\qtcreator_gui_pch.h.gch\c++ ..\src\shared\qtcreator_gui_pch.h
g++ -c -include release\qtcreator_gui_pch.h -fno-keep-inline-dllexport -O2 -frtti -fexceptions -mthreads -Wall -Wextra -DUNICODE -DQT_LARGEFILE_SUPPORT -DIDE_LIBRARY_BASENAME=\"lib\" -DQT_NO_CAST_TO_ASCII -DQT_USE_FAST_OPERATOR_PLUS -DQT_USE_FAST_CONCATENATION -DQT_CREATOR -DQT_DLL -DQT_NO_DEBUG -DQT_PLUGIN -DQT_GUI_LIB -DQT_NETWORK_LIB -DQT_CORE_LIB -DQT_HAVE_MMX -DQT_HAVE_SSE -DQT_HAVE_MMXEXT -DQT_HAVE_SSE2 -DQT_THREAD_SUPPORT -I"..\..\..\Qt\4.8.3_MinGW\include\QtCore" -I"..\..\..\Qt\4.8.3_MinGW\include\QtNetwork" -I"..\..\..\Qt\4.8.3_MinGW\include\QtGui" -I"..\..\..\Qt\4.8.3_MinGW\include" -I"c:\Qt\qtcreator-doxygen\\src" -I"..\src\libs" -I"c:\Source\qt-creator-2.6.0-src\tools" -I"..\src\plugins" -I"..\src\libs\3rdparty" -I"..\src\libs\3rdparty\cplusplus" -I"..\src\libs\cplusplus" -I"..\src" -I"..\src\plugins" -I"..\src\libs" -I"..\src\libs\cplusplus" -I"..\src\libs\extensionsystem" -I"..\src\libs\utils" -I"..\src\shared" -I"c:\Source\qt-creator-2.6.0-src\\src\shared\cplusplus" -I"c:\Source\qt-creator-2.6.0-src\\src\3rdparty\cplusplus" -I"..\doxygen" -I"..\..\..\Qt\4.8.3_MinGW\include\ActiveQt" -I"release" -I"." -I"." -I"..\..\..\Qt\4.8.3_MinGW\mkspecs\win32-g++-4.6" -o release\doxygenplugin.o ..\doxygen\doxygenplugin.cpp
..\doxygen\doxygenplugin.cpp: In member function 'void DoxyPlugin::Internal::DoxygenPlugin::documentProject()':
..\doxygen\doxygenplugin.cpp:176:26: error: 'class DoxyPlugin::Internal::Doxygen' has no member named 'documentProject'
..\doxygen\doxygenplugin.cpp: In member function 'bool DoxyPlugin::Internal::DoxygenPlugin::buildDocumentation()':
..\doxygen\doxygenplugin.cpp:190:27: error: 'getProjectRoot' is not a member of 'DoxyPlugin::Internal::Doxygen'
..\doxygen\doxygenplugin.cpp: In member function 'void DoxyPlugin::Internal::DoxygenPlugin::doxyfileWizard()':
..\doxygen\doxygenplugin.cpp:223:27: error: 'getProjectRoot' is not a member of 'DoxyPlugin::Internal::Doxygen'
mingw32-make[1]: Leaving directory `C:/Source/qt-creator-2.6.0-src/doxygen-build-Qt4_8_3_MinGW_32_bit-Debug'
mingw32-make[1]: *** [release/doxygenplugin.o] Error 1
mingw32-make: *** [release] Error 2
09:18:59: The process "C:\MinGW\bin\mingw32-make.exe" exited with code 2.
Error while building/deploying project doxygen (target: Qt4.8.3 MinGW (32 bit))
When executing step 'Make'

I am using mingw 4.6.2. Qt creator has been compiled with this as well.

Best regards,
Ko

RE: Compilation Issues (QTC 2.6.x) - Added by ko ahnig over 5 years ago

Just saw that there is a mix between release and debug. Trying to clear that issue first. Need to rebuild creator which is only available as debug at the moment.

RE: Compilation Issues (QTC 2.6.x) - Added by ko ahnig over 5 years ago

The compilation in release only brought following issue:

13:08:15: Running steps for project doxygen...
13:08:15: Configuration unchanged, skipping qmake step.
13:08:15: Starting: "C:\MinGW\bin\mingw32-make.exe" 
C:/MinGW/bin/mingw32-make -f Makefile.Release
mingw32-make[1]: Entering directory `C:/Source/qt-creator-2.6.0-src/doxygen-build-Qt4_8_3_MinGW_32_bit-Release'
g++ -c -include release\qtcreator_gui_pch.h -fno-keep-inline-dllexport -O2 -frtti -fexceptions -mthreads -Wall -Wextra -DUNICODE -DQT_LARGEFILE_SUPPORT -DIDE_LIBRARY_BASENAME=\"lib\" -DQT_NO_CAST_TO_ASCII -DQT_USE_FAST_OPERATOR_PLUS -DQT_USE_FAST_CONCATENATION -DQT_CREATOR -DQT_DLL -DQT_NO_DEBUG -DQT_PLUGIN -DQT_GUI_LIB -DQT_NETWORK_LIB -DQT_CORE_LIB -DQT_HAVE_MMX -DQT_HAVE_SSE -DQT_HAVE_MMXEXT -DQT_HAVE_SSE2 -DQT_THREAD_SUPPORT -I"..\..\..\Qt\4.8.3_MinGW\include\QtCore" -I"..\..\..\Qt\4.8.3_MinGW\include\QtNetwork" -I"..\..\..\Qt\4.8.3_MinGW\include\QtGui" -I"..\..\..\Qt\4.8.3_MinGW\include" -I"c:\Qt\qtcreator-doxygen\\src" -I"..\src\libs" -I"c:\Source\qt-creator-2.6.0-src\tools" -I"..\src\plugins" -I"..\src\libs\3rdparty" -I"..\src\libs\3rdparty\cplusplus" -I"..\src\libs\cplusplus" -I"..\src" -I"..\src\plugins" -I"..\src\libs" -I"..\src\libs\cplusplus" -I"..\src\libs\extensionsystem" -I"..\src\libs\utils" -I"..\src\shared" -I"c:\Source\qt-creator-2.6.0-src\\src\shared\cplusplus" -I"c:\Source\qt-creator-2.6.0-src\\src\3rdparty\cplusplus" -I"..\doxygen" -I"..\..\..\Qt\4.8.3_MinGW\include\ActiveQt" -I"release" -I"." -I"." -I"..\..\..\Qt\4.8.3_MinGW\mkspecs\win32-g++-4.6" -o release\doxygenplugin.o ..\doxygen\doxygenplugin.cpp
mingw32-make[1]: Leaving directory `C:/Source/qt-creator-2.6.0-src/doxygen-build-Qt4_8_3_MinGW_32_bit-Release'
cc1plus.exe: error: one or more PCH files were found, but they were invalid
cc1plus.exe: error: use -Winvalid-pch for more information
cc1plus.exe: fatal error: release\qtcreator_gui_pch.h: No such file or directory
compilation terminated.
mingw32-make[1]: *** [release/doxygenplugin.o] Error 1
mingw32-make: *** [release] Error 2
13:08:16: The process "C:\MinGW\bin\mingw32-make.exe" exited with code 2.
Error while building/deploying project doxygen (target: Qt4.8.3 MinGW (32 bit))
When executing step 'Make'

release\qtcreator_gui_pch.h is not anywhere in the creator build directories. Only a directory release\qtcreator_gui_pch.h.gch is there.

RE: Compilation Issues (QTC 2.6.x) - Added by ko ahnig over 5 years ago

OK, I finally made it.

The reason was a mixture of versions.

Why this actually happened is not completely clear to me. I assumed that I downloaded tar ball from http://dev.kofee.org/boards/1/topics/16?r=17#message-17 . However, I was obviously ending up with an old version (r32). Updating with r55 brought the confusion.

Sorry, for any inconvenience this might have caused.

Only was minor issue had to be solved. The LIBS settings were hardwired

    win32:LIBS += -LC:/Qt/qtcreator-2.6.0-rc/bin \
        -LC:/Qt/qtcreator-2.6.0-rc/lib/qtcreator/plugins/QtProject \
        -LC:/Qt/qtcreator-2.6.0-rc/lib/qtcreator/ \
        -LC:/Qt/qt-creator-2.6.0-rc-src/lib/qtcreator \
        -LC:/Qt/qt-creator-2.6.0-rc-src/lib/qtcreator/plugins/QtProject

changing the settings to my new build of creator solved all issues so far.

RE: Compilation Issues (QTC 2.6.x) - Added by Kevin Tanguy over 5 years ago

Glad it works, hardwired issue answered ;P

k

(1-9/9)