Skip to content

Instantly share code, notes, and snippets.

@matthiasg
Last active January 1, 2016 23:29
Show Gist options
  • Save matthiasg/8216828 to your computer and use it in GitHub Desktop.
Save matthiasg/8216828 to your computer and use it in GitHub Desktop.
compile leptonica on smartos/solaris
  • download/unpack source
  • make sure gcc is installed via pkgin
  • make sure set displays CFLAGS=-D__SOLARIS__. If it doesn't run export CFLAGS=-D__SOLARIS__. that way the gcc compiler gets that define which helps compiling (otherwise it will fail at the end due to differences in file management)
  • LIBS="-ljpeg -lz" configure NOTE: This will make tiff files work, but i could not yet get pngs to work. configure is still complaining and adding -lpng did not have any effect other than stopping the configure early
  • make
  • make install to install
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment