<html><head><meta http-equiv="Content-Type" content="text/html charset=windows-1252"></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space;" class=""><br class=""><div><blockquote type="cite" class=""><div class="">On 15 Oct 2016, at 15:05, Pascal &lt;<a href="mailto:pascal22p@parois.net" class="">pascal22p@parois.net</a>&gt; wrote:</div><br class="Apple-interchange-newline"><div class=""><span style="font-family: LucidaSans; font-size: 12px; font-style: normal; font-variant-caps: normal; font-weight: normal; letter-spacing: normal; orphans: auto; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px; -webkit-text-stroke-width: 0px; background-color: rgb(255, 255, 255); float: none; display: inline !important;" class="">Crystals is lacking the capability to get the Hall symbol and space group from symmetry operators. sginfo works fine but no longer maintained and I am wondering if a better solution exists.</span><br style="font-family: LucidaSans; font-size: 12px; font-style: normal; font-variant-caps: normal; font-weight: normal; letter-spacing: normal; orphans: auto; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px; -webkit-text-stroke-width: 0px; background-color: rgb(255, 255, 255);" class=""><br style="font-family: LucidaSans; font-size: 12px; font-style: normal; font-variant-caps: normal; font-weight: normal; letter-spacing: normal; orphans: auto; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px; -webkit-text-stroke-width: 0px; background-color: rgb(255, 255, 255);" class=""><span style="font-family: LucidaSans; font-size: 12px; font-style: normal; font-variant-caps: normal; font-weight: normal; letter-spacing: normal; orphans: auto; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px; -webkit-text-stroke-width: 0px; background-color: rgb(255, 255, 255); float: none; display: inline !important;" class="">Another concern when looking at cctbx is it is written in C++. It&nbsp; is really a hassle as I would need to write C wrapper that I could access in Fortran.</span><br style="font-family: LucidaSans; font-size: 12px; font-style: normal; font-variant-caps: normal; font-weight: normal; letter-spacing: normal; orphans: auto; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px; -webkit-text-stroke-width: 0px; background-color: rgb(255, 255, 255);" class=""></div></blockquote></div><br class=""><div class="">Writing a C function taking mere strings and returning a mere strings, and whose body creates cctbx C++ objects and calls their methods, that is not that difficult to write, is it? Or am I missing something?&nbsp;</div><div class=""><br class=""></div><div class="">What I would try to do would be to compile the cctbx with its native build system. Then compile your C function, something like&nbsp;</div><div class=""><span class="Apple-tab-span" style="white-space:pre">        </span>g++ -I path/to/cctbx_project ...</div><div class="">on Linux so that it finds the sgtbx headers, where path/to/cctbx_project is the path to the root of the cctbx source code. Then copy the cctbx shared library to your build directory, you will find it at cctbx_build/lib/libcctbx.so, and then link your object against libcctbx.so. You would then ship libcctbx.so within Crystals. If you prefer, you can configure the cctbx build system to produce static libraries if you don�t want to ship shared libraries with Crystals. Mmhmmm� I have the feeling I am forgetting another library to also copy from cctbx_build/lib�</div><div class=""><br class=""></div><div class="">Assuming you know the basics of configuring a cctbx build, you just need to use the command-line option �static_libraries with libtbx/configure.py.</div><div class=""><br class=""></div><div class="">Best wishes,</div><div class=""><br class=""></div><div class="">Luc</div><div class=""><br class=""></div></body></html>