<div dir="ltr"><div dir="ltr"><div>Hello everyone,</div><div><br></div><div>Has anyone had success compiling XCrySDen on a Mac with an Apple chip recently?</div><div><br></div><div>I haven't been able to get it to run. I tried the steps provided by Minkyu Park below, but I'm stuck at step 7. Could Minkyu or someone else who had success recently provide more explicit steps?</div><div><br></div><div>Thank you very much in advance.</div><div><br></div><div>Best,</div><div>Mehmet</div></div><br><div class="gmail_quote gmail_quote_container"><div dir="ltr" class="gmail_attr">On Wed, Jul 3, 2024 at 10:35 PM <<a href="mailto:xcrysden-request@democritos.it">xcrysden-request@democritos.it</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">Send XCrySDen mailing list submissions to<br>
        <a href="mailto:xcrysden@democritos.it" target="_blank">xcrysden@democritos.it</a><br>
<br>
To subscribe or unsubscribe via the World Wide Web, visit<br>
        <a href="http://www.democritos.it/mailman/listinfo/xcrysden" rel="noreferrer" target="_blank">http://www.democritos.it/mailman/listinfo/xcrysden</a><br>
or, via email, send a message with subject or body 'help' to<br>
        <a href="mailto:xcrysden-request@democritos.it" target="_blank">xcrysden-request@democritos.it</a><br>
<br>
You can reach the person managing the list at<br>
        <a href="mailto:xcrysden-owner@democritos.it" target="_blank">xcrysden-owner@democritos.it</a><br>
<br>
When replying, please edit your Subject line so it is more specific<br>
than "Re: Contents of XCrySDen digest..."<br>
<br>
<br>
Today's Topics:<br>
<br>
   1. Re: Compile on M2 (???)<br>
