Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. General and Desktop
  4. Qmake unable to generate project file from QtCeator...
QtWS25 Last Chance

Qmake unable to generate project file from QtCeator...

Scheduled Pinned Locked Moved Solved General and Desktop
15 Posts 2 Posters 1.6k Views
  • 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.
  • jsulmJ jsulm

    @chuckborisnorris said in Qmake unable to generate project file from QtCeator...:

    I ran Qmake as admin

    Why?

    "/robo_ui/robo_ui.pro" - is this path correct? If so, why is your project located in /robo_ui and not in your home directory?!
    If you already have a *.pro file - why do you call "qmake -project"? Just call qmake and then make. Adjust the project file if needed.

    C Offline
    C Offline
    chuckborisnorris
    wrote on last edited by
    #4

    @jsulm why? read the first line, I'm a total noob, I'm just trying whatever I can.

    The project has been moved from home to myuser to desktop and all over the place, if it has to be in a specific place, can I be told explicitly rather than implied as an idiot for not knowing automatically.

    I call qmake -project because that's what various tutorials have told me to do.
    Dont bother asking which, please, I'm not going to list every forum page I've looked at this week.

    By the way, qmake on its own gives me a similar reply, unable to generate makefile. So 'just call qmake and make' is unhelpful as well.

    Adjust the project file if needed... to what? How do I find out what needs to be adjusted related to what in my system? I repeat, noobs need examples!

    jsulmJ 1 Reply Last reply
    0
    • C chuckborisnorris

      @jsulm why? read the first line, I'm a total noob, I'm just trying whatever I can.

      The project has been moved from home to myuser to desktop and all over the place, if it has to be in a specific place, can I be told explicitly rather than implied as an idiot for not knowing automatically.

      I call qmake -project because that's what various tutorials have told me to do.
      Dont bother asking which, please, I'm not going to list every forum page I've looked at this week.

      By the way, qmake on its own gives me a similar reply, unable to generate makefile. So 'just call qmake and make' is unhelpful as well.

      Adjust the project file if needed... to what? How do I find out what needs to be adjusted related to what in my system? I repeat, noobs need examples!

      jsulmJ Offline
      jsulmJ Offline
      jsulm
      Lifetime Qt Champion
      wrote on last edited by
      #5

      @chuckborisnorris said in Qmake unable to generate project file from QtCeator...:

      rather than implied as an idiot for not knowing automatically

      Please calm down, I did not imply you being an idiot. I just ask why you did this, nothing more.

      You should keep your project somewhere in your home directory - here you have access rights and don't need to do anything as root.

      qmake -project is needed only once to generate the project file.
      Now you have it already.
      Please run qmake and post the whole output here.

      "Adjust the project file if needed... to what?" - that depends on what is wrong, that's why I suggest to post the qmake output.

      https://forum.qt.io/topic/113070/qt-code-of-conduct

      1 Reply Last reply
      1
      • C Offline
        C Offline
        chuckborisnorris
        wrote on last edited by
        #6

        The project has been called from /home/me/robo_ui; is this not my home directory? The output is as in the first post "failure to find... unable to generate..."

        jsulmJ 1 Reply Last reply
        0
        • C chuckborisnorris

          The project has been called from /home/me/robo_ui; is this not my home directory? The output is as in the first post "failure to find... unable to generate..."

          jsulmJ Offline
          jsulmJ Offline
          jsulm
          Lifetime Qt Champion
          wrote on last edited by
          #7

          @chuckborisnorris In the first post you called qmake with -project parameter. What happens if you call qmake without -project parameter?

          https://forum.qt.io/topic/113070/qt-code-of-conduct

          1 Reply Last reply
          0
          • C Offline
            C Offline
            chuckborisnorris
            wrote on last edited by
            #8

            In the first post I really didn't want to list every single operation I've performed...

            • qmake from /home/myuser/roboi_ui - failure to find... unable to generate makefile...
            • sudo qmake from /home/myuser/roboi_ui - no output in terminal, no makefile
            jsulmJ 1 Reply Last reply
            0
            • C chuckborisnorris

              In the first post I really didn't want to list every single operation I've performed...

              • qmake from /home/myuser/roboi_ui - failure to find... unable to generate makefile...
              • sudo qmake from /home/myuser/roboi_ui - no output in terminal, no makefile
              jsulmJ Offline
              jsulmJ Offline
              jsulm
              Lifetime Qt Champion
              wrote on last edited by
              #9

              @chuckborisnorris OK, lets be more clear. In /home/myuser/roboi_ui you have the pro file? And if you call qmake without -project in that directory you get "failure to find ..."?
              The thing is: if you do not provide needed information you will not get any meaningful help as others can only guess then.
              So please tell us exactly what you did and what output you got.

              https://forum.qt.io/topic/113070/qt-code-of-conduct

              C 1 Reply Last reply
              2
              • jsulmJ jsulm

                @chuckborisnorris OK, lets be more clear. In /home/myuser/roboi_ui you have the pro file? And if you call qmake without -project in that directory you get "failure to find ..."?
                The thing is: if you do not provide needed information you will not get any meaningful help as others can only guess then.
                So please tell us exactly what you did and what output you got.

                C Offline
                C Offline
                chuckborisnorris
                wrote on last edited by
                #10

                @jsulm once again, absolute noob, I am explaining what I've done to the best of my ability.

                Yes my project is in the above directory atm, is this the correct ditectory? I have tried all possible combinations of sudo, qmake, -project (explicitly: qmake, sudo qmake, qmake -project, sudo qmake -project) i have also tried all of these commands with the project folder on my desktop.

                Pretty

                C 1 Reply Last reply
                0
                • C chuckborisnorris

                  @jsulm once again, absolute noob, I am explaining what I've done to the best of my ability.

                  Yes my project is in the above directory atm, is this the correct ditectory? I have tried all possible combinations of sudo, qmake, -project (explicitly: qmake, sudo qmake, qmake -project, sudo qmake -project) i have also tried all of these commands with the project folder on my desktop.

                  Pretty

                  C Offline
                  C Offline
                  chuckborisnorris
                  wrote on last edited by
                  #11

                  @chuckborisnorris posted by accident. Meant to say: pretty sure this has already been stated earlier. Let's be more clear: What other info do you need?

                  jsulmJ 1 Reply Last reply
                  0
                  • C chuckborisnorris

                    @chuckborisnorris posted by accident. Meant to say: pretty sure this has already been stated earlier. Let's be more clear: What other info do you need?

                    jsulmJ Offline
                    jsulmJ Offline
                    jsulm
                    Lifetime Qt Champion
                    wrote on last edited by
                    #12

                    @chuckborisnorris You didn't answer this question: "In /home/myuser/roboi_ui you have the pro file?".
                    "is this the correct ditectory?" - it doesn't matter where you put it in your home directory, that's fine.
                    Can you show what is inside /home/myuser/roboi_ui ?
                    Can you then change to that directory, run qmake (without -project and without sudo) and post the output here?

                    https://forum.qt.io/topic/113070/qt-code-of-conduct

                    C 1 Reply Last reply
                    0
                    • jsulmJ jsulm

                      @chuckborisnorris You didn't answer this question: "In /home/myuser/roboi_ui you have the pro file?".
                      "is this the correct ditectory?" - it doesn't matter where you put it in your home directory, that's fine.
                      Can you show what is inside /home/myuser/roboi_ui ?
                      Can you then change to that directory, run qmake (without -project and without sudo) and post the output here?

                      C Offline
                      C Offline
                      chuckborisnorris
                      wrote on last edited by
                      #13

                      @jsulm the project file is in the robo_ui folder, as previously stated (admittedly by proxy)
                      I can't show you the output until I get home from work which won't be until tomorrow night. I'll do that when I can.

                      1 Reply Last reply
                      0
                      • C Offline
                        C Offline
                        chuckborisnorris
                        wrote on last edited by
                        #14

                        I've finally got it sussed, turns out it was a Linux issue rather than a Qt issue.

                        @jsulm I see now why you were confused about the folder structure, apologies for my frustration yesterday, I thought you were just being pedantic. Sorry.

                        The makefile was created with "sudo qmake" but the terminal couldn't see it (it didn't show up with "ls" either). In the explorer, though, it did show up. Interestingly when I used the QtCreator file browser to find the makefile (for experimental purposes only) I couldn't see it either. I assume it's some sort of weird permissions thing going on so I just created a new user profile and now I can build my UI without any issues.

                        If I find out what caused all this I'll post it up but classic first post eh? ...Issue had nothing to do with the forum <Picard face-palm>.

                        jsulmJ 1 Reply Last reply
                        1
                        • C chuckborisnorris

                          I've finally got it sussed, turns out it was a Linux issue rather than a Qt issue.

                          @jsulm I see now why you were confused about the folder structure, apologies for my frustration yesterday, I thought you were just being pedantic. Sorry.

                          The makefile was created with "sudo qmake" but the terminal couldn't see it (it didn't show up with "ls" either). In the explorer, though, it did show up. Interestingly when I used the QtCreator file browser to find the makefile (for experimental purposes only) I couldn't see it either. I assume it's some sort of weird permissions thing going on so I just created a new user profile and now I can build my UI without any issues.

                          If I find out what caused all this I'll post it up but classic first post eh? ...Issue had nothing to do with the forum <Picard face-palm>.

                          jsulmJ Offline
                          jsulmJ Offline
                          jsulm
                          Lifetime Qt Champion
                          wrote on last edited by
                          #15

                          @chuckborisnorris No problem! Such things happen :-)

                          https://forum.qt.io/topic/113070/qt-code-of-conduct

                          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