Skip to content

Commit

Permalink
deps: add glew, glfw, libpng for backend rendering
Browse files Browse the repository at this point in the history
  • Loading branch information
andrewseidl committed Jan 17, 2016
1 parent 796c5fd commit 1f4869d
Show file tree
Hide file tree
Showing 2 changed files with 27 additions and 2 deletions.
11 changes: 9 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -34,8 +34,12 @@ MapD has the following dependencies:
- [Go 1.5+](https://golang.org/)
- [OpenJDK](http://openjdk.java.net/)
- [CUDA 7.0+](http://nvidia.com/cuda)
- [GLEW](http://glew.sourceforge.net/)
- [GLFW 3.1.2+](http://www.glfw.org/)
- [libpng](http://libpng.org/pub/png/libpng.html)

//TODO(@vastcharade): add backend rendering deps
//TODO(@dwayneberry: add Calcite deps

Generating PDFs of the documentation requires `pandoc` and `texlive` (specifically `pdflatex`).

Expand Down Expand Up @@ -76,7 +80,10 @@ Most build dependencies are available via APT. Thrift is the one exception and m
libgoogle-glog-dev \
golang \
libssl-dev \
libevent-dev
libevent-dev \
libglew-dev \
libglfw3-dev \
libpng12-dev

apt-get build-dep thrift-compiler
wget http://apache.claz.org/thrift/0.9.2/thrift-0.9.2.tar.gz
Expand All @@ -94,7 +101,7 @@ CUDA should be installed via the .deb method, following the instructions provide

Assuming you already have [yaourt](https://wiki.archlinux.org/index.php/Yaourt) or some other manager that supports the AUR installed:

yaourt -S git cmake boost google-glog extra/jdk8-openjdk clang llvm thrift go cuda nvidia
yaourt -S git cmake boost google-glog extra/jdk8-openjdk clang llvm thrift go cuda nvidia glew glfw libpng
wget https://flexpp-bisonpp.googlecode.com/files/bisonpp-1.21-45.tar.gz
tar xvf bisonpp-1.21-45.tar.gz
cd bison++-1.21
Expand Down
18 changes: 18 additions & 0 deletions scripts/mapd-deps-linux.sh
Original file line number Diff line number Diff line change
Expand Up @@ -138,3 +138,21 @@ popd
# thrift
download_make_install https://github.com/libevent/libevent/releases/download/release-2.0.22-stable/libevent-2.0.22-stable.tar.gz
download_make_install http://apache.claz.org/thrift/0.9.3/thrift-0.9.3.tar.gz "" "--with-lua=no --with-python=no --with-php=no --with-boost-libdir=$PREFIX/lib"

# backend rendering
download https://sourceforge.net/projects/glew/files/glew/1.13.0/glew-1.13.0.tgz
extract glew-1.13.0.tgz
pushd glew-1.13.0
makej DESTDIR=$PREFIX GLEW_DEST="" install
popd

download https://github.com/glfw/glfw/releases/download/3.1.2/glfw-3.1.2.zip
unzip glfw-3.1.2.zip
mkdir -p glfw-3.1.2/build
pushd glfw-3.1.2/build
cmake -DCMAKE_BUILD_TYPE=Release -DCMAKE_INSTALL_PREFIX=$PREFIX ..
makej
make install
popd

download_make_install http://download.sourceforge.net/libpng/libpng-1.6.21.tar.xz

0 comments on commit 1f4869d

Please sign in to comment.