Qt Forum

    • Login
    • Search
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Groups
    • Search
    • Unsolved

    Update: Forum Guidelines & Code of Conduct

    Unsolved Building Qt with OpenSSL and ICU support FAILED

    Installation and Deployment
    openssl icu build qt
    3
    8
    3372
    Loading More Posts
    • 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.
    • L
      Leonis last edited by

      Hello all,

      I'm making a program using webkit to view a site with https. However, the current official release of 5.1.1 does not contain openssl support and I'm willing to build one by myself.
      I built one under this tutorial
      https://wiki.qt.io/Building_a_static_Qt_for_Windows_using_MinGW
      and this one for building ICU modual

      But while I compiled with the following configuration using my own build of ICU,

      configure.bat -debug-and-release -platform win32-g++ -prefix $QtDir ` 
      -qt-zlib -qt-pcre -qt-libpng -qt-libjpeg -qt-freetype -opengl desktop -qt-sql-sqlite ` 
      -icu -I C:\source\icu2\include -L C:\source\icu2\lib ` 
      -openssl -I C:\source\openssl-1.0.2ae\include -L C:\source\openssl-1.0.2e `
      -opensource -confirm-license `
      -make libs -nomake tools -nomake examples -nomake tests
      

      it always return an error of "cannot find -licuxx". But I'm sure the files can be found under lib path I provide from configre.

      mingw32-make : C:/Qt/Qt5.5.1/Tools/mingw492_32/bin/../lib/gcc/i686-w64-mingw32/4.9.2/../../../../i686-w64-mingw32/bin/ld.exe: cannot find -licuin
      C:\source\windows-build-qt-static_1.ps1:173 : 5
      +     mingw32-make -k install
      +     ~~~~~~~~~~~~~~~~~~~~~~~
          + CategoryInfo          : NotSpecified: (C:/Qt/Qt5.5.1/T...ot find -licuin:String) [], RemoteException
          + FullyQualifiedErrorId : NativeCommandError
       
      C:/Qt/Qt5.5.1/Tools/mingw492_32
      /bin/../lib/gcc/i686-w64-mingw32/4.9.2/../../../../i686-w64-mingw32/bin/ld.exe: cannot find -licuuc
      C:/Qt/Qt5.5.1/Tools/mingw492_32/bin/../lib/gcc/i686-w64-mingw32/4.9.2/../../../..
      /i686-w64-mingw32
      /bin
      /ld.exe
      : cannot find
       -licudt
      collect2.exe: error: ld returned 1 exit status
      

      Please help me to find a way to solve it, or othe way to obtain a build with openssl support?
      Thanks a lot!

      raven-worx 1 Reply Last reply Reply Quote 0
      • raven-worx
        raven-worx Moderators @Leonis last edited by

        @Leonis
        i don't see that you specify the path to icu libs (using -L linker parameter) like you did for the openssl libs

        --- SUPPORT REQUESTS VIA CHAT WILL BE IGNORED ---
        If you have a question please use the forum so others can benefit from the solution in the future

        L 1 Reply Last reply Reply Quote 0
        • L
          Leonis @raven-worx last edited by

          @raven-worx Thanks for your reply
          I wrote the icu libs link above the openssl, but still not work...

          ...
          -icu -I C:\source\icu2\include -L C:\source\icu2\lib
          -openssl -I C:\source\openssl-1.0.2ae\include -L C:\source\openssl-1.0.2e
          ...
          
          1 Reply Last reply Reply Quote 0
          • L
            Leonis last edited by

            I wander I built the ICU with dynamic way, do I need to build it statically?

            raven-worx 1 Reply Last reply Reply Quote 0
            • raven-worx
              raven-worx Moderators @Leonis last edited by

              @Leonis said:

              I wander I built the ICU with dynamic way, do I need to build it statically?

              in general not. It's supported to mix static and dynamic libs.
              But i don't know what the -icu switch in combination with the -static switch does internally.
              I guess you have to link icu statically in the end.

              But nevertheless, your current error isn't a linkage error. It already can't find the specified lib.

              --- SUPPORT REQUESTS VIA CHAT WILL BE IGNORED ---
              If you have a question please use the forum so others can benefit from the solution in the future

              1 Reply Last reply Reply Quote 0
              • L
                Leonis last edited by

                I'm feeling strange that the include files can be found but not for the dlls. I'm going to try another way from the beginning and guessing might be the problem by the script provided by the tutorial mention above. Because the way in the tutorial does not contain ssl.

                1 Reply Last reply Reply Quote 0
                • jsulm
                  jsulm Lifetime Qt Champion last edited by

                  Did you build icu by yourself? If so did you use the same compiler. If not you should check which compiler was used.

                  https://forum.qt.io/topic/113070/qt-code-of-conduct

                  1 Reply Last reply Reply Quote 0
                  • raven-worx
                    raven-worx Moderators last edited by

                    i still think there is simpler explanation for your issue.
                    The linker can't even find the lib file specified.
                    Are you really sure that the libs are in "C:\source\icu2\lib"? And not in a release/debug subfolder, etc.?

                    --- SUPPORT REQUESTS VIA CHAT WILL BE IGNORED ---
                    If you have a question please use the forum so others can benefit from the solution in the future

                    1 Reply Last reply Reply Quote 0
                    • First post
                      Last post