[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Bug#740588: qtcreator: fails to build if project path contains parenthesis ( like '(' ).




Il 03/mar/2014 13:33 "Lisandro Damián Nicanor Pérez Meyer" <perezmeyer@gmail.com> ha scritto:
> On Monday 03 March 2014 09:44:15 Fabio Cobianchi wrote:
> > Package: qtcreator
> > Version: 3.0.1+dfsg-1
> > Severity: normal
> >
> > Dear Maintainer,
> >
> > I have a project in
> > '/home/ufftec/arm/codici_sblocco/eurtronik_service (copia)/'
> >
> > When I try to built it I get:
> >
> > 09:33:41: Starting: "/usr/lib/x86_64-linux-gnu/qt5/bin/qmake"
> > '/home/ufftec/arm/codici_sblocco/eurtronik_service (copia)/service.pro' -r
> > -spec linux-g++-64 CONFIG+=debug CONFIG+=declarative_debug
> > CONFIG+=qml_debug sh: 1: Syntax error: "(" unexpected
> > sh: 1: Syntax error: "(" unexpected
> > 09:33:41: The process "/usr/lib/x86_64-linux-gnu/qt5/bin/qmake" exited
> > normally. 09:33:41: Starting: "/usr/bin/make"
> > /usr/lib/x86_64-linux-gnu/qt5/bin/uic ../eurtronik_service\
> > (copia)/mainwindow.ui -o ui_mainwindow.h /bin/sh: 1: Syntax error: "("
> > unexpected
> > make: *** [ui_mainwindow.h] Error 2
> > 09:33:41: The process "/usr/bin/make" exited with code 2.
>
> What happens if you copy and paste the commands and try them on a console?

I get the same error.
I think the problem is in how qtcreator builds the command line.

This is how it invokes uic:
/usr/lib/x86_64-linux-gnu/qt5/bin/uic ../eurtronik_service\ (copia)/mainwindow.ui -o ui_mainwindow.h

My project directory is "eurtronik_service (copia)", it escapes correctly the space (" " -> "\ "), but not the parenthesis.

If I try this command line on the console:
/usr/lib/x86_64-linux-gnu/qt5/bin/uic ../eurtronik_service\ \(copia\)/mainwindow.ui -o ui_mainwindow.h
It works normally.


Reply to: