This solves the problem.
LIBS += -L$$PWD/../../../../../../OpenNI2/Lib/ -lOpenNI2
INCLUDEPATH += $$PWD/../../../../../../OpenNI2/Include
DEPENDPATH += $$PWD/../../../../../../OpenNI2/Include
LIBS += -L$$PWD/../../../../../../PrimeSense/NiTE2/Lib/ -lNiTE2
INCLUDEPATH += $$PWD/../../../../../../PrimeSense/NiTE2/Include
DEPENDPATH += $$PWD/../../../../../../PrimeSense/NiTE2/Include
But I have another problem now.
In a plain C++ application like this runs perfectly:
#include <iostream>
using namespace std;
int main()
{
cout << "Hello World!" << endl;
return 0;
}
But this:
#include <iostream>
#include "OpenNI.h"
#include "NiTE.h"
using namespace std;
using namespace nite;
int main()
{
cout << "Hello World!" << endl;
cout << NiTE::getVersion().build << endl;
return 0;
}
compiles and runs but doesn't give any output. What am I doing wrong?
EDIT: Apparently I forgot to copy the contents from the Redist folder to the running directory.