diff options
author | Armin Weatherwax | 2010-04-28 16:42:46 +0200 |
---|---|---|
committer | Jacek Antonelli | 2010-04-29 03:44:41 -0500 |
commit | 4713f60178a4f0d0326e833c7dfbee9ad3189d3c (patch) | |
tree | db01c5690e3ccdbdaf23dd5ab211f2e86eb7ee7c /linden/indra/newview/linux_tools/wrapper.sh | |
parent | Backported some old ChangeLog entries. @nochangelog (diff) | |
download | meta-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-x | linden/indra/newview/linux_tools/wrapper.sh | 25 |
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 |
120 | fi | 120 | fi |
121 | 121 | ||
122 | if [ "`uname -m`" = "x86_64" ]; then | 122 | # 64-bit Linux |
123 | if ( [ "`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 | ||
126 | else | 128 | else |
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}"' |
129 | fi | 131 | fi |
132 | |||
130 | export SL_CMD='$LL_WRAPPER bin/do-not-directly-run-imprudence-bin' | 133 | export SL_CMD='$LL_WRAPPER bin/do-not-directly-run-imprudence-bin' |
131 | export SL_OPT="`cat gridargs.dat` $@" | 134 | export 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 |
158 | fi | 147 | fi |