Qt Creator "Run configuration" issue with LibreCAD.

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
6 messages Options
Reply | Threaded
Open this post in threaded view
|

Qt Creator "Run configuration" issue with LibreCAD.

ClaudeQC

Hello,

- Using LibreCAD master with Qt Creator, I noticed that
  there is 2 "Run configuration" in
  "Projects"->"Run Settings"->"Run configuration:"
  These "Run configuration" are:
        src
        ttf2lff

- I think that "ttf2lff" has nothing to do here, and must
  be removed.

- For an unknown reason, the "ttf2lff" "Run configuration is
  frequently selected, and this prevent LibreCAD to be run from
  Qt Creator.

- Any comment on that?


Claude

Reply | Threaded
Open this post in threaded view
|

Re: Qt Creator "Run configuration" issue with LibreCAD.

Rallaz
The ttf2lff is an utility for convert ttf to lff fonts, and is only build in linux because it require freetype.

About "Run configuration:" issue:

the ttf2lff.pro is not included in subdir target for windows, but for some reason is parsed and added in QtCreator ignoring the "not win32" condition.

I have done some testing (removing librecad.pro.user):
  - I added "ttf2lff" before "src" -> ttf2lff is selected
  - I added "ttf2lff" after "src" -> ttf2lff is selected
  -I removed CONFIG += ordered and made the two previous test -> ttf2lff is selected
  -I I have set all the content of ttf2lff.pro in "not win32" condition -> ttf2lff is selected & fail to build
  -I made other test I do not remember -> ttf2lff is selected

My conclusion:
  In qtcreator if the target is subdir all pro files are parsed then sorted alphabetically and set in "Run configuration:" the last (in alphabetical order) project file with target=app.

My sulution (really a hack):
I renamed (and push) "ttf2lff" dir & pro file as "attf2lff" and as default "src" configuration is selected.

Cheers,
Rallaz
Reply | Threaded
Open this post in threaded view
|

Re: Qt Creator "Run configuration" issue with LibreCAD.

ClaudeQC

On 15/12/2011 13:13, Rallaz [via LibreCAD] wrote:

 >
 > The ttf2lff is an utility for convert ttf to lff fonts, and is only
 > build in linux because it require freetype.
 >

Thank you for the information.


 >
 > About "Run configuration:" issue:
 >
 > the ttf2lff.pro is not included in subdir target for windows, but for
 > some reason is parsed and added in QtCreator ignoring the "not win32"
 > condition.
 >
 > I have done some testing (removing librecad.pro.user):
 > - I added "ttf2lff" before "src" -> ttf2lff is selected
 > - I added "ttf2lff" after "src" -> ttf2lff is selected
 > -I removed CONFIG += ordered and made the two previous test -> ttf2lff
 > is selected
 > -I I have set all the content of ttf2lff.pro in "not win32" condition ->
 > ttf2lff is selected & fail to build
 > -I made other test I do not remember -> ttf2lff is selected
 >
 > My conclusion:
 > In qtcreator if the target is subdir all pro files are parsed then
 > sorted alphabetically and set in "Run configuration:" the last (in
 > alphabetical order) project file with target=app.
 >
 > My sulution (really a hack):
 > I renamed (and push) "ttf2lff" dir & pro file as "attf2lff" and as
 > default "src" configuration is selected.
 >

- Humm...   Really interesting.

- I think this is the kind of situation that explain why so
   much people do prefer manage projects manually.
   Managing project through an IDE can really be a nightmare
   in some situation.

- Will take a look, if it is possible to built LibreCAD from
   Cygwin command line...


Regards,

Claude


Reply | Threaded
Open this post in threaded view
|

Re: Qt Creator "Run configuration" issue with LibreCAD.

ClaudeQC

- Replying to myself...

>
> - Will take a look, if it is possible to built LibreCAD from
>   Cygwin command line...
>

- I forgot I already tried to built LibreCAD on Cygwin, and this
  was not possible because "qmake" is not present on Cygwin.


Claude
Reply | Threaded
Open this post in threaded view
|

Re: Qt Creator "Run configuration" issue with LibreCAD.

ClaudeQC
In reply to this post by Rallaz

>
> My sulution (really a hack):
> I renamed (and push) "ttf2lff" dir & pro file as "attf2lff" and
> as default "src" configuration is selected.
>

- I just downloaded LibreCAD master from GIT, and your hack does not
  work for me on a Windows 7 Professional 64-bit computer.
  "ttf2lff" remain the default run configuration :-(

Claude
Reply | Threaded
Open this post in threaded view
|

Re: Qt Creator "Run configuration" issue with LibreCAD.

Rallaz
2011/12/16 ClaudeQC [via LibreCAD] <[hidden email]>:
>
> - I just downloaded LibreCAD master from GIT, and your hack does not
>   work for me on a Windows 7 Professional 64-bit computer.
>   "ttf2lff" remain the default run configuration :-(
>
> Claude
>

First delete "librecad.pro.user" then open qtcreator, this file is
created by qtcreator each time you open "librecad.pro".

Cygwin is a bad idea because QT for windows is build with MinGW and, I
seem, the ABI is not compatible.

For command line build in windows you can use:
 with cmd.exe:
     write a batch file like:
            SET PATH=%PATH%;C:\Qt\Desktop\Qt\4.7.4\mingw\bin;C:\Qt\mingw\bin
            cmd.exe

 with MSYS bash:
      Install msys from nimgw.org
      modify the configuration to add in the path the location of qmake.exe.

In bot cases is bad to add the qmake dir-path in system var "PATH" to
avoid cygwin collision.

Rallaz