<html xmlns:o="urn:schemas-microsoft-com:office:office" xmlns:w="urn:schemas-microsoft-com:office:word" xmlns:m="http://schemas.microsoft.com/office/2004/12/omml" xmlns="http://www.w3.org/TR/REC-html40">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<meta name="Generator" content="Microsoft Word 15 (filtered medium)">
<style><!--
/* Font Definitions */
@font-face
        {font-family:"Cambria Math";
        panose-1:2 4 5 3 5 4 6 3 2 4;}
@font-face
        {font-family:Calibri;
        panose-1:2 15 5 2 2 2 4 3 2 4;}
@font-face
        {font-family:"Times New Roman \(Body CS\)";
        panose-1:2 11 6 4 2 2 2 2 2 4;}
/* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
        {margin:0in;
        font-size:12.0pt;
        font-family:"Calibri",sans-serif;}
span.EmailStyle17
        {mso-style-type:personal-compose;
        font-family:"Calibri",sans-serif;
        color:windowtext;}
.MsoChpDefault
        {mso-style-type:export-only;
        font-size:12.0pt;
        font-family:"Calibri",sans-serif;}
@page WordSection1
        {size:8.5in 11.0in;
        margin:1.0in 1.0in 1.0in 1.0in;}
div.WordSection1
        {page:WordSection1;}
--></style>
</head>
<body lang="EN-US" link="#0563C1" vlink="#954F72" style="word-wrap:break-word">
<div class="WordSection1">
<p class="MsoNormal"><span style="font-size:14.0pt">Dear Developer,<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:14.0pt"><o:p> </o:p></span></p>
<p class="MsoNormal"><span style="font-size:14.0pt">I compiled from source code of xcrysden on my new laptop, and I encountered the following errors:<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:14.0pt"><o:p> </o:p></span></p>
<p class="MsoNormal"><span style="font-size:14.0pt"># Compiling XCRYSDEN C-code #<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:14.0pt"># #<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:14.0pt">#------------------------------#<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:14.0pt"><o:p> </o:p></span></p>
<p class="MsoNormal"><span style="font-size:14.0pt">cd C; /Applications/Xcode.app/Contents/Developer/usr/bin/make "TOPDIR=/Users/trinhvo/xcrysden-1.6.2" compile<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:14.0pt">make TOPDIR=/Users/trinhvo/xcrysden-1.6.2<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:14.0pt">gcc -ffast-math -funroll-loops -fPIC -pedantic -Wall -I/usr/include/tcl8.6 -I/usr/local/Cellar/tcl-tk/8.6.11_1/include -I/usr/local/Cellar/tcl-tk/8.6.11_1/include -c xcAppInit.c<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:14.0pt">xcAppInit.c:407:3: <b><span style="color:red">error</span></b>: implicit declaration of function 'XGetErrorText' is<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:14.0pt"> invalid in C99 [-Werror,-Wimplicit-function-declaration]<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:14.0pt"> XGetErrorText(display,event->error_code,buffer,sizeof(buffer)-1);<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:14.0pt"> ^<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:14.0pt">xcAppInit.c:1834:7: warning: 'glDrawBuffer' is deprecated: first deprecated in<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:14.0pt"> macOS 10.14 - OpenGL API deprecated. (Define GL_SILENCE_DEPRECATION to<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:14.0pt"> silence these warnings) [-Wdeprecated-declarations]<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:14.0pt"> glDrawBuffer(GL_BACK);<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:14.0pt"><o:p> </o:p></span></p>
<p class="MsoNormal"><span style="font-size:14.0pt">I do not know how to fix this error. I have installed all the required libs using homebrew<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:14.0pt"> - Tcl/Tk<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:14.0pt"> - mesa and mesa-glu<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:14.0pt"> - FFTW3<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:14.0pt">For these libs, I download from web)<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:14.0pt"> - BWidget <o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:14.0pt"> - Togl (2.0 or later).
<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:14.0pt"><o:p> </o:p></span></p>
<p class="MsoNormal"><span style="font-size:14.0pt">I appreciate if you could help me to fix this error.<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:14.0pt"><o:p> </o:p></span></p>
<p class="MsoNormal"><span style="font-size:14.0pt">Thank you very much,<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:14.0pt"><o:p> </o:p></span></p>
<p class="MsoNormal"><span style="font-size:14.0pt">Trinh<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:14.0pt"><o:p> </o:p></span></p>
<p class="MsoNormal"><span style="font-size:14.0pt"><o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:14.0pt"><o:p> </o:p></span></p>
<p class="MsoNormal"><span style="font-size:14.0pt"><o:p> </o:p></span></p>
<p class="MsoNormal"><span style="font-size:14.0pt"><o:p> </o:p></span></p>
<p class="MsoNormal"><span style="font-size:14.0pt"><o:p> </o:p></span></p>
<p class="MsoNormal"><span style="font-size:14.0pt"><o:p> </o:p></span></p>
<p class="MsoNormal"><span style="font-size:14.0pt"><o:p> </o:p></span></p>
<p class="MsoNormal"><span style="font-size:14.0pt"><o:p> </o:p></span></p>
<p class="MsoNormal"><span style="font-size:14.0pt"><o:p> </o:p></span></p>
</div>
</body>
</html>