+ Reply to Thread
Results 1 to 2 of 2

Thread: can't any application build with qt by qt creator after deploy a static build.

  1. #1
    Join Date
    Jan 2010
    Posts
    1
    Qt products
    Platforms
    Windows

    Question can't any application build with qt by qt creator after deploy a static build.

    after qt build statically by this command( configure -static -release -no-exceptions
    mingw32-make sub-src and
    QMAKE_LFLAGS = -static -enable-stdcall-fixup -Wl,-enable-auto-import -Wl,-enable-runtime-pseudo-reloc

    )theris problem i faced.problem is given below:
    Running build steps for project layout...
    Starting: C:/Qt/2009.02/qt/bin/qmake.exe D:/journeytoqt/layout/layout.pro -spec win32-g++ -r CONFIG+=debug
    Exited with code 0.
    Starting: C:/Qt/2009.02/mingw/bin/mingw32-make.exe -w
    C:\Qt\2009.02\mingw\bin\mingw32-make.exe: Entering directory `D:/journeytoqt/layout'
    C:/Qt/2009.02/mingw/bin/mingw32-make.exe -f Makefile.Debug
    mingw32-make.exe[1]: Entering directory `D:/journeytoqt/layout'
    g++ -static -enable-stdcall-fixup -Wl,-enable-auto-import -Wl,-enable-runtime-pseudo-reloc -Wl,-subsystem,windows -o debug\layout.exe debug/main.o debug/mainwindow.o debug/moc_mainwindow.o -L"c:\Qt\2009.02\qt\lib" -lmingw32 -lqtmaind -lQtGuid -lgdi32 -lcomdlg32 -loleaut32 -limm32 -lwinmm -lwinspool -lmsimg32 -lQtCored -lkernel32 -luser32 -lshell32 -luuid -lole32 -ladvapi32 -lws2_32
    mingw32-make.exe[1]: Leaving directory `D:/journeytoqt/layout'
    C:\Qt\2009.02\mingw\bin\mingw32-make.exe: Leaving directory `D:/journeytoqt/layout'
    C:\Qt\2009.02\mingw\bin\..\lib\gcc\mingw32\3.4.2\. .\..\..\..\mingw32\bin\ld.exe: cannot find -lQtGuid
    collect2: ld returned 1 exit status
    mingw32-make.exe[1]: *** [debug\layout.exe] Error 1
    C:\Qt\2009.02\mingw\bin\mingw32-make.exe: *** [debug] Error 2
    Exited with code 2.
    Error while building project layout
    When executing build step 'Make'

    hw can i get rid of this problem(i use qt version 4.5.1 & windows platforce)

  2. #2
    Join Date
    Sep 2009
    Location
    UK
    Posts
    2,447
    Thanks
    6
    Thanked 348 Times in 333 Posts
    Qt products
    Qt4
    Platforms
    Windows

    Default Re: can't any application build with qt by qt creator after deploy a static build.

    Your only building the release version of Qt, but are attempting to build an application against the debug libraries, which don't exist. Either create them also, or use the release libraries instead.

+ Reply to Thread

Similar Threads

  1. build static Qt Creator
    By rubenvb in forum Qt Tools
    Replies: 3
    Last Post: 18th November 2009, 20:16
  2. Moving from QT 4.5 shared build to QT 4.5.2 static build
    By extrakun in forum Qt Programming
    Replies: 0
    Last Post: 26th October 2009, 09:49
  3. A build problem in Qt creator 1
    By Dante in forum Qt Programming
    Replies: 6
    Last Post: 13th March 2009, 17:37
  4. I Can't use QtCreator to static build my application
    By kyosold in forum Installation and Deployment
    Replies: 3
    Last Post: 6th January 2009, 10:20
  5. how to build static application with MinGw?
    By mismael85 in forum Installation and Deployment
    Replies: 9
    Last Post: 11th March 2008, 20:45

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