[Nexus] nexus f90 library

Campbell, Stuart scampbell at bnl.gov
Mon Jul 24 16:38:27 BST 2017


Hi,
Sorry - the command line I sent wasn’t complete, just the start of it… For the CMAKE options you need to put "=1” after the -DENABLE_FORTRAN90. If you aren’t familiar with cmake, then you can just run the GUI and click the options you want.   I’ll send you another email off list, as I know that there is a version of DISCUS that uses the HDF5 api instead of the Nexus api.
Cheers
Stu

On Jul 24, 2017, at 10:18 AM, Satayu Techathitinan <k.satayu89 at gmail.com<mailto:k.satayu89 at gmail.com>> wrote:

Hi Stu,

Thank you for your answer, however when I try to run 'cmake /Users/satayu/code-4.4.3 -DCMAKE_CXX_COMPILER=g++-7 -DCMAKE_C_COMPILER=gcc-7 -DENABLE_FORTRAN90' the message as attachment are shown. What will I should do?
<Screen Shot 2560-07-24 at 10.15.30 AM.png>I try to use it in program DISCUS but I still cannot install DISCUS because it requires nexus f90 library.

Thanks,
Satayu

เมื่อ อา. 23 ก.ค. 2017 เวลา 09:19 Campbell, Stuart <scampbell at bnl.gov<mailto:scampbell at bnl.gov>> เขียนว่า:
Hi Satayu,

Looking further into it, there are some issues with the default compiler (clang) and adding fortran using gcc (well gfortran).  So what I would suggest is to just build the library yourself which seems to work ok.

# Install the dependencies
brew install gcc
brew install cmake
brew install hdf5
brew install mxml
brew install hdf4

Download and extract the source code Source code (tar.gz)<https://github.com/nexusformat/code/archive/v4.4.3.tar.gz>

mkdir build
cd build
cmake <location you unzipped the source code> -DCMAKE_CXX_COMPILER=g++-7 -DCMAKE_C_COMPILER=gcc-7 -DENABLE_FORTRAN90 … plus whatever other options you want (there are instructions at https://github.com/nexusformat/code/blob/master/README.rst)

Then just “make”, “make install”…

What is the application that you are trying to use ?

Cheers
Stu


On Jul 20, 2017, at 1:01 PM, Campbell, Stuart <scampbell at bnl.gov<mailto:scampbell at bnl.gov>> wrote:

Hi Satayu,
It looks like we can easily add it to the homebrew package.  I’ll get back to you once I’ve tested it actually works!
Cheers
Stu

—
Dr Stuart Campbell
Group Leader, Data Acquisition, Management and Analysis
NSLS-II, Photon Sciences
Brookhaven National Laboratory
PO Box 5000 Upton, New York, 11973-5000

Phone: +1 (631) 344-5578<tel:(631)%20344-5578>
Email: scampbell at bnl.gov<mailto:scampbell at bnl.gov>

On Jul 20, 2017, at 12:55 PM, Satayu Techathitinan <k.satayu89 at gmail.com<mailto:k.satayu89 at gmail.com>> wrote:

Hello,

I installed nexus from homebrew, 'brew install nexusformat', but the program which I wants to install also require 'nexus f90 library' so I think it does not include in nexusformat. Could you give me an some advice?

Thanks,
Satayu
_______________________________________________
NeXus mailing list
NeXus at nexusformat.org<mailto:NeXus at nexusformat.org>
http://lists.nexusformat.org/mailman/listinfo/nexus

_______________________________________________
NeXus mailing list
NeXus at nexusformat.org<mailto:NeXus at nexusformat.org>
http://lists.nexusformat.org/mailman/listinfo/nexus

_______________________________________________
NeXus mailing list
NeXus at nexusformat.org<mailto:NeXus at nexusformat.org>
http://lists.nexusformat.org/mailman/listinfo/nexus
_______________________________________________
NeXus mailing list
NeXus at nexusformat.org<mailto:NeXus at nexusformat.org>
http://lists.nexusformat.org/mailman/listinfo/nexus

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.nexusformat.org/pipermail/nexus/attachments/20170724/3399063f/attachment.html>


More information about the NeXus mailing list