Tobionecenobi / SEB

A scattering equation builder of composite structures
GNU General Public License v3.0
1 stars 0 forks source link

Installation on Mac #5

Closed andreashlarsen closed 3 months ago

andreashlarsen commented 3 months ago

Hi. It is running fine on Linux, but I am trying to install on Mac (for use on a small-angle scattering PhD course) - but not yet with succes. Do you have any guides on installation on MacOS?

related to issue #5 (installation on Windows)

Tobionecenobi commented 3 months ago

Sadly I have no experience on mac. Can you build the dependencies from the ground up as described here: https://github.com/Tobionecenobi/SEB/wiki/Installing-SEB:-Guide-for-GiNaC-and-GSL-Dependencies

and then build SEB?

andreashlarsen commented 3 months ago

ok, seems to work with brew (https://brew.sh/):

brew install cln
brew install gsl
brew install ginac

then I followed the instructions for linux:

Form factor amplitude relative to centre= -\frac{100 \frac{ \sin( R{sphere} q) {(-1+\exp(- R{g{poly}}^{2} q^{2}))} \beta{poly}}{ R{g{poly}}^{2} R{sphere} q^{3}}-3 \frac{ {(\sin( R{sphere} q)- \cos( R{sphere} q) R{sphere} q)} \beta{sphere}}{ R{sphere}^{3} q^{3}}}{100 \beta{poly}+\beta{sphere}}

Phase factor tip-to-tip= \frac{ \sin( R{sphere} q)^{2} \exp(-2 R{g{poly}}^{2} q^{2})}{ R{sphere}^{2} q^{2}}

Tobionecenobi commented 3 months ago

Thanks for sharing! I will close this issue.