nickgillian / grt

gesture recognition toolkit
859 stars 285 forks source link

Windows build question #86

Closed cyberluke closed 8 years ago

cyberluke commented 8 years ago

Hi, I want to build multiplatform GRT for Linux, Mac, Windows. I guess I will have to do it OS by OS and it cannot be done in Linux only for example. I was using just GRT GUI and Processing. Now I had to install Windows 10 to get Visual Studio 2015, because you cannot install it in Windows 7 and W7 has no C++11 compiler.

I did everything from readme:

But after launch, there was a problem with missing grt.dll. The solution was to copy grt.dll from build Debug directory to Visual Studio project Debug folder. But I don't know if this is right as I'm the first one pointing to this behavior? Of course I have added grt.lib and its path in Linker. It won't compile without it. But it is quite strange that I have to use both static & dynamic library.

`#include using namespace GRT;

int main (int argc, const char * argv[]) { //Print the GRT version cout << "GRT Version: " << GRTBase::getGRTVersion() << endl;

return EXIT_SUCCESS;

}`

...also this code above: cout won't work...there is missing using namespace std; even after that Debug console will print only cerr, not cout. And this is what I found on stackoverflow.com: " The question is very clear. How use std::cout to debug a non-console application in Visual Studio.

The answer is very clear: you cannot. That is, Visual Studio does not support std::cout as debug tool for non-console applications.

This is a serious limitation of Visual Studio, probably a failure to meet the C++ standard even. I find it very sad to see disinformative "answers" here trying to hide this defect of their precious Visual Studio. "

So I cannot see anything from GRT hahaha :D ...Do you think that Neatbeans with Cygwin and g++ would work in Windows? Cause Microsoft is big shit of shit.