<div dir="ltr"><div><br></div>We have fixed this bug in our newer versions of XtalOpt. They have not yet been released, however, and we still have a few bugs to work out. In the instructions on this line:<div><br></div><div>git clone -b stable git://<a href="http://github.com/xtalopt/XtalOpt.git">github.com/xtalopt/XtalOpt.git</a> xtalopt<br></div><div><br></div><div>you can access the one we are working on instead by doing "-b release10" instead of "-b stable"</div><div><br></div><div>We probably won't be officially releasing this one until the end of the year, however...</div><div><br></div><div>Thanks,</div><div>Patrick</div><div><br></div><div class="gmail_extra"><br><div class="gmail_quote">On Mon, Oct 3, 2016 at 11:25 AM, David Lonie <span dir="ltr"><<a href="mailto:loniedavid@gmail.com" target="_blank">loniedavid@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr">Well, that's unfortunate. Apparently Avogadro now has a preprocessor define named VERSION that's causing conflicts...<div><br></div><div>You can work around this by editing the files that are failing (optbase.cpp in this case) and add:</div><div><br></div><div>#ifdef VERSION</div><div>#undef VERSION</div><div>#endif</div><div><br></div><div>after all of the "#include ..." lines, then recompile. I suspect you'll need to modify a few files for this to work.</div></div><br><div class="gmail_quote"><div><div class="h5"><div dir="ltr">On Mon, Oct 3, 2016 at 10:20 AM Neven Golenić <<a href="mailto:neven.golenic@gmail.com" target="_blank">neven.golenic@gmail.com</a>> wrote:<br></div></div></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div><div class="h5"><div dir="ltr" class="m_-8005565036150960149gmail_msg"><div class="m_-8005565036150960149gmail_msg"><div class="m_-8005565036150960149gmail_msg">Dear Xtalopt devs & users,<br class="m_-8005565036150960149gmail_msg"><br class="m_-8005565036150960149gmail_msg"></div>I'm having trouble
 building the linux version of xtalopt. Openbabel and Avoagdro builds 
pass successfully but building xtalopt fails with:<br class="m_-8005565036150960149gmail_msg"><br class="m_-8005565036150960149gmail_msg">[ 18%] Generating queueinterfaces/moc_slurm.cxx<br class="m_-8005565036150960149gmail_msg">Scanning dependencies of target globalsearch<br class="m_-8005565036150960149gmail_msg">[ 18%] Building CXX object src/globalsearch/CMakeFiles/<wbr>globalsearch.dir/optbase.cpp.o<br class="m_-8005565036150960149gmail_msg">In file included from /home/student/include/<wbr>avogadro/primitive.h:29:0,<br class="m_-8005565036150960149gmail_msg">                 from /home/student/include/<wbr>avogadro/molecule.h:29,<br class="m_-8005565036150960149gmail_msg">                 from /home/student/src/xtalopt/src/<wbr>globalsearch/structure.h:19,<br class="m_-8005565036150960149gmail_msg">                 from /home/student/src/xtalopt/src/<wbr>globalsearch/tracker.h:19,<br class="m_-8005565036150960149gmail_msg">                 from /home/student/src/xtalopt/src/<wbr>globalsearch/queuemanager.h:<wbr>19,<br class="m_-8005565036150960149gmail_msg">                 from /home/student/src/xtalopt/src/<wbr>globalsearch/optbase.cpp:21:<br class="m_-8005565036150960149gmail_msg">/home/student/src/xtalopt/src/<wbr>globalsearch/optbase.cpp: In member function ‘virtual bool GlobalSearch::OptBase::save(<wbr>const QString&, bool)’:<br class="m_-8005565036150960149gmail_msg">/home/student/include/<wbr>avogadro/config.h:37:17: error: expected unqualified-id before string constant<br class="m_-8005565036150960149gmail_msg"> #define VERSION "1.2.0"<br class="m_-8005565036150960149gmail_msg">                 ^<br class="m_-8005565036150960149gmail_msg">/home/student/src/xtalopt/src/<wbr>globalsearch/optbase.cpp:259:<wbr>15: note: in expansion of macro ‘VERSION’<br class="m_-8005565036150960149gmail_msg">     const int VERSION = m_schemaVersion;<br class="m_-8005565036150960149gmail_msg">               ^<br class="m_-8005565036150960149gmail_msg">make[2]: *** [src/globalsearch/CMakeFiles/<wbr>globalsearch.dir/optbase.cpp.<wbr>o] Error 1<br class="m_-8005565036150960149gmail_msg">make[1]: *** [src/globalsearch/CMakeFiles/<wbr>globalsearch.dir/all] Error 2<br class="m_-8005565036150960149gmail_msg">make: *** [all] Error 2<br class="m_-8005565036150960149gmail_msg"><br class="m_-8005565036150960149gmail_msg"></div>Thanks for your help.<br clear="all" class="m_-8005565036150960149gmail_msg"><br class="m_-8005565036150960149gmail_msg">-- <br class="m_-8005565036150960149gmail_msg"><div class="m_-8005565036150960149m_8678660434635018693gmail_signature m_-8005565036150960149gmail_msg"><font style="background-color:rgb(255,255,255)" color="#663366" class="m_-8005565036150960149gmail_msg">Kind Regards,</font><div class="m_-8005565036150960149gmail_msg"><font style="background-color:rgb(255,255,255)" color="#663366" class="m_-8005565036150960149gmail_msg">Neven Golenić</font></div></div>
</div></div></div>
______________________________<wbr>_________________<br class="m_-8005565036150960149gmail_msg">
XtalOpt-Devel mailing list<br class="m_-8005565036150960149gmail_msg">
<a href="mailto:XtalOpt-Devel@lists.openmolecules.net" class="m_-8005565036150960149gmail_msg" target="_blank">XtalOpt-Devel@lists.<wbr>openmolecules.net</a><br class="m_-8005565036150960149gmail_msg">
<a href="http://lists.openmolecules.net/listinfo.cgi/xtalopt-devel-openmolecules.net" rel="noreferrer" class="m_-8005565036150960149gmail_msg" target="_blank">http://lists.openmolecules.<wbr>net/listinfo.cgi/xtalopt-<wbr>devel-openmolecules.net</a><br class="m_-8005565036150960149gmail_msg">
</blockquote></div>
<br>______________________________<wbr>_________________<br>
XtalOpt-Devel mailing list<br>
<a href="mailto:XtalOpt-Devel@lists.openmolecules.net">XtalOpt-Devel@lists.<wbr>openmolecules.net</a><br>
<a href="http://lists.openmolecules.net/listinfo.cgi/xtalopt-devel-openmolecules.net" rel="noreferrer" target="_blank">http://lists.openmolecules.<wbr>net/listinfo.cgi/xtalopt-<wbr>devel-openmolecules.net</a><br>
<br></blockquote></div><br></div></div>