Convert Nsight Eclipse project to Visual Studio - eclipse

I have a CUDA project in Nsight Eclipse under Linux, but one of the machine where I have to test my code uses Windows 8 with Visual Studio 2012 Professional. How can I convert my project from the Eclipse edition to the Visual Studio edition? Or if it is not possible, at least how can I compile to Windows application from Nsight Eclipse under Linux?

You cannot do either. You will need to create a Visual Studio project on Windows using your existing source files.
Unless you are using some Linux-specific libraries in your host code, you should not run into any problems on Windows.

Related

X Visual Studio is missing necessary components

X Visual Studio is missing necessary components. Please re-run the Visual Studio installer for the "Desktop
development with C++" workload, and include these components:
MSVC v142 - VS 2019 C++ x64/x86 build tools
- If there are multiple build tool versions available, install the latest
C++ CMake tools for Windows
Windows 10 SDK
what is the solution?
what is the solution?
While installing the VS, make sure to check Desktop development with C++..
You can follow this post 1st part

unreal engine development using vscode without vs2019, 2017

I'm wondering if I can make a C++ project in unreal engine without visual studio 2019, 2017 etc.
Currently I just use vscode. Is it necessary to install visual studio?
You can use visual studio code but you would need some compiler to compile your C++ project. For that the MSVC compiler that visual studio supports is often used. You can download the MSVC compiler and use visual studio code with it. when you create your project with visual studio code will generate a .vscode folder. In this folder you will have a
task.json [ for generating the build scripts you need to compile your program and create the exe files]
Launch.json [ for debugging your C++ classes]
Properties.json [ for finding the MSVC compiler ]
Unreal engine has a button in the editor that will compile your code. This equivalent to running
cd " Where you have your engine installed"
"Engine\\Build\\BatchFiles\\Build.bat" YourProjectNameEditor Win64 Development "C:\ThePathToYourProject\YourProjectName.uproject" -waitmutex
Visual studio provides other build task such as a DebugBuildGame and ShippingBuild
Visual studio code also provides these build task through task.json file, but it does not work out of the box
I ended up making a video about this and timestamped important events
https://youtu.be/fydvKedIxKk
You want to consider fixing the task.json if your want to run any build other than the editor one.

Couldn't find MSVC toolchain in eclipse though Microsoft Visual Studio 2012 is installed

I want to build a static library using MSVC compiler. And I have installed Microsoft Visual Studio 2012 and it is functional. But I haven't found any toolchain or compiler for MSVC in eclipse project properties so that I can build the static library for windows. Gone through several links. But no luck.
I want to know how I can get MSVC as compiler or toolchain in the compiler/toolchain option of eclipse project properties.
Issue is solved. I am posting the solution so that if anyone faces the same problem, then it would help them.
The probable root cause was, I have installed Microsoft Visual Studio 2012 and was running Eclipse Kepler CDT. And this version of eclipse CDT doesn't recognize MSVC2012.
After installing the latest eclipse CDT which is Eclipse Mars, it discovered the toolchain for Visual C++ successfully and worked fine.
So, I would suggest to use Eclipse Mars for avoiding these types of situations.

Create c++ Library in Eclipse for using in Visual Studio 2012

I coded a c++ Library in Eclipse. Now I wanna add a GUI, which I want to make with Visual studio. Although I'm using the VS Compiler in Eclipse I cannot transfer the code from Eclipse 1:1 to Visual Studio.
Is there a way to create a DLL or sth. else in Eclipse which I can import in Visual Studio?
Thanks
Florian

Visual Studio toolchain plugin in Eclipse Indigo

few links on Internet (ex:
http://drdobbs.com/article/print?articleId=232300575&siteSectionName=
http://www.hydrogenaudio.org/forums//lofiversion/index.php/t74268.html
)
point out that there is a VS toolchain plugin for Eclipse Indigo which integrates Visual Studio (Express) into CDT. Can someone point out where to download it from?
Thanks,
D.
Download eclipse (preferably for c++) development. THen goto help menu in eclipse and select an option to install new software (plugins). Select all sources and search for visual studio. Select plugin and install it (you don't have to worry where it comes from).