Skip to content

Cmarone/xlook

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

xlook

This is the source code for xlook, a tool developed by Chris Marone marone@psu.edu and used by the Penn State Rock Mechanics Lab and others.

Installation

To compile xlook, you'll need to have the xview and olgx libraries and headers installed.

As of this writing, xview is included as part of the standard packages for modern Linux distributions.

Windows users will need to have Cygwin installed, including its compilers and X server. The xview libraries for cygwin are included here under xview/binary/cygwin/.

xlook also requires X11 to run. Linux users will already have it, Windows users should use the version provided by cygwin. Mac users should follow the instructions below

Mac

Pre-Requisites

  • From App Store, buy (free) XCode
  • Start XCode and accept the agreement, quit XCode
  • Download and install XQuartz

Other dependencies can be handled from Macports, Brew, etc.

Brew
  • Open a terminal in the bash shell
  • Install homebrew:
ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)"
  • Setup and update brew
brew doctor
brew update
  • Install packages with the following:
brew install pkgconfig
brew install gtk
brew install autoconf
brew install automake
brew install xz
  • Because of a gtk installation issue, we need to export a path.
export PKG_CONFIG_PATH='/opt/X11/lib/pkgconfig'

Compiling

  • Launch Terminal
  • Change to directory you want xlook to live
  • Clone into the git repo:
git clone https://github.com/PennStateRockandSedimentMechanics/xlook.git
  • Go into the gtk-version directory and compile:
cd xlook/gtk-version
./create_static_ui.sh
./configure
make

Ubuntu

  • Update apt-get
  • Install git
  • clone repo
  • install libgtk2.0-dev,autoconf,pkgconf

Problems

  • Did you set the GTK path if necessary? export PATH=/Library/Frameworks/GTK+.framework/Resources/bin:$PATH

General Compiling Instructions

First, try compiling xlook from scratch using the following commands:

autoreconf
./configure
make

With any luck, that should leave you with an xlook executable in the current directory.

64-Bit

If you are compiling on a 64-bit operating system (such as MacOS 10.6 or greater), you will probably need to set environment variables to force the compiler to create a 32-bit executable. On MacOS this can be accomplished with:

./configure CFLAGS=-m32

We can't build a 64-bit version of xlook because the xview libraries are only available in 32-bit, and apparently it would be quite a bit of effort to convert those to 64-bit, so it's unlikely to happen.

Running

Run the resulting executable directly:

./xlook

Sample data is included under the example subdirectory.

It is recommended that you add xlook to your system path.

Contributors

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • C 92.1%
  • Roff 2.7%
  • PostScript 2.3%
  • Shell 1.1%
  • Objective-C 0.7%
  • Yacc 0.3%
  • Other 0.8%