Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. General and Desktop
  4. [Partly Solved] Error Compiling Qt5.5 with MinGW 5.1: ActiveQt: Redefined GUID's
QtWS25 Last Chance

[Partly Solved] Error Compiling Qt5.5 with MinGW 5.1: ActiveQt: Redefined GUID's

Scheduled Pinned Locked Moved General and Desktop
16 Posts 5 Posters 6.0k Views
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • MeerMusikM Offline
    MeerMusikM Offline
    MeerMusik
    wrote on last edited by
    #7

    I try the 2 same x64 tests again. This time I added the '-no-warnings-are-errors' parameter to Qt Configure.
    This will ignore the Redefinition warnings and will compile the stuff. Lets see how far I come this time. Updates sometime this weekend.

    1 Reply Last reply
    0
    • MeerMusikM Offline
      MeerMusikM Offline
      MeerMusik
      wrote on last edited by MeerMusik
      #8

      Alright. Again quicker as I thought, here are final results.

      Configure Parameter:
      c:\qt5src\configure -opensource -confirm-license -prefix d:\qt-build-64bit -skip webengine -skip webkit -opengl dynamic -debug-and-release -developer-build -nomake examples -nomake tests -no-warnings-are-errors

      • x86_64 MinGW 5.1.0 Posix SEH RT_V4 Revision 0:
        No Luck with compiling all of ActiveQt. Only 'libQt5AxBase.a' and 'libQt5AxBased.a' has been compiled. The other ActiveQt Files give the same 'already defined here' Error as mentioned in Post Number 1.
        And: It always stops as soon the XMLParser has been compiled. I have to restart 'mingw32-make" to get qdeclarative and the rest compiled.

      • x86_64 MinGW 4.9.2 Posix SEH RT_V4 Revision 3:
        The same Error as with MinGW 5.1.0

      I also moved the Path for MinGW64 to different positions in the Environment Variables -> Path Settings.

      I have absolutely no Idea how I can build ActiveQt.
      Qt 5.5.0 gives around 100 Warnings about deprecated Functions / Parameters, unused Variables, redefined Definitions etc. etc. for couple of Modules.
      It is worse than ever. They have to fix a lot of Stuff in 5.5.1
      ++++
      EDIT01: The same Problems exists with the x86 Compiler Versions. And with Windows 7 SP1 x64 (fully up2date).
      ++++

      @ All: If anyone has an Idea: I am happy to hear anything that could probably solve the Problem.
      And No: Using a precompiled Package is no Solution in my case. I need OpenSSL Support.

      Happy weekend everyone :)
      Oliver
      ++++
      EDIT02:
      The 'Fix' for MinGW has obviously fixed ahm nothing:
      fix build with MinGW header version > 3.0 / Link to Qt Code Review
      ++++

      1 Reply Last reply
      0
      • MeerMusikM Offline
        MeerMusikM Offline
        MeerMusik
        wrote on last edited by
        #9

        Alright. I created a
        Quick and Dirty Bug Report in Jira

        1 Reply Last reply
        0
        • S Offline
          S Offline
          sardylan
          wrote on last edited by sardylan
          #10

          I resolved removing several lines into a header file in GCC folders.
          I don't remember the site and I haven't the link, but I still have to patch file:

          From: =?UTF-8?q?Jonas=20K=C3=BCmmerlin?= <rgcjonas@gmail.com>
          Date: Mon, 16 Mar 2015 14:46:36 +0100
          Subject: [PATCH] activscp.idl: Remove duplicate IID_* definitions
          
          ---
           mingw-w64-headers/include/activscp.h   | 34 ++++------------------------------
           mingw-w64-headers/include/activscp.idl | 26 --------------------------
           2 files changed, 4 insertions(+), 56 deletions(-)
          
          diff --git a/mingw-w64-headers/include/activscp.h b/mingw-w64-headers/include/activscp.h
          index 847290e..1e0aa11 100644
          --- a/mingw-w64-headers/include/activscp.h
          +++ b/mingw-w64-headers/include/activscp.h
          @@ -175,35 +175,9 @@ extern "C" {
           DEFINE_GUID(CATID_ActiveScript, 0xf0b7a1a1, 0x9847, 0x11cf, 0x8f, 0x20, 0x00, 0x80, 0x5f, 0x2c, 0xd0, 0x64);
           DEFINE_GUID(CATID_ActiveScriptParse, 0xf0b7a1a2, 0x9847, 0x11cf, 0x8f, 0x20, 0x00, 0x80, 0x5f, 0x2c, 0xd0, 0x64);
           DEFINE_GUID(CATID_ActiveScriptEncode, 0xf0b7a1a3, 0x9847, 0x11cf, 0x8f, 0x20, 0x00, 0x80, 0x5f, 0x2c, 0xd0, 0x64);
          -DEFINE_GUID(IID_IActiveScript, 0xbb1a2ae1, 0xa4f9, 0x11cf, 0x8f, 0x20, 0x00, 0x80, 0x5f, 0x2c, 0xd0, 0x64);
          -DEFINE_GUID(IID_IActiveScriptParse32, 0xbb1a2ae2, 0xa4f9, 0x11cf, 0x8f, 0x20, 0x00, 0x80, 0x5f, 0x2c, 0xd0, 0x64);
          -DEFINE_GUID(IID_IActiveScriptParse64, 0xc7ef7658, 0xe1ee, 0x480e, 0x97, 0xea, 0xd5, 0x2c, 0xb4, 0xd7, 0x6d, 0x17);
          -DEFINE_GUID(IID_IActiveScriptEncode, 0xbb1a2ae3, 0xa4f9, 0x11cf, 0x8f, 0x20, 0x00, 0x80, 0x5f, 0x2c, 0xd0, 0x64);
          -DEFINE_GUID(IID_IActiveScriptHostEncode, 0xbee9b76e, 0xcfe3, 0x11d1, 0xb7, 0x47, 0x00, 0xc0, 0x4f, 0xc2, 0xb0, 0x85);
          -DEFINE_GUID(IID_IActiveScriptParseProcedureOld32, 0x1cff0050, 0x6fdd, 0x11d0, 0x93, 0x28, 0x00, 0xa0, 0xc9, 0x0d, 0xca, 0xa9);
          -DEFINE_GUID(IID_IActiveScriptParseProcedureOld64, 0x21f57128, 0x08c9, 0x4638, 0xba, 0x12, 0x22, 0xd1, 0x5d, 0x88, 0xdc, 0x5c);
          -DEFINE_GUID(IID_IActiveScriptParseProcedure32, 0xaa5b6a80, 0xb834, 0x11d0, 0x93, 0x2f, 0x00, 0xa0, 0xc9, 0x0d, 0xca, 0xa9);
          -DEFINE_GUID(IID_IActiveScriptParseProcedure64, 0xc64713b6, 0xe029, 0x4cc5, 0x92, 0x00, 0x43, 0x8b, 0x72, 0x89, 0x0b, 0x6a);
          -DEFINE_GUID(IID_IActiveScriptParseProcedure2_32, 0x71ee5b20, 0xfb04, 0x11d1, 0xb3, 0xa8, 0x00, 0xa0, 0xc9, 0x11, 0xe8, 0xb2);
          -DEFINE_GUID(IID_IActiveScriptParseProcedure2_64, 0xfe7c4271, 0x210c, 0x448d, 0x9f, 0x54, 0x76, 0xda, 0xb7, 0x04, 0x7b, 0x28);
          -DEFINE_GUID(IID_IActiveScriptSite, 0xdb01a1e3, 0xa42b, 0x11cf, 0x8f, 0x20, 0x00, 0x80, 0x5f, 0x2c, 0xd0, 0x64);
          -DEFINE_GUID(IID_IActiveScriptSiteTraceInfo, 0x4b7272ae, 0x1955, 0x4bfe, 0x98, 0xb0, 0x78, 0x6, 0x21, 0x88, 0x85, 0x69);
          -DEFINE_GUID(IID_IActiveScriptSiteWindow, 0xd10f6761, 0x83e9, 0x11cf, 0x8f, 0x20, 0x00, 0x80, 0x5f, 0x2c, 0xd0, 0x64);
          -DEFINE_GUID(IID_IActiveScriptSiteInterruptPoll, 0x539698a0, 0xcdca, 0x11cf, 0xa5, 0xeb, 0x00, 0xaa, 0x00, 0x47, 0xa0, 0x63);
          -DEFINE_GUID(IID_IActiveScriptSiteUIControl, 0xaedae97e, 0xd7ee, 0x4796, 0xb9, 0x60, 0x7f, 0x9, 0x2a, 0xe8, 0x44, 0xab);
          -DEFINE_GUID(IID_IActiveScriptError,   0xeae1ba61, 0xa4ed, 0x11cf, 0x8f, 0x20, 0x00, 0x80, 0x5f, 0x2c, 0xd0, 0x64);
          -DEFINE_GUID(IID_IActiveScriptError64, 0xb21fb2a1, 0x5b8f, 0x4963, 0x8c, 0x21, 0x21, 0x45, 0x0f, 0x84, 0xed, 0x7f);
          -DEFINE_GUID(IID_IBindEventHandler, 0x63cdbcb0, 0xc1b1, 0x11d0, 0x93, 0x36, 0x00, 0xa0, 0xc9, 0x0d, 0xca, 0xa9);
          -DEFINE_GUID(IID_IActiveScriptStats, 0xb8da6310, 0xe19b, 0x11d0, 0x93, 0x3c, 0x00, 0xa0, 0xc9, 0x0d, 0xca, 0xa9);
          -DEFINE_GUID(IID_IActiveScriptProperty, 0x4954E0D0, 0xFBC7, 0x11D1, 0x84, 0x10, 0x00, 0x60, 0x08, 0xC3, 0xFB, 0xFC);
          -DEFINE_GUID(IID_ITridentEventSink, 0x1dc9ca50, 0x6ef, 0x11d2, 0x84, 0x15, 0x00, 0x60, 0x08, 0xc3, 0xfb, 0xfc);
          -DEFINE_GUID(IID_IActiveScriptGarbageCollector, 0x6aa2c4a0, 0x2b53, 0x11d4, 0xa2, 0xa0, 0x00, 0x10, 0x4b, 0xd3, 0x50, 0x90);
          -DEFINE_GUID(IID_IActiveScriptSIPInfo, 0x764651d0, 0x38de, 0x11d4, 0xa2, 0xa3, 0x00, 0x10, 0x4b, 0xd3, 0x50, 0x90);
          -DEFINE_GUID(IID_IActiveScriptTraceInfo, 0xC35456E7, 0xBEBF, 0x4a1b, 0x86, 0xA9, 0x24, 0xD5, 0x6B, 0xE8, 0xB3, 0x69);
           DEFINE_GUID(OID_VBSSIP, 0x1629f04e, 0x2799, 0x4db5, 0x8f, 0xe5, 0xac, 0xe1, 0x0f, 0x17, 0xeb, 0xab);
           DEFINE_GUID(OID_JSSIP,  0x6c9e010, 0x38ce, 0x11d4, 0xa2, 0xa3, 0x00, 0x10, 0x4b, 0xd3, 0x50, 0x90);
           DEFINE_GUID(OID_WSFSIP, 0x1a610570, 0x38ce, 0x11d4, 0xa2, 0xa3, 0x00, 0x10, 0x4b, 0xd3, 0x50, 0x90);
          -DEFINE_GUID(IID_IActiveScriptStringCompare, 0x58562769, 0xED52, 0x42f7, 0x84, 0x03, 0x49, 0x63, 0x51, 0x4E, 0x1F, 0x11);
           #endif
           
           #define SCRIPTITEM_ISVISIBLE 0x00000002
          @@ -956,7 +930,7 @@ IActiveScriptSiteWindow : public IUnknown
                   HWND *phwnd) = 0;
           
               virtual HRESULT STDMETHODCALLTYPE EnableModeless(
          -        WINBOOL fEnable) = 0;
          +        BOOL fEnable) = 0;
           
           };
           #ifdef __CRT_UUID_DECL
          @@ -985,7 +959,7 @@ typedef struct IActiveScriptSiteWindowVtbl {
           
               HRESULT (STDMETHODCALLTYPE *EnableModeless)(
                   IActiveScriptSiteWindow* This,
          -        WINBOOL fEnable);
          +        BOOL fEnable);
           
               END_INTERFACE
           } IActiveScriptSiteWindowVtbl;
          @@ -1017,7 +991,7 @@ static FORCEINLINE ULONG IActiveScriptSiteWindow_Release(IActiveScriptSiteWindow
           static FORCEINLINE HRESULT IActiveScriptSiteWindow_GetWindow(IActiveScriptSiteWindow* This,HWND *phwnd) {
               return This->lpVtbl->GetWindow(This,phwnd);
           }
          -static FORCEINLINE HRESULT IActiveScriptSiteWindow_EnableModeless(IActiveScriptSiteWindow* This,WINBOOL fEnable) {
          +static FORCEINLINE HRESULT IActiveScriptSiteWindow_EnableModeless(IActiveScriptSiteWindow* This,BOOL fEnable) {
               return This->lpVtbl->EnableModeless(This,fEnable);
           }
           #endif
          @@ -1035,7 +1009,7 @@ void __RPC_STUB IActiveScriptSiteWindow_GetWindow_Stub(
               DWORD* pdwStubPhase);
           HRESULT STDMETHODCALLTYPE IActiveScriptSiteWindow_EnableModeless_Proxy(
               IActiveScriptSiteWindow* This,
          -    WINBOOL fEnable);
          +    BOOL fEnable);
           void __RPC_STUB IActiveScriptSiteWindow_EnableModeless_Stub(
               IRpcStubBuffer* This,
               IRpcChannelBuffer* pRpcChannelBuffer,
          diff --git a/mingw-w64-headers/include/activscp.idl b/mingw-w64-headers/include/activscp.idl
          index be17c66..c979b53 100755
          --- a/mingw-w64-headers/include/activscp.idl
          +++ b/mingw-w64-headers/include/activscp.idl
          @@ -23,35 +23,9 @@ cpp_quote("")
           cpp_quote("DEFINE_GUID(CATID_ActiveScript, 0xf0b7a1a1, 0x9847, 0x11cf, 0x8f, 0x20, 0x00, 0x80, 0x5f, 0x2c, 0xd0, 0x64);")
           cpp_quote("DEFINE_GUID(CATID_ActiveScriptParse, 0xf0b7a1a2, 0x9847, 0x11cf, 0x8f, 0x20, 0x00, 0x80, 0x5f, 0x2c, 0xd0, 0x64);")
           cpp_quote("DEFINE_GUID(CATID_ActiveScriptEncode, 0xf0b7a1a3, 0x9847, 0x11cf, 0x8f, 0x20, 0x00, 0x80, 0x5f, 0x2c, 0xd0, 0x64);")
          -cpp_quote("DEFINE_GUID(IID_IActiveScript, 0xbb1a2ae1, 0xa4f9, 0x11cf, 0x8f, 0x20, 0x00, 0x80, 0x5f, 0x2c, 0xd0, 0x64);")
          -cpp_quote("DEFINE_GUID(IID_IActiveScriptParse32, 0xbb1a2ae2, 0xa4f9, 0x11cf, 0x8f, 0x20, 0x00, 0x80, 0x5f, 0x2c, 0xd0, 0x64);")
          -cpp_quote("DEFINE_GUID(IID_IActiveScriptParse64, 0xc7ef7658, 0xe1ee, 0x480e, 0x97, 0xea, 0xd5, 0x2c, 0xb4, 0xd7, 0x6d, 0x17);")
          -cpp_quote("DEFINE_GUID(IID_IActiveScriptEncode, 0xbb1a2ae3, 0xa4f9, 0x11cf, 0x8f, 0x20, 0x00, 0x80, 0x5f, 0x2c, 0xd0, 0x64);")
          -cpp_quote("DEFINE_GUID(IID_IActiveScriptHostEncode, 0xbee9b76e, 0xcfe3, 0x11d1, 0xb7, 0x47, 0x00, 0xc0, 0x4f, 0xc2, 0xb0, 0x85);")
          -cpp_quote("DEFINE_GUID(IID_IActiveScriptParseProcedureOld32, 0x1cff0050, 0x6fdd, 0x11d0, 0x93, 0x28, 0x00, 0xa0, 0xc9, 0x0d, 0xca, 0xa9);")
          -cpp_quote("DEFINE_GUID(IID_IActiveScriptParseProcedureOld64, 0x21f57128, 0x08c9, 0x4638, 0xba, 0x12, 0x22, 0xd1, 0x5d, 0x88, 0xdc, 0x5c);")
          -cpp_quote("DEFINE_GUID(IID_IActiveScriptParseProcedure32, 0xaa5b6a80, 0xb834, 0x11d0, 0x93, 0x2f, 0x00, 0xa0, 0xc9, 0x0d, 0xca, 0xa9);")
          -cpp_quote("DEFINE_GUID(IID_IActiveScriptParseProcedure64, 0xc64713b6, 0xe029, 0x4cc5, 0x92, 0x00, 0x43, 0x8b, 0x72, 0x89, 0x0b, 0x6a);")
          -cpp_quote("DEFINE_GUID(IID_IActiveScriptParseProcedure2_32, 0x71ee5b20, 0xfb04, 0x11d1, 0xb3, 0xa8, 0x00, 0xa0, 0xc9, 0x11, 0xe8, 0xb2);")
          -cpp_quote("DEFINE_GUID(IID_IActiveScriptParseProcedure2_64, 0xfe7c4271, 0x210c, 0x448d, 0x9f, 0x54, 0x76, 0xda, 0xb7, 0x04, 0x7b, 0x28);")
          -cpp_quote("DEFINE_GUID(IID_IActiveScriptSite, 0xdb01a1e3, 0xa42b, 0x11cf, 0x8f, 0x20, 0x00, 0x80, 0x5f, 0x2c, 0xd0, 0x64);")
          -cpp_quote("DEFINE_GUID(IID_IActiveScriptSiteTraceInfo, 0x4b7272ae, 0x1955, 0x4bfe, 0x98, 0xb0, 0x78, 0x6, 0x21, 0x88, 0x85, 0x69);")
          -cpp_quote("DEFINE_GUID(IID_IActiveScriptSiteWindow, 0xd10f6761, 0x83e9, 0x11cf, 0x8f, 0x20, 0x00, 0x80, 0x5f, 0x2c, 0xd0, 0x64);")
          -cpp_quote("DEFINE_GUID(IID_IActiveScriptSiteInterruptPoll, 0x539698a0, 0xcdca, 0x11cf, 0xa5, 0xeb, 0x00, 0xaa, 0x00, 0x47, 0xa0, 0x63);")
          -cpp_quote("DEFINE_GUID(IID_IActiveScriptSiteUIControl, 0xaedae97e, 0xd7ee, 0x4796, 0xb9, 0x60, 0x7f, 0x9, 0x2a, 0xe8, 0x44, 0xab);")
          -cpp_quote("DEFINE_GUID(IID_IActiveScriptError,   0xeae1ba61, 0xa4ed, 0x11cf, 0x8f, 0x20, 0x00, 0x80, 0x5f, 0x2c, 0xd0, 0x64);")
          -cpp_quote("DEFINE_GUID(IID_IActiveScriptError64, 0xb21fb2a1, 0x5b8f, 0x4963, 0x8c, 0x21, 0x21, 0x45, 0x0f, 0x84, 0xed, 0x7f);")
          -cpp_quote("DEFINE_GUID(IID_IBindEventHandler, 0x63cdbcb0, 0xc1b1, 0x11d0, 0x93, 0x36, 0x00, 0xa0, 0xc9, 0x0d, 0xca, 0xa9);")
          -cpp_quote("DEFINE_GUID(IID_IActiveScriptStats, 0xb8da6310, 0xe19b, 0x11d0, 0x93, 0x3c, 0x00, 0xa0, 0xc9, 0x0d, 0xca, 0xa9);")
          -cpp_quote("DEFINE_GUID(IID_IActiveScriptProperty, 0x4954E0D0, 0xFBC7, 0x11D1, 0x84, 0x10, 0x00, 0x60, 0x08, 0xC3, 0xFB, 0xFC);")
          -cpp_quote("DEFINE_GUID(IID_ITridentEventSink, 0x1dc9ca50, 0x6ef, 0x11d2, 0x84, 0x15, 0x00, 0x60, 0x08, 0xc3, 0xfb, 0xfc);")
          -cpp_quote("DEFINE_GUID(IID_IActiveScriptGarbageCollector, 0x6aa2c4a0, 0x2b53, 0x11d4, 0xa2, 0xa0, 0x00, 0x10, 0x4b, 0xd3, 0x50, 0x90);")
          -cpp_quote("DEFINE_GUID(IID_IActiveScriptSIPInfo, 0x764651d0, 0x38de, 0x11d4, 0xa2, 0xa3, 0x00, 0x10, 0x4b, 0xd3, 0x50, 0x90);")
          -cpp_quote("DEFINE_GUID(IID_IActiveScriptTraceInfo, 0xC35456E7, 0xBEBF, 0x4a1b, 0x86, 0xA9, 0x24, 0xD5, 0x6B, 0xE8, 0xB3, 0x69);")
           cpp_quote("DEFINE_GUID(OID_VBSSIP, 0x1629f04e, 0x2799, 0x4db5, 0x8f, 0xe5, 0xac, 0xe1, 0x0f, 0x17, 0xeb, 0xab);")
           cpp_quote("DEFINE_GUID(OID_JSSIP,  0x6c9e010, 0x38ce, 0x11d4, 0xa2, 0xa3, 0x00, 0x10, 0x4b, 0xd3, 0x50, 0x90);")
           cpp_quote("DEFINE_GUID(OID_WSFSIP, 0x1a610570, 0x38ce, 0x11d4, 0xa2, 0xa3, 0x00, 0x10, 0x4b, 0xd3, 0x50, 0x90);")
          -cpp_quote("DEFINE_GUID(IID_IActiveScriptStringCompare, 0x58562769, 0xED52, 0x42f7, 0x84, 0x03, 0x49, 0x63, 0x51, 0x4E, 0x1F, 0x11);")
           cpp_quote("#endif")
           cpp_quote("")
           cpp_quote("#define SCRIPTITEM_ISVISIBLE 0x00000002")
          -- 
          2.1.0```
          1 Reply Last reply
          0
          • MeerMusikM Offline
            MeerMusikM Offline
            MeerMusik
            wrote on last edited by MeerMusik
            #11

            Morning.

            The Bug was closed as "Out Of Scope" - newer Compilers are not officially supported. So Digia sees no reason to fix their Stuff.

            I installed the Compiler from this precompiled Package:
            "qt-opensource-windows-x86-mingw492-5.5.0.exe"
            Available here and I finally was able to build the whole Package including all Examples. First I had to recompile OpenSSL and ICU55 of course.

            For the x86_64 Compiler Variant: For the lack of available time, I have not looked yet into a working x86_64 Compiler.

            Oliver

            1 Reply Last reply
            1
            • Paul H.P Offline
              Paul H.P Offline
              Paul H.
              wrote on last edited by Paul H.
              #12

              Thanks for the update, Oliver. I'll give this 64bit toolchain a try, unless you already have:
              gcc version 4.9.2 (x86_64-posix-seh-rev1, Built by MinGW-W64 project)
              I'll let you know if I have any success.
              Paul

              Edit: Build with that toolchain was successful.

              MeerMusikM 1 Reply Last reply
              0
              • Paul H.P Paul H.

                Thanks for the update, Oliver. I'll give this 64bit toolchain a try, unless you already have:
                gcc version 4.9.2 (x86_64-posix-seh-rev1, Built by MinGW-W64 project)
                I'll let you know if I have any success.
                Paul

                Edit: Build with that toolchain was successful.

                MeerMusikM Offline
                MeerMusikM Offline
                MeerMusik
                wrote on last edited by MeerMusik
                #13

                @Paul-H.

                Thanks for the Update :) This one worked for me on older Qt Versions very well. It's good to know that it still does what it should.

                B 1 Reply Last reply
                0
                • MeerMusikM MeerMusik

                  @Paul-H.

                  Thanks for the Update :) This one worked for me on older Qt Versions very well. It's good to know that it still does what it should.

                  B Offline
                  B Offline
                  BK_Broiler
                  wrote on last edited by
                  #14

                  @MeerMusik
                  I found an alternative solution to the macro duplication bug in activscp.h that appears to work with the current version of MinGW's GCC5.1. based on an older work around.

                  Since the only file that includes activscp.h is .\qt-5.5.0\qtactiveqt\src\activeqt\container\qaxscript.cpp
                  and since the latest gcc major release is 4.0
                  I modified line 51 as follows :
                  //#if defined(Q_CC_GNU) && __MINGW64_VERSION_MAJOR == 3 && __MINGW64_VERSION_MINOR > 0
                  #if defined(Q_CC_GNU) && __MINGW64_VERSION_MAJOR >= 3 && __MINGW64_VERSION_MINOR >= 0
                  // Workaround for mingw-w64 bug #464
                  // See https://sourceforge.net/p/mingw-w64/bugs/464/

                  Hope this helps

                  E 1 Reply Last reply
                  0
                  • B BK_Broiler

                    @MeerMusik
                    I found an alternative solution to the macro duplication bug in activscp.h that appears to work with the current version of MinGW's GCC5.1. based on an older work around.

                    Since the only file that includes activscp.h is .\qt-5.5.0\qtactiveqt\src\activeqt\container\qaxscript.cpp
                    and since the latest gcc major release is 4.0
                    I modified line 51 as follows :
                    //#if defined(Q_CC_GNU) && __MINGW64_VERSION_MAJOR == 3 && __MINGW64_VERSION_MINOR > 0
                    #if defined(Q_CC_GNU) && __MINGW64_VERSION_MAJOR >= 3 && __MINGW64_VERSION_MINOR >= 0
                    // Workaround for mingw-w64 bug #464
                    // See https://sourceforge.net/p/mingw-w64/bugs/464/

                    Hope this helps

                    E Offline
                    E Offline
                    ericlemanissier
                    wrote on last edited by ericlemanissier
                    #15

                    @BK_Broiler

                    Thanks for finding the solution ! Though, I would rather recommend the following:

                    #if defined(Q_CC_GNU) && (__MINGW64_VERSION_MAJOR == 3 && __MINGW64_VERSION_MINOR > 0 || __MINGW64_VERSION_MAJOR >= 4)

                    DId you submit this on gerrit ?

                    edit: I submitted it on Gerrit : https://codereview.qt-project.org/#/c/122421/

                    1 Reply Last reply
                    0
                    • MeerMusikM Offline
                      MeerMusikM Offline
                      MeerMusik
                      wrote on last edited by
                      #16

                      Morning.

                      Thanks @BK_Broiler for the Hint. Too late for me as I have to Switch to MSVC 2015 right now. For external reasons [dependencies]. But hopefully that will help other People :)

                      Oliver

                      1 Reply Last reply
                      0

                      • Login

                      • Login or register to search.
                      • First post
                        Last post
                      0
                      • Categories
                      • Recent
                      • Tags
                      • Popular
                      • Users
                      • Groups
                      • Search
                      • Get Qt Extensions
                      • Unsolved