Jump to content

Ubuntu Dev Script


Josh
 Share

Recommended Posts

If you were compiling the editor (which know one here is) you would use this script to set up a development system:

sudo apt-get update
sudo apt-get upgrade

####################################################
#	
#	Ubuntu dependencies installer
#	Doesn't patch any files
#
####################################################
# 23/06/2013: Updated script as Ubuntu can not use `uname -m` == "x86_64" in if conditional if run as sudo. Should now work as expected.
# 27/06/2013: Removed some dead wood as libglu1-mesa-dev will install the libx11/x11proto/mesa-common stuff.

# Get the machine architecture
ARCH=$(uname -m | sed 's/x86_//;s/i[3-6]86/32/')

# Select the packages for architecture installation
if [ $ARCH -eq 64 ]; then
PKGS="ia32-libs-multiarch g++-multilib libglu1-mesa-dev libasound2-dev libfreetype6-dev libxpm-dev libxft-dev libxxf86vm-dev libpulse-dev libopenal-dev";
       # PKGS="$PKGS  libc6-dev x11proto-core-dev x11proto-gl-dev x11proto-kb-dev"; # Uncomment if you are missing a package
else
# This should really not ever happen!
PKGS="g++ libglu1-mesa-dev libasound2-dev libfreetype6-dev libxpm-dev libxft-dev libxxf86vm-dev libpulse-dev libopenal-dev";
       # PKGS="$PKGS  libc6-dev x11proto-core-dev x11proto-gl-dev x11proto-kb-dev"; # Uncomment if you are missing a package
fi

# Install the packages
sudo apt-get install $PKGS

# If machine architecture is 64bit then set up some links
if [ $ARCH -eq 64 ]; then
if [ ! -f /usr/lib32/libGL.so ]; then sudo ln -s /usr/lib/i386-linux-gnu/mesa/libGL.so.1 /usr/lib32/libGL.so ; fi
if [ ! -f /usr/lib32/libGLU.so ]; then sudo ln -s /usr/lib/i386-linux-gnu/libGLU.so.1 /usr/lib32/libGLU.so ; fi
if [ ! -f /usr/lib32/libX11.so ]; then sudo ln -s /usr/lib/i386-linux-gnu/libX11.so.6 /usr/lib32/libX11.so ; fi
if [ ! -f /usr/lib32/libfreetype.so ]; then sudo ln -s /usr/lib/i386-linux-gnu/libfreetype.so.6 /usr/lib32/libfreetype.so ; fi
if [ ! -f /usr/lib32/libXxf86vm.so ]; then sudo ln -s /usr/lib/i386-linux-gnu/libXxf86vm.so.1 /usr/lib32/libXxf86vm.so ; fi
if [ ! -f /usr/lib32/libXft.so ]; then sudo ln -s /usr/lib/i386-linux-gnu/libXft.so.2 /usr/lib32/libXft.so ; fi
if [ ! -f /usr/lib32/libXpm.so ]; then sudo ln -s /usr/lib/i386-linux-gnu/libXpm.so.4 /usr/lib32/libXpm.so ; fi
if [ ! -f /usr/lib32/libasound.so ]; then sudo ln -s /usr/lib/i386-linux-gnu/libasound.so.2 /usr/lib32/libasound.so ; fi
if [ ! -f /usr/lib32/libpulse-simple.so ]; then sudo ln -s /usr/lib/i386-linux-gnu/libpulse-simple.so.0 /usr/lib32/libpulse-simple.so ; fi
if [ ! -f /usr/lib32/libopenal.so ]; then sudo ln -s /usr/lib/i386-linux-gnu/libopenal.so.1 /usr/lib32/libopenal.so ; fi
fi

#=======================================================================
# GTK Requirements
#=======================================================================

sudo ln -s /lib/i386-linux-gnu/libglib-2.0.so.0 /usr/lib32/libglib-2.0.so
sudo ln -s /usr/lib/i386-linux-gnu/libgtk-x11-2.0.so.0 /usr/lib32/libgtk-x11-2.0.so
sudo ln -s /usr/lib/i386-linux-gnu/libgdk-x11-2.0.so.0 /usr/lib32/libgdk-x11-2.0.so
sudo ln -s /usr/lib/i386-linux-gnu/libatk-1.0.so.0 /usr/lib32/libatk-1.0.so
sudo ln -s /usr/lib/i386-linux-gnu/libpangox-1.0.so.0 /usr/lib32/libpangox-1.0.so
sudo ln -s /usr/lib/i386-linux-gnu/libpango-1.0.so.0 /usr/lib32/libpango-1.0.so
sudo ln -s /usr/lib/i386-linux-gnu/libgmodule-2.0.so.0 /usr/lib32/libgmodule-2.0.so
sudo ln -s /usr/lib/i386-linux-gnu/libgobject-2.0.so.0 /usr/lib32/libgobject-2.0.so
sudo ln -s /usr/lib/i386-linux-gnu/libgdk_pixbuf-2.0.so.0 /usr/lib32/libgdk_pixbuf-2.0.so

sudo apt-get install libdbusmenu-glib4:i386
sudo apt-get install libdbusmenu-glib4:i386
sudo apt-get install appmenu-gtk:i386

  • Upvote 1

My job is to make tools you love, with the features you want, and performance you can't live without.

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

 Share

×
×
  • Create New...