<html><head><meta http-equiv="Content-Type" content="text/html charset=utf-8"></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space;" class=""><div class="">Hi All,</div><div class=""><br class=""></div><div class="">After my success of building a simple wrapper with SIP on *nix (MacOSX specifically) I’ve moved on to attempting it on Windows… with less success so far. I have (again) got a library to build cleanly (a .pyd file in this case) but when I attempt to load the module I get the following:</div><div class=""><br class=""></div><div class=""><font face="Consolas" class="">>>> import PyMyLabel</font></div><div class=""><font face="Consolas" class="">Traceback (most recent call last):</font></div><div class=""><font face="Consolas" class="">  File “(stdin)”, Line 1, in (module)</font></div><div class=""><font face="Consolas" class="">ImportError: DLL load failed: The specified procedure could not be found.</font></div><div class=""><br class=""></div><div class="">I have tried building the C++ library both statically and dynamically with the same result. I can link the library to a test C++ program, so I am once again forced to assume I am failing to link SIP generated library correctly. As the debug is less than helpful (which procedure?!) I was wondering if anyone has tried this and seen these symptoms before?</div><div class=""><br class=""></div><div class="">Any help would be greatly appreciated,</div><div class=""><br class=""></div><div class="">Cheers, Rob</div><div class=""><br class=""></div><br class=""><div><blockquote type="cite" class=""><div class="">On 21 Aug 2015, at 16:24, Robert Kent <<a href="mailto:rob@gulon.co.uk" class="">rob@gulon.co.uk</a>> wrote:</div><br class="Apple-interchange-newline"><div class=""><meta http-equiv="Content-Type" content="text/html charset=utf-8" class=""><div style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space;" class=""><div class="">Hi All,</div><div class=""><br class=""></div><div class="">As promised by me/suggested by David I have encapsulated my example and put it on GitHub:</div><div class=""><br class=""></div><div class=""><a href="https://github.com/jazzycamel/PyMyLabel" class="">https://github.com/jazzycamel/PyMyLabel</a></div><div class=""><br class=""></div><div class="">This is example contains an exceptionally thin wrapper around a QLabel with a configure script to generate the SIP wrapper as well as the Makefile’s necessary to build both the library itself and the Python module.</div><div class=""><br class=""></div><div class="">Hope it helps someone out, all comments and suggestions welcome.</div><div class=""><br class=""></div><div class="">Thanks, Rob</div><br class=""><div class=""><blockquote type="cite" class=""><div class="">On 21 Aug 2015, at 14:07, David Boddie <<a href="mailto:david@boddie.org.uk" class="">david@boddie.org.uk</a>> wrote:</div><br class="Apple-interchange-newline"><div class="">On Fri Aug 21 12:22:05 BST 2015, Robert Kent wrote:<br class=""><br class=""><blockquote type="cite" class="">I may well write up my mini-example as a tutorial somewhere<br class="">to help others as it really is easy to create PyQt extensions<br class="">when you know how!<br class=""></blockquote><br class="">I put an example for PyQt4 on Bitbucket:<br class=""><br class=""><a href="https://bitbucket.org/dboddie/pyqt-mailing-list-tempsip" class="">https://bitbucket.org/dboddie/pyqt-mailing-list-tempsip</a><br class=""><br class="">Perhaps you could do something similar for your example.<br class=""><br class="">David<br class="">_______________________________________________<br class="">PyQt mailing list    <a href="mailto:PyQt@riverbankcomputing.com" class="">PyQt@riverbankcomputing.com</a><br class=""><a href="https://www.riverbankcomputing.com/mailman/listinfo/pyqt" class="">https://www.riverbankcomputing.com/mailman/listinfo/pyqt</a></div></blockquote></div><br class=""></div>_______________________________________________<br class="">PyQt mailing list    <a href="mailto:PyQt@riverbankcomputing.com" class="">PyQt@riverbankcomputing.com</a><br class=""><a href="https://www.riverbankcomputing.com/mailman/listinfo/pyqt" class="">https://www.riverbankcomputing.com/mailman/listinfo/pyqt</a></div></blockquote></div><br class=""></body></html>