[Nexus] getting started

Akeroyd, FA (Freddie) F.A.Akeroyd at rl.ac.uk
Mon Jul 17 11:13:12 BST 2006


Branton,

To build a NeXus application you can use the nxbuild script which is
installed into /usr/local/bin

  nxbuild -o test test.c

This script links in the various libraries for you and would provide the
necessary information for a Makefile. You can also use nxbuild with the
example files in the NeXus distribution kit which are installed into
/usr/local/nexus/examples - note that the executable name is important
in this case as the test program uses it internally to determine the
NXACC_CREATE* argument to pass to NXopen. 

  nxbuild -o napi_test-hdf5 napi_test.c  #  builds HDF5 specific test
  ./napi_test-hdf5

Regards,

Freddie

-----Original Message-----
From: nexus-bounces at anl.gov [mailto:nexus-bounces at anl.gov] On Behalf Of
Campbell, Branton
Sent: 12 July 2006 00:36
To: nexus at anl.gov
Cc: asz2 at byu.net
Subject: [Nexus] getting started

Hi Ray,

My student Andrew Zimmerman and I are trying to get some Nexus routines
working this summer.  We want to convert x-ray CCD images into Nexus
files using the HDF5 libraries.

Being new to Nexus, I hope that someone will have the patience to help
with some very basic issues.

I have installed Nexus (from source in the cygwin environment, and from
rpms in the Suse and Fedora Linux environments) using the standard
installation directory locations (e.g. /usr/local).  Now I just want to
compile a simple example that creates an NXentry.  We have had quite a
bit of trouble figuring out how to link to the necessary libraries.  I
would really appreciate an example Makefile if you have one you can
share.

Best regards,
Branton Campbell

****************************************
Branton J. Campbell
Department of Physics & Astronomy
Brigham Young University
N261 ESC, BYU, Provo, UT 84602
Tel: 801-422-5758 Fax: 801-422-0553
Email: branton_campbell at byu.edu
http://www.physics.byu.edu/faculty/campbell/


_______________________________________________
NeXus mailing list
NeXus at anl.gov
http://www.neutron.anl.gov/mailman/listinfo/nexus




More information about the NeXus mailing list