Results 1 to 5 of 5

Thread: how to detect Qt3 ahd Qt4 with qmake?

  1. #1
    Join Date
    Sep 2008
    Posts
    93
    Thanks
    6
    Thanked 1 Time in 1 Post

    Default how to detect Qt3 ahd Qt4 with qmake?

    Hello, i have a problem about qmake.
    The problem is like this:
    I installed qt3 and qt4 (qt4.5 and qt4.6) in my computer, i hope qmake can detect if qt4.6 is installed and can get header file path and libs automatically. If there is no qt4.6, it stops.

    Thanks in advance!

  2. #2
    Join Date
    Mar 2008
    Posts
    27
    Thanks
    1
    Thanked 1 Time in 1 Post
    Qt products
    Qt4
    Platforms
    Windows

    Default Re: how to detect Qt3 ahd Qt4 with qmake?

    First: What is your exact question? Do you want to make sure your program is compiled with the latest compiler?

    Second: Why do you have multiple versions of QT on your computer anyway. If you want to compile some project which has some QT3 code in it, you can use QT3_support.

    It might be possible that we are able to help you further if you provide these answers.

    Good luck!

  3. #3
    Join Date
    Sep 2008
    Posts
    93
    Thanks
    6
    Thanked 1 Time in 1 Post

    Default Re: how to detect Qt3 ahd Qt4 with qmake?

    Sorry , for confusion
    The idea is:
    My application need Qt4.6 and some computers have Qt3, Qt4.4.3 and Qt4.6. So, are there some ways in Qmake or project file to detect if Qt4.6 is installed? if so, we get the header files path automatically so makefile can use this path in -I/usr/local/...?

    Thanks in advance!

  4. #4
    Join Date
    Mar 2008
    Posts
    27
    Thanks
    1
    Thanked 1 Time in 1 Post
    Qt products
    Qt4
    Platforms
    Windows

    Default Re: how to detect Qt3 ahd Qt4 with qmake?

    If you use Qmake from the command line, I would assume that it would take the header files from the directory QMake itself is in. For example you call:

    Qt Code:
    1. C:\QT\4.6\bin\make.exe
    To copy to clipboard, switch view to plain text mode 

    That qt automaticly uses the header files from: C:\QT\4.6\include...

    But I don't know how those files are stored in a linux system which you seem to be using (I only program using Windows).

    So maybe you can try this, and maybe someone else around here knows more about that.

    Good luck!

  5. #5
    Join Date
    Sep 2008
    Posts
    93
    Thanks
    6
    Thanked 1 Time in 1 Post

    Default Re: how to detect Qt3 ahd Qt4 with qmake?

    Thanks!

    I hope to add some into project file so that QMake can detect which version of Qt is installed and where it is?

Similar Threads

  1. Flex, Bison and qmake
    By Hydragyrum in forum Qt Programming
    Replies: 5
    Last Post: 2nd May 2011, 15:52
  2. qmake sux a lot
    By singermornings in forum Qt Programming
    Replies: 6
    Last Post: 29th January 2009, 08:33
  3. Qt 4.3.1 & MinGW 5.1.3 & MSYS 1.0 qmake problem
    By mdecandia in forum Installation and Deployment
    Replies: 2
    Last Post: 2nd October 2008, 16:52
  4. Qt Cryptographic Architecture
    By vermarajeev in forum Qt Programming
    Replies: 6
    Last Post: 9th February 2007, 13:15
  5. linking user space and kernel space programs with qmake
    By zielchri in forum Qt Programming
    Replies: 9
    Last Post: 8th March 2006, 23:11

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.