[mcstas-users] McStas 3.0 and NCrystal (WSL)
Peter Kjær Willendrup
pkwi at fysik.dtu.dk
Sun Feb 7 15:02:37 CET 2021
Dear Michał,
Thank you for reporting this issue - which is indeed separate from the mcgui issue from yesterday.
It turns out I must have left out the mcstas-ncrystal-3.0 package from the mcstas-suite-python-ng package… And hence the found issue is likely present on any Debian- or Ubuntu based system.
To solve it, please
1) Install the ncrystal libraries:
sudo apt-get install mcstas-ncrystal-3.0
2) Reinstall the core mcstas-3.0 package:
sudo apt-get install --reinstall mcstas-3.0
After these steps, I was able to compile the instrument, see attachment.
Best,
Peter
[cid:BBFA257A-7663-4131-99D3-A6B879F6DAA2]
On 7 Feb 2021, at 14.23, Dembski-Villalta, Michal Piotr <michal.dembski-villalta at tum.de<mailto:michal.dembski-villalta at tum.de>> wrote:
Dear McStas users,
Thank you for the help with previous issue, i.e. starting mcgui on Ubuntu 20.04, the solution made mcgui work. However, I encountered another problem, this time with NCrystal - I do not know, whether that is a different part of the same issue, or is it something entirely different. As I understand from the changes in Mcstas 3.0:
"Updated version 2.2.2 NCrystal library from T. Kittelmann (ESS) and X.X. Cai (CSNS), distributed with McStas on Unix
platforms only. With McStas 3.0, NCrystal is more tightly integrated and should run without using ncrystal_preparemcstasdir."
However, I cannot get the NCrystal sample to work, using McStas on Windows 10 (WSL1 Ubuntu 20.04):
"
./PANDA_Michal_DV_draft.c: At top level:
./PANDA_Michal_DV_draft.c:7890:10: fatal error: NCrystal/ncrystal.h: No such file or directory
7890 | #include "NCrystal/ncrystal.h"
| ^~~~~~~~~~~~~~~~~~~~~
"
Please find attached the log (together with running mcgui) as well as the .instr and .c files. I would be grateful for any help with it.
Kindly,
Michał Dembski-Villalta
_______________________________________________
mcstas-users mailing list
mcstas-users at mcstas.org<mailto:mcstas-users at mcstas.org>
https://mailman2.mcstas.org/mailman/listinfo/mcstas-users
Peter Kjær Willendrup
Forskningsingeniør, Specialkonsulent
Næstformand for DTU Fysik LSU
DTU Physics
[cid:b6339554-7f28-441d-9f31-5944f811397c at win.dtu.dk]
Technical University of Denmark
[cid:e108e480-fcab-46e2-9531-b38165079572 at win.dtu.dk]
Department of Physics
Fysikvej
Building 307
DK-2800 Kongens Lyngby
Direct +45 2125 4612
Mobil +45 2125 4612
Fax +45 4593 2399
pkwi at fysik.dtu.dk<mailto:pkwi at fysik.dtu.dk>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mailman2.mcstas.org/pipermail/mcstas-users/attachments/20210207/5731567e/attachment-0001.html>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: Screen Shot 2021-02-07 at 15.02.08.png
Type: image/png
Size: 569228 bytes
Desc: Screen Shot 2021-02-07 at 15.02.08.png
URL: <http://mailman2.mcstas.org/pipermail/mcstas-users/attachments/20210207/5731567e/attachment-0001.png>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: image001.gif
Type: image/gif
Size: 58 bytes
Desc: image001.gif
URL: <http://mailman2.mcstas.org/pipermail/mcstas-users/attachments/20210207/5731567e/attachment-0002.gif>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: image002.gif
Type: image/gif
Size: 1055 bytes
Desc: image002.gif
URL: <http://mailman2.mcstas.org/pipermail/mcstas-users/attachments/20210207/5731567e/attachment-0003.gif>
More information about the mcstas-users
mailing list