Results 1 to 7 of 7

Thread: Qt 4.7.0 statically compiled and Qt Creator

Hybrid View

Previous Post Previous Post   Next Post Next Post
  1. #1

    Default Re: Qt 4.7.0 statically compiled and Qt Creator

    Follow the pro file content:

    #-------------------------------------------------
    #
    # Project created by QtCreator 2010-10-11T14:03:47
    #
    #-------------------------------------------------

    QT += core gui

    TARGET = test
    TEMPLATE = app


    SOURCES += main.cpp\
    mainwindow.cpp

    HEADERS += mainwindow.h

    FORMS += mainwindow.ui

  2. #2
    Join Date
    Jan 2006
    Location
    Belgium
    Posts
    1,938
    Thanked 268 Times in 268 Posts
    Qt products
    Qt4
    Platforms
    Unix/X11 Windows
    Wiki edits
    20

    Default Re: Qt 4.7.0 statically compiled and Qt Creator

    You forgot something in your .pro file.
    Read that wiki page again.

  3. #3

    Default Re: Qt 4.7.0 statically compiled and Qt Creator

    Hi

    if you refer to add the variable

    CONFIG += static

    or

    CONFIG += staticlib

    I already tried but doesn't work, same error. I missing someother?

  4. #4
    Join Date
    Jan 2006
    Location
    Belgium
    Posts
    1,938
    Thanked 268 Times in 268 Posts
    Qt products
    Qt4
    Platforms
    Unix/X11 Windows
    Wiki edits
    20

    Default Re: Qt 4.7.0 statically compiled and Qt Creator

    Clean your project completely, even the Makefile (remove it)
    Then run qmake again (that is the qmake of your static Qt build)
    Then build it again.

  5. #5

    Default Re: Qt 4.7.0 statically compiled and Qt Creator

    It work! Thank you very much. I checked again the wiki but I didn't find this tip. I'm sorry if this information was present but I didn't note them....

Similar Threads

  1. Replies: 3
    Last Post: 20th September 2010, 22:36
  2. Qwt qch compiled help
    By MikeG in forum Qwt
    Replies: 4
    Last Post: 19th June 2009, 18:08
  3. Statically compiled Qt 4.1.4 and mySql
    By Djony in forum Installation and Deployment
    Replies: 1
    Last Post: 26th January 2007, 07:13
  4. Replies: 3
    Last Post: 26th July 2006, 13:23
  5. Qt is compiled statically, now what ?
    By probine in forum Qt Programming
    Replies: 1
    Last Post: 30th May 2006, 12:46

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.