Click here to Skip to main content
15,884,425 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Hi,
I am developing an application in Qt 5.2.1.
The application outputs dll.
If I compile my application alone it is compiling without any errors and generating .dll, .tlb and .idl files successfully.
But if I link any static libs from other projects, my application is giving a compile error (error: [release\QtSTLViewerAddIn1.dll] Error 3 (ignored)).
and my .idl file is not getting generated.
Is there any fix for this ?

here is my compile output :

09:51:04: Running steps for project QtSTLViewerAddIn...
09:51:04: Starting: "C:\Qt\Qt5.2.1\Tools\mingw48_32\bin\mingw32-make.exe" clean
C:/Qt/Qt5.2.1/Tools/mingw48_32/bin/mingw32-make -f Makefile.Release clean
mingw32-make[1]: Entering directory 'E:/Projects/QT/Milestone-1/Package'
del release\moc_QtSTLViewerAddIn.cpp
del release\QtSTLViewerAddIn.o release\moc_QtSTLViewerAddIn.o
del release/QtSTLViewerAddIn.idl release/QtSTLViewerAddIn.tlb release\libQtSTLViewerAddIn1.a
Parameter format not correct - "QtSTLViewerAddIn.idl".
Makefile.Release:96: recipe for target 'clean' failed
mingw32-make[1]: [clean] Error 1 (ignored)
del release\QtSTLViewerAddIn_res.o
mingw32-make[1]: Leaving directory 'E:/Projects/QT/Milestone-1/Package'
C:/Qt/Qt5.2.1/Tools/mingw48_32/bin/mingw32-make -f Makefile.Debug clean
mingw32-make[1]: Entering directory 'E:/Projects/QT/Milestone-1/Package'
del debug\moc_QtSTLViewerAddIn.cpp
Could Not Find E:\Projects\QT\Milestone-1\Package\debug\moc_QtSTLViewerAddIn.cpp
del debug\QtSTLViewerAddIn.o debug\moc_QtSTLViewerAddIn.o
Could Not Find E:\Projects\QT\Milestone-1\Package\debug\QtSTLViewerAddIn.o
del debug/QtSTLViewerAddIn.idl debug/QtSTLViewerAddIn.tlb debug\libQtSTLViewerAddIn1.a
Parameter format not correct - "QtSTLViewerAddIn.idl".
Makefile.Debug:96: recipe for target 'clean' failed
mingw32-make[1]: [clean] Error 1 (ignored)
del debug\QtSTLViewerAddIn_res.o
Could Not Find E:\Projects\QT\Milestone-1\Package\debug\QtSTLViewerAddIn_res.o
mingw32-make[1]: Leaving directory 'E:/Projects/QT/Milestone-1/Package'
del \QtSTLViewerAddIn.idl
Could Not Find E:\QtSTLViewerAddIn.idl
del \QtSTLViewerAddIn.tlb
Could Not Find E:\QtSTLViewerAddIn.tlb
del libQtSTLViewerAddIn1.a
Could Not Find E:\Projects\QT\Milestone-1\Package\libQtSTLViewerAddIn1.a
09:51:05: The process "C:\Qt\Qt5.2.1\Tools\mingw48_32\bin\mingw32-make.exe" exited normally.
09:51:05: Configuration unchanged, skipping qmake step.
09:51:05: Starting: "C:\Qt\Qt5.2.1\Tools\mingw48_32\bin\mingw32-make.exe"
C:/Qt/Qt5.2.1/Tools/mingw48_32/bin/mingw32-make -f Makefile.Release
mingw32-make[1]: Entering directory 'E:/Projects/QT/Milestone-1/Package'
g++ -c -pipe -fno-keep-inline-dllexport -O2 -w -frtti -fexceptions -mthreads -DUNICODE -DQT_NO_DEBUG -DQT_AXSERVER_LIB -DQAXSERVER -DQT_AXCONTAINER_LIB -DQT_OPENGL_LIB -DQT_AXBASE_LIB -DQT_WIDGETS_LIB -DQT_GUI_LIB -DQT_CORE_LIB -I..\QtSTLViewerAddIn -I"debug" -I"C:\Qt\Qt5.2.1\5.2.1\mingw48_32\include" -I"C:\Qt\Qt5.2.1\5.2.1\mingw48_32\include\QtOpenGL" -I"C:\Qt\Qt5.2.1\5.2.1\mingw48_32\include\ActiveQt" -I"C:\Qt\Qt5.2.1\5.2.1\mingw48_32\include\QtWidgets" -I"C:\Qt\Qt5.2.1\5.2.1\mingw48_32\include\QtGui" -I"C:\Qt\Qt5.2.1\5.2.1\mingw48_32\include\QtCore" -I"release" -I"." -I"C:\Qt\Qt5.2.1\5.2.1\mingw48_32\mkspecs\win32-g++" -o release\QtSTLViewerAddIn.o ..\QtSTLViewerAddIn\QtSTLViewerAddIn.cpp
C:\Qt\Qt5.2.1\5.2.1\mingw48_32\bin\moc.exe -DUNICODE -DQT_NO_DEBUG -DQT_AXSERVER_LIB -DQAXSERVER -DQT_AXCONTAINER_LIB -DQT_OPENGL_LIB -DQT_AXBASE_LIB -DQT_WIDGETS_LIB -DQT_GUI_LIB -DQT_CORE_LIB -D__GNUC__ -DWIN32 -I..\QtSTLViewerAddIn -I"debug" -I"C:\Qt\Qt5.2.1\5.2.1\mingw48_32\include" -I"C:\Qt\Qt5.2.1\5.2.1\mingw48_32\include\QtOpenGL" -I"C:\Qt\Qt5.2.1\5.2.1\mingw48_32\include\ActiveQt" -I"C:\Qt\Qt5.2.1\5.2.1\mingw48_32\include\QtWidgets" -I"C:\Qt\Qt5.2.1\5.2.1\mingw48_32\include\QtGui" -I"C:\Qt\Qt5.2.1\5.2.1\mingw48_32\include\QtCore" -I"release" -I"." -I"C:\Qt\Qt5.2.1\5.2.1\mingw48_32\mkspecs\win32-g++" ..\QtSTLViewerAddIn\QtSTLViewerAddIn.h -o release\moc_QtSTLViewerAddIn.cpp
g++ -c -pipe -fno-keep-inline-dllexport -O2 -w -frtti -fexceptions -mthreads -DUNICODE -DQT_NO_DEBUG -DQT_AXSERVER_LIB -DQAXSERVER -DQT_AXCONTAINER_LIB -DQT_OPENGL_LIB -DQT_AXBASE_LIB -DQT_WIDGETS_LIB -DQT_GUI_LIB -DQT_CORE_LIB -I..\QtSTLViewerAddIn -I"debug" -I"C:\Qt\Qt5.2.1\5.2.1\mingw48_32\include" -I"C:\Qt\Qt5.2.1\5.2.1\mingw48_32\include\QtOpenGL" -I"C:\Qt\Qt5.2.1\5.2.1\mingw48_32\include\ActiveQt" -I"C:\Qt\Qt5.2.1\5.2.1\mingw48_32\include\QtWidgets" -I"C:\Qt\Qt5.2.1\5.2.1\mingw48_32\include\QtGui" -I"C:\Qt\Qt5.2.1\5.2.1\mingw48_32\include\QtCore" -I"release" -I"." -I"C:\Qt\Qt5.2.1\5.2.1\mingw48_32\mkspecs\win32-g++" -o release\moc_QtSTLViewerAddIn.o release\moc_QtSTLViewerAddIn.cpp
windres -i ..\QtSTLViewerAddIn\QtSTLViewerAddIn.rc -o release\QtSTLViewerAddIn_res.o --include-dir=./../QtSTLViewerAddIn -DUNICODE -DQT_NO_DEBUG -DQT_AXSERVER_LIB -DQAXSERVER -DQT_AXCONTAINER_LIB -DQT_OPENGL_LIB -DQT_AXBASE_LIB -DQT_WIDGETS_LIB -DQT_GUI_LIB -DQT_CORE_LIB
g++ -Wl,-s -shared -mthreads -Wl,--out-implib,release\libQtSTLViewerAddIn1.a -Wl,..\QtSTLViewerAddIn\QtSTLViewerAddIn.def -o release\QtSTLViewerAddIn1.dll release/QtSTLViewerAddIn.o release/moc_QtSTLViewerAddIn.o -LE:/Projects/QT/Milestone-1/QtSTLViewerAddIn/../Package/debug/ -lDisplayControl -LC:\Qt\Qt5.2.1\5.2.1\mingw48_32\lib -lQt5AxServer -LC:\mingw48\mingw32\lib -LC:\Utils\icu32_51_1_mingw48\lib -LC:\utils\postgresql\pgsql\lib -LC:\utils\mysql\mysql\lib -LC:\opensll\lib -LC:\Qt\Qt5.2.1\5.2.1\mingw48_32/lib -lQt5AxContainer -lQt5OpenGL -lQt5AxBase -lglu32 -lopengl32 -lole32 -loleaut32 -luser32 -lgdi32 -ladvapi32 -luuid -lQt5Widgets -lQt5Gui -lQt5Core release\QtSTLViewerAddIn_res.o
Warning: resolving _DllCanUnloadNow by linking to _DllCanUnloadNow@0
Use --enable-stdcall-fixup to disable these warnings
Use --disable-stdcall-fixup to disable these fixups
Warning: resolving _DllGetClassObject by linking to _DllGetClassObject@12
Warning: resolving _DllRegisterServer by linking to _DllRegisterServer@0
Warning: resolving _DllUnregisterServer by linking to _DllUnregisterServer@0
Warning: resolving _DumpIDL by linking to _DumpIDL@8
C:\Qt\Qt5.2.1\5.2.1\mingw48_32\bin\idc.exe release\QtSTLViewerAddIn1.dll /idl release/QtSTLViewerAddIn.idl -version 1.0


release\QtSTLViewerAddIn.idl

Couldn't load library file release\QtSTLViewerAddIn1.dll
Class has no metaobject information (error in release\QtSTLViewerAddIn1.dll)!
Makefile.Release:78: recipe for target 'release\QtSTLViewerAddIn1.dll' failed
mingw32-make[1]: [release\QtSTLViewerAddIn1.dll] Error 3 (ignored)
midl release/QtSTLViewerAddIn.idl /nologo /tlb release/QtSTLViewerAddIn.tlb
Makefile.Release:78: recipe for target 'release\QtSTLViewerAddIn1.dll' failed
process_begin: CreateProcess(NULL, midl release/QtSTLViewerAddIn.idl /nologo /tlb release/QtSTLViewerAddIn.tlb, ...) failed.
make (e=2): The system cannot find the file specified.

mingw32-make[1]: [release\QtSTLViewerAddIn1.dll] Error 2 (ignored)
C:\Qt\Qt5.2.1\5.2.1\mingw48_32\bin\idc.exe release\QtSTLViewerAddIn1.dll /tlb release/QtSTLViewerAddIn.tlb
Couldn't open release\QtSTLViewerAddIn.tlb for read
Makefile.Release:78: recipe for target 'release\QtSTLViewerAddIn1.dll' failed
mingw32-make[1]: [release\QtSTLViewerAddIn1.dll] Error 4 (ignored)
C:\Qt\Qt5.2.1\5.2.1\mingw48_32\bin\idc.exe release\QtSTLViewerAddIn1.dll /regserver
Couldn't load library file release\QtSTLViewerAddIn1.dll
Failed to register server!
Makefile.Release:78: recipe for target 'release\QtSTLViewerAddIn1.dll' failed
mingw32-make[1]: [release\QtSTLViewerAddIn1.dll] Error 1 (ignored)
mingw32-make[1]: Leaving directory 'E:/Projects/QT/Milestone-1/Package'
09:51:10: The process "C:\Qt\Qt5.2.1\Tools\mingw48_32\bin\mingw32-make.exe" exited normally.
09:51:10: Elapsed time: 00:05.
Posted
Updated 17-Jun-14 20:51pm
v4
Comments
KarstenK 18-Jun-14 2:46am    
you need to run the midl compiler to generate an idl-file.
Madhan Mohan Reddy P 18-Jun-14 2:48am    
Hi,
Could you tell me how to do that ? Is that compiler integrated with Qt ?
Or in the .pro settings we can give any post build event ?
KarstenK 18-Jun-14 6:28am    
No, I really dont know. In Visual Studio is it an option to the compile operation of the file.

Search in the doc of your IDE...
Madhan Mohan Reddy P 18-Jun-14 2:52am    
Hi I forgot to mention in my question that my .tlb file is also not getting generated . Now I modified the question. Sorry.

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)

  Print Answers RSS
Top Experts
Last 24hrsThis month


CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900