PDA

View Full Version : Build release and run error



gabriele
15th February 2010, 10:37
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

nish
15th February 2010, 12:20
you have to give more information... how did you compiled Qt? why not use the sdk?

gabriele
15th February 2010, 12:48
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

nish
15th February 2010, 13:05
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?

gabriele
15th February 2010, 13:08
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"

nish
15th February 2010, 13:12
Your code is crashing. Start your application in debug mode by pressing F5 and trace the stack

gabriele
15th February 2010, 13:26
The build release version don't start in debug mode.
The build debug version run in debug mode and it's OK, error free.

squidge
15th February 2010, 13:33
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.

gabriele
15th February 2010, 13:49
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?

schnitzel
15th February 2010, 17:45
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.

gabriele
16th February 2010, 07:21
Thank you very mutch at all

squidge
16th February 2010, 21:23
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.