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:
select the project in the Visual Studio 'Solution' window, right click and select 'Properties'
select the 'C/C++', 'General', 'Additional Include Directories' and add the path to the folder containing the GRT source code and main GRT header (GRT.h)
select the 'Linker','General', 'Additional Library Directories' and add the path to the folder containing the GRT static library (grt.lib, this should be in a folder called Debug in your temporary build directory)
select the 'Linker','Input', 'Additional Dependencies' and add the GRT static library (grt.lib)
click 'Apply', you should now be able to build your custom project and link against the GRT
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.
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;
}`
...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.