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. Runtime Error! Remove dependency on MinGW
Forum Updated to NodeBB v4.3 + New Features

Runtime Error! Remove dependency on MinGW

Scheduled Pinned Locked Moved General and Desktop
13 Posts 3 Posters 8.5k 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.
  • V Offline
    V Offline
    VickyB
    wrote on last edited by
    #1

    Hello,

    I am not sure, if this group is the right place to discuss this, guide me if not...

    I have created an application using QT SDK (4.6.2/2010.02) in QT creator. Its working fine. But if I try to compile the same code in "QT for MSVC 2008" (4.6.2) I get this run time error: Procedure entry point ??QSvgRenderer@@ could not be located in QTSvg.dll

    I believe the code dependent on MinGW. How can I remove this dependency?

    Any help or clue is much appreciated.

    Thanks in advance,
    Vicky

    1 Reply Last reply
    0
    • G Offline
      G Offline
      giesbert
      wrote on last edited by
      #2

      You say: QT for MSVC 2008

      is this completly build by MSVS 2008? all binaries etc?
      I hope you link against the lib files not the dlls?

      Sorry for those questions, but I have already seen such things....

      Nokia Certified Qt Specialist.
      Programming Is Like Sex: One mistake and you have to support it for the rest of your life. (Michael Sinz)

      1 Reply Last reply
      0
      • V Offline
        V Offline
        VickyB
        wrote on last edited by
        #3

        Hello Gerolf,

        Many thanks for your reply.

        I am linking it with the most required libraries, some of them are:
        opengl32.lib
        glu32.lib
        gdi32.lib
        user32.lib
        C:\Qt\4.6.2\lib\qtmain.lib
        C:\Qt\4.6.2\lib\QtSvg4.lib
        C:\Qt\4.6.2\lib\Qt3Support4.lib
        C:\Qt\4.6.2\lib\QtSql4.lib
        C:\Qt\4.6.2\lib\QtXml4.lib
        C:\Qt\4.6.2\lib\QtOpenGL4.lib
        C:\Qt\4.6.2\lib\QtGui4.lib
        C:\Qt\4.6.2\lib\QtCore4.lib

        BTW, these libs were added automatically in the solution settings after I loaded the .pro file (by using the MSVC 2008 QT Plugin).

        Best Regards,
        Vicky

        1 Reply Last reply
        0
        • ? This user is from outside of this forum
          ? This user is from outside of this forum
          Guest
          wrote on last edited by
          #4

          VickyB, its Qt and not QT (QuickTime)

          1 Reply Last reply
          0
          • G Offline
            G Offline
            giesbert
            wrote on last edited by
            #5

            did you look into QtSvg4.dll with dependency viewer? it shows you all exported functions including the mangled names. Then search in this list for exactly the same string from your linker warning.

            Perhaps there are some settings wrong, so the name mangling doesn't fit (wchar_t, RTTI, ...).

            you can post the C** exported name and the searched name (including all the @@ letters etc.) here, perhaps we see womething...

            [EDIT: fixed @-chars, Volker]

            Nokia Certified Qt Specialist.
            Programming Is Like Sex: One mistake and you have to support it for the rest of your life. (Michael Sinz)

            1 Reply Last reply
            0
            • V Offline
              V Offline
              VickyB
              wrote on last edited by
              #6

              When I load my exe app, I get the following dependencies missing:
              https://docs.google.com/document/d/1HdXai7jzoo0QJ8Q77ikEetH992hmu-pluOGl7NS-nLo/edit?hl=en&authkey=CIbR1LwK

              This is my version of (QT 2010.02) \bin\QTSvg4.dll
              https://docs.google.com/document/d/1sCKhGtvdDOGh-NkeSSARzgA1H_SC8ZBEA6gdu86aIdA/edit?hl=en&authkey=CL6bse8D

              Clearly, I got a lot of things missing! What 'settings' influence the dependencies in a QT code? Please note, the code application was initially written in QT SDK and now I want to compile the same code in MSVC 2008. What dependencies are inherited? How can I just simply remove and/or probably re-write that part?

              Danke schön!
              Vicky

              1 Reply Last reply
              0
              • V Offline
                V Offline
                VickyB
                wrote on last edited by
                #7

                Hello All,

                I have resolved the issue. Thanks to Gerolf for his clue on the Dependency Walker. By using it, I was able to find the correct DLL to be used with the EXE I am running. It goes like this:

                • I compiled my application exe in release build
                • I then tried to run it, but the path was set to use QT 2010.02 (4.6.2) DLLs. However, the QT version that was set in MSVC was 4.7.1. So, many functions were found missing!
                • Later I simply changed my bin path and it worked!

                Thanks again,
                Vicky

                [EDIT: no code formatting for lists; use '*' instead of '-', Volker]

                1 Reply Last reply
                0
                • G Offline
                  G Offline
                  giesbert
                  wrote on last edited by
                  #8

                  Hi,

                  Qt MSVS integration uses the internal QTDIR and not the one from the system environment, that is correct. But you can add other versions and also use those, so you can also compile to 4.6.2.

                  Regards

                  Gerolf

                  Nokia Certified Qt Specialist.
                  Programming Is Like Sex: One mistake and you have to support it for the rest of your life. (Michael Sinz)

                  1 Reply Last reply
                  0
                  • V Offline
                    V Offline
                    VickyB
                    wrote on last edited by
                    #9

                    Exactly! The other version(s) although should be for MSVC.
                    Further, if it uses an internal path, and we cannot set it via environment variable (?) , is it a good idea to copy the DLLs with the executable?

                    Thanks,
                    Vicky

                    1 Reply Last reply
                    0
                    • G Offline
                      G Offline
                      goetz
                      wrote on last edited by
                      #10

                      What does this all have to do with the Topic ("Runtime Error! Remove dependency on MinGW").

                      Did you mix Qt libs compiled with MinGW with user code compiled with MSVS (or the other way round)?

                      http://www.catb.org/~esr/faqs/smart-questions.html

                      1 Reply Last reply
                      0
                      • G Offline
                        G Offline
                        giesbert
                        wrote on last edited by
                        #11

                        mingw was wrong in this place I think.

                        He moved from mingw, where it worked, to MSVC where it didn't work, and thought the switch was the problem, but it wasn't :-)

                        Nokia Certified Qt Specialist.
                        Programming Is Like Sex: One mistake and you have to support it for the rest of your life. (Michael Sinz)

                        1 Reply Last reply
                        0
                        • V Offline
                          V Offline
                          VickyB
                          wrote on last edited by
                          #12

                          Hi Volker,

                          As I mentioned earlier, I am new to this group AND I am confused, as correctly stated by Gerolf, forgive me for an OT!

                          Now, that I have resolved the issue of switching and locating/using the korrect DLLs, my query is for correct deployment of my application. Any guidelines that you may suggest!?

                          Thanks again for your time.
                          Vicky

                          1 Reply Last reply
                          0
                          • G Offline
                            G Offline
                            goetz
                            wrote on last edited by
                            #13

                            [quote author="VickyB" date="1297924021"]Now, that I have resolved the issue of switching and locating/using the korrect DLLs, my query is for correct deployment of my application. Any guidelines that you may suggest!?
                            [/quote]

                            Yep. Reading some docs: http://doc.qt.nokia.com/4.7/deployment.html and search in the forums :-)

                            http://www.catb.org/~esr/faqs/smart-questions.html

                            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