On Sep 28, 2016 10:54 PM, "Kapil Gupta" <kpgupt...@gmail.com> wrote: > > Hi, > > I am using Boost::python for access to python code from c++. > When I included the `PythonLibs` and Boost::Python into my code, I started having this error: > > ``` > /usr/include/python3.5m/object.h:445:23: error: expected unqualified-id before ‘;’ token > PyType_Slot *slots; /* terminated by slot==0. */ > ^ > /home/cortana/QtProjects/deep-app/src/code/main.cpp: In function ‘int main(int, char**)’: > /home/cortana/QtProjects/deep-app/src/code/main.cpp:8:36: error: ‘AA_EnableHighDpiScaling’ is not a member of ‘Qt’ > QCoreApplication::setAttribute(Qt::AA_EnableHighDpiScaling); > ^ > src/CMakeFiles/deep-app.dir/build.make:62: recipe for target 'src/CMakeFiles/deep-app.dir/code/main.cpp.o' failed > make[2]: *** [src/CMakeFiles/deep-app.dir/code/main.cpp.o] Error 1 > CMakeFiles/Makefile2:86: recipe for target 'src/CMakeFiles/deep-app.dir/all' failed > make[1]: *** [src/CMakeFiles/deep-app.dir/all] Error 2 > Makefile:127: recipe for target 'all' failed > make: *** [all] Error 2 > ``` > > I dont understand the first error. It is in a Qt read-only file. What can I do about it? > What version of Qt are you using? Qt::AA_EnableHighDpiScaling was added in 5.6.
_______________________________________________ Interest mailing list Interest@qt-project.org http://lists.qt-project.org/mailman/listinfo/interest