Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. Installation and Deployment
  4. Bulding problem (qtmuldimedia -no-opengl problem)
Forum Updated to NodeBB v4.3 + New Features

Bulding problem (qtmuldimedia -no-opengl problem)

Scheduled Pinned Locked Moved Installation and Deployment
17 Posts 2 Posters 4.7k 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
    #6

    From your screen shots, it looks rather that Qt is failing to build.

    Did you reconfigure for a static build an already built 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
    • P Offline
      P Offline
      PyroByte
      wrote on last edited by
      #7

      I just downloaded the last Qt 5.4.0 Source and tried to compile it by following this tutorial: https://stackoverflow.com/questions/14932315/how-to-compile-qt-5-under-windows-or-linux-32-or-64-bit-static-or-dynamic-on-v

      I was following these steps to compile the Qt 5.4.0 source for static linkage.

      1. I've edited C:\Qt\5.4\Src\qtbase\mkspecs\win32-msvc2013\qmake.conf the following lines:

      from->
      @QMAKE_CFLAGS_RELEASE = -O2 -MD -Zc:strictStrings
      QMAKE_CFLAGS_RELEASE_WITH_DEBUGINFO += -O2 -MD -Zi -Zc:strictStrings
      QMAKE_CFLAGS_DEBUG = -Zi -MDd@

      to->

      @QMAKE_CFLAGS_RELEASE = -O2 -MT -Zc:strictStrings
      QMAKE_CFLAGS_RELEASE_WITH_DEBUGINFO += -O2 -MT -Zi -Zc:strictStrings
      QMAKE_CFLAGS_DEBUG = -Zi -MTd@

      1. I've applied this patch: https://codereview.qt-project.org/#/c/101817

      2. Then i executed the following commands in CMD:

      @set QMAKESPEC=win32-msvc2013
      set QTDIR=C:\Qt\5.4\Src\qtbase
      set PATH=C:\Qt\5.4\Src\qtbase\bin;%PATH%@

      1. And the last thing i did is executing the following commands in visual studio developer command prompt

      @>configure -debug-and-release -opensource -platform win32-msvc2013 -opengl desktop -static -nomake examples -nomake tests

      jom.exe

      nmake@

      As u can see at the screenshots in my previous post, this is what i get when "jom.exe" and "nmake" finish.

      So, i am having issues with compiling the Qt 5.4.0 source for static build and then i get LNK errors when i try to compile my application.

      Can someone just tell me how to compile Qt 5.4.0 source with Visual Studio 2013 for static build?

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

        Ok, QtDeclarative should not even build when no OpenGL is selected since AFAIK it requires it.

        What I'd do first is to build qtbase only and then the additional needed modules.

        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
        • P Offline
          P Offline
          PyroByte
          wrote on last edited by
          #9

          Would you give me some more details of the building process?

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

            Same as current but either remove the qtdeclarative folder from the sources or call configure directly in qtbase. However you should rather do an out of source build. That way you can more easily start a new build with a different set of parameters (i.e. nuke the current and state from a clean state)

            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
            • P Offline
              P Offline
              PyroByte
              wrote on last edited by
              #11

              EDIT:

              I did exactly what you said. I've compiled the qtbase folder only, i've also deleted qtdeclarative folder before compiling the source and used option -no-opengl while compiling the source. And the same issue again..

              main.cpp
              https://www.dropbox.com/s/ofb6949t2wnnekv/main.png?dl=0

              output
              https://www.dropbox.com/s/he8ij3ow92th0is/output.png?dl=0

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

                Did you add the plugin to QTPLUGIN in your pro file ?

                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
                • P Offline
                  P Offline
                  PyroByte
                  wrote on last edited by
                  #13

                  I am not sure what you are talkin about. What plugin? What pro file? I am using
                  Visual Studio to compile my application. There is no pro file. Should i make it manually or generate it? And what exactly i have to add in the file?

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

                    You have Q_IMPORT_PLUGIN in your main.cpp, this means that you must have a corresponding QTPLUGIN in a pro file, however I don't know where to add that using the Visual Studio add-in

                    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
                    • P Offline
                      P Offline
                      PyroByte
                      wrote on last edited by
                      #15

                      [quote author="SGaist" date="1421104297"]You have Q_IMPORT_PLUGIN in your main.cpp, this means that you must have a corresponding QTPLUGIN in a pro file, however I don't know where to add that using the Visual Studio add-in[/quote]

                      That has nothing to do with the errors i get.

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

                        It has at least for the very first error. For the others, it related to the harfbuzz library

                        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
                        • P Offline
                          P Offline
                          PyroByte
                          wrote on last edited by
                          #17

                          It seems that no one can help me, some of the moderators can close the topic. I am very disappointed!

                          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