PDA

View Full Version : Qt Creator Develop with both MSVC and MinGW on Windows



bennettm
10th April 2011, 01:18
I would prefer to use MinGW for all my projects, but I also want to be able to build project that use COM/DCOM components like QAxScriptManager. Is it possible to have both MinGW and MSVC setup on the same machine and be able to create or change a project that targets either? If so (I assume it is), then what needs to be done for a) setting up the Windows environment (e.g. Path), and b) setting up Qt Creator (qmake)?

Regards,
Matt

squidge
10th April 2011, 09:49
Yes, it is possible, just install the MinGW and VS versions in different directories. For PATH I would just include the path to the DLLs used most, eg if you use QtCreator more than VS then put those DLLs in the path. For your VS projects you would then have to copy the appropriate DLLs into your projects output folder or build statically.