Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. Qt Creator and other tools
  4. Error in mingw32 -make command [SOLVED]
Forum Updated to NodeBB v4.3 + New Features

Error in mingw32 -make command [SOLVED]

Scheduled Pinned Locked Moved Qt Creator and other tools
9 Posts 2 Posters 2.8k Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • B Offline
    B Offline
    bilal
    wrote on last edited by
    #1

    I am trying to make a project in windows. I have installed Qt with mingw

    firstly I enter qmake -project
    then qmake (project pro file)
    after that when i enter mingw32-make

    it shows errors which are

    undefined reference to qmain( int , char **)
    and the second one is recipe for target 'release' failes ( which i presume is due to the first error )

    kindly help me in this regard

    1 Reply Last reply
    0
    • SGaistS Offline
      SGaistS Offline
      SGaist
      Lifetime Qt Champion
      wrote on last edited by
      #2

      Hi and welcome to devnet,

      What does your project contain ?

      Interested in AI ? www.idiap.ch
      Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

      1 Reply Last reply
      0
      • B Offline
        B Offline
        bilal
        wrote on last edited by
        #3

        My project is a simple GUI made in the form section, mainwindow.ui. i have also included the header and cpp file of customplot.

        1 Reply Last reply
        0
        • SGaistS Offline
          SGaistS Offline
          SGaist
          Lifetime Qt Champion
          wrote on last edited by
          #4

          Can you show your pro file ?

          By the way, since you installed the Qt mingw package, why don't you use QtCreator ? Specially on windows, it simplifies life a lot

          Interested in AI ? www.idiap.ch
          Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

          1 Reply Last reply
          0
          • B Offline
            B Offline
            bilal
            wrote on last edited by
            #5

            Thank you brother :). I just made run qmake and then wrote make in the DOS window. After that, i put in around 10 -12 missing DLLs and now the executable file is working. However, i dont know if i have to compile it again in another OS or would it run perfectly in other OS like linux...?

            1 Reply Last reply
            0
            • SGaistS Offline
              SGaistS Offline
              SGaist
              Lifetime Qt Champion
              wrote on last edited by
              #6

              No it won't, you have to compile it for the other platforms too. For linux a virtual machine is sufficient, for OS X you need a Mac computer

              Interested in AI ? www.idiap.ch
              Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

              1 Reply Last reply
              0
              • B Offline
                B Offline
                bilal
                wrote on last edited by
                #7

                Ok thanks a lot sir.

                1 Reply Last reply
                0
                • SGaistS Offline
                  SGaistS Offline
                  SGaist
                  Lifetime Qt Champion
                  wrote on last edited by
                  #8

                  You're welcome !

                  For deployment, have a look at the various guides in the documentation, they provide good informations on how to do it.

                  If your current question has been answered, please update the thread title prepending [solved] so other forum users may know a solution has been found

                  Interested in AI ? www.idiap.ch
                  Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

                  1 Reply Last reply
                  0
                  • B Offline
                    B Offline
                    bilal
                    wrote on last edited by
                    #9

                    Ok sir! Thanks again. I will keep in touch with you

                    1 Reply Last reply
                    0

                    • Login

                    • Login or register to search.
                    • First post
                      Last post
                    0
                    • Categories
                    • Recent
                    • Tags
                    • Popular
                    • Users
                    • Groups
                    • Search
                    • Get Qt Extensions
                    • Unsolved