Struggling to build the activeqt expamples shipeed with QT sd 5.3



  • Hi Guys,
    I installed qt 5.3 -- I wanted to write some activeqt program , but failed to build so. i go to Examples\Qt-5.3\activeqt\comapp. From QT creator when i open the project and build it - i see the following errors:
    @
    E:/Qt53/Tools/mingw482_32/bin/mingw32-make -f Makefile.Release
    mingw32-make[1]: Entering directory 'E:/Qt53/Examples/Qt-5.3/activeqt/comapp'
    E:\Qt53\5.3\mingw482_32\bin\moc.exe -DUNICODE -DQT_NO_DEBUG -DQT_AXSERVER_LIB -DQAXSERVER -DQT_AXBASE_LIB -DQT_WIDGETS_LIB -DQT_GUI_LIB -DQT_CORE_LIB -DQT_NEEDS_QMAIN -D__GNUC__ -DWIN32 -IE:/Qt53/5.3/mingw482_32/mkspecs/win32-g++ -IE:/Qt53/Examples/Qt-5.3/activeqt/comapp -IE:/Qt53/5.3/mingw482_32/include -IE:/Qt53/5.3/mingw482_32/include/ActiveQt -IE:/Qt53/5.3/mingw482_32/include/QtWidgets -IE:/Qt53/5.3/mingw482_32/include/QtGui -IE:/Qt53/5.3/mingw482_32/include/QtCore main.cpp -o release\main.moc
    g++ -c -pipe -fno-keep-inline-dllexport -O2 -frtti -Wall -Wextra -fexceptions -mthreads -DUNICODE -DQT_NO_DEBUG -DQT_AXSERVER_LIB -DQAXSERVER -DQT_AXBASE_LIB -DQT_WIDGETS_LIB -DQT_GUI_LIB -DQT_CORE_LIB -DQT_NEEDS_QMAIN -I. -I"........\5.3\mingw482_32\include" -I"........\5.3\mingw482_32\include\ActiveQt" -I"........\5.3\mingw482_32\include\QtWidgets" -I"........\5.3\mingw482_32\include\QtGui" -I"........\5.3\mingw482_32\include\QtCore" -I"release" -I"........\5.3\mingw482_32\mkspecs\win32-g++" -o release\main.o main.cpp
    windres -i comapp.rc -o release\comapp_res.o --include-dir=. -DUNICODE -DQT_NO_DEBUG -DQT_AXSERVER_LIB -DQAXSERVER -DQT_AXBASE_LIB -DQT_WIDGETS_LIB -DQT_GUI_LIB -DQT_CORE_LIB -DQT_NEEDS_QMAIN
    g++ -Wl,-s -Wl,-subsystem,windows -mthreads -o release\comapp.exe release/main.o -LE:/Qt53/5.3/mingw482_32/lib -lQt5AxServer -LC:\mingw482\mingw32\lib -LC:\Utils\icu32_52_1_mingw482\lib -LC:\utils\postgresql\pgsql\lib -LC:\utils\mysql\mysql\lib -LC:\opensll\lib -LE:\Qt53\5.3\mingw482_32/lib -lQt5AxBase -lglu32 -lopengl32 -lole32 -loleaut32 -luser32 -lgdi32 -ladvapi32 -luuid -lQt5Widgets -lQt5Gui -lQt5Core release\comapp_res.o
    E:\Qt53\5.3\mingw482_32\bin\idc.exe release\comapp.exe /idl release/comapp.idl -version 1.0

    release\comapp.idl

    Timed out after 30000 ms out waiting for "release\comapp.exe -dumpidl release\comapp.idl -version 1.0".
    IDL generation failed trying to run program release\comapp.exe!
    Makefile.Release:77: recipe for target 'release\comapp.exe' failed
    mingw32-make[1]: [release\comapp.exe] Error -2147467259 (ignored)
    midl release/comapp.idl /nologo /tlb release/comapp.tlb
    Makefile.Release:77: recipe for target 'release\comapp.exe' failed
    process_begin: CreateProcess(NULL, midl release/comapp.idl /nologo /tlb release/comapp.tlb, ...) failed.
    make (e=2): The system cannot find the file specified.

    mingw32-make[1]: [release\comapp.exe] Error 2 (ignored)
    E:\Qt53\5.3\mingw482_32\bin\idc.exe release\comapp.exe /tlb release/comapp.tlb
    Couldn't open release\comapp.tlb for read
    Makefile.Release:77: recipe for target 'release\comapp.exe' failed
    mingw32-make[1]: [release\comapp.exe] Error 4 (ignored)
    E:\Qt53\5.3\mingw482_32\bin\idc.exe release\comapp.exe /regserver
    @
    Stuck here

    Could you please give me any pointer?

    Papu



  • Have you solve your problem? I also have the same problem!



  • Got the same problem on Windows 7 with Qt 5.2 and 5.4. The only difference is that in Qt 5.2 idc would not timeout and will wait forever.
    I tried to dig in and found some clues:

    Idc tool tries to run newly built project executable with command line argument "-dumpidl". Because of "QT += axserver" in project file, g++ should link program against qaxserver.lib instead of qtmain.lib. Argument "-dumpidl" then should be parsed in WinMain in qaxservermain.cpp, WinMain should call DumpIDL and return immediately.

    Promblem is, for some reason WinMain is never called. Instead, program execution starts in main() in qaxmain.cpp. This function starts COM-server, constructs QApplication and enters event loop. It doesn't even call user's implementation of qMain (WinMain does). Idc tool thus times out and after that there is no output .tdl file because DumpIDL was not executed.
    Currently I am stuck at this point. g++ receives "-Wl,-subsystem,windows" flag, so entry point for application should be WinMain(), not main(). I would appreciate any help.


Log in to reply
 

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