Team2168 / 2168_Vision_Example

37 stars 9 forks source link

a few things #2

Closed TylerS1066 closed 9 years ago

TylerS1066 commented 9 years ago

For some reason the program doesn't recognize the following commands: cout endl setw imshow

And it has a error with vcap.open(videoStreamAddress) saying: Invalid arguments ' Candidates are: bool open(const ? &) bool open(int, int, int, double) '

Sorry if I'm missing something obvious

NotInControl commented 9 years ago

Are you using your own program, or the one we provided?

If sounds like you are using your own project, in which case, you would need to add using namespace std; and using namespace cv; if you wanted to makes those calls. Or you can do std::cout, std::endl... etc. You can google more about namespaces if you are not familiar with what they are.

As for the invalid arguments, is videoStreamAddress a valid std::String type? post your code if fixing the namespace doesn't fix your issue with this.

NotInControl commented 9 years ago

Can you successfully create a new wpilib c++ project and build it without error?

NotInControl commented 9 years ago

Please paste the full output of the console when trying to build the vision project so I can see exactly what errors you are having.

Also tell me what operating system you are using and what version of eclipse.

wdross commented 9 years ago

This is the same output that we see building this same project.

You can ignore the 2 Shared Object link errors, as those object files are on the roboRio and are loaded at run time.

Just transfer the binary file from Rio_Beagle folder to the roboRio and run it.

NotInControl commented 9 years ago

I do not see any build errors in your log... it appears your build is successful. Look in the Rio_Beagle folder of the project (you may need to refresh your eclipse project explorer), you will see a file called 2168_Vision [arm]

That is the successful binary you compiled and can be transfered to the roborio or other arm7 target and executed. Please read the readme on the instructions of how to do that.

The warnings in your build log are known and can safely be ignored.

I am closing this issue as there appears to be no issue.

NotInControl commented 9 years ago

Tyler,

The output of eclipse you provided shows no errors at all. At this point, just going on the output of eclipse you posted, it appears you are successfully compiling our program. If you have a 2168_Vision file, in the Rio_Beagle folder, then you are done.

I am not sure what errors you are talking about because your eclipse output doesn't show any errors. If you still feel you have errors, and are otherwise failing to compile, post a picture here of the errors you are talking about, or on cheifdelphi. A lot of teams are using this code as is, so it has been confirmed working by many others.