​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​

Hi, I would to make different color for pupil cross in quickstart opencv codes. I have changed the colors in displayvideo.cpp, but no thing changed. I would appreciate your assistance.

asked 05 Feb, 19:10

Jack's gravatar image

Jack
152
accept rate: 0%


The default project settings were modified so that both the Debug and Release configurations output to the ./bin directory with the Debug binary being post-fixed with the letter 'D'. This works correctly, but the debugging settings for the project were not using the binary with the 'D' post-fix.

So, you were correctly modifying the debug binary, but Visual studio was running the release build when running the debugger. That is why you never saw your changes when running. If you were to build and run the release version then you would see your changes correctly.

To fix the project settings so that it works correctly while in the Debug configuration, you should modify the location where the 'D' post-fix happens.

While in the Debug configuration change

Project Properties->Configuration Properties->Linker->General->Output File

to be

$(OutDir)$(ProjectName).exe

and change

Project Properties->Configuration Properties->General->Target Name

to be

$(ProjectName)D

This will make it so that running the debugger in Visual Studio while in the Debug configuration will actually run the debug binary.

link

answered 06 Feb, 10:51

chinton's gravatar image

chinton ♦♦
1514
accept rate: 75%

Your answer
toggle preview

Follow this question

By Email:

Once you sign in you will be able to subscribe for any updates here

By RSS:

Answers

Answers and Comments

Markdown Basics

  • *italic* or _italic_
  • **bold** or __bold__
  • link:[text](http://url.com/ "Title")
  • image?![alt text](/path/img.jpg "Title")
  • numbered list: 1. Foo 2. Bar
  • to add a line break simply add two spaces to where you would like the new line to be.
  • basic HTML tags are also supported

Tags:

×1

Asked: 05 Feb, 19:10

Seen: 99 times

Last updated: 08 Mar, 03:53

Related questions

Copyright © 2014-2017 EyeTech Digital Systems Inc. All rights reserved. | About | FAQ | Privacy | Support | Contact | Powered by BitNami OSQA