<br>
<br>
----------------------------------------------------------------------<br>
<br>
Message: 1<br>
Date: Thu, 4 Jul 2024 13:12:07 +0900<br>
From: ??? <<a href="mailto:minkyupark.phys@gmail.com" target="_blank">minkyupark.phys@gmail.com</a>><br>
Subject: Re: [xcrysden] Compile on M2<br>
To: <a href="mailto:xcrysden@democritos.it" target="_blank">xcrysden@democritos.it</a><br>
Message-ID: <<a href="mailto:0329CA1A-5BD5-49E7-8E0B-45B25E7212BC@gmail.com" target="_blank">0329CA1A-5BD5-49E7-8E0B-45B25E7212BC@gmail.com</a>><br>
Content-Type: text/plain; charset="utf-8"<br>
<br>
Dear all,<br>
<br>
After many tries, I finally succeed to compile xcrysden 1.6.2 on Apple silicon M2 using homebrew. <br>
<br>
Here is my recipe. <br>
<br>
1. Install homebrew. Command Line Tools (CLT) is required. <br>
<br>
2. Install fftw using homebrew. This also installs gcc and gfortran (which is part of gcc). <br>
<br>
3. cp system/Make.sys-semishared-macosx-x11-xquartz Make.sys<br>
<br>
4. Add -L/opt/homebrew/lib and -I/opt/homebrew/include to FFTW3_LIB and FFTW3_INCDIR in Make.sys respectively. <br>
<br>
5. make CC=/usr/bin/gcc all?<br>
Instead of gcc installed by homebrew, use gcc provided in CLT: Apple clang version 15.0.0 (clang-1500.3.9.4) in my case. <br>
<br>
6. The compilation will be stopped by the error from Togl. <br>
<br>
7. Modify external/src/Togl2.0/togl.c follow the instruction <a href="https://cgit.freebsd.org/ports/commit/?id=0e77cfcef8a5677cff1ba81430b767a1089fd083" rel="noreferrer" target="_blank">https://cgit.freebsd.org/ports/commit/?id=0e77cfcef8a5677cff1ba81430b767a1089fd083</a><br>
<br>
8. Since libTogl2.0.dylib is not automatically generated in external/lib, we either do <br>
1) add -L$(TOPDIR)/external/lib/Togl2.0 to TOGL_LIB in Make.sys or <br>
2) ln -s external/lib/Togl2.0/libTogl2.0.dylib external/lib/<br>
<br>
9. make CC=/usr/bin/gcc xcrysden<br>
<br>
10. If the compilation succeed but no executable file is generated, it can be copied from Mac OS binary packages (pre-compiled packages downloadable from xcrysden homepage). <br>
<br>
11. make install <br>
<br>
12. If error occurs, add symbolic link of libTogl2.0.dylib to proper locations. <br>
<br>
I hope it helps to someone struggling like me.<br>
<br>
Best regards, <br>
<br>
Minkyu Park<br>
Korea Research Institute of Standards and Science<br>
<br>
<br>
> On Apr 4, 2024, at 3:40?PM, <a href="mailto:xcrysden-request@democritos.it" target="_blank">xcrysden-request@democritos.it</a> wrote:<br>
> <br>
> Send XCrySDen mailing list submissions to<br>
>       <a href="mailto:xcrysden@democritos.it" target="_blank">xcrysden@democritos.it</a><br>
> <br>
> To subscribe or unsubscribe via the World Wide Web, visit<br>
>       <a href="http://www.democritos.it/mailman/listinfo/xcrysden" rel="noreferrer" target="_blank">http://www.democritos.it/mailman/listinfo/xcrysden</a><br>
> or, via email, send a message with subject or body 'help' to<br>
>       <a href="mailto:xcrysden-request@democritos.it" target="_blank">xcrysden-request@democritos.it</a><br>
> <br>
> You can reach the person managing the list at<br>
>       <a href="mailto:xcrysden-owner@democritos.it" target="_blank">xcrysden-owner@democritos.it</a><br>
> <br>
> When replying, please edit your Subject line so it is more specific<br>
> than "Re: Contents of XCrySDen digest..."<br>
> <br>
> <br>
> Today's Topics:<br>
> <br>
>   1. Compile on M2 (???)<br>
> <br>
> <br>
> ----------------------------------------------------------------------<br>
> <br>
> Message: 1<br>
> Date: Thu, 4 Apr 2024 14:09:24 +0900<br>
> From: ??? <<a href="mailto:minkyupark.phys@gmail.com" target="_blank">minkyupark.phys@gmail.com</a>><br>
> Subject: [xcrysden] Compile on M2<br>
> To: <a href="mailto:xcrysden@democritos.it" target="_blank">xcrysden@democritos.it</a><br>
> Message-ID: <<a href="mailto:340FFBBB-0CC3-4B84-AC9D-D20AA1DC9CC2@gmail.com" target="_blank">340FFBBB-0CC3-4B84-AC9D-D20AA1DC9CC2@gmail.com</a>><br>
> Content-Type: text/plain; charset="utf-8"<br>
> <br>
> Dear all,<br>
> <br>
> I have been trying to compile xcrysden on M2 chip without success. <br>
> <br>
> I found one relevant email<br>
> <a href="http://www.democritos.it/pipermail/xcrysden/2022-September/002116.html" rel="noreferrer" target="_blank">http://www.democritos.it/pipermail/xcrysden/2022-September/002116.html</a><br>
> But this does not work for me.<br>
> <br>
> While ago, I was able to compile xcrysden on MacBook Pro with intel chip<br>
> by installing required libraries through homebrew. <br>
> But even if I follow the same procedure, it does not work in M2. <br>
> <br>
> So does anyone succeed to compile xcrysden on M2 or any other apple silicon chips?<br>
> <br>
> Attaches are my Make.sys and output error message.<br>
> <br>
> Best,<br>
> Minkyu Park<br>
> Korea Research Institute of Standards and Science<br>
> <br>
> ??<br>
> <br>
> -------------- next part --------------<br>
> An HTML attachment was scrubbed...<br>
> URL: <a href="http://www.democritos.it/pipermail/xcrysden/attachments/20240404/77eab2ad/attachment.html" rel="noreferrer" target="_blank">http://www.democritos.it/pipermail/xcrysden/attachments/20240404/77eab2ad/attachment.html</a> <br>
> -------------- next part --------------<br>
> A non-text attachment was scrubbed...<br>
> Name: err.log<br>
> Type: application/octet-stream<br>
> Size: 33553 bytes<br>
> Desc: not available<br>
> Url : <a href="http://www.democritos.it/pipermail/xcrysden/attachments/20240404/77eab2ad/attachment.obj" rel="noreferrer" target="_blank">http://www.democritos.it/pipermail/xcrysden/attachments/20240404/77eab2ad/attachment.obj</a> <br>
> -------------- next part --------------<br>
> An HTML attachment was scrubbed...<br>
> URL: <a href="http://www.democritos.it/pipermail/xcrysden/attachments/20240404/77eab2ad/attachment.htm" rel="noreferrer" target="_blank">http://www.democritos.it/pipermail/xcrysden/attachments/20240404/77eab2ad/attachment.htm</a> <br>
> -------------- next part --------------<br>
> An embedded and charset-unspecified text was scrubbed...<br>
> Name: Make.sys.txt<br>
> Url: <a href="http://www.democritos.it/pipermail/xcrysden/attachments/20240404/77eab2ad/attachment.txt" rel="noreferrer" target="_blank">http://www.democritos.it/pipermail/xcrysden/attachments/20240404/77eab2ad/attachment.txt</a> <br>
> -------------- next part --------------<br>
> An HTML attachment was scrubbed...<br>
> URL: <a href="http://www.democritos.it/pipermail/xcrysden/attachments/20240404/77eab2ad/attachment-0001.htm" rel="noreferrer" target="_blank">http://www.democritos.it/pipermail/xcrysden/attachments/20240404/77eab2ad/attachment-0001.htm</a> <br>
> <br>
> ------------------------------<br>
> <br>
> _______________________________________________<br>
> XCrySDen mailing list<br>
> <a href="mailto:XCrySDen@democritos.it" target="_blank">XCrySDen@democritos.it</a><br>
> <a href="http://www.democritos.it/mailman/listinfo/xcrysden" rel="noreferrer" target="_blank">http://www.democritos.it/mailman/listinfo/xcrysden</a><br>
> <br>
> <br>
> End of XCrySDen Digest, Vol 153, Issue 1<br>
> ****************************************<br>
<br>
-------------- next part --------------<br>
An HTML attachment was scrubbed...<br>
URL: <a href="http://www.democritos.it/pipermail/xcrysden/attachments/20240704/7fba5e06/attachment.html" rel="noreferrer" target="_blank">http://www.democritos.it/pipermail/xcrysden/attachments/20240704/7fba5e06/attachment.html</a> <br>
<br>
------------------------------<br>
<br>
_______________________________________________<br>
XCrySDen mailing list<br>
<a href="mailto:XCrySDen@democritos.it" target="_blank">XCrySDen@democritos.it</a><br>
<a href="http://www.democritos.it/mailman/listinfo/xcrysden" rel="noreferrer" target="_blank">http://www.democritos.it/mailman/listinfo/xcrysden</a><br>
<br>
<br>
End of XCrySDen Digest, Vol 155, Issue 1<br>
****************************************<br>
</blockquote></div></div>