Results 1 to 9 of 9

Thread: Getting started on a Mac

Hybrid View

Previous Post Previous Post   Next Post Next Post
  1. #1
    Join Date
    Aug 2009
    Posts
    140
    Thanks
    22
    Qt products
    Qt4
    Platforms
    MacOS X Unix/X11 Windows

    Default Re: Getting started on a Mac

    I'm not at my Mac right now but look in your Developer (or Programming, but I think it's the former) top level directory. Qt should be in it and you can make your way to the home directory from there.

    Matt

  2. #2
    Join Date
    Jun 2010
    Location
    Cincinnati, Ohio, USA
    Posts
    92
    Thanks
    3
    Qt products
    Qt4
    Platforms
    Windows

    Default Re: Getting started on a Mac

    Yea, I found that a while back. The main problem I have right now is trying to run a qml file in Qt Creator. The green run button is gray. I am assuming that things are not setup correctly. Further, I am assuming I need to configure/compile/install Qt. The question is:

    Where do I go to configure/compile/install Qt upon installing from the dmg file?

  3. #3
    Join Date
    Aug 2009
    Posts
    140
    Thanks
    22
    Qt products
    Qt4
    Platforms
    MacOS X Unix/X11 Windows

    Default Re: Getting started on a Mac

    Is it just qml files that are the problem? Can you run a regular (non-qml) demo through QtCreator?

  4. #4
    Join Date
    Jun 2010
    Location
    Cincinnati, Ohio, USA
    Posts
    92
    Thanks
    3
    Qt products
    Qt4
    Platforms
    Windows

    Default Re: Getting started on a Mac

    No, Here is the error message I am getting:

    Could not find make command: make in the build environment
    Error while building project graphicsview (target: Desktop)
    When executing build step 'Make'

  5. #5
    Join Date
    Dec 2010
    Location
    US, Washington State
    Posts
    54
    Thanks
    3
    Thanked 7 Times in 7 Posts
    Qt products
    Qt4
    Platforms
    MacOS X Unix/X11 Windows

    Default Re: Getting started on a Mac

    Quote Originally Posted by scarleton View Post
    No, Here is the error message I am getting:

    Could not find make command: make in the build environment
    Error while building project graphicsview (target: Desktop)
    When executing build step 'Make'
    make is in /Developer/usr/bin
    and
    /usr/bin/make
    which are symbolic links to gnumake in their respective directories.

    Check that the /usr/bin is set in the bash path.

    What does typing
    make --version
    gcc --version

    at the terminal return?

  6. #6
    Join Date
    Jun 2010
    Location
    Cincinnati, Ohio, USA
    Posts
    92
    Thanks
    3
    Qt products
    Qt4
    Platforms
    Windows

    Default Re: Getting started on a Mac

    Ok, at the day job right now so I cannot answer the version questions, will this evening, but...

    I did install Qt BEFORE XCode, does that matter?

  7. #7
    Join Date
    Jun 2010
    Location
    Cincinnati, Ohio, USA
    Posts
    92
    Thanks
    3
    Qt products
    Qt4
    Platforms
    Windows

    Default Re: Getting started on a Mac

    Ok, when I do an echo $PATH, I get:

    /usr/bin:/bin:/usr/sbin:/sbin:/usr/local/bin:/usr/X11/bin

    But there is no make or gcc in the path, though I am able to start /Developer/Applications/Xcode and get to the "Welcome to Xcode" dialog.

    What am I missing?

  8. #8
    Join Date
    Aug 2009
    Posts
    140
    Thanks
    22
    Qt products
    Qt4
    Platforms
    MacOS X Unix/X11 Windows

    Default Re: Getting started on a Mac

    I never had to do any special install of gcc, make, etc. to get things going on a Mac, I'm pretty sure they come with Xcode.

    As for your error messages, on an HP I get exactly those messages when, on the Projects page, the Qt version I use is 'Qt in Path' rather than 'Qt 4.7.0', ,'Qt 4.6.3', etc. I can't look at this on my Mac now but I expect it's the same thing. In this situation, under 'Build Steps', it says 'make not found in the environment'--are you getting this? Moreover I *am* able to run qmake in this case. I don't understand exactly what the problem is here, but the solution is just to switch to another Qt version, something != 'Qt in Path'. As soon as you're able to get rid of 'make not found', you're good.

    HTH,
    Mattt

Similar Threads

  1. Getting started with multicasting
    By DiamonDogX in forum Qt Programming
    Replies: 0
    Last Post: 29th June 2009, 22:26
  2. Replies: 5
    Last Post: 19th September 2008, 15:24
  3. Getting started with Qt
    By spainchaud in forum Qt Programming
    Replies: 3
    Last Post: 25th June 2008, 15:27
  4. Getting Started
    By Hockey in forum Newbie
    Replies: 9
    Last Post: 29th November 2007, 21:43
  5. How do I get started?
    By neigaard in forum Newbie
    Replies: 2
    Last Post: 12th March 2007, 08:42

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.