Results 1 to 7 of 7

Thread: How to compile and create qt-creator from the src packege

  1. #1
    Join Date
    Jul 2009
    Posts
    8
    Thanks
    1
    Qt products
    Qt4
    Platforms
    Windows

    Question How to compile and create qt-creator from the src packege

    Hi everybody,
    i am completely new to programming and qt. Recently i downloaded qt 4.5 src packege
    and created the static lib of qt with mingw compiler. i have also downloaded src package
    of qt-creator-1.2.1 so i can compile it on my own using mingw compiler, but i cant compile it . i get a lot of errors. i followed the following procedure .......

    c:\qt-creator-1.2.1-src\qmake -project
    c:\qt-creator-1.2.1-src\qmake
    c:\qt-creator-1.2.1-src\mingw32-make

    please tell me how should i make it.

    with regards..............

  2. #2
    Join Date
    Dec 2007
    Posts
    628
    Thanks
    3
    Thanked 89 Times in 87 Posts
    Qt products
    Qt3 Qt4 Qt5 Qt/Embedded
    Platforms
    MacOS X Unix/X11 Windows

    Default Re: How to compile and create qt-creator from the src packege

    You want to use Qt-creator or just want to build it. As you are starting with Qt and programming, better go for Installing Qt-SDK with binary installer.

  3. #3
    Join Date
    Jul 2009
    Posts
    8
    Thanks
    1
    Qt products
    Qt4
    Platforms
    Windows

    Default Re: How to compile and create qt-creator from the src packege

    Quote Originally Posted by yogeshgokul View Post
    You want to use Qt-creator or just want to build it. As you are starting with Qt and programming, better go for Installing Qt-SDK with binary installer.
    Many Thanks for replay yogeshgokul,

    i know that i can use the sdk package but i want to static build the package
    so i will not need the dll files,i never compiled a qt project before so i want to compile a qt project on my own. please yogeshgokul if know how can this be done please tell me.i just want to learn.

    i am getting following errors like..


    release/main.o:main.cpp.text+0x24e): undefined reference to `_imp___ZN15Extens
    ionSystem13PluginManager13formatOptionsER11QTextSt reamii'
    release/main.o:main.cpp.text+0x270): undefined reference to `_imp___ZNK15Exten
    sionSystem13PluginManager19formatPluginOptionsER11 QTextStreamii'
    release/main.o:main.cpp.text+0x6f8): undefined reference to `_imp___ZN15Extens
    ionSystem13PluginManagerC1Ev'

    thanks in advance .


    With regards.............

  4. #4
    Join Date
    Dec 2007
    Posts
    628
    Thanks
    3
    Thanked 89 Times in 87 Posts
    Qt products
    Qt3 Qt4 Qt5 Qt/Embedded
    Platforms
    MacOS X Unix/X11 Windows

    Default Re: How to compile and create qt-creator from the src packege

    Quote Originally Posted by wincry View Post
    i know that i can use the sdk package but i want to static build the package
    so i will not need the dll files,i never compiled a qt project before so i want to compile a qt project on my own. please yogeshgokul if know how can this be done please tell me.i just want to learn.
    To build qt statically use these commands:
    Qt Code:
    1. cd C:\path\to\Qt
    2. configure -static <any other options you need>
    To copy to clipboard, switch view to plain text mode 

    Quote Originally Posted by wincry View Post
    i am getting following errors like..

    release/main.o:main.cpp.text+0x24e): undefined reference to `_imp___ZN15Extens
    ionSystem13PluginManager13formatOptionsER11QTextSt reamii'
    release/main.o:main.cpp.text+0x270): undefined reference to `_imp___ZNK15Exten
    sionSystem13PluginManager19formatPluginOptionsER11 QTextStreamii'
    release/main.o:main.cpp.text+0x6f8): undefined reference to `_imp___ZN15Extens
    ionSystem13PluginManagerC1Ev'
    Check this link.

  5. #5
    Join Date
    Jul 2009
    Posts
    8
    Thanks
    1
    Qt products
    Qt4
    Platforms
    Windows

    Default Re: How to compile and create qt-creator from the src packege

    no no you don't understand yogeshgokul,
    i have already build the static lib of qt4 using mingw compiler, i just want to compile qt-creator on my own.

  6. #6
    Join Date
    Dec 2007
    Posts
    628
    Thanks
    3
    Thanked 89 Times in 87 Posts
    Qt products
    Qt3 Qt4 Qt5 Qt/Embedded
    Platforms
    MacOS X Unix/X11 Windows

    Default Re: How to compile and create qt-creator from the src packege

    Quote Originally Posted by wincry View Post
    no no you don't understand yogeshgokul,
    Sorry for that.
    Quote Originally Posted by wincry View Post
    i just want to compile qt-creator on my own.
    At the time of compiling creator, why you entered qmake -project ?
    You just need
    "make" to build.
    Just refer INSTALL file came with creator source archive.

  7. #7
    Join Date
    Jul 2009
    Posts
    8
    Thanks
    1
    Qt products
    Qt4
    Platforms
    Windows

    Default Re: How to compile and create qt-creator from the src packege

    This is my 4th attempt. i tried to follow the install file in the package.
    i executed the below command

    c:\>qmake qtcreator.pro CONFIG+=static
    c:\> mingw32-make

    but i still getting the errors like

    release/main.o:main.cpp.text+0x24e): undefined reference to `_imp___ZN15Extens
    ionSystem13PluginManager13formatOptionsER11QTextSt reamii'
    release/main.o:main.cpp.text+0x270): undefined reference to `_imp___ZNK15Exten
    sionSystem13PluginManager19formatPluginOptionsER11 QTextStreamii'
    release/main.o:main.cpp.text+0x6f8): undefined reference to `_imp___ZN15Extens
    ionSystem13PluginManagerC1Ev'
    release/main.o:main.cpp.text+0x72c): undefined reference to `_imp___ZN15Extens
    ionSystem13PluginManager16setFileExtensionERK7QStr ing'

    please anybody help me.....
    With regards......

Similar Threads

  1. qtgui4.dll error in visual c++ 2005
    By Comptrol in forum Installation and Deployment
    Replies: 33
    Last Post: 19th June 2008, 07:18
  2. Access to PostgreSQL DB on a linux server
    By rmagro in forum Qt Programming
    Replies: 28
    Last Post: 13th March 2008, 09:02

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
  •  
Digia, Qt and their respective logos are trademarks of Digia Plc in Finland and/or other countries worldwide.