Results 1 to 6 of 6

Thread: QWT integration with static QT build

Threaded View

Previous Post Previous Post   Next Post Next Post
  1. #4
    Join Date
    Sep 2011
    Location
    Manchester
    Posts
    538
    Thanks
    3
    Thanked 106 Times in 103 Posts
    Qt products
    Qt4 Qt/Embedded
    Platforms
    MacOS X Unix/X11 Windows

    Default Re: QWT integration with static QT build

    Ok, so here's what I've got:

    Windows 7 64bit running Qt 4.6.3 (installed, not compiled).

    I've downloaded Qt 4.7.4 source, changed two lines in qt-everywhere-opensource-src-4.7.4\mkspecs\win32-g++\qmake.conf to look like that:
    Qt Code:
    1. QMAKE_CFLAGS_RELEASE = -Os -momit-leaf-frame-pointer
    2. QMAKE_LFLAGS = -static -static-libgcc
    To copy to clipboard, switch view to plain text mode 
    and compiled whole thing using:
    Qt Code:
    1. configure -release -nomake examples -nomake demos -no-exceptions -no-rtti -no-qt3support -no-scripttools -no-openssl -no-opengl -no-webkit -no-phonon -no-s60 -no-style-motif -no-style-cde -no-style-cleanlooks -no-style-plastique -no-sql-sqlite -platform win32-g++ -static
    2. mingw32-make
    To copy to clipboard, switch view to plain text mode 
    Then coment out line 61 in qwt-6.0.1\qwtconfig.pri and compile it (I've done it using Qt Creator).

    In test app just add a QwtPlot object and compile. In your *.pro file you will need to add two lines:
    Qt Code:
    1. INCLUDEPATH += <path to your qwt>\\qwt-6.0.1\\src
    2. LIBS += -L<path to your qwt>\\qwt-6.0.1c\\lib -lqwt
    To copy to clipboard, switch view to plain text mode 
    after that everything should work just fine.

    Let me know if it works for you.

  2. The following user says thank you to Spitfire for this useful post:

    Matthiasabt (7th October 2013)

Similar Threads

  1. Build static QT + static SSL problem.
    By makzimi in forum Qt Programming
    Replies: 3
    Last Post: 23rd April 2012, 23:45
  2. Replies: 1
    Last Post: 13th January 2010, 23:35
  3. build static Qt Creator
    By rubenvb in forum Qt Tools
    Replies: 3
    Last Post: 18th November 2009, 20:16
  4. 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
  5. Can i build a static exe?
    By coder1985 in forum Qt Programming
    Replies: 3
    Last Post: 11th June 2008, 16:18

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.