Qt error 1073741515

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 ...

Forum Updated on Feb 6th

This topic has been deleted. Only users with topic management privileges can see it.

  • 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.

  • 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

  • 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.

  • 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?

  • 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 :-)

  • 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…

  • 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.

  • Home
  • Forum
  • Qt
  • Qt Programming
  • 1073741515 problem

  1. 1st December 2013, 00:03


    #1

    Default 1073741515 problem

    This is the strangest thing I have seen in Qt. Built a simple test application with one external library plus qwt.
    Just one other source file plus the main window.

    Compiles fine, runs fine, no errors. Then just change the title in the main window. Recompile (ok) and run and get the 1073741515 error. I have tried this in multiple little test projects and it happens every time.
    Driving me nuts, any advice greatly appreciated.

    Thanks
    WaynePortaudio_Test.zip


  2. 1st December 2013, 09:35


    #2

    Default Re: 1073741515 problem

    When quote error numbers and messages it is important to be precise. The error number is «-1073741515» not «1073741515». The value -1073741515 is 0xC0000135 in hex, which basically means «some dll not found».

    In this case it is likely to be the Qwt or the other library not being in the run-time environment.


  3. 1st December 2013, 13:53


    #3

    Default Re: 1073741515 problem

    Thanks Chris. Does it matter where the libraries are, so long as the pro file specifies the location correctly?
    Here is the pro file:

    1. QT += core gui

    2. greaterThan(QT_MAJOR_VERSION, 4): QT += widgets

    3. TARGET = Portaudio_Test

    4. TEMPLATE = app

    5. SOURCES += main.cpp

    6. mainwindow.cpp

    7. helloring.cpp

    8. HEADERS += mainwindow.h

    9. helloring.h

    10. FORMS += mainwindow.ui

    11. INCLUDEPATH += C:/development/qt_projects/portaudio_test/portaudio/include

    12. LIBS += -L"C:/development/QT_Projects/portaudio_test/portaudio/lib"

    13. LIBS += -lportaudio_x86

    14. INCLUDEPATH += C:/development/qt_projects/qwt/qwt-6.1-rc3/src

    15. LIBS += -L"C:/development/qt_projects/qwt/qwt-6.1-rc3/lib"

    16. LIBS += -lqwt

    17. CONFIG += debug

    18. qwt

    To copy to clipboard, switch view to plain text mode 


  4. 1st December 2013, 18:43


    #4

    Default Re: 1073741515 problem

    LIBS directive specifies location of lib files for linker. You have a problem with location of DLL files and this is a runtime problem.


  5. The following user says thank you to Lesiok for this useful post:

    K4ELO (1st December 2013)


  6. 1st December 2013, 23:32


    #5

    Default Re: 1073741515 problem

    The DLLs need to be in the same directory as the executable, the current working directory, one of the windows directories, or located somewhere on the PATH

    http://msdn.microsoft.com/en-us/libr…/7d83bc18.aspx


  7. The following user says thank you to ChrisW67 for this useful post:

    K4ELO (1st December 2013)


Similar Threads

  1. Replies: 2

    Last Post: 13th February 2013, 16:02

  2. Replies: 1

    Last Post: 9th May 2012, 12:58

  3. Replies: 4

    Last Post: 6th April 2010, 14:54

Bookmarks

Bookmarks


Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
  • BB code is On
  • Smilies are On
  • [IMG] code is On
  • [VIDEO] code is On
  • HTML code is Off

Forum Rules

Digia, Qt and their respective logos are trademarks of Digia Plc in Finland and/or other countries worldwide.

__Heaven__

Джедай : наставник для всех
*******
Offline Offline

Сообщений: 2129

Просмотр профиля


Здравствуйте!
Установил себе рядом с Qt 5.2 mingw новую Qt 5.3 msvc2013 x64. Помимо этого ковырялся с комплектами/инструментами msvc
Теперь при компиляции любого проекта выдаётся подобная ошибка

:-1: ошибка: [ui_mainwindow.h] Error -1073741515

Что можно в этой ситуации исправить?


Записан
Пантер

Administrator
Джедай : наставник для всех
*****
Offline Offline

Сообщений: 5876

