Windows7 can't find libqjson.dll to run my Qt application - qt

I failed to run an Qt application compiled from QtCreator.
My windows7 notified: Can not find libqjson.dll on your computer to run this application.
What should I do with this problem?

As the error says, Windows cannot find this DLL so you need to put it in the same folder as your executable. More info there - http://qjson.sourceforge.net/get_it/windows.html

Related

Installed Qt5.15 LTS (5.15.7), debug DLLs missing/not installed

I used the online installer to install Qt 5.15.7.
Running my application in Release mode from Qt Creator worked fine.
When I attempted to run it in Debug mode, I get the following System Error dialog:
I searched my bin directory (C:\Qt\5.15.7\mingw81_32\bin) for Qt5Cored.dll, but it's completely missing any and all DLL files:
Does anyone know where/how to install the debug dll files for Qt?
There is a chance that they are not available for non-commercial license, although if you have it just look for debug symbols in Qt installer as they might be distributed separatelly.

Qt The application was unable to start correctly (0xc000007b)

Am trying to compile project found at uconfig, I managed to compile the application successfully using 32bit version mingw, yet when I run the .exe I get this error The application was unable to start correctly (0xc000007b), I moved all the required DLLs required to exe path but still getting same error,
on the other hand, the application starts in debug mode in Qt creator normally
After searching ... the reason was I had another verion x64 of Qt installed and /bin was added to system path. this resulted in conflict between DLLs generated from Qt and ones found in the System path
I fixed the same problem by running them as adminstrator (properties/compatability/Run as Admin)

static linking of standard QT libraries

I am trying to build an QT application with version 5.4.
and when ever I am trying to run the exe on a different machine where QT is not installed I am getting below error "The program cannot start because QT5core.dll is missing from your computer, Try reinstalling the program to fix this problem".
and when I copied QT5core.dll with the exe in a machine where QT is not installed its working fine.
Is there any way that I can link QT5core.dll with the exe statically so that whatever place I run this exe it should not ask for any dll.
Thanks,
Tushar
You can build a standalone version of your Qt application so that it doesn't have any library dependencies at runtime. Be warned though: this can greatly expand the size of the .exe generated and the compilation time. Have a look here:
https://wiki.qt.io/Build_Standalone_Qt_Application_for_Windows
and here:
https://wiki.qt.io/How_to_build_a_static_Qt_version_for_Windows_with_gcc

Error while run mxmlc

I installed java 1.7 in my machine,
Now I'm getting following error while compiling mxmlc command for adobe air application..
This application has failled to start bcoz MSVCR100.dill was not found.
Please advice me...
Problem solved, here are my steps:
1. Install newest JRE (JRE7 currently) with default install dir(C:\Program Files\Java)
2. Copy C:\Program Files\Java\jre7\bin\msvcr100.dll into system32 directory

Error when executing step 'qmake' on Mac Os

I have just purchased a Macbook (yes I am a complete noob on Mac though I have some considerable experience with Linux) and I'm trying to build my Qt application on it. I have installed XCode and the Qt SDK but when I try to build my project on Qt Creator all I get is the following error during qmake:
Running build steps for project TimeTracker...
Starting: "/usr/bin/qmake" /Users/raphaelcruzeiro/Documents/Projects/Timely/Widget/TimeTracker/TimeTracker.pro -r -spec macx-g++
Failure to open file: /Developer/Applications/Qt/Makefile
Unable to generate makefile for: /Users/raphaelcruzeiro/Documents/Projects/Timely/Widget/TimeTracker/TimeTracker.pro
The process "/usr/bin/qmake" exited with code %2.
Error while building project TimeTracker (target: Desktop)
When executing build step 'qmake'
Any ideas on what is going on? /Developer/Applications/Qt/Makefile indeed does not exist.
EDIT:
Ok, I know what is going on but I don't know how to fix it. When I ran qmake from the terminal everything went just fine. I believe that Qt Creator is trying to build my application on the Qt directory itself and it does nt have permission for it (it shouldn't anyway).
How do I tell Qt Creator where to build my application? I didn't find it anywhere and setting the DESTDIR variable isn't helping.
THE SOLUTION:
Deleting the .pro.user file made Qt Creator build the application to the directory specified in DESTDIR
THE SOLUTION:
Deleting the .pro.user file made Qt Creator build the application to the directory specified in DESTDIR
I was battling with the same thing. What helped eventually was resetting the default build directory here:

Resources