[Qt-interest] Qt open source and VS 2008... how to make it work?

Frederic Tingaud tingaud at gostai.com
Fri Feb 19 17:38:12 CET 2010


Oliver.Knoll at comit.ch a écrit :
> Frederic Tingaud wrote on Friday, February 19, 2010 3:31 PM:
>
>   
>> ...
>> I use Qt with Visual Studio Express and we use a third solution, that
>> is to generate the project through CMake.
>>     
>
> That's another possibility. But both solutions - qmake and cmake - suffer from the same problem that all your changes you do within Visual Studio are lost each time you re-generate the Visual Studio projects (because you added more sources to your projects, as indicated earlier).
>
> But if you have a good cmake/qmake based project which defines all the dependencies (and yes, also with qmake it is possible so set dependencies, see DEPENDPATH - you just have to "manually" declare all subdirectories of all sub-projects your current project depends on) and you just want to "quickly use a convenient debugger like Visual Studio", then quickly re-generating the Visual Studio projects (as "ad-hoc projects") for debugging purposes is perfectly fine.
>   
In fact, you can do a little bit more than that with CMake. For example,
my CMake script sorts files in different groups and sub-groups of the
Solution Explorer and creates custom projects that when built generates
documentation, installers, etc.

> And after all, there's also Qt Creator... ;) (But in 1.3 I haven't still figured out what the "This project depends on" switch is good for - it that supposed to work already? Can be found under "Project" settings, but each time I reload the *.pro files this setting is lost. And I can only set it when I load multiple *.pro files at the same time, only then do I get a choice in the combobox to select the dependencies (but not when I load a "top-level" *.pro file with template=subdirs, for example)).
>
> Cheers, Oliver
>   


-- 
-------------------------------------------------------------------------------
Frederic TINGAUD
Ingenieur R&D - Gostai Developer Suite
http://www.gostai.com

15 rue Jean-Baptiste Berlier     Std.: +33/0 1 55 43 76 70
75013 Paris, France                Fax: +33/0 1 55 43 76 77

Member of SYROBO, Robotics Trade Association
http://www.syrobo.org
-------------------------------------------------------------------------------




More information about the Qt-interest-old mailing list