If I want to make an application that can be compiled on both windows and linux, I try to do this in the *.pro file:
unix
{
INCLUDEPATH += /usr/include/python3.6m
LIBS += -L /usr/local/lib/python3.6 -lpython3.6m
DEPENDPATH += /usr/include/python3.6m
}
win32
{
INCLUDEPATH += C:\Python\Python37\include
LIBS += -L C:\Python\Python37\libs -lpython37
DEPENDPATH += C:\Python\Python37\include
}
So I supposedly look for the libraries or headers in one or the other path, depending on which computer it is on.
However, when I'm on linux it complains about the windows paths and vice versa, so I have to comment out the lines that don't apply in each case.
Am I doing something wrong or is this expected behavior? Thank you
From the qmake documentation :
Free translation by me:
Little to add.