Cant Run Application Created With QT5 And VS2013 In Windows XP



  • Greeting

    I have application created with QT5 and Visual Studio 2013. I also use QT WebEngine in my application.

    My application work fine in windows 7 (32 bit) . For some reason i need to run it in windows xp sp3 (32 bit).

    When i run it, I get the following error:

    The procedure entry point strnlen could not be located in the dynamic link library msvcrt.dll
    

    I press OK several time and it goes away and my QMainWindow will pop out, But its totally BLACK and i see the following errors in debugger.

    class QWindowsEGLStaticContext *__cdecl QWindowsEGLStaticContext::create(class QFlags<enum QWindowsOpenGLTester::Renderer>): Could not initialize EGL display: error 0x3001
    class QWindowsEGLStaticContext *__cdecl QWindowsEGLStaticContext::create(class QFlags<enum QWindowsOpenGLTester::Renderer>): When using ANGLE, check if d3dcompiler_4x.dll is available
    

    The d3dcompiler_47.dll is in application directory too.

    Whats wrong here ?

    Thanks in Advanced



  • I asked this question in stackoverflow and there are some progress, Please check the following link and help me out if you can.

    http://stackoverflow.com/questions/34436168/cant-run-application-created-with-qt5-and-vs2013-in-windows-xp

    thanks alot



  • Qt's precompiled package is compiled with v120 toolset not v120_xp, so you have to compile qt by yourself and configure with "-target xp"



  • I build QT for Windows XP with following configuration

    configure -release -opensource -opengl desktop -target xp -platform win32-msvc2013 -angle -icu -nomake examples -prefix C:\QT-Compile
    

    I replaced QT dependency and ran my application, I got the following errors:

    The application has failed to start because icuin56.dll was not found
    The application has failed to start because icuuc56.dll was not found
    

    I tried to find them in QT directory (C:\QT-Compile) and i couldn't but i had them on main machine that run in Windows Seven, I placed them next to executable and application run successfully and previous errors are gone, However, The QMainWindow is still BLACK and i have the following errors in my debugger in run time.

    QOpenGLShaderProgram: could not create shader program
    QOpenGLShader: could not create shader
    bool __thiscall QOpenGLTextureBlitter::create(void) Could not link shader program:
    

    Whats wrong now ?



  • You can try it that turn the Hardware acceleration off In Windows XP


Log in to reply
 

Looks like your connection to Qt Forum was lost, please wait while we try to reconnect.