[Qt-creator] Compiling fails to link *sometimes*

Murphy, Sean smurphy at walbro.com
Wed Jul 9 20:11:22 CEST 2014


> Nothing suspicios.
>
> Can you execute "mingw32-make -j4 -d > make.log", zip the log and attach it?

Ok, when I did that it failed at the linker step.  

One thing I noticed is that my Target line in my real .pro file has four words separated by spaces.  In the original version of the .pro file I posted on here, I had deliberately done a find and replace of the real application name with "myApp", since the program is work related and I'd prefer not to post potentially sensitive corporate stuff here.  But for the sake of argument, let's say the original line in the .pro was this:
  TARGET = "Foo Bar Baz Blah"
At the end of the make.log file you asked me to create I see lines like this:

The prerequisites of 'first' are being made.
Live child 0205F2C8 (Blah.exe") PID 6212368 
Live child 0062A728 (Baz) PID 6211968 
Live child 0062A938 (Bar) PID 6211648 
Live child 0062A8A8 ("debug\Foo) PID 6211248 
Reaping losing child 0205F2C8 PID 6212368 
Makefile.Debug:210: recipe for target "Blah.exe"' failed
Removing child 0205F2C8 PID 6212368 from chain.
Released token for child 0205F2C8 (Blah.exe").
Live child 0062A728 (Baz) PID 6211968 
Live child 0062A938 (Bar) PID 6211648 
Live child 0062A8A8 ("debug\Foo) PID 6211248 
Reaping losing child 0062A938 PID 6211648 
Makefile.Debug:210: recipe for target ' Bar ' failed
Removing child 0062A938 PID 6211648 from chain.
Released token for child 0062A938 (Bar).
Live child 0062A728 (Baz) PID 6211968 
Live child 0062A8A8 ("debug\Foo) PID 6211248 
Live child 0062A728 (Baz) PID 6211968 
Live child 0062A8A8 ("debug\Foo) PID 6211248 
Reaping losing child 0062A728 PID 6211968 
Makefile.Debug:210: recipe for target ' Baz ' failed
Removing child 0062A728 PID 6211968 from chain.
Released token for child 0062A728 (Baz).
Live child 0062A8A8 ("debug\Foo) PID 6211248 
Live child 0062A8A8 ("debug\Foo) PID 6211248 
Reaping winning child 0062A8A8 PID 6211248 
Removing child 0062A8A8 PID 6211248 from chain.
mingw32-make[1]: Leaving directory

If I then change my Target line to:
  TARGET="FooBarBazBlah"
Then there is only one link entry line in the compilation, so it appears there may be a bug with how qmake is generating makefiles for applications with spaces in the name?
Sean


More information about the Qt-creator mailing list