PDA

View Full Version : How to make standalone application



shivendra46d
13th November 2013, 10:21
Hello
I want to make stand alone application and i am using qt 4.5.
I went through the link
http://www.qtcentre.org/wiki/index.php?title=Building_static_Qt_on_Windows#Qt_C reator_users_and_Qt_.3E.3D_4.6
and did all the changes. But now when i am running my code i am getting the error

:-1: error: collect2: ld returned 1 exit status

Please tell me how to over come this problem
and yes this is how i edited the mkspecs

QMAKE_LFLAGS = -static -enable-stdcall-fixup -Wl,-enable-auto-import -Wl,-enable-runtime-pseudo-reloc

anda_skoa
13th November 2013, 12:47
But now when i am running my code i am getting the error


This is only part of the error message.

Cheers,
_

ChrisW67
14th November 2013, 03:48
... and it is only part of a message that has nothing to do with running your program. The error message is from your linker, so your static Qt library or program is not built yet. It might also help to know if you still building the static Qt library or have moved on to your program.

shivendra46d
14th November 2013, 07:26
Every thing was fine all i have to do is to build my code in release mode :)