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. Suddenly unable to compile any examples

Suddenly unable to compile any examples

Scheduled Pinned Locked Moved Unsolved General and Desktop
6 Posts 3 Posters 812 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.
  • JazzyGuyJ Offline
    JazzyGuyJ Offline
    JazzyGuy
    wrote on last edited by aha_1980
    #1

    Hello all. I am not new to Qr but still learning the ropes. I suddenly cannot compile any examples. The ones I tried, Address Book and SaveGame, produce the same error: "missing separator. stop" The offending line in Makefile is apparently this:

    DISTDIR = /home/tom/Qt/Examples/Qt-5.11.1/widgets/itemviews/build-addressbook
    /.tmp/addressbook1.0.0

    That's two lines, but intended as one, and thus the separator being at the start of line two doesn't do anything. It should go at the end of line one. Why is the Makefile generated this way? Bug or something I did?

    This trouble started I think after I configured another project (my own console app) in another location to run via "make" at cmd line. I'm not 100% certain how I did that, probably just typing "make" auto-configured the project. The project builds and runs correctly via make (several modules and 100s lines) with no troubles. But the Qt examples fail to run inside Creator, and even a brand new empty console application with nothing added gives this same "missing separator" error.

    Many thanks for any help and suggestions.

    Tom

    [Edit aha_1980] Original report is QTCREATORBUG-21811

    1 Reply Last reply
    0
    • JazzyGuyJ Offline
      JazzyGuyJ Offline
      JazzyGuy
      wrote on last edited by
      #2

      Follow up
      I tried to create a new console app in another folder, and Qt created the following subfolder for the build:

      'build-test2'$'\n'

      That is the entire folder name, including the punctuation characters and the newline and backslash. This is not a command -- it is the NAME Qt assigned to the output folder! That's pretty weird,

      Please anybody help me out. I can run my application via make okay, it compiles all Qt libraries etc and runs. But new apps and all of the examples fail to compile.

      Thanks

      aha_1980A 1 Reply Last reply
      0
      • M Offline
        M Offline
        MrShawn
        wrote on last edited by
        #3

        Have you tried to qmake build system instead?

        1 Reply Last reply
        0
        • JazzyGuyJ JazzyGuy

          Follow up
          I tried to create a new console app in another folder, and Qt created the following subfolder for the build:

          'build-test2'$'\n'

          That is the entire folder name, including the punctuation characters and the newline and backslash. This is not a command -- it is the NAME Qt assigned to the output folder! That's pretty weird,

          Please anybody help me out. I can run my application via make okay, it compiles all Qt libraries etc and runs. But new apps and all of the examples fail to compile.

          Thanks

          aha_1980A Offline
          aha_1980A Offline
          aha_1980
          Lifetime Qt Champion
          wrote on last edited by aha_1980
          #4

          @JazzyGuy the odd build folder is surely the problem.

          It is generated after a pattern in Tools > Options (and then probably Build&Run, can't check currently).

          The pattern is than filled with some variables, like the Kits name.

          These are the points to check or post here for further investigation.

          Qt has to stay free or it will die.

          1 Reply Last reply
          2
          • JazzyGuyJ Offline
            JazzyGuyJ Offline
            JazzyGuy
            wrote on last edited by
            #5
            This post is deleted!
            1 Reply Last reply
            0
            • JazzyGuyJ Offline
              JazzyGuyJ Offline
              JazzyGuy
              wrote on last edited by
              #6

              I think I am running qmake. Just did a full Creator update and now I can run the calendar example, so maybe it was a bug that got me and was fixed. Time will tell. Perhaps I somehow changed to make from qmake, unsure, but thank you for the tip.

              FWIW: I had copied and executed the comment in Makefile at the bottom of the top header section, and after then was when my troubles began. That was for a different project. After executing the qmake config command, I was able to build my project successfully from cmd line using make (will try with qmake, thanks for tip) and also from within Sublime Text 3, which I normally use. The examples started to fail to build in Creator after then. Why (if true) did my configuring another project affect Creator? What is the proper way to configure projects for external building outside of Creator that won't affect Creator's operation, if that is what happened? Any hints or advice on those lines much appreciated. Thanks.

              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