aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/linden/indra/newview/linux_tools/wrapper.sh
diff options
context:
space:
mode:
authorArmin Weatherwax2010-04-28 16:42:46 +0200
committerJacek Antonelli2010-04-29 03:44:41 -0500
commit4713f60178a4f0d0326e833c7dfbee9ad3189d3c (patch)
treedb01c5690e3ccdbdaf23dd5ab211f2e86eb7ee7c /linden/indra/newview/linux_tools/wrapper.sh
parentBackported some old ChangeLog entries. @nochangelog (diff)
downloadmeta-impy-4713f60178a4f0d0326e833c7dfbee9ad3189d3c.zip
meta-impy-4713f60178a4f0d0326e833c7dfbee9ad3189d3c.tar.gz
meta-impy-4713f60178a4f0d0326e833c7dfbee9ad3189d3c.tar.bz2
meta-impy-4713f60178a4f0d0326e833c7dfbee9ad3189d3c.tar.xz
Some tweaks to wrapper.sh to help Linux 64bit.
Diffstat (limited to '')
-rwxr-xr-xlinden/indra/newview/linux_tools/wrapper.sh25
1 files changed, 7 insertions, 18 deletions
diff --git a/linden/indra/newview/linux_tools/wrapper.sh b/linden/indra/newview/linux_tools/wrapper.sh
index dbe96ba..7a0c973 100755
--- a/linden/indra/newview/linux_tools/wrapper.sh
+++ b/linden/indra/newview/linux_tools/wrapper.sh
@@ -119,14 +119,17 @@ if [ -n "$LL_TCMALLOC" ]; then
119 fi 119 fi
120fi 120fi
121 121
122if [ "`uname -m`" = "x86_64" ]; then 122# 64-bit Linux
123if ( [ "`uname -m`" = "x86_64" ] && [ -d ${RUN_PATH}/app_settings/mozilla-runtime-linux-x86_64/ ] ); then
123 export GST_PLUGIN_PATH="${GST_PLUGIN_PATH}:${RUN_PATH}/lib64/gstreamer-plugins/" 124 export GST_PLUGIN_PATH="${GST_PLUGIN_PATH}:${RUN_PATH}/lib64/gstreamer-plugins/"
124
125 export SL_ENV='LD_LIBRARY_PATH="`pwd`"/lib64:"`pwd`"/lib32:"`pwd`"/app_settings/mozilla-runtime-linux-x86_64:"${LD_LIBRARY_PATH}"' 125 export SL_ENV='LD_LIBRARY_PATH="`pwd`"/lib64:"`pwd`"/lib32:"`pwd`"/app_settings/mozilla-runtime-linux-x86_64:"${LD_LIBRARY_PATH}"'
126
127# 32-bit Linux
126else 128else
127 export GST_PLUGIN_PATH="${GST_PLUGIN_PATH}:${RUN_PATH}/lib/gstreamer-plugins/" 129 export GST_PLUGIN_PATH="${GST_PLUGIN_PATH}:${RUN_PATH}/lib/gstreamer-plugins/"
128 export SL_ENV='LD_LIBRARY_PATH="`pwd`"/lib:"`pwd`"/app_settings/mozilla-runtime-linux-i686:"${LD_LIBRARY_PATH}"' 130 export SL_ENV='LD_LIBRARY_PATH="`pwd`"/lib:"`pwd`"/app_settings/mozilla-runtime-linux-i686:"${LD_LIBRARY_PATH}"'
129fi 131fi
132
130export SL_CMD='$LL_WRAPPER bin/do-not-directly-run-imprudence-bin' 133export SL_CMD='$LL_WRAPPER bin/do-not-directly-run-imprudence-bin'
131export SL_OPT="`cat gridargs.dat` $@" 134export SL_OPT="`cat gridargs.dat` $@"
132 135
@@ -138,21 +141,7 @@ if [ -n "$LL_RUN_ERR" ]; then
138 LL_RUN_ERR_MSG="" 141 LL_RUN_ERR_MSG=""
139 if [ "$LL_RUN_ERR" = "runerr" ]; then 142 if [ "$LL_RUN_ERR" = "runerr" ]; then
140 # generic error running the binary 143 # generic error running the binary
141 echo '*** Bad shutdown. ***' 144 echo '*** Unclean shutdown. ***'
142 145
143#FIXME: ->
144# if [ "`uname -m`" = "x86_64" ]; then
145# echo
146# cat << EOFMARKER
147#You are running the Imprudence Viewer on a x86_64 platform. The
148#most common problems when launching the Viewer (particularly
149#'bin/do-not-directly-run-imprudence-bin: not found' and 'error while
150#loading shared libraries') may be solved by installing your Linux
151#distribution's 32-bit compatibility packages.
152#For example, on Ubuntu and other Debian-based Linuxes you might run:
153#$ sudo apt-get install ia32-libs ia32-libs-gtk ia32-libs-kde ia32-libs-sdl
154#EOFMARKER
155# fi
156#FIXME: <-
157 fi 146 fi
158fi 147fi