[Solved] My program will only run on some computers



  • Hey!

    I have developed a program in Qt. I have built an exe file for it and it has worked fine on several computers. Today when the program was tried on another computer it wouldnt start. Nothing came up. Not in the processor chart or anything. I have put all required *.dll files and other with the exe file on deployment.

    What can be the problem? Could it be related to 32 bit vs 64 bit?

    I dont think it is related to any libraries etc missing since it starts on most computers.

    Please help


  • Moderators

    Your question is very open and does not give enough specifics.

    Obviously you have an application for windows which will obviously run only on windows, but not on Linux or Mac.

    If you have 64 bit application you cannot start on 32 bit installations. However, I would expect an error message.

    Old computers may not have enough RAM and cannot load.

    Probably you should check with depends that you really have all dlls.

    Sometimes it helps to start application from cmd for getting error messages.



  • Im sorry for my vague description.
    The computer I am trying to run my application on is 64 bit as well. Linux and Mac is not relevant for now. My program is 32 bit so it should work fine.
    Also, it is a relatively new computer. Same as mine, and all the others I've tried out. So I guess thats not the issue.

    Tried adding all *.dll files and folders from this tutorial: http://qt-project.org/wiki/Deploy_an_Application_on_Windows, and didnt remove any of them. Still didnt work.

    Tried running the program from cmd on my computer and it worked perfectly.
    Went to the other computer and did the same, no errors, but it wouldnt show/start.

    Is my problem any clearer?


  • Moderators

    Hi,

    If you are using Qt Quick, your target computer will need OpenGL 2.0 or higher unless you also used ANGLE.



  • Thanks! I used Qt Quick, but not ANGLE! Is it possible for me to just open my pro file (or similar) in ANGLE and rebuild it or something?


  • Moderators

    [quote author="skammers" date="1407238942"]Is it possible for me to just open my pro file (or similar) in ANGLE and rebuild it or something?[/quote]Sort of :) Just download a non-OpenGL version of Qt, and use that to build your project.

    ANGLE is a library that converts OpenGL functions to DirectX functions. See here for details: http://qt-project.org/wiki/Qt-5-on-Windows-ANGLE-and-OpenGL



  • Thanks!
    So I tried downloading this version : Qt 5.3.1 for Windows 32-bit (VS 2013, 559 MB) (Info).
    Got this error:
    :-1: error: Qt Creator needs a compiler set up to build. Configure a compiler in the kit options.

    So far I understand I need to download MSVC2013? Which I cant find..


  • Moderators

    Yes, you need the compiler that matches your version of the libraries.

    You can get Visual Studio 2013 Express from Microsoft's website.



  • Is it free?


  • Moderators

    Yes, the Express version is free.



  • Thanks! Now downloaded it and installed it. Weird thing is that when I try to build my program I get errors that some of the header files are missing. When I try to build the program like I used to I dont get these errors...Why is that? Sorry if I'm a slow learner, but you're very helpful now!

    Thanks


  • Moderators

    What is the exact error message?



  • These four:
    -c:\qt\sommerjobb - tomra\transed\Source\languagelist.h:3: error: C1083: Cannot open include file: 'langitmodel.h': No such file or directory

    -C:\Qt\Sommerjobb - Tomra\TransEd\Source\languagelist.h:3: error: C1083: Cannot open include file: 'langitmodel.h': No such file or directory

    -C:\Qt\Sommerjobb - Tomra\TransEd\Source\masterresource.cpp:12: error: C1083: Cannot open include file: 'JlCompress.h': No such file or directory

    -C:\Qt\Sommerjobb - Tomra\TransEd\Source\languagelist.h:3: error: C1083: Cannot open include file: 'langitmodel.h': No such file or directory



  • I found the error: i did this
    @#include "languagelist.h"
    #include <langitmodel.h>@
    instead of this:
    @#include "languagelist.h"
    #include "langitmodel.h"@


Log in to reply
 

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