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.
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
- 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.
- 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'
- 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
- Update apt-get
- Install git
- clone repo
- install libgtk2.0-dev,autoconf,pkgconf
- Did you set the GTK path if necessary? export PATH=/Library/Frameworks/GTK+.framework/Resources/bin:$PATH
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.
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.
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.