Жаждущий знаний

Просмотр профиля
WWW


Это не вся ошибка. Давай полный лог сборки.


Записан

1. Qt — Qt Development Frameworks; QT — QuickTime
2. Не используйте в исходниках символы кириллицы!!!
3. Пользуйтесь тегом code при оформлении сообщений.

__Heaven__

Джедай : наставник для всех
*******
Offline Offline

Сообщений: 2129

Просмотр профиля


12:49:05: Выполняются этапы для проекта ProCASTilCut…
12:49:05: Настройки не изменились, этап qmake пропускается.
12:49:05: Запускается: «C:QtQt5.2.1Toolsmingw48_32binmingw32-make.exe»
C:/Qt/Qt5.2.1/Tools/mingw48_32/bin/mingw32-make -f Makefile.Release
mingw32-make[1]: Entering directory ‘D:/QtProjects/build-ProCASTilCut-Qt_5_2_1_mingw48_32-Release’
C:QtQt5.2.15.2.1mingw48_32binuic.exe ..ProCASTilcutmainwindow.ui -o ui_mainwindow.h
Makefile.Release:490: recipe for target ‘ui_mainwindow.h’ failed
mingw32-make[1]: *** [ui_mainwindow.h] Error -1073741515
mingw32-make[1]: Leaving directory ‘D:/QtProjects/build-ProCASTilCut-Qt_5_2_1_mingw48_32-Release’
makefile:34: recipe for target ‘release’ failed
mingw32-make: *** [release] Error 2
12:49:07: Процесс «C:QtQt5.2.1Toolsmingw48_32binmingw32-make.exe» завершился с кодом 2.
Ошибка при сборке/установке проекта ProCASTilCut (комплект: Qt 5.2.1 (mingw48_32))
Во время выполнения этапа «Сборка»
12:49:07: Прошло времени: 00:02.


Записан
__Heaven__

Джедай : наставник для всех
*******
Offline Offline

Сообщений: 2129

Просмотр профиля


При пересборке

