<div dir="ltr">I am not calling those libraries, but when running sip from the command line (on my wrapper):<div><br></div><div><div><font face="monospace, monospace">In file included from /data/mylib/inc/ControlPoint.h:32:0,</font></div><div><font face="monospace, monospace"> from py_mylib/bundle/ControlPoint.sip:5:</font></div><div><font face="monospace, monospace">/data/mylib/inc/SurfacePoint.h:28:45: fatal error: boost/numeric/ublas/symmetric.hpp: No such file or directory</font></div></div><div><font face="monospace, monospace"><br></font></div>ControlPoint.sip include has:<div><br><div><font face="monospace, monospace"><div> 4 %TypeHeaderCode </div><div> 5 #include "ControlPoint.h" </div><div> 6 %End </div></font></div><div><br></div></div><div>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?</div><div><br></div><div>Thanks, <br>J</div></div><div class="gmail_extra"><br><div class="gmail_quote">On Mon, Nov 21, 2016 at 7:48 AM, Phil Thompson <span dir="ltr"><<a href="mailto:phil@riverbankcomputing.com" target="_blank">phil@riverbankcomputing.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><span class="">On 21 Nov 2016, at 1:41 pm, Jay L. <<a href="mailto:jlaura@asu.edu">jlaura@asu.edu</a>> wrote:<br>
><br>
> This question is about includes in the target C++ library. The target library has a number of 3rd party dependencies (Boost for example) that are included in the CPP headers. Right now, I have a Makefile that manually edit in configure.py to patch in the wrapped library's includes:<br>
><br>
> extra_cxxflags = ["$(ALLINCDIRS)"]<br>
> extra_libs = ["$(ALLLIBS)", "-Wl,-rpath," + root + "/lib", "-Wl,-rpath,"+ root +"/3rdParty/lib"]<br>
> extra_lib_dirs = ["$(ALLLIBDIRS)"]<br>
><br>
> makefile = ModuleMakefile(configuration=<wbr>config, build_file=build_file, installs=installs)<br>
> makefile.extra_cxxflags = extra_cxxflags<br>
> makefile.extra_lflags = extra_lib_dirs<br>
> makefile.generate()<br>
><br>
> This is working fine via configure.py, but I would love to be able to use setuptools/distutils and have a standard, pip installable package.<br>
><br>
> 1) I want to confirm that any 3rd party libraries included in the code I am trying to wrap must be linked when building the bindings?<br>
<br>
</span>Only if you are explicitly calling those libraries from your code.<br>
<div class="HOEnZb"><div class="h5"><br>
> 2) The ALLINCDIRS environment variable is coming from the wrapped library's build system. Is anyone aware of a method to get this variable outside of make? (I doubt this is possible, as the variable is not even populated until make is invoked, but perhaps it is...)<br>
<br>
</div></div><span class="HOEnZb"><font color="#888888">Phil<br>
<br>
</font></span></blockquote></div><br></div>