QT Visual Studio Tools Embedded compile and debug - visual-studio

Is it possible to use "Qt Visual Studio Tools" with a Raspberry Pi or other embedded Device to compile and debug applications.
Maybe in combination with VS Linux Support?
I know with QT it's possible but you need the arm compiler on the host system.
VS Linux Support as far as i understand compiles on the slave system.

Related

How Develop Win32 and DirectX in VSCode

I want develop Win32 and DirectX in Visual Studio Code.
I already installed gcc, mingw.
OS is windows10.
How do I setting it?
See Microsoft Docs for details on developing C++ code with VS Code.
The latest DirectX headers and link libraries are found in the Windows 10 SDK. Using the Visual C++ or clang/LLVM for Windows toolsets are the best options for consuming the latest Windows 10 SDK.
You may find the DirectX Tool Kit a useful starting point, although my tutorials focus on the Visual Studio MSBuild build environment. I also reference using CMake. You can use MSBuild through Visual Studio Community, and you can use CMake through either VS Community or VS Code.

Targeting older Windows versions (Windows Server 2008 R2)

I have an older Windows 10 workstation with Rust 1.37 (stable-x86_64-pc-windows-msvc) and Visual Studio 2017 with the following features:
Visual C++ Build Tools core features
VC++ 2017 version 15.9 v14.16 latest v141 tools
Visual C++ 2017 Redistributable Update
Windows 10 SDK (10.0.17763.0)
Visual C++ tools for CMake
Testing tools core features - Build Tools
On this workstation, I can compile a program that runs fine on my target environment (Windows Server 2008 R2).
I have a newer Windows 10 workstation on which I installed the legacy version of Visual Studio 2017. Interestingly, the installer doesn't offer the exact same options for C++ build tools, but I think I have the necessary ones, e.g.:
VC++ 2017 version 15.9 v14.16 latest v141 tools
Visual C++ tools for CMake and Linux
Windows 10 SDK (10.0.17763.0)
However, when I compile the program (with the same Rust version/toolchain) on this computer, it errors out on my target environment with "The program can't start because VCRUNTIME140.dll is missing from your computer".
What am I missing here? How can I setup rustup/cargo to target my specific environment?
I think It’s because of not choosing some components when you install the vs.
by the way, vs 2015 is not a good choice.
So it turns out I was wrong: my project was not compiled with stable-x86_64-pc-windows-msvc on my older computer. I had at some point installed the x86_64-pc-windows-gnu toolchain and set it as the override for this project. Changing my toolchain to x86_64-pc-windows-gnu on the new computer produced a binary that was able to run on the target machine.
Rather than deleting this question, I'll leave it here for others who may need to target older Windows environments:
If you are having problems running a Rust binary on an older Windows computer, try compiling with x86_64-pc-windows-gnu rather than msvc.

What CUDA version for VS2017 and GTX 870M?

I want to develop a program using CUDA but I am getting lost by install instructions on NVidia's site.
So here is what I have:
Windows 10 laptop with a NVidia GPU GeForce GTX 870M
(both OS and GPU driver are up to date)
Visual Studio 2017, Version 15.8 (also up to date) _MS_VER=1915
On this webpage, I found out that my GPU is CUDA enabled (good news) with "Compute capability" 3.0. What does it mean?
I know that CUDA versions are sensitive to the version of Visual Studio used, so
my question is simple:
what version of CUDA should I download and install? and can I build and run programs with my version of Visual Studio?
As far as I know, no version of the CUDA Toolkit currently supports Visual Studio 15.8. The latest CUDA 9.2 supposedly supports up to Visual Studio 15.6. Note that the issue of Visual Studio support really only concerns the NVCC compiler and Visual Studio Integration. There's nothing preventing you from, e.g., using the CUDA Driver API with whatever compiler you wish (including the latest version of VS).
One way around these issues used to be to put your CUDA code into a separate static library, build that with the VS 2015 compilers, and link it to the main project which could be built using VS 2017.
Make sure you have selected the VC++ 2015.3 v14.00 (v140) toolset for desktop package in Visual Studio Installer:
You can then switch the toolset to use for each project in Project Properties > General:
Unfortunately, I've recently encountered some issues with linking binaries built with VS 2015 to binaries built with the VS 2017 15.8 compilers, so that path might no longer work (seemed to be related to the new "Just My Code Debugging" feature). But then, binary compatibility across compiler versions was never really something to rely on in the first place…
Another solution would be to downgrade your Visual Studio to 15.6.
The compute capability of a device basically tells you what generation of GPU architecture you're dealing with and which features you can rely on. Or in the words of the CUDA Programming Guide:
The compute capability of a device is represented by a version number, also sometimes called its "SM version". This version number identifies the features supported by the GPU hardware and is used by applications at runtime to determine which hardware features and/or instructions are available on the present GPU.
More details on individual compute capabilities/architectures can be found, e.g., here.

Can I compile and run cuda program in windows 7 without visual studio?

Currently I am new to CUDA I have NVIDIA tesla c2075 card I install CUDA toolkit for windows. Now I don't have visual studio. I want to run and test CUDA programs without using visual studio.
The only officially supported compiler for use with CUDA on windows is cl.exe, the compiler that ships with visual studio. It also comes with the express (free) versions of visual studio. Is there a reason you don't want to do this?
You can also get the tools and set up a command-line compile environment using the Microsoft Windows SDK.

How to compile application for wince 5.0 x86 using VS

i was looking for a way of compiling application for wince 5.0 x86 using VS. I found a thread Intel C++ Compiler for Windows CE where you mentioned ... "For Windows CE based on x86 architecture probably yes.... we just need to use general windows compiler."
I was wondering if you could provide more details on how to set up visual studio project.
To compile an application that targets the x86 cpu you need to create a new Smart Device application using Visual Studio and choose a platform that is x86.
During the wizard of a new application you get to a screen in which you choose your target platform (a list of installed SDKs is displayed). If you choose an SDK that is for x86, then the program will be compiled using the x86 option.
Bottom line, Visual Studio includes the compiler for x86 devices.
You can also do Pocket PC development without the usage of the full Visual Studio, this article was written on CodeProject which utilized the Express editions to enable development of Pocket PC applications.
Hope this helps,
Best regards,
Tom.
You need to install Microsoft ActiveSync 4.0 or later and the respective mobile SDK.
For ActiveSync 4.5: http://www.microsoft.com/windowsmobile/en-us/downloads/microsoft/activesync-download.mspx
Win CE 5.0 SDK:
http://www.microsoft.com/downloads/details.aspx?familyid=fa1a3d66-3f61-4ddc-9510-ae450e2318c3&displaylang=en
Happy Coding!

Resources