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. Project compiling me in dynamic no static

Project compiling me in dynamic no static

Scheduled Pinned Locked Moved Unsolved General and Desktop
11 Posts 2 Posters 1.6k 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.
  • RIVOPICOR Offline
    RIVOPICOR Offline
    RIVOPICO
    wrote on last edited by
    #1

    I have the built static and all things, but i dont know why my project compile in dynamic if i selected static.
    Picture of dynamic:
    alt text
    How i can change in my project to force the static compilation . Thanks in advance!

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

      Hi,

      The upload feature of the forum is broken. You should upload your image to an image sharing site and post the link here.

      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
      • RIVOPICOR Offline
        RIVOPICOR Offline
        RIVOPICO
        wrote on last edited by
        #3

        https://i.imgsafe.org/5c2a726da5.jpg

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

          You are trying to link a library that has been linked to the static version of the Visual Studio runtime with something that is not.

          Since you wrote that you built that library yourself, you should do it again but link with the dynamic VS runtime.

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

          RIVOPICOR 1 Reply Last reply
          0
          • SGaistS SGaist

            You are trying to link a library that has been linked to the static version of the Visual Studio runtime with something that is not.

            Since you wrote that you built that library yourself, you should do it again but link with the dynamic VS runtime.

            RIVOPICOR Offline
            RIVOPICOR Offline
            RIVOPICO
            wrote on last edited by
            #5
            This post is deleted!
            1 Reply Last reply
            0
            • RIVOPICOR Offline
              RIVOPICOR Offline
              RIVOPICO
              wrote on last edited by RIVOPICO
              #6
              This post is deleted!
              1 Reply Last reply
              0
              • RIVOPICOR Offline
                RIVOPICOR Offline
                RIVOPICO
                wrote on last edited by
                #7
                This post is deleted!
                1 Reply Last reply
                0
                • RIVOPICOR Offline
                  RIVOPICOR Offline
                  RIVOPICO
                  wrote on last edited by
                  #8

                  Yeah but i have static build i dont know why takes me dynamic if i put in my projec tthe static build.

                  1 Reply Last reply
                  0
                  • RIVOPICOR Offline
                    RIVOPICOR Offline
                    RIVOPICO
                    wrote on last edited by RIVOPICO
                    #9

                    in other projects i can do static build.

                    However in the other show me this:
                    https://i.imgsafe.org/5c2a726da5.jpg

                    Why? So in other words i am using qt static build and library is static which is the problem-'

                    1 Reply Last reply
                    0
                    • RIVOPICOR Offline
                      RIVOPICOR Offline
                      RIVOPICO
                      wrote on last edited by
                      #10

                      I think the problem is the library only works like dynamic library

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

                        On Windows you have 4 possibilities:

                        1. Dynamic build with dynamic runtime
                        2. Dynamic build with static runtime
                        3. Static build with dynamic runtime
                        4. Static build with static runtime

                        You are using number 4 for your library while Qt using number 1. You can mix and match static and dynamic libraries as long as you are linking to the same runtime type.

                        In your case, what you have to do is use number 3 for your 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

                        • Login

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