I have install Visual Studio Community 2015. I want to add the visual studio 2015 compiler to Qt Creator. So I get to this screen. https://snag.gy/QND9wl.jpg
Now it is asking me to provide the details for the compiler path and make path. When I go to D:\Visual Studio\VC\bin I cannnot find Cl.exe. What are the exact paths for the compiler?
Did you actually install the C++ environment? By default, Visual Studio Community 2015 doesn't.
You should rerun the setup and make sure that “Visual C++” is checked under “Programming Languages”.
Possible duplicate: Visual studio doesn't have cl.exe
Related
I wanna know the version of the MSVC compiler. How can I do that without using Visual Studio or Installer?
I installed MSVC to compile Rust programs by using Visual Studio Installer. Later I uninstalled Visual Studio Installer but since my Rust programs are still building as normal, MSVC is still there. So I wanna know its version.
I install Visual studio 2015 community first then I install Qt 5.7.1 for Visual studio 2015 x64. When I check in Toos -> Option -> Build & Run tab compiler, i found that Qt can not detect any compiler? I don't know how to fix it, please give me a piece of advice.
Default Visual Studio installs C# only but Qt need C++ so just modify installation and select C++.
I have been using 2010 on a project. The project was built using cmake, when cmake chose to use the compiler Visual Studio 2010. Now I intend to move the whole set up of the project to Visual Studio 2013.
So, today I installed Visual Studio 2013. But when I try to use cmake to build the project for visual studio 2013, in the compiler list of cmake I cannot see any compiler of Visual studio 2013, the latest are Visual Studio 2012, Visual Studio 2012 win64, Visual Studio 2012 ARM.
Is there no exclusive compiler for Visual Studio 2013? Does the same compiler work for both VS2012 and VS2013? If Visual Studio 2013 indeed has an exclusive compiler, why can't cmake find the that compiler?
Thanks.
Try updating your CMake version.
The Configue dialog in cmake-gui for CMake 3.1 lists the respective entries as Visual Studio 12 2013:
In older CMake versions (older than 3.0) the entries omitted the year and showed only the version number, so the entry just reads Visual Studio 12.
If your CMake version is even older, there might not be support for Visual Studio 2013 at all. However, you should still be able to open project files generated for an older Visual Studio version. This might require an additional conversion step by Visual Studio, which might mess things up.
Upgrading CMake is definitely the preferred solution.
This question already has answers here:
Closed 10 years ago.
Possible Duplicate:
Compiling a MFC app from Visual Studio 2010 to 2012 RC results in LNK2038
I am moving an XPCOM Firefox add-on project from Visual Studio 2010 to Visual Studio 2012. When I open up the project, Visual Studio asks if I want the project to use the latest C++ compiler. If I say no then I get this compile error:
Error 1 error MSB8020: The builds tools for Visual Studio 2010
(Platform Toolset = 'v100') cannot be found. To build using the v100
build tools, either click the Project menu or right-click the
solution, and then select "Update VC++ Projects...". Install Visual
Studio 2010 to build using the Visual Studio 2010 build
tools. C:\Program Files
(x86)\MSBuild\Microsoft.Cpp\v4.0\V110\Microsoft.Cpp.Platform.targets 42 5 FF
(Visual Studio 2010)
If I say yes then I get five of these compile errors for xpcomglue_s_nomozalloc.lib in the xulrunner-sdk\lib directory:
error LNK2038: mismatch detected for '_MSC_VER': value '1600' doesn't
match value '1700'
I cannot install Visual Studio 2010. I suppose I could compile Gecko myself, using Visual Studio 2012, although that seems like a lot of work and I'm not sure it will work. So please let me know the best way to compile my Firefox add-on in Visual Studio 2012.
When you are compiling binary XPCOM components you must use the same compiler as used to compile Firefox itself - otherwise the binary compatibility is just not given. Currently this means using Visual C++ 10, be it via the free Visual Studio Express 2010 or by some other means.
If the purpose of the XPCOM component is just to run some native code then you might consider compiling a regular DLL instead and calling it via js-ctypes, then you can use any compiler you like - no binary compatibility constrains (it is also generally recommendable since you no longer need to recompile for each Firefox release).
I installed Visual Studio 2010 Professional and Qt 4.8.0 for VS2010 plus Qt VS Add-in 1.1.10 yesterday and still can't figure out how to:
Edit project (.pro) files from within Visual Studio.
Specify/modify QMake parameters for Debug and Release builds from within Visual Studio.
Can anyone please tell me how to do the above tasks?
It's always a good idea to try the documentation first. Here is a link to the documentation of the Visual Studio add-in for managing Qt projects.