32-bit Qt application on win 7 x64 won't run, but runs fine from Qt Creator?

后端 未结 4 1357
甜味超标
甜味超标 2021-01-05 16:42

My development box is Windows 7 x64. I have both 32-bit and 64-bit versions of Qt 4.7.4 built on my box. When I configure my app to use the 32-bit version of Qt, it runs f

4条回答
  •  说谎
    说谎 (楼主)
    2021-01-05 17:14

    My somewhat educated guess would be that your application can simply not find the required DLLs. To be sure, you could open your exe in Dependency Walker to see if it finds all the necessary DLLs. If nothing seems amiss at first, then use Dependency Walker to profile the application. This might reveal some missing dependencies loaded at run-time.

    If this relates to your Qt DLLs, make sure that there is either an appropriate entry within your PATH environment variable, or that the required DLLs are included in your EXE's directory (though the latter might not be the best choice on a development machine).

提交回复
热议问题