Suddenly unable to compile any examples
-
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.0That'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
-
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
-
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
@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.
-
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.