Results 1 to 20 of 32

Thread: correctly installed Qt4

Hybrid View

Previous Post Previous Post   Next Post Next Post
  1. #1
    Join Date
    May 2007
    Location
    Costa Rica
    Posts
    4
    Qt products
    Qt4
    Platforms
    Unix/X11 Windows

    Unhappy Re: correctly installed Qt4

    By the way... I used that qmake thing... I suppose that compiles, doesn't it? This demonstrates my level of "lostiness"...

  2. #2
    Join Date
    Sep 2006
    Posts
    339
    Thanks
    15
    Thanked 21 Times in 16 Posts
    Qt products
    Qt3 Qt4
    Platforms
    Unix/X11 Windows

    Default Re: correctly installed Qt4

    Quote Originally Posted by Osoascam View Post
    By the way... I used that qmake thing... I suppose that compiles, doesn't it? This demonstrates my level of "lostiness"...
    Did you try this linkhttp://www.imb-jena.de/~hollund/software.html
    See the section Qt4 with Dev-C++
    I'm using Kdevelop on linux system and there is no problem.

  3. #3
    Join Date
    Mar 2006
    Location
    Mountain View, California
    Posts
    489
    Thanks
    3
    Thanked 74 Times in 54 Posts
    Qt products
    Qt3 Qt4 Qt/Embedded
    Platforms
    MacOS X Unix/X11 Windows

    Default Re: correctly installed Qt4

    I don't understand what all this confusion is about. For Windows, I download Qt open source, and run the installer program. When it asks me if I want MinGW, I say yes. But if you already have MinGW with Dev-C++, then say no, and give it the right location. Soon Qt is installed and working. Very easy.

    If you are having troubles, then you need to say more than just "it doesn't work." Tell us WHAT doesn't work. Tell us the error messages. Tell us exactly what you are doing.

  4. #4
    Join Date
    May 2007
    Posts
    315
    Thanks
    1
    Thanked 2 Times in 2 Posts
    Qt products
    Qt4
    Platforms
    Windows

    Default Re: correctly installed Qt4

    Ok, so I have:
    1) Downloaded Qt 4.2.3 Open Source installer
    2) Installed it to my Dev-C++ directory
    3) Added this template to my Dev-Cpp/Temaplates
    4) Added C:/Qt/4.2.3/lib library and C:/Qt/4.2.3/bin binary file to Dev-C++ by tools->compilator options->directories
    The warnings are such as:
    Qt Code:
    1. 1 C:\Dev-Cpp\main.cpp QApplication: No such file or directory.
    2. 2 C:\Dev-Cpp\main.cpp QPushButton: No such file or directory.
    3. 6 C:\Dev-Cpp\main.cpp `QApplication' undeclared (first use this function)
    4. 6 C:\Dev-Cpp\main.cpp expected `;' before "app"
    To copy to clipboard, switch view to plain text mode 
    And more. Code, which I have used:
    #include <QApplication>
    #include <QPushButton>

    int main(int argc, char *argv[])
    {
    QApplication app(argc, argv);

    QPushButton hello("Hello world!");
    hello.resize(100, 30);

    hello.show();
    return app.exec();
    }

  5. #5
    Join Date
    Feb 2006
    Location
    Romania
    Posts
    2,744
    Thanks
    8
    Thanked 541 Times in 521 Posts
    Qt products
    Qt4
    Platforms
    Unix/X11 Windows

    Default Re: correctly installed Qt4

    What about the include paths? Have you set them correctly?

    They should be ( or contain ) C:/Qt/4.2.3/include

    Regards

  6. #6
    Join Date
    May 2007
    Posts
    315
    Thanks
    1
    Thanked 2 Times in 2 Posts
    Qt products
    Qt4
    Platforms
    Windows

    Default Re: correctly installed Qt4

    They're in c:/Qt/4.2.3/include but how could I set them to Dev?

  7. #7
    Join Date
    Feb 2006
    Location
    Romania
    Posts
    2,744
    Thanks
    8
    Thanked 541 Times in 521 Posts
    Qt products
    Qt4
    Platforms
    Unix/X11 Windows

    Default Re: correctly installed Qt4

    Create a new project and look in the project options.

    I never used it, but any decent IDE should have an option for additional include paths.

    Regards

  8. #8
    Join Date
    May 2007
    Posts
    315
    Thanks
    1
    Thanked 2 Times in 2 Posts
    Qt products
    Qt4
    Platforms
    Windows

    Default Re: correctly installed Qt4

    I have added this to Project options->directiories but it still doesn't work. The same errors. What I am doing wrong?

  9. #9
    Join Date
    Feb 2006
    Location
    Romania
    Posts
    2,744
    Thanks
    8
    Thanked 541 Times in 521 Posts
    Qt products
    Qt4
    Platforms
    Unix/X11 Windows

    Default Re: correctly installed Qt4

    Try adding the to Tools/Compiler options/Directories/C++ includes also.

    Maybe it works this way.
    Somehow it's gotta work...

  10. #10
    Join Date
    May 2007
    Posts
    315
    Thanks
    1
    Thanked 2 Times in 2 Posts
    Qt products
    Qt4
    Platforms
    Windows

    Default Re: correctly installed Qt4

    No, It still doesn't work. (To one of users: Now you see, what is this confusion about). So what do I have to do to set all of this .... correctly? Regards

  11. #11
    Join Date
    Feb 2006
    Location
    Romania
    Posts
    2,744
    Thanks
    8
    Thanked 541 Times in 521 Posts
    Qt products
    Qt4
    Platforms
    Unix/X11 Windows

    Default Re: correctly installed Qt4

    I used your template and I made it work. But this is an unacceptable solution. You have to add all the directory paths inside c:\qt\include in the project options.

    Regards

  12. #12
    Join Date
    May 2007
    Posts
    315
    Thanks
    1
    Thanked 2 Times in 2 Posts
    Qt products
    Qt4
    Platforms
    Windows

    Default Re: correctly installed Qt4

    It means that I have to add every file which is in include directory manually? Do I have to do the same with bin and lib directories?

Similar Threads

  1. Replies: 2
    Last Post: 31st August 2011, 16:15
  2. No printer installed..?
    By Cutey in forum Qt Programming
    Replies: 2
    Last Post: 24th February 2007, 11:08
  3. Replies: 1
    Last Post: 23rd August 2006, 18:02
  4. how to correctly compile threads support?
    By srhlefty in forum Installation and Deployment
    Replies: 9
    Last Post: 25th June 2006, 19:15
  5. scanf not reading input correctly
    By jamadagni in forum General Programming
    Replies: 1
    Last Post: 8th January 2006, 15:54

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.