Skip to content

Instantly share code, notes, and snippets.

@lispnik
Created August 4, 2021 18:16
Show Gist options
  • Save lispnik/73d1a46ee8fafef4d4697087abde609a to your computer and use it in GitHub Desktop.
Save lispnik/73d1a46ee8fafef4d4697087abde609a to your computer and use it in GitHub Desktop.
notes on building tecgraf libs on centos 7

Notes on Building Tecgraf Libraries on CentOS 7

sudo yum install -y epel-release svn perl make gcc gcc-c++ \
     webkitgtk3-devel lua-devel lua-static fftw-devel \
     redhat-lsb mesa-libGLU-devel

svn checkout svn://svn.code.sf.net/p/imtoolkit/im/trunk/im im
svn checkout svn://svn.code.sf.net/p/canvasdraw/cd/trunk/cd cd
svn checkout svn://svn.code.sf.net/p/canvasdraw/cd/trunk/ftgl ftgl
svn checkout svn://svn.code.sf.net/p/iup/iup/trunk/iup iup
LUA_SFX='' LUA_LIB=/usr/lib64 LUA_BIN=/usr/bin make -C im 

LUA_SFX='' LUA_LIB=/usr/lib64 LUA_BIN=/usr/bin make -C ftgl
sed -e 's/do_all:        cd cdpdf cdgl cdim cdcontextplus cdlua5 cdluapdf5 cdluagl5 cdluacontextplus5 cdluaim5/do_all:        cd cdgl cdim cdcontextplus cdlua5 cdluagl5 cdluacontextplus5 cdluaim5/' -i cd/src/Makefile
LUA_SFX='' LUA_LIB=/usr/lib64 LUA_BIN=/usr/bin make -C cd

LUA_SFX='' LUA_LIB=/usr/lib64 LUA_BIN=/usr/bin make -C iup

mkdir -p ~/.local/{bin,include,lib} &>/dev/null || true
find iup/bin -type f -exec cp '{}' ~/.local/bin/ \;
find {ftgl,im,cd,iup}/lib -type f \( -name \*.so -o -name \*.a \) -exec cp '{}' ~/.local/lib/ \;
cp -r {ftgl,im,cd,iup}/include/* ~/.local/include/

Put export LD_LIBRARY_PATH=$HOME/.local/lib in your $HOME/.bash_profile and logout/login our source it in your current shell session.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment