Results 1 to 3 of 3

Thread: Problem with compiling QtService library from qt-solutions

  1. #1
    Join Date
    Sep 2011
    Posts
    86
    Thanks
    4
    Thanked 4 Times in 4 Posts
    Qt products
    Qt4 Qt5
    Platforms
    Windows

    Default Problem with compiling QtService library from qt-solutions

    https://github.com/qtproject/qt-solu...ster/qtservice

    I don't know if this is a good idea but I put here entire compiler log. I meet this problem again. Last time I've seen problem with BLOB when I was trying to include <windows.h> header and couldn't handle this. Now I'm trying to compile QtService library as dll and here you are: BLOB. Couldn't find anything related with this issue. Anybody knows what is happening and how fix it?

    Qt Code:
    1. C:\Users\Ja\Desktop\qt-solutions-master\qtservice>qmake
    2.  
    3. C:\Users\Ja\Desktop\qt-solutions-master\qtservice>mingw32-make
    4. cd buildlib\ && ( if not exist Makefile C:\Qt\Qt5.5.1\5.5\mingw492_32\bin\qmake.exe C:\Users\Ja\Desktop\qt-solutions-master\qtservice\buildlib\buildlib.pro -o Makefile ) && mingw32-make -f Makefile
    5. mingw32-make[1]: Entering directory 'C:/Users/Ja/Desktop/qt-solutions-master/qtservice/buildlib'
    6. mingw32-make -f Makefile.Release all
    7. mingw32-make[2]: Entering directory 'C:/Users/Ja/Desktop/qt-solutions-master/qtservice/buildlib'
    8. C:\Qt\Qt5.5.1\5.5\mingw492_32\bin\moc.exe -DUNICODE -DQT_QTSERVICE_EXPORT -DQT_NO_DEBUG -DQT_GUI_LIB -DQT_CORE_LIB -D__GNUC__ -DWIN32 -IC:/Qt/Qt5.5.1/5.5/mingw492_32/mkspecs/win32-g++ -IC:/Users/Ja/De
    9. sktop/qt-solutions-master/qtservice/buildlib -IC:/Users/Ja/Desktop/qt-solutions-master/qtservice/src -IC:/Qt/Qt5.5.1/5.5/mingw492_32/include -IC:/Qt/Qt5.5.1/5.5/mingw492_32/include/QtGui -IC:/Qt/Qt5.5
    10. .1/5.5/mingw492_32/include/QtANGLE -IC:/Qt/Qt5.5.1/5.5/mingw492_32/include/QtCore ..\src\qtservice.cpp -o release\qtservice.moc
    11. g++ -c -pipe -fno-keep-inline-dllexport -O2 -frtti -Wall -Wextra -fexceptions -mthreads -DUNICODE -DQT_QTSERVICE_EXPORT -DQT_NO_DEBUG -DQT_GUI_LIB -DQT_CORE_LIB -I. -I..\src -IC:\Qt\Qt5.5.1\5.5\mingw4
    12. 92_32\include -IC:\Qt\Qt5.5.1\5.5\mingw492_32\include\QtGui -IC:\Qt\Qt5.5.1\5.5\mingw492_32\include\QtANGLE -IC:\Qt\Qt5.5.1\5.5\mingw492_32\include\QtCore -Irelease -IC:\Qt\Qt5.5.1\5.5\mingw492_32\mks
    13. pecs\win32-g++ -o release\qtservice.o ..\src\qtservice.cpp
    14. C:\Qt\Qt5.5.1\5.5\mingw492_32\bin\moc.exe -DUNICODE -DQT_QTSERVICE_EXPORT -DQT_NO_DEBUG -DQT_GUI_LIB -DQT_CORE_LIB -D__GNUC__ -DWIN32 -IC:/Qt/Qt5.5.1/5.5/mingw492_32/mkspecs/win32-g++ -IC:/Users/Ja/De
    15. sktop/qt-solutions-master/qtservice/buildlib -IC:/Users/Ja/Desktop/qt-solutions-master/qtservice/src -IC:/Qt/Qt5.5.1/5.5/mingw492_32/include -IC:/Qt/Qt5.5.1/5.5/mingw492_32/include/QtGui -IC:/Qt/Qt5.5
    16. .1/5.5/mingw492_32/include/QtANGLE -IC:/Qt/Qt5.5.1/5.5/mingw492_32/include/QtCore ..\src\qtservice_win.cpp -o release\qtservice_win.moc
    17. g++ -c -pipe -fno-keep-inline-dllexport -O2 -frtti -Wall -Wextra -fexceptions -mthreads -DUNICODE -DQT_QTSERVICE_EXPORT -DQT_NO_DEBUG -DQT_GUI_LIB -DQT_CORE_LIB -I. -I..\src -IC:\Qt\Qt5.5.1\5.5\mingw4
    18. 92_32\include -IC:\Qt\Qt5.5.1\5.5\mingw492_32\include\QtGui -IC:\Qt\Qt5.5.1\5.5\mingw492_32\include\QtANGLE -IC:\Qt\Qt5.5.1\5.5\mingw492_32\include\QtCore -Irelease -IC:\Qt\Qt5.5.1\5.5\mingw492_32\mks
    19. pecs\win32-g++ -o release\qtservice_win.o ..\src\qtservice_win.cpp
    20. In file included from C:/Qt/Qt5.5.1/Tools/mingw492_32/i686-w64-mingw32/include/combaseapi.h:153:0,
    21. from C:/Qt/Qt5.5.1/Tools/mingw492_32/i686-w64-mingw32/include/objbase.h:14,
    22. from C:/Qt/Qt5.5.1/Tools/mingw492_32/i686-w64-mingw32/include/ole2.h:17,
    23. from C:/Qt/Qt5.5.1/Tools/mingw492_32/i686-w64-mingw32/include/wtypes.h:12,
    24. from C:/Qt/Qt5.5.1/Tools/mingw492_32/i686-w64-mingw32/include/winscard.h:10,
    25. from C:/Qt/Qt5.5.1/Tools/mingw492_32/i686-w64-mingw32/include/windows.h:97,
    26. from C:\Qt\Qt5.5.1\5.5\mingw492_32\include\QtCore/qt_windows.h:63,
    27. from ..\src\qtservice_win.cpp:52:
    28. [B]C:/Qt/Qt5.5.1/Tools/mingw492_32/i686-w64-mingw32/include/wtypesbase.h:386:16: error: using typedef-name 'BLOB' after 'struct'
    29. typedef struct BLOB *LPBLOB;[/B]
    30. ^
    31. [B]C:/Qt/Qt5.5.1/Tools/mingw492_32/i686-w64-mingw32/include/wtypesbase.h:385:3: note: 'BLOB' has a previous declaration here
    32. } BLOB;[/B]
    33. ^
    34. [B]C:/Qt/Qt5.5.1/Tools/mingw492_32/i686-w64-mingw32/include/wtypesbase.h:386:28: error: invalid type in declaration before ';' token
    35. typedef struct BLOB *LPBLOB;[/B]
    36. ^
    37. ..\src\qtservice_win.cpp: In constructor 'HandlerThread::HandlerThread()':
    38. ..\src\qtservice_win.cpp:705:19: warning: 'HandlerThread::console' will be initialized after [-Wreorder]
    39. bool success, console;
    40. ^
    41. ..\src\qtservice_win.cpp:698:50: warning: base 'QThread' [-Wreorder]
    42. : success(true), console(false), QThread()
    43. ^
    44. ..\src\qtservice_win.cpp:697:5: warning: when initialized here [-Wreorder]
    45. HandlerThread()
    46. ^
    47. ..\src\qtservice_win.cpp: At global scope:
    48. ..\src\qtservice_win.cpp:96:32: warning: 'pRegisterServiceProcess' defined but not used [-Wunused-variable]
    49. static PRegisterServiceProcess pRegisterServiceProcess = 0;
    50. ^
    51. Makefile.Release:504: recipe for target 'release/qtservice_win.o' failed
    52. mingw32-make[2]: *** [release/qtservice_win.o] Error 1
    53. mingw32-make[2]: Leaving directory 'C:/Users/Ja/Desktop/qt-solutions-master/qtservice/buildlib'
    54. Makefile:38: recipe for target 'release-all' failed
    55. mingw32-make[1]: *** [release-all] Error 2
    56. mingw32-make[1]: Leaving directory 'C:/Users/Ja/Desktop/qt-solutions-master/qtservice/buildlib'
    57. makefile:39: recipe for target 'sub-buildlib-make_first-ordered' failed
    58. mingw32-make: *** [sub-buildlib-make_first-ordered] Error 2
    59.  
    60. C:\Users\Ja\Desktop\qt-solutions-master\qtservice>
    To copy to clipboard, switch view to plain text mode 

  2. #2
    Join Date
    Jan 2008
    Location
    Alameda, CA, USA
    Posts
    5,230
    Thanks
    302
    Thanked 864 Times in 851 Posts
    Qt products
    Qt5
    Platforms
    Windows

    Default Re: Problem with compiling QtService library from qt-solutions

    I don't see -DWIN32 as one of the compiler options to g++. It is for moc. Maybe that's the cause?

  3. #3
    Join Date
    Sep 2011
    Posts
    86
    Thanks
    4
    Thanked 4 Times in 4 Posts
    Qt products
    Qt4 Qt5
    Platforms
    Windows

    Default Re: Problem with compiling QtService library from qt-solutions

    I will test it but I'm not sure. Those were original files from project, I've just invoked configure -library, qmake, and mingw32-make. It would be strange if library were badly configured.


    Added after 58 minutes:


    I downloaded Qt for Visual Studio 2010 and it compilation works so the problem is not solved but bypassed.
    Last edited by code_err; 31st January 2016 at 01:31.

Similar Threads

  1. A simple problem with complex solutions re rs 232
    By Cedarviola in forum Qt Programming
    Replies: 1
    Last Post: 9th October 2013, 07:02
  2. QTservice stop() problem
    By caysee_yo in forum Qt Programming
    Replies: 1
    Last Post: 17th April 2013, 19:33
  3. Problem in execution of QtService
    By nikhilqt in forum Qt Programming
    Replies: 7
    Last Post: 5th March 2011, 12:23
  4. QtService Library (dll) for windows
    By ruben.rodrigues in forum Installation and Deployment
    Replies: 1
    Last Post: 22nd October 2010, 19:18
  5. Qmake: Problem generating msvc solutions.
    By dead1ock in forum Qt Programming
    Replies: 0
    Last Post: 4th October 2009, 03:28

Tags for this Thread

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Digia, Qt and their respective logos are trademarks of Digia Plc in Finland and/or other countries worldwide.