Results 1 to 4 of 4

Thread: How to make standalone application

  1. #1
    Join Date
    Dec 2012
    Posts
    45
    Qt products
    Qt4 Qt5 Qt/Embedded
    Platforms
    Windows
    Thanks
    3
    Thanked 1 Time in 1 Post

    Default How to make standalone application

    Hello
    I want to make stand alone application and i am using qt 4.5.
    I went through the linkand 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

  2. #2
    Join Date
    Jan 2006
    Location
    Graz, Austria
    Posts
    8,416
    Qt products
    Qt3 Qt4 Qt5
    Platforms
    Unix/X11 Windows
    Thanks
    37
    Thanked 1,544 Times in 1,494 Posts

    Default Re: How to make standalone application

    Quote Originally Posted by shivendra46d View Post
    But now when i am running my code i am getting the error
    This is only part of the error message.

    Cheers,
    _

  3. #3
    Join Date
    Mar 2009
    Location
    Brisbane, Australia
    Posts
    7,729
    Qt products
    Qt4 Qt5
    Platforms
    Unix/X11 Windows
    Thanks
    13
    Thanked 1,610 Times in 1,537 Posts
    Wiki edits
    17

    Default Re: How to make standalone application

    ... 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.

  4. #4
    Join Date
    Dec 2012
    Posts
    45
    Qt products
    Qt4 Qt5 Qt/Embedded
    Platforms
    Windows
    Thanks
    3
    Thanked 1 Time in 1 Post

    Default Re: How to make standalone application

    Every thing was fine all i have to do is to build my code in release mode

Similar Threads

  1. Making Standalone Application
    By harvey_slash in forum Newbie
    Replies: 9
    Last Post: 29th September 2013, 15:56
  2. QT standalone application for symbian
    By sanoof in forum Newbie
    Replies: 3
    Last Post: 10th July 2012, 10:24
  3. Replies: 9
    Last Post: 4th November 2011, 17:56
  4. Replies: 5
    Last Post: 27th July 2011, 20:02
  5. Qt standalone application with Cocoa Library Crash
    By rokkamraja in forum Qt Programming
    Replies: 0
    Last Post: 8th June 2010, 15:21

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Qt is a trademark of The Qt Company.