1 Attachment(s)
Build release and run error
Hallo, sorry for my bad english.
My name is Gabriele and I'm work with Qt only 6 month old.
I'm work with Qt 4.5.3 Built on Sep 30 2009 at 05:21:42 From revision 65e48c0636 and SO Windows XP SP3.
I'm build my program in release mode.
I'm copied file mingwm10.dll, QtCore4.dll, QtGui4.dll in release directory.
Run program and view this error message:
..... _Z21qRegisterResourceDataiPKhS0_S0_ ....... Dynamic Linked Library QtCore4.dll
Help me please, thank you
Gabriele
Re: Build release and run error
you have to give more information... how did you compiled Qt? why not use the sdk?
Re: Build release and run error
I'm use Qt Creator 1.2.1.
Build with g++ mingw.
In the Project release build setting show this line:
Effective qmake call:
E:/......./RF_Scanner.pro -spec win32-g++ -r CONFIG+=release
Re: Build release and run error
are you able to run the application by pressing Ctrl+R in QtCreator,
and can you translate your full error msg in that message box?
Re: Build release and run error
OK.
In the Application Output window appear:
"Starting E:\Dati_Lavoro\Programmi\PC_C\QTProjects\RF_Scanne r-1_000\release\RF_Scanner-1_000.exe...
E:\Dati_Lavoro\Programmi\PC_C\QTProjects\RF_Scanne r-1_000\release\RF_Scanner-1_000.exe exited with code -1073741511"
Re: Build release and run error
Your code is crashing. Start your application in debug mode by pressing F5 and trace the stack
Re: Build release and run error
The build release version don't start in debug mode.
The build debug version run in debug mode and it's OK, error free.
Re: Build release and run error
Did you copy the correct DLLs? There are multiple DLLs with the same name but different size. You have to copy the correct one or the above error will result.
Re: Build release and run error
I'm copy
C:\Programmi\Qt\2009.04\bin
Now I'm try copy
C:\Programmi\Qt\2009.04\qt\bin
and program run
Wath are the difference?
Re: Build release and run error
Quote:
Originally Posted by
gabriele
I'm copy
C:\Programmi\Qt\2009.04\bin
Now I'm try copy
C:\Programmi\Qt\2009.04\qt\bin
and program run
Wath are the difference?
I believe the folder ...\Qt\2009.04\bin is for Qt Creator and ...\Qt\2009.04\qt\bin is the sdk and here is where you should copy dll's from for app deployment. I always wondered though why QtCreator has its own set of dlls.
Re: Build release and run error
Thank you very mutch at all
Re: Build release and run error
I think there's a good clue if you examine the QtCreator.exe file - it seems to be compiled with Microsoft Visual Studio 2008 - there are references to MSVCR90.dll, but no GCC libs. The DLLs are the same.
The DLLs in the qt\bin directory are compiled with GCC.