Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. Installation and Deployment
  4. Mingw32 link issue with Qlocalsocket and libimm32 not found
Qt 6.12 LTS is out! See what's new in the release blog

Mingw32 link issue with Qlocalsocket and libimm32 not found

Scheduled Pinned Locked Moved Unsolved Installation and Deployment
11 Posts 2 Posters 5.3k Views 1 Watching
  • 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.
  • SGaistS Offline
    SGaistS Offline
    SGaist
    Lifetime Qt Champion
    wrote on last edited by
    #2

    Hi and welcome to devnet,

    Are you using the MinGW distribution provided by Qt ?

    Interested in AI ? www.idiap.ch
    Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

    1 Reply Last reply
    0
    • M Offline
      M Offline
      mvcv114
      wrote on last edited by
      #3

      Thanks for replying!

      No - I am using the from mingw with the PONIX/dwarf toolchain., though I will say that the version is the same (5.3.0) - confirmed everything within the environment. I tried compiling using the mingw included, but could never get the static libraries to build - most likely because of a configuration/environment issue.

      1 Reply Last reply
      0
      • SGaistS Offline
        SGaistS Offline
        SGaist
        Lifetime Qt Champion
        wrote on last edited by
        #4

        Do you mean you had the same error with the MinGW provided with Qt ?

        Interested in AI ? www.idiap.ch
        Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

        1 Reply Last reply
        0
        • M Offline
          M Offline
          mvcv114
          wrote on last edited by
          #5

          No - I downloaded the mingw environment and toolchain - made sure I was using the same version (5.3.0) that was bundled with 5.8.0 Everything and Installer - when I compile within the mingw environment (installed from mingw) - I am able to build static 5.8.0 libraries for QT. If I try to build using the mingw library that comes with QT, I cannot get it to compile - numerous errors. I see that 5.9.0 is available and will try compiling using that with the mingw environment included. The biggest problem is that some of the embedded libraries (ssl) conflict with the versions trying to compile outside.

          1 Reply Last reply
          0
          • M Offline
            M Offline
            mvcv114
            wrote on last edited by
            #6

            This is the script used to create the library (run as a cmd within windows command prompt, 32 bit):

            @echo off
            rem ====================CONFIGURE BEFORE RUN SCRIPT!!======================
            set QtSrcDir=C:\QT\5.8.0\5.8\Src
            set QtStaticDir=C:\Qt\Build\32\5.8_Static
            set MingwDir=C:\QT\5.8.0\Tools\mingw530_32
            set LANG = en
            rem =======================================================================

            PATH = %MingwDir%\bin;%MingwDir%\opt\bin;C:\Perl\bin;%SystemRoot%\system32;%SystemRoot%

            set FILE_TO_PATCH=%QtSrcDir%\qtbase\mkspecs\win32-g++\qmake.conf
            echo %FILE_TO_PATCH%
            if exist %FILE_TO_PATCH%.patched goto skipPatch
            type %FILE_TO_PATCH%>%FILE_TO_PATCH%.patched
            echo.>>%FILE_TO_PATCH%
            echo QMAKE_LFLAGS += -static -static-libgcc>>%FILE_TO_PATCH%
            echo QMAKE_CFLAGS_RELEASE -= -O2>>%FILE_TO_PATCH%
            echo QMAKE_CFLAGS_RELEASE += -Os -momit-leaf-frame-pointer>>%FILE_TO_PATCH%
            echo DEFINES += QT_STATIC_BUILD>>%FILE_TO_PATCH%
            :skipPatch

            set QT_INSTALL_PREFIX = %QtStaticDir%
            set OldDir=%CD%
            cd %QtSrcDir%
            cmd /C "configure.bat -static -release -platform win32-g++ -prefix %QtStaticDir% -qt-zlib -qt-pcre -qt-libpng -qt-libjpeg -qt-freetype -opengl desktop -no-sql-sqlite -no-openssl -opensource -confirm-license -make libs -make tools -nomake examples -nomake tests -no-angle"
            if ERRORLEVEL 1 goto :error

            mingw32-make -r -k -j4
            if ERRORLEVEL 1 goto :error

            mingw32-make -k install
            if ERRORLEVEL 1 goto :error

            set FILE_TO_PATCH=%QtStaticDir%\mkspecs\win32-g++\qmake.conf
            echo.>>%FILE_TO_PATCH%
            echo CONFIG += static>>%FILE_TO_PATCH%

            echo ============BUILT!============
            goto exitX
            :error
            echo ============ERROR!============
            :exitX
            pause
            cd %OldDir%

            1 Reply Last reply
            0
            • SGaistS Offline
              SGaistS Offline
              SGaist
              Lifetime Qt Champion
              wrote on last edited by
              #7

              For OpenSSL, ensure that you are using a version below 1.1. The 1.1 release broke compatibility with older version. There's a new backend in the making for that but it's not yet ready.

              Interested in AI ? www.idiap.ch
              Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

              1 Reply Last reply
              0
              • M Offline
                M Offline
                mvcv114
                wrote on last edited by
                #8

                Thanks - will certainly try that because downloaded and tried using 5.9.0 - compiled without issue (QT) and the exact same error occurred. Will get a 1,1 version and post if this solved the issue.

                1 Reply Last reply
                0
                • SGaistS Offline
                  SGaistS Offline
                  SGaist
                  Lifetime Qt Champion
                  wrote on last edited by
                  #9

                  WARNING I wrote below 1.1 so a 1.0.X release.

                  Interested in AI ? www.idiap.ch
                  Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

                  1 Reply Last reply
                  0
                  • M Offline
                    M Offline
                    mvcv114
                    wrote on last edited by
                    #10

                    Recompiled using Openssl 1.0.1l. (clean and make) - openssl is placed in usr/local/ssl path so no change of writing over standard library files.

                    No change - the exact same error; also, pushed the 5.9.0 bin folder to be at the end of the general PATH statement:
                    PATH=%PATH%;I:\QT\build\32\5.9.0\bin

                    Opening MINGW environment thereafter:
                    cd C:\MinGW\msys\1.0
                    msys.bat

                    Error:
                    checking QtPlugin usability... yes
                    checking QtPlugin presence... yes
                    checking for QtPlugin... yes
                    checking QApplication usability... yes
                    checking QApplication presence... yes
                    checking for QApplication... yes
                    checking QLocalSocket usability... yes
                    checking QLocalSocket presence... yes
                    checking for QLocalSocket... yes
                    checking for main in -limm32... no
                    configure: error: libimm32 not found

                    1 Reply Last reply
                    0
                    • SGaistS Offline
                      SGaistS Offline
                      SGaist
                      Lifetime Qt Champion
                      wrote on last edited by SGaist
                      #11

                      Can you add the -v option ? So you'll have more information about what is currently failing.

                      Interested in AI ? www.idiap.ch
                      Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

                      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
                      • Unsolved