/scripts/linux/ubuntu/install_dependencies.sh

https://github.com/nasser/openFrameworks · Shell · 28 lines · 27 code · 1 blank · 0 comment · 5 complexity · d7c10f41122f6142906b8d3807163de7 MD5 · raw file

  1. apt-get update
  2. apt-get install libgstreamer0.10-dev libgstreamer-plugins-base0.10-dev libavcodec-dev libavformat-dev libavutil-dev libswscale-dev freeglut3-dev libasound2-dev libxmu-dev libxxf86vm-dev g++ libgl1-mesa-dev libglu1-mesa-dev libraw1394-dev libudev-dev libdrm-dev gstreamer0.10-ffmpeg libglew-dev libopenal-dev libsndfile-dev libfreeimage-dev libcairo2-dev libgtk2.0-dev libjack0 libjack-dev python-lxml python-argparse
  3. ARCH=$(uname -m)
  4. if [ "$ARCH" = "x86_64" ]; then
  5. LIBSPATH=linux64
  6. else
  7. LIBSPATH=linux
  8. fi
  9. WHO=`sudo who am i`;ID=`echo ${WHO%% *}`
  10. GROUP_ID=`id --group -n ${ID}`
  11. cd ../../../libs/openFrameworksCompiled/project/$LIBSPATH
  12. make Debug
  13. exit_code=$?
  14. if [ $exit_code != 0 ]; then
  15. echo "there has been a problem compiling Debug OF library"
  16. echo "please report this problem in the forums"
  17. exit $exit_code
  18. fi
  19. chown -R $ID:$GROUP_ID obj ../../lib/${LIBSPATH}/*
  20. make Release
  21. exit_code=$?
  22. if [ $exit_code != 0 ]; then
  23. echo "there has been a problem compiling Release OF library"
  24. echo "please report this problem in the forums"
  25. exit $exit_code
  26. fi
  27. chown -R $ID:$GROUP_ID obj ../../lib/${LIBSPATH}/*