I downloaded the source code from here to learn cuda but its not opening correctly, it showing me this window.
Edit: There is no such path in my computer (C:\Program Files (x86)\MSBuild\Microsoft.Cpp\v4.0\V110\BuildCustomizations\cuda.targets)
Right-click each project and click Reload Project.
Related
I have migrated from Visual Studio 2008 to VS 2017.
I am getting this error when I try to run project with the green play button:
Obviously I have to select a valid startup item, but there are two pieces of information I need to do that:
what are typical valid startup items that I can try to select?
How do I select them?
I am a long time developer, but I am new to visual studio so please give me instructions based on terminology I can see on the screen.
It might be the case that you have opened your project using
File->Open->Folder
Use the right method to open your project using
File->Open->Project/Solution
or
File->Open->Website
File > New > Project From existing code. Select type of project > Next. Enter project name > Finish.
I went to File > Open > project/Solution and found the ".sln" file. I clicked on it and then pressed open and it worked for me. Just spent ages trying to figure this out!
Regards,
Open Visual Studio ------------------
Click File
Click Open
Open as Web Sites
Another method
Click File
Click Open
Open as Project
I found this question after I did File → Open → Folder as well. However in my case it's not a website, all I have is a source file. I don't want to create a full solution.
Now that Visual Studio supports CMake (to some degree), easiest is to add a simple CMakeLists.txt file, like this:
project (theproject)
add_executable (thetarget source.cpp)
As soon as the folder contains this file, Set as Startup Item turns up as a menu item in the Solution Explorer!
The only solution is that or this error:
please select a valid startup file is that repair your visual studio
double click on visual studio installer and then click on the More then repair your visual studio
I want to open a video file in my OpenCV C++ application with
cap.open("../../data/Example.MP4");
but somehow when I run the application in Visual Studio 2015 (I've tried both Debug & Release mode), it cannot find the file.
Surprisingly if I run the application by just double clicking the .exe in Windows Explorer, everything works fine and the video file opens as desired.
Does somebody know why Visual Studio cannot find the file?
Thanks a lot!
The problem is related to the Project's Working directory, on Visual Studio. From inside it, it isn't finding the file...
Go to Project Properties, Debugging. There you will see, by default, that the Working directory is your project directory. Change it to $(OutDir) and your path should be fixed.
I recently downloaded GDAL source code from here
I want to compile it and I want to modify it. So I started with its source code which I have downloaded.
Now I have seen that in supported compilers there is Visual C++ here...
How to setup it?
EDIT:
I have successfully setup it but now i am looking for some options to run GDALDEM.cpp.
You can get Visual C++ by downloading the free version of Visual Studio from Microsoft. Follow the link you have supplied, and go to the downloads section.
Once it's installed you should be able to read the help to see how to open and compile your project.
For Setup, I did it... just sharing so someone can save time
Step 1 Download this Project from here
This project is just project file. You need to copy GDAL source code to it in next steps..
Step 2 Extract it.
Step 3 Now copy paste all folders/files from gdal-1.11.1 folder to project solution folder
Select all files as shown below, press Ctrl +C
Now paste in extracted project
Step 4 Now open Visual C++ -> Open Project -> Select Project
Step 5 Simple Setup done....
I am very desperate now...
I have project in Visual C++ 2010 using Qt and OpenCV. I got to phase I need to load XML file using openCV. But, I have no idea where is the working directory of my project, when run thru VS (F5). I mean, I read all config, copied desired file almost everywhere in my project folders, but it still is not seen by my EXE (OpenCV)...
What Am I doing wrong? Thanks.
right click on your project click on properties/Configuration Properties/debugging you start in whatever working directory is set to.
I'm trying to run Qwt examples using VS2010. I've installed the Qt plugin for Visual Studio. I then open the .pro file of Qwt and the build succeeds. But I have no clue what to do next. Whenever I click run, it gives me a dialog which says
unable to start programe E:\qwt-6.0.1\src..\lib\qwtd.dll
Does anyone have an idea what might cause this?
I just managed to get the examples compiled using the command line tools. Key steps included:
Add the bin dir of qt and the lib dirs of qt and qwt to the path
Dont forget to run vcvars32.bat from Visual Studios bin directory
VC\bin should be in the path too
then follow the INSTALL instructions from qwt
After this I had a set of running examples in examples/bin of qwt. It's also easy to open one of them in Developer Studio with the "Open Qt Project File" option in the Qt Menu.
From the information you're giving us, it seems you have the project generating your DLL set at the StartUp project. So whenever you click on run/debug, it will try to run the output of that project, in this case a DLL. Of course this won't work.
If there is a project for the example you want to run, right click on that project within the Solution Explorer and select "Set as StartUp Project". Now when you click on run/debug, it will run the output (the executable) of the project you selected.