GithubHelp home page GithubHelp logo

cj-wright / libobjcryst Goto Github PK

View Code? Open in Web Editor NEW

This project forked from diffpy/libobjcryst

0.0 2.0 0.0 2.19 MB

ObjCryst++ re-packaged for installation as a shared library

License: GNU General Public License v2.0

libobjcryst's Introduction

libobjcryst

ObjCryst++ repackaged for installation as a system shared library.

ObjCryst++ is Object-Oriented Crystallographic Library for C++ developed by Vincent Favre-Nicolin. libobjcryst is a mirror of the ObjCryst++ sources from https://sourceforge.net/projects/objcryst/, expanded with SCons build scripts to make it easier to install as a system shared library. libobjcryst does not include GUI related files from ObjCryst++. This distribution contains required sources from cctbx and newmat that are used in ObjCryst++.

For more information about the ObjCryst++ library, see the upstream project at http://objcryst.sourceforge.net. For Python bindings to ObjCryst++ see the pyobjcryst project at https://github.com/diffpy/pyobjcryst.

REQUIREMENTS

libobjcryst requires C++ compiler and the following software:

  • scons - software constructions tool (1.0 or later)
  • libboost-dev - Boost C++ libraries development files

Required software is commonly available in the system package manager, for example, on Ubuntu Linux the dependencies can be installed as:

sudo apt-get install build-essential scons libboost-dev

For Mac OS X machine with the MacPorts package manager the installation command is

sudo port install scons boost

INSTALLATION

Download and extract the latest libobjcryst bundle from https://github.com/diffpy/libobjcryst/releases

tar xzf libobjcryst-VERSION.tar.gz
cd libobjcryst-VERSION

To build and install the libobjcryst library use

sudo scons -j4 install

This installs libobjcryst for all users under the /usr/local directory. If administrator (root) access is not available, see the usage info from scons --help for options to install to a user-writable location.

To verify libobjcryst installation, compile and run the included test code examples/testlib.cpp

cd examples
c++ testlib.cpp -lObjCryst
./a.out

If compilation fails because of missing header files or missing libObjCryst library, adjust the CPATH and LIBRARY_PATH environment variables or use the -I or -L compiler options. If the libObjCryst shared library cannot be found at runtime, adjust the LD_LIBRARY_PATH environment variable.

libobjcryst's People

Contributors

pavoljuhas avatar cfarrow avatar

Watchers

James Cloos avatar Christopher J. 'CJ' Wright avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.