Results 1 to 9 of 9

Thread: [Help] Error while Compiling

  1. #1
    Join Date
    Oct 2010
    Location
    The Netherlands
    Posts
    2
    Qt products
    Qt4
    Platforms
    Windows

    Default [Help] Error while Compiling

    Hello there,

    I am new to Qt and this forum, as you may notice.
    I couldn't find any threads where this was being discused and since im a noob at this i thought, Lets post it here! o_O

    Always when i try to compile i get this error:
    Qt Code:
    1. Could not find make command: make in the build environment
    2. Error while building project TextFinder (target: Desktop)
    3. When executing build step 'Make'
    To copy to clipboard, switch view to plain text mode 

    I also get this screen before opening my project and thought it might have to do with the error:

    I did try to compile an empty project, to test if the error occured everytime. It did.
    Btw, i used a TUT. So I guess the code i put it is right.

    Thanks for your efforts

  2. #2
    Join Date
    Aug 2009
    Location
    Belgium
    Posts
    310
    Thanks
    10
    Thanked 31 Times in 25 Posts
    Qt products
    Qt4
    Platforms
    Windows

    Default Re: [Help] Error while Compiling

    Hi,

    Unfortunately we cannot help if you don't say what version of Qt you are using, what compiler, and what operating system.

    Either way, I would strongly advise you to use QtCreator and one of the prebuild packages available on the Qt website. This will help you a lot.

    Best regards,
    Marc

  3. #3
    Join Date
    Oct 2010
    Location
    The Netherlands
    Posts
    2
    Qt products
    Qt4
    Platforms
    Windows

    Default Re: [Help] Error while Compiling

    Quote Originally Posted by marcvanriet View Post
    Hi,

    Unfortunately we cannot help if you don't say what version of Qt you are using, what compiler, and what operating system.

    Either way, I would strongly advise you to use QtCreator and one of the prebuild packages available on the Qt website. This will help you a lot.

    Best regards,
    Marc
    I'm sorry. I use QtCreator 2.0.1 and the build in compiler (it is a compiler right? o_O. The green "play-like" button. I run on Windows XP Home Edition 32-bit.
    What are the prebuild packages for?

    Thanks for your fast reply =].

  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: [Help] Error while Compiling

    The green play button starts the program, it doesn't do any building unless the program source is changed.

    Qt Creator does not have a built in compiler. It makes use of the compilers installed on your system. In the project settings, you can choose which one you want to use.

    The problem you're facing is that the build tool "make" is not found. Note that "make" is also not a compiler.
    Most operating systems have standard directories where they look for programs and files. If you do not install your program in one of those standard directories, you need to tell the operating system where to find your program. This is done by adding the directory of your program to the PATH environment variable.

    Now, if you download and install the Qt SDK package, all the setup work is done for you.

  5. #5
    Join Date
    Jan 2011
    Posts
    4
    Qt products
    Qt/Embedded
    Platforms
    Windows

    Default Re: [Help] Error while Compiling

    even i got the same error, i'm using windows 7 and Qt Creator 2.0.1
    Based on Qt 4.7.0 (32 bit), pls reply as soon as possible ...i'm pretty to excited to work on it..

  6. #6
    Join Date
    Nov 2010
    Posts
    97
    Thanks
    6
    Thanked 11 Times in 11 Posts
    Qt products
    Qt4
    Platforms
    Windows

    Default Re: [Help] Error while Compiling

    Quote Originally Posted by Lapje View Post
    I'm sorry. I use QtCreator 2.0.1 and the build in compiler (it is a compiler right? o_O. The green "play-like" button. I run on Windows XP Home Edition 32-bit.
    What are the prebuild packages for?

    Thanks for your fast reply =].
    Try downloading and installing "mingw" (you might also want msys, after mingw, but I don't think it's required) and then try downloading and installing the Qt SDK instead of just creator. You might have better results.
    This rude guy who doesn't want you to answer his questions.

    Note: An "expert" here is just someone that's posted a lot.

    "The fact of where you do the encapsulation is meaningless." - Qt Certified Developer and forum moderator

  7. #7
    Join Date
    Aug 2009
    Location
    Belgium
    Posts
    310
    Thanks
    10
    Thanked 31 Times in 25 Posts
    Qt products
    Qt4
    Platforms
    Windows

    Default Re: [Help] Error while Compiling

    Hi,

    AFAIK Mingw is installed automatically when you install the SDK. There is a checkbox in the setup program to turn this on or off. I didn't install msys, so I guess it's not required.

    Regards,
    Marc

  8. #8
    Join Date
    Nov 2010
    Posts
    97
    Thanks
    6
    Thanked 11 Times in 11 Posts
    Qt products
    Qt4
    Platforms
    Windows

    Default Re: [Help] Error while Compiling

    Quote Originally Posted by marcvanriet View Post
    Hi,

    AFAIK Mingw is installed automatically when you install the SDK. There is a checkbox in the setup program to turn this on or off. I didn't install msys, so I guess it's not required.

    Regards,
    Marc
    MSys wouldn't be required. It's just some shell utilities on top of bash made for windows.
    This rude guy who doesn't want you to answer his questions.

    Note: An "expert" here is just someone that's posted a lot.

    "The fact of where you do the encapsulation is meaningless." - Qt Certified Developer and forum moderator

  9. #9
    Join Date
    Mar 2009
    Location
    Brisbane, Australia
    Posts
    7,729
    Thanks
    13
    Thanked 1,610 Times in 1,537 Posts
    Qt products
    Qt4 Qt5
    Platforms
    Unix/X11 Windows
    Wiki edits
    17

    Default Re: [Help] Error while Compiling

    There are two options:
    1. The Qt SDK download for Windows installs Qt Creator, Qt sources/libraries, the MingW GCC compiler and enough of the other utilities (e.g. make) to give a working out-of-the-box system.
    2. The Qt Creator binary download gives you just Qt Creator which, as others have said, relies on copies of Qt, working compilers and other tools already on your system. Windows systems do not have any of these other components by default.

    The preferred option for a quick start is option 1. It looks as if you have gone for option 2.

Similar Threads

  1. error while compiling ....
    By sh123 in forum Qt Programming
    Replies: 2
    Last Post: 13th December 2008, 07:23
  2. Replies: 1
    Last Post: 25th October 2008, 19:18
  3. i always get an error when compiling Qt4.4.0
    By mismael85 in forum Installation and Deployment
    Replies: 9
    Last Post: 21st July 2008, 14:08
  4. Compiling error
    By Ucef in forum Newbie
    Replies: 1
    Last Post: 18th March 2007, 01:15
  5. Compiling Error
    By KyrinComa in forum Qt Programming
    Replies: 2
    Last Post: 17th May 2006, 13:19

Tags for this Thread

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.