[PyQt] Includes in wrapper library

Phil Thompson phil at riverbankcomputing.com
Mon Nov 21 15:00:34 GMT 2016


On 21 Nov 2016, at 2:54 pm, Jay L. <jlaura at asu.edu> wrote:
> 
> I am not calling those libraries, but when running sip from the command line (on my wrapper):
> 
> In file included from /data/mylib/inc/ControlPoint.h:32:0,
>                  from py_mylib/bundle/ControlPoint.sip:5:
> /data/mylib/inc/SurfacePoint.h:28:45: fatal error: boost/numeric/ublas/symmetric.hpp: No such file or directory
> 
> ControlPoint.sip include has:
> 
>   4     %TypeHeaderCode                                                             
>   5       #include "ControlPoint.h"                                                 
>   6     %End     
> 
> ControlPoint.h has the include to boost - which is causing the error.  I am not explicitly calling boost from the Python side - the wrapped CPP is though.  In this case, I have to include the necessary boost libraries/headers?

Headers - yes. Libraries - maybe, it depends on exactly how the 3rd party library is being used.

A well designed library would hide all its internal dependencies.

Phil


More information about the PyQt mailing list