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

Mike Chinander chinander at gmail.com
Thu Sep 29 06:03:56 CEST 2016


On Sep 28, 2016 10:54 PM, "Kapil Gupta" <kpgupta98 at 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.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.qt-project.org/pipermail/interest/attachments/20160928/1e7616a7/attachment.html>


More information about the Interest mailing list