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. Qt compilation exited with code -1073741515
Forum Updated to NodeBB v4.3 + New Features

Qt compilation exited with code -1073741515

Scheduled Pinned Locked Moved General and Desktop
7 Posts 3 Posters 5.9k 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
    venkatesh
    wrote on last edited by
    #1

    Hi,
    I am developing an image processing application in Qt. I had problems with libs. I tried commenting all the libs, which I was not using. Now the build happens correctly. But I get this error when I run the application. What's reason for this error. I use VS 20!2, Qt 4.8.5 and QMake for building.

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

      Hi,

      It's not a compilation issue. You have one or more missing dependencies when starting your application. Check that the PATH contains all folders to the dlls your application needs

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

        Just a side note:

        This exit code should be interpreted as an unsigned 32-Bit value. Then you get -1073741515 ⇒ 0xC0000135, which is the "NT status code":http://www.tenox.net/links/ntstatus.html for STATUS_DLL_NOT_FOUND. It means Windows could not start the program, because a required DLL file is missing.

        My OpenSource software at: http://muldersoft.com/

        Qt v4.8.6 MSVC 2013, static/shared: http://goo.gl/BXqhrS

        Go visit the coop: http://youtu.be/Jay...

        1 Reply Last reply
        0
        • V Offline
          V Offline
          venkatesh
          wrote on last edited by
          #4

          Hi,
          I checked running the .exe which was generated it pops up itkcommon.dll is not found. But I built all the libs as static, not dynamic. I have also added the libpath of itk and vtk in environmental variables.Is there any work around for the problem?

          1 Reply Last reply
          0
          • M Offline
            M Offline
            MuldeR
            wrote on last edited by
            #5

            Put "itkcommon.dll" into the same directory where the EXE file is located. Alternatively you could put it into one of the directories in your PATH environment variable or into the SYSTEM directory.

            For details see "Dynamic-Link Library Search Order":http://tinyurl.com/q2t6jjf.

            Furthermore, I highly recommend you try this tool:
            [url]http://www.dependencywalker.com/[/url]

            DependencyWalker is a must-have for tracking down DLL dependencies :-)

            My OpenSource software at: http://muldersoft.com/

            Qt v4.8.6 MSVC 2013, static/shared: http://goo.gl/BXqhrS

            Go visit the coop: http://youtu.be/Jay...

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

              Hi,
              But the problem is i built all the libs as static, not dynamic. I have already added the static lib to the project file, i couldn't find the itkcommon.dll as i didn't built any libs as dynamic...

              1 Reply Last reply
              0
              • M Offline
                M Offline
                MuldeR
                wrote on last edited by
                #7

                If your application depends on "itkcommon.dll", which it obviously does (but you may want to verify that with Dependency Walker), it was built using a dynamically linked version ITK. No doubt about that. So if you want to link statically, please make sure you really have built ITK as a static lib and that you are linking against the correct (static) .lib file! Please keep in mind that, on Windows, there are two completely different "flavors" of .lib files: Static libraries and import libraries. Import libraries are .lib files too, but they're only "stub" files that make your EXE file depend on the corresponding DLL.

                My OpenSource software at: http://muldersoft.com/

                Qt v4.8.6 MSVC 2013, static/shared: http://goo.gl/BXqhrS

                Go visit the coop: http://youtu.be/Jay...

                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