13:22:45: Выполняются этапы для проекта ProCASTilCut…
13:22:45: Запускается: «C:QtQt5.2.1Toolsmingw48_32binmingw32-make.exe» clean
C:/Qt/Qt5.2.1/Tools/mingw48_32/bin/mingw32-make -f Makefile.Release clean
mingw32-make[1]: Entering directory ‘D:/QtProjects/build-ProCASTilCut-Qt_5_2_1_mingw48_32-Release’
del releaseqrc_icons.cpp
ЌҐ г¤ Ґвбп ­ ©вЁ D:QtProjectsbuild-ProCASTilCut-Qt_5_2_1_mingw48_32-Releasereleaseqrc_icons.cpp
del releasemoc_mainwindow.cpp releasemoc_mainwidget.cpp releasemoc_positioner.cpp
ЌҐ г¤ Ґвбп ­ ©вЁ D:QtProjectsbuild-ProCASTilCut-Qt_5_2_1_mingw48_32-Releasereleasemoc_mainwindow.cpp
del ui_mainwindow.h ui_mainwidget.h
ЌҐ г¤ Ґвбп ­ ©вЁ D:QtProjectsbuild-ProCASTilCut-Qt_5_2_1_mingw48_32-Releaseui_mainwindow.h
del releasemain.o releasemainwindow.o releasemainwidget.o releasepositioner.o releasegeometry.o releaseqrc_icons.o releasemoc_mainwindow.o releasemoc_mainwidget.o releasemoc_positioner.o
ЌҐ г¤ Ґвбп ­ ©вЁ D:QtProjectsbuild-ProCASTilCut-Qt_5_2_1_mingw48_32-Releasereleasemain.o
del releasewinIco_res.o
ЌҐ г¤ Ґвбп ­ ©вЁ D:QtProjectsbuild-ProCASTilCut-Qt_5_2_1_mingw48_32-ReleasereleasewinIco_res.o
mingw32-make[1]: Leaving directory ‘D:/QtProjects/build-ProCASTilCut-Qt_5_2_1_mingw48_32-Release’
C:/Qt/Qt5.2.1/Tools/mingw48_32/bin/mingw32-make -f Makefile.Debug clean
mingw32-make[1]: Entering directory ‘D:/QtProjects/build-ProCASTilCut-Qt_5_2_1_mingw48_32-Release’
del debugqrc_icons.cpp
ЌҐ г¤ Ґвбп ­ ©вЁ D:QtProjectsbuild-ProCASTilCut-Qt_5_2_1_mingw48_32-Releasedebugqrc_icons.cpp
del debugmoc_mainwindow.cpp debugmoc_mainwidget.cpp debugmoc_positioner.cpp
ЌҐ г¤ Ґвбп ­ ©вЁ D:QtProjectsbuild-ProCASTilCut-Qt_5_2_1_mingw48_32-Releasedebugmoc_mainwindow.cpp
del ui_mainwindow.h ui_mainwidget.h
ЌҐ г¤ Ґвбп ­ ©вЁ D:QtProjectsbuild-ProCASTilCut-Qt_5_2_1_mingw48_32-Releaseui_mainwindow.h
del debugmain.o debugmainwindow.o debugmainwidget.o debugpositioner.o debuggeometry.o debugqrc_icons.o debugmoc_mainwindow.o debugmoc_mainwidget.o debugmoc_positioner.o
ЌҐ г¤ Ґвбп ­ ©вЁ D:QtProjectsbuild-ProCASTilCut-Qt_5_2_1_mingw48_32-Releasedebugmain.o
del debugwinIco_res.o
ЌҐ г¤ Ґвбп ­ ©вЁ D:QtProjectsbuild-ProCASTilCut-Qt_5_2_1_mingw48_32-ReleasedebugwinIco_res.o
mingw32-make[1]: Leaving directory ‘D:/QtProjects/build-ProCASTilCut-Qt_5_2_1_mingw48_32-Release’
13:22:46: Процесс «C:QtQt5.2.1Toolsmingw48_32binmingw32-make.exe» завершился успешно.
13:22:46: Настройки не изменились, этап qmake пропускается.
13:22:46: Запускается: «C:QtQt5.2.1Toolsmingw48_32binmingw32-make.exe»
C:/Qt/Qt5.2.1/Tools/mingw48_32/bin/mingw32-make -f Makefile.Release
mingw32-make[1]: Entering directory ‘D:/QtProjects/build-ProCASTilCut-Qt_5_2_1_mingw48_32-Release’
C:QtQt5.2.15.2.1mingw48_32binuic.exe ..ProCASTilcutmainwindow.ui -o ui_mainwindow.h
Makefile.Release:490: recipe for target ‘ui_mainwindow.h’ failed
mingw32-make[1]: *** [ui_mainwindow.h] Error -1073741515
mingw32-make[1]: Leaving directory ‘D:/QtProjects/build-ProCASTilCut-Qt_5_2_1_mingw48_32-Release’
makefile:34: recipe for target ‘release’ failed
mingw32-make: *** [release] Error 2
13:22:47: Процесс «C:QtQt5.2.1Toolsmingw48_32binmingw32-make.exe» завершился с кодом 2.
Ошибка при сборке/установке проекта ProCASTilCut (комплект: Qt 5.2.1 (mingw48_32))
Во время выполнения этапа «Сборка»
13:22:47: Прошло времени: 00:02.


Записан
Пантер

Administrator
Джедай : наставник для всех
*****
Offline Offline

Сообщений: 5876

Жаждущий знаний

Просмотр профиля
WWW


Пропробуй qmake прогнать.


Записан

1. Qt — Qt Development Frameworks; QT — QuickTime
2. Не используйте в исходниках символы кириллицы!!!
3. Пользуйтесь тегом code при оформлении сообщений.

__Heaven__

Джедай : наставник для всех
*******
Offline Offline

Сообщений: 2129

Просмотр профиля


Я разобрался с ошибкой. Дело было в отсутствующих icu dll в папке mingw bin
Неудачно скопировал


Записан

Понравилась статья? Поделить с друзьями:
  • Pyttsx3 как изменить голос
  • Pyttsx3 init error
  • Qt creator ошибка при запуске приложения 0xc000005
  • Pythonpath как изменить
  • Qt creator ошибка qmake