-
Notifications
You must be signed in to change notification settings - Fork 286
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
error MSB6006: "cmd.exe" exited with code 1. #27
Comments
Have you solved this problem? I meet the same situation. If, can you tell the solution.Thanks! |
If you solved this problem, can you tell me the solution? Thank you! |
I have this problem too. Any solutions? |
your guys can use these code on Linux。It's OK |
Anyone solve this problem? |
I managed to solve this problem, but i forgot how exactly I did it. I had other problems with building it too, so I made a short txt how I solved all my problems back then. I don't know anymore which of these lines solved the problem, but I made some annotations in brackets what I think they did. Sorry if the txt is a bit confusing.
|
Regarding the problem solving steps @cookingcookie references above, the most important points to avoid issues are:
To determine which GPU you're using, refer the NVIDIA website. Find your GPU and refer to this list for the supported real architecture you have.
This point requires a correction. Remove the -O2 to compile in Debug mode. This doesn't require you to generate the files again with CMake.
I used CMake version 3.12.1 to configure and generate my solution. I previously built the OpenCV libraries. I ensured that my source code directory and binary build directory did not have any space characters in the paths. The only configuration setting I changes was the OpenCV_DIR to the folder containing OpenCVConfig.cmake. Pieces of code that should be changed, and I've contacted Dr. Björkman, change all instances of cudaThreadSynchronize() to cudaDeviceSynchronize(). This is because cudaThreadSynchronize() is deprecated. I opened the project in VS2017 while running as an administrator. I right-clicked on ALL_BUILD > Build and was successful. Hope I was able to help. |
Hmmm. I managed to compile everything in Visual Studio 2017. |
I managed to get it to compile properly in VS2017 today. My issue was that I was using the incorrect architecture parameter when trying to compile in VS2017 |
remove duplicated flag |
Hi all, |
Hi there, Do anyone have idea how to fix it?
|
before generating solution file(right click ALL_BUILD and choose generate) in Visual Studio, what you only need to do is choosing Release X64 mode, then everything will be fine |
I build this project by CMake 3.9.1 and choose visual studio 2013.After gengerating solution file.I open it and rebuild but it always show error MSB6006: "cmd.exe" exited with code 1. I have double check there is no space in the file path and I also run as administrator.It stil has the same problem.
The text was updated successfully, but these errors were encountered: