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.
  • R Offline
    R Offline
    RIVOPICO
    wrote on 12 Mar 2017, 21:07 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
    • S Offline
      S Offline
      SGaist
      Lifetime Qt Champion
      wrote on 12 Mar 2017, 21:31 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
      • R Offline
        R Offline
        RIVOPICO
        wrote on 12 Mar 2017, 21:51 last edited by
        #3

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

        1 Reply Last reply
        0
        • S Offline
          S Offline
          SGaist
          Lifetime Qt Champion
          wrote on 12 Mar 2017, 21:58 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

          R 1 Reply Last reply 12 Mar 2017, 22:20
          0
          • S SGaist
            12 Mar 2017, 21:58

            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.

            R Offline
            R Offline
            RIVOPICO
            wrote on 12 Mar 2017, 22:20 last edited by
            #5
            This post is deleted!
            1 Reply Last reply
            0
            • R Offline
              R Offline
              RIVOPICO
              wrote on 12 Mar 2017, 22:44 last edited by RIVOPICO 3 Dec 2017, 22:46
              #6
              This post is deleted!
              1 Reply Last reply
              0
              • R Offline
                R Offline
                RIVOPICO
                wrote on 12 Mar 2017, 22:49 last edited by
                #7
                This post is deleted!
                1 Reply Last reply
                0
                • R Offline
                  R Offline
                  RIVOPICO
                  wrote on 12 Mar 2017, 23:21 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
                  • R Offline
                    R Offline
                    RIVOPICO
                    wrote on 12 Mar 2017, 23:29 last edited by RIVOPICO 3 Dec 2017, 23:33
                    #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
                    • R Offline
                      R Offline
                      RIVOPICO
                      wrote on 12 Mar 2017, 23:59 last edited by
                      #10

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

                      1 Reply Last reply
                      0
                      • S Offline
                        S Offline
                        SGaist
                        Lifetime Qt Champion
                        wrote on 13 Mar 2017, 08:03 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

                        1/11

                        12 Mar 2017, 21:07

                        • Login

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