<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 dir="ltr">On Mon, Oct 3, 2016 at 10:20 AM Neven Golenić <<a href="mailto:neven.golenic@gmail.com">neven.golenic@gmail.com</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr" class="gmail_msg"><div class="gmail_msg"><div class="gmail_msg">Dear Xtalopt devs & users,<br class="gmail_msg"><br class="gmail_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="gmail_msg"><br class="gmail_msg">[ 18%] Generating queueinterfaces/moc_slurm.cxx<br class="gmail_msg">Scanning dependencies of target globalsearch<br class="gmail_msg">[ 18%] Building CXX object src/globalsearch/CMakeFiles/globalsearch.dir/optbase.cpp.o<br class="gmail_msg">In file included from /home/student/include/avogadro/primitive.h:29:0,<br class="gmail_msg">                 from /home/student/include/avogadro/molecule.h:29,<br class="gmail_msg">                 from /home/student/src/xtalopt/src/globalsearch/structure.h:19,<br class="gmail_msg">                 from /home/student/src/xtalopt/src/globalsearch/tracker.h:19,<br class="gmail_msg">                 from /home/student/src/xtalopt/src/globalsearch/queuemanager.h:19,<br class="gmail_msg">                 from /home/student/src/xtalopt/src/globalsearch/optbase.cpp:21:<br class="gmail_msg">/home/student/src/xtalopt/src/globalsearch/optbase.cpp: In member function ‘virtual bool GlobalSearch::OptBase::save(const QString&, bool)’:<br class="gmail_msg">/home/student/include/avogadro/config.h:37:17: error: expected unqualified-id before string constant<br class="gmail_msg"> #define VERSION "1.2.0"<br class="gmail_msg">                 ^<br class="gmail_msg">/home/student/src/xtalopt/src/globalsearch/optbase.cpp:259:15: note: in expansion of macro ‘VERSION’<br class="gmail_msg">     const int VERSION = m_schemaVersion;<br class="gmail_msg">               ^<br class="gmail_msg">make[2]: *** [src/globalsearch/CMakeFiles/globalsearch.dir/optbase.cpp.o] Error 1<br class="gmail_msg">make[1]: *** [src/globalsearch/CMakeFiles/globalsearch.dir/all] Error 2<br class="gmail_msg">make: *** [all] Error 2<br class="gmail_msg"><br class="gmail_msg"></div>Thanks for your help.<br clear="all" class="gmail_msg"><br class="gmail_msg">-- <br class="gmail_msg"><div class="m_8678660434635018693gmail_signature gmail_msg"><font style="background-color:rgb(255,255,255)" color="#663366" class="gmail_msg">Kind Regards,</font><div class="gmail_msg"><font style="background-color:rgb(255,255,255)" color="#663366" class="gmail_msg">Neven Golenić</font></div></div>
</div>
_______________________________________________<br class="gmail_msg">
XtalOpt-Devel mailing list<br class="gmail_msg">
<a href="mailto:XtalOpt-Devel@lists.openmolecules.net" class="gmail_msg" target="_blank">XtalOpt-Devel@lists.openmolecules.net</a><br class="gmail_msg">
<a href="http://lists.openmolecules.net/listinfo.cgi/xtalopt-devel-openmolecules.net" rel="noreferrer" class="gmail_msg" target="_blank">http://lists.openmolecules.net/listinfo.cgi/xtalopt-devel-openmolecules.net</a><br class="gmail_msg">
</blockquote></div>