[Interest] Problem compiling boost::python code in Qt

Kapil Gupta kpgupta98 at gmail.com
Thu Sep 29 05:54:41 CEST 2016


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?
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.qt-project.org/pipermail/interest/attachments/20160929/48cfd793/attachment.html>


More information about the Interest mailing list