Upon reading the Microsoft docs, generating or compiling T4 file is not supported in Visual studio for Mac, but does anyone knows any work around for this so that I can compile it in Mac, I always get Could not resolve assembly reference System.Text.Json.
Thank you
Related
I'm feeling like an eejit right now. I have been using Visual Studio 2010 Professional successfully for C/C++ projects for quite some time. But now I have a project that also includes a couple of ASM files (written for the Microsoft Assembler). I read a few articles about enabling MASM in Visual Studio. I followed the instructions for checking the boxes for MASM and MASM64 in the project's Build Customizations. Then I saved the Project and reopened it. But now it cannot load the project and gives this error message:
The imported project "C:\Program Files (x86)\MSBuild\Microsoft.Cpp\v4.0\BuildCustomizations\masm64.targets" was not found. Confirm that the path in the declaration is correct, and that the file exists on disk.
Where do I find this masm64.targets file or how do I create it? It is not anywhere on the disk.
Thanks for any guidance.
A tip for anyone who runs into the same problem, I found masm64.targets on GitHub:
https://github.com/MMOCOM/OSIE-GF/blob/master/Rules/masm64.targets
I am new to OpenCL, I have been trying to test run OpenCL code on Nvidia. I have installed the CUDA 6.0 tool kit and I have added the .cu and .cl extensions in visual studio 2010. I have included OpenCL.lib in the Linker tab of project properties. I have included the needed libraries in visual studio 2010. But, when I compile my code I get an error "nvcc : fatal error : Don't know what to do with matvec.cl". Can somebody shed some light on this issue. I have been at it for the past two days. There were previous questions related to this, but there is no reply for one question, here is the link:
Cannot run OpenCL on an NVIDIA Card ( 'CL/cl_platform.h': No such file or directory)
and another the link in the reply does not work for some reason, here is the link:
How to configure OpenCL in visual studio2010 for nvidia's gpu on windows?
If someone can also provide a link for this issue, it would be greatly appreciated. Advance thanks.
It looks like you have configured Visual Studio to compile .cl files with nvcc. This is what you should do for CUDA files (.cu), but OpenCL kernel source code is compiled at runtime, and should not be compiled by anything at application build time. Just remove this configuration option, and you should be good to go.
One thing you might want to do with .cl files is have them automatically copied to the application binary directory, so that the application can find them easily when it wants to load them. This is just a matter of preference.
I am trying to do some OpenCV work on Visual Studio 2010 and I am trying to compile the 'createsamples' project. I am getting linker errors when trying to do so and after much research online I've noticed that I am missing the cvhaartraining library. What do I need to do to compile this library for use in my projects. I have VS 2005, 2008, and 2010 at my disposal and I can switch to either one as long as I can get a build. I am working with OpenCV 2.2
Thanks.
Tried this? http://asadujjaman.wordpress.com/2010/02/15/building-opencv-with-microsoft-visual-studio/
I have used Visual Studio 2008 to compile and run CUDA applications before. I have switched to Visual Studio 2010 and Windows 7. I've been trying to get integration set up all morning, but haven't had complete success. I've downloaded the toolkit, installed Nsight, made sure the libraries/include/bin paths are set, checked the box to use a Build Customization of CUDA 3.2, and set the properties of the individual .cu file to be of type CUDA C/C++ instead of C/C++. I got an error about not supporting compiler v100, so I set the project platform to v90 and am downloading Visual Studio 2008 now. I was hoping that I wouldn't have to have two versions of visual studio installed, but oh well. Anyway, most of the syntax highlighting is enabled, some keywords like "int" is blue, comments are green, and strings are red. However, cuda-specific keywords like __ global__ aren't. Also, I've checked through the include directories and can't find cutil.h, so I'm wondering if there's anything else that wasn't included in the install of the 3.2 SDK (I have included cuda_runtime.h instead, but I don't know if this will solve my problems). Does anyone know how to fix this?
Edit: I have Visual Studio 2008 installed. When I try to compile, I get a giant list of errors, starting with 1>C:\Program Files (x86)\Microsoft Visual Studio 9.0\VC\include\crtdefs.h(490): error : invalid redeclaration of type name "size_t", while most of the following errors have to deal with the size_t type. All of the errors are in included files, most of which I've never seen. Does anyone know what's going on? Or if there's a simple, step-by-step guide to getting VS2010 to use cuda?
Edit 2: Apparently I had one of the many current settings as 64-bit, and the others as 32-bit. Changing the active configuration, Cuda C/C++ Target Machine Platform, and Linker|Advanced Target Machine all to 32-bit or 64-bit allowed me to compile and run. I still don't have any idea how to fix the __ global__ and such syntax highlighting, but it's not that big of an issue.
You'll find a complete guide here:
How to Run CUDA In Visual Studio 2010
you can check if the source file that contains kernel is a CUDA/C file rather than a C/C++ file. (Solution Explorer -> File Properties)
OpenCV 2.0a does not include pre-compiled OpenCV libraries for Visual Studio users. I am trying to build the libraries from source using Visual Studio 2010 Beta and CMake, but I am getting lot of errors.
I even tried generating the libs from dlls using dumpbin but the linker errors are still persisting. Please guide me to generate the static libs for VS2010.
If the build error you're seeing is related to:
'back_inserter': identifier not found
as is likely the case for the source files cvmodelest.cpp and cvhog.cpp, add the following include statement to each of those source files:
#include <iterator>
For more info about the 'back_inserter': identifier not found error, see this blog post.
It's kind of late, but I created a video tutorial for compiling and configuring OpenCV 2.1 with Visual Studio 2010.
Try this tutorial(dead) and this one out as well.
I tried this with VS 2010 and Windows 7.
See another StackOverflow thread. It's for VC++ 2008, but it may help.