aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/linden/indra
diff options
context:
space:
mode:
authorArmin Weatherwax2009-12-04 11:03:07 +0100
committerJacek Antonelli2010-01-03 16:31:13 -0600
commitd057e71bcd0a93a18edda2659c49fdf537031d49 (patch)
treec6b0224511a5678395704e80c2a6b09554b5cb82 /linden/indra
parentMerge test release. (diff)
downloadmeta-impy-d057e71bcd0a93a18edda2659c49fdf537031d49.zip
meta-impy-d057e71bcd0a93a18edda2659c49fdf537031d49.tar.gz
meta-impy-d057e71bcd0a93a18edda2659c49fdf537031d49.tar.bz2
meta-impy-d057e71bcd0a93a18edda2659c49fdf537031d49.tar.xz
Trying the new 64bit libs and adding the adjustments needed.
(Cherry picked by Jacek from 13412855)
Diffstat (limited to 'linden/indra')
-rw-r--r--linden/indra/cmake/LLWindow.cmake4
-rwxr-xr-xlinden/indra/develop.py2
-rwxr-xr-xlinden/indra/newview/linux_tools/wrapper.sh45
-rw-r--r--linden/indra/newview/llappviewerlinux.cpp2
-rwxr-xr-xlinden/indra/newview/viewer_manifest.py108
5 files changed, 138 insertions, 23 deletions
diff --git a/linden/indra/cmake/LLWindow.cmake b/linden/indra/cmake/LLWindow.cmake
index e749055..db24c70 100644
--- a/linden/indra/cmake/LLWindow.cmake
+++ b/linden/indra/cmake/LLWindow.cmake
@@ -17,7 +17,9 @@ else (STANDALONE)
17 use_prebuilt_binary(mesa) 17 use_prebuilt_binary(mesa)
18 if (LINUX AND VIEWER) 18 if (LINUX AND VIEWER)
19 set (SDL_FOUND TRUE) 19 set (SDL_FOUND TRUE)
20 set (SDL_INCLUDE_DIR ${LIBS_PREBUILT_DIR}/i686-linux) 20#awfixme set (SDL_INCLUDE_DIR ${LIBS_PREBUILT_DIR}/i686-linux)
21#awfixme set (SDL_INCLUDE_DIR ${LIBS_PREBUILT_DIR}/${ARCH}-linux)
22 set (SDL_INCLUDE_DIR ${LIBS_PREBUILT_DIR}/x86_64-linux)
21 set (SDL_LIBRARY SDL) 23 set (SDL_LIBRARY SDL)
22 endif (LINUX AND VIEWER) 24 endif (LINUX AND VIEWER)
23endif (STANDALONE) 25endif (STANDALONE)
diff --git a/linden/indra/develop.py b/linden/indra/develop.py
index 7e7350e..8ea435c 100755
--- a/linden/indra/develop.py
+++ b/linden/indra/develop.py
@@ -225,6 +225,8 @@ class UnixSetup(PlatformSetup):
225 cpu = 'i386' 225 cpu = 'i386'
226 elif cpu.endswith('86'): 226 elif cpu.endswith('86'):
227 cpu = 'i686' 227 cpu = 'i686'
228 elif cpu in ('x86_64'):
229 cpu = 'x86_64'
228 elif cpu in ('athlon',): 230 elif cpu in ('athlon',):
229 cpu = 'i686' 231 cpu = 'i686'
230 elif cpu == 'Power Macintosh': 232 elif cpu == 'Power Macintosh':
diff --git a/linden/indra/newview/linux_tools/wrapper.sh b/linden/indra/newview/linux_tools/wrapper.sh
index 00d91f4..cb07784 100755
--- a/linden/indra/newview/linux_tools/wrapper.sh
+++ b/linden/indra/newview/linux_tools/wrapper.sh
@@ -48,10 +48,13 @@
48## - GStreamer is automatically disabled - for now - on 64-bit systems due 48## - GStreamer is automatically disabled - for now - on 64-bit systems due
49## to common fatal incompatibilities; remove/comment these lines if you want 49## to common fatal incompatibilities; remove/comment these lines if you want
50## to try anyway. 50## to try anyway.
51if [ "`uname -m`" = "x86_64" ]; then 51
52 export LL_DISABLE_GSTREAMER=x 52#FIXME:->
53 echo '64-bit Linux detected: Disabling GStreamer (streaming video and music) by default; edit ./secondlife to re-enable.' 53#if [ "`uname -m`" = "x86_64" ]; then
54fi 54# export LL_DISABLE_GSTREAMER=x
55# echo '64-bit Linux detected: Disabling GStreamer (streaming video and music) by default; edit ./secondlife to re-enable.'
56#fi
57#FIXME:<-
55 58
56## Everything below this line is just for advanced troubleshooters. 59## Everything below this line is just for advanced troubleshooters.
57##------------------------------------------------------------------- 60##-------------------------------------------------------------------
@@ -115,8 +118,11 @@ if [ -n "$LL_TCMALLOC" ]; then
115fi 118fi
116 119
117export GST_PLUGIN_PATH="${GST_PLUGIN_PATH}:${RUN_PATH}/lib/gstreamer-plugins/" 120export GST_PLUGIN_PATH="${GST_PLUGIN_PATH}:${RUN_PATH}/lib/gstreamer-plugins/"
118 121if [ "`uname -m`" = "x86_64" ]; then
119export SL_ENV='LD_LIBRARY_PATH="`pwd`"/lib:"`pwd`"/app_settings/mozilla-runtime-linux-i686:"${LD_LIBRARY_PATH}"' 122 export SL_ENV='LD_LIBRARY_PATH="`pwd`"/lib:"`pwd`"/app_settings/mozilla-runtime-linux-x86_64:"${LD_LIBRARY_PATH}"'
123else
124 export SL_ENV='LD_LIBRARY_PATH="`pwd`"/lib:"`pwd`"/app_settings/mozilla-runtime-linux-i686:"${LD_LIBRARY_PATH}"'
125fi
120export SL_CMD='$LL_WRAPPER bin/do-not-directly-run-imprudence-bin' 126export SL_CMD='$LL_WRAPPER bin/do-not-directly-run-imprudence-bin'
121export SL_OPT="`cat gridargs.dat` $@" 127export SL_OPT="`cat gridargs.dat` $@"
122 128
@@ -129,17 +135,20 @@ if [ -n "$LL_RUN_ERR" ]; then
129 if [ "$LL_RUN_ERR" = "runerr" ]; then 135 if [ "$LL_RUN_ERR" = "runerr" ]; then
130 # generic error running the binary 136 # generic error running the binary
131 echo '*** Bad shutdown. ***' 137 echo '*** Bad shutdown. ***'
132 if [ "`uname -m`" = "x86_64" ]; then 138
133 echo 139#FIXME: ->
134 cat << EOFMARKER 140# if [ "`uname -m`" = "x86_64" ]; then
135You are running the Imprudence Viewer on a x86_64 platform. The 141# echo
136most common problems when launching the Viewer (particularly 142# cat << EOFMARKER
137'bin/do-not-directly-run-imprudence-bin: not found' and 'error while 143#You are running the Imprudence Viewer on a x86_64 platform. The
138loading shared libraries') may be solved by installing your Linux 144#most common problems when launching the Viewer (particularly
139distribution's 32-bit compatibility packages. 145#'bin/do-not-directly-run-imprudence-bin: not found' and 'error while
140For example, on Ubuntu and other Debian-based Linuxes you might run: 146#loading shared libraries') may be solved by installing your Linux
141$ sudo apt-get install ia32-libs ia32-libs-gtk ia32-libs-kde ia32-libs-sdl 147#distribution's 32-bit compatibility packages.
142EOFMARKER 148#For example, on Ubuntu and other Debian-based Linuxes you might run:
143 fi 149#$ sudo apt-get install ia32-libs ia32-libs-gtk ia32-libs-kde ia32-libs-sdl
150#EOFMARKER
151# fi
152#FIXME: <-
144 fi 153 fi
145fi 154fi
diff --git a/linden/indra/newview/llappviewerlinux.cpp b/linden/indra/newview/llappviewerlinux.cpp
index d02e86a..54ba305 100644
--- a/linden/indra/newview/llappviewerlinux.cpp
+++ b/linden/indra/newview/llappviewerlinux.cpp
@@ -263,7 +263,7 @@ static inline BOOL do_elfio_glibc_backtrace()
263 for (btpos = 0; btpos < btsize; ++btpos) 263 for (btpos = 0; btpos < btsize; ++btpos)
264 { 264 {
265 // the format of the StraceFile is very specific, to allow (kludgy) machine-parsing 265 // the format of the StraceFile is very specific, to allow (kludgy) machine-parsing
266 fprintf(StraceFile, "%-3d ", btpos); 266 fprintf(StraceFile, "%-3ld ", (long)btpos);
267 int symidx; 267 int symidx;
268 for (symidx = 0; symidx < nSymNo; ++symidx) 268 for (symidx = 0; symidx < nSymNo; ++symidx)
269 { 269 {
diff --git a/linden/indra/newview/viewer_manifest.py b/linden/indra/newview/viewer_manifest.py
index 35957a5..d7d99d1 100755
--- a/linden/indra/newview/viewer_manifest.py
+++ b/linden/indra/newview/viewer_manifest.py
@@ -805,13 +805,11 @@ class LinuxManifest(ViewerManifest):
805 # 'dst': self.get_dst_prefix(), 805 # 'dst': self.get_dst_prefix(),
806 # 'inst': self.build_path_of(installer_name)}) 806 # 'inst': self.build_path_of(installer_name)})
807 807
808
809class Linux_i686Manifest(LinuxManifest): 808class Linux_i686Manifest(LinuxManifest):
810 def construct(self): 809 def construct(self):
811 super(Linux_i686Manifest, self).construct() 810 super(Linux_i686Manifest, self).construct()
812 self.path("imprudence-stripped","bin/do-not-directly-run-imprudence-bin") 811 self.path("imprudence-stripped","bin/do-not-directly-run-imprudence-bin")
813# self.path("../linux_crash_logger/linux-crash-logger-stripped","linux-crash-logger.bin") 812# self.path("../linux_crash_logger/linux-crash-logger-stripped","linux-crash-logger.bin")
814
815 self.path("linux_tools/launch_url.sh","launch_url.sh") 813 self.path("linux_tools/launch_url.sh","launch_url.sh")
816 if self.prefix("res-sdl"): 814 if self.prefix("res-sdl"):
817 self.path("*") 815 self.path("*")
@@ -929,6 +927,7 @@ class Linux_x86_64Manifest(LinuxManifest):
929 super(Linux_x86_64Manifest, self).construct() 927 super(Linux_x86_64Manifest, self).construct()
930 self.path("imprudence-stripped","bin/do-not-directly-run-imprudence-bin") 928 self.path("imprudence-stripped","bin/do-not-directly-run-imprudence-bin")
931# self.path("../linux_crash_logger/linux-crash-logger-stripped","linux-crash-logger.bin") 929# self.path("../linux_crash_logger/linux-crash-logger-stripped","linux-crash-logger.bin")
930
932 self.path("linux_tools/launch_url.sh","launch_url.sh") 931 self.path("linux_tools/launch_url.sh","launch_url.sh")
933 if self.prefix("res-sdl"): 932 if self.prefix("res-sdl"):
934 self.path("*") 933 self.path("*")
@@ -936,7 +935,110 @@ class Linux_x86_64Manifest(LinuxManifest):
936 self.end_prefix("res-sdl") 935 self.end_prefix("res-sdl")
937 936
938 self.path("featuretable_linux.txt") 937 self.path("featuretable_linux.txt")
939 self.path("secondlife-i686.supp") 938 #self.path("secondlife-x86_64.supp")
939
940 self.path("app_settings/mozilla-runtime-linux-x86_64")
941
942 if self.prefix("../../libraries/x86_64-linux/lib_release_client", dst="lib"):
943 self.path("libapr-1.so.0")
944 self.path("libaprutil-1.so.0")
945 self.path("libdb-4.2.so")
946 self.path("libcrypto.so.0.9.8")
947 self.path("libexpat.so.1")
948 self.path("libssl.so.0.9.8")
949 self.path("libuuid.so", "libuuid.so.1")
950 self.path("libSDL-1.2.so.0")
951 self.path("libELFIO.so")
952 self.path("libopenjpeg.so.1.3.0", "libopenjpeg.so.1.3")
953 self.path("libxml2.so.2")
954 self.path("libz.so.1")
955
956 # OpenAL
957 self.path("libopenal.so.1")
958 self.path("libalut.so.0")
959
960 # GTK+ and dependencies
961 self.path("libatk-1.0.so.0")
962 self.path("libcairo.so.2")
963 self.path("libfontconfig.so.1")
964 self.path("libfreetype.so.6")
965 self.path("libgdk_pixbuf-2.0.so.0")
966 self.path("libgdk-x11-2.0.so.0")
967 self.path("libgtk-x11-2.0.so.0")
968 self.path("libpango-1.0.so.0")
969 self.path("libpangoft2-1.0.so.0")
970 self.path("libpangox-1.0.so.0")
971 self.path("libpangoxft-1.0.so.0")
972 self.path("libpixman-1.so.0")
973
974 # Gstreamer libs
975 self.path("libgstbase-0.10.so.0")
976 self.path("libgstreamer-0.10.so.0")
977 self.path("libgstaudio-0.10.so.0")
978 self.path("libgstbase-0.10.so.0")
979 self.path("libgstcontroller-0.10.so.0")
980 self.path("libgstdataprotocol-0.10.so.0")
981 self.path("libgstinterfaces-0.10.so.0")
982 self.path("libgstnetbuffer-0.10.so.0")
983 self.path("libgstpbutils-0.10.so.0")
984 self.path("libgstriff-0.10.so.0")
985 self.path("libgstrtp-0.10.so.0")
986 self.path("libgstrtsp-0.10.so.0")
987 self.path("libgstsdp-0.10.so.0")
988 self.path("libgsttag-0.10.so.0")
989 self.path("libgstvideo-0.10.so.0")
990
991 # Gstreamer plugin dependencies
992 self.path("libogg.so.0")
993 self.path("libtheora.so.0")
994 self.path("libvorbis.so.0")
995 self.path("libvorbisenc.so.2")
996 self.path("liboil-0.3.so.0")
997
998 # Gstreamer plugins
999 if self.prefix("gstreamer-plugins"):
1000 self.path("libgstalsa.so")
1001 self.path("libgstasf.so")
1002 self.path("libgstaudioconvert.so")
1003 self.path("libgstaudioresample.so")
1004 self.path("libgstautodetect.so")
1005 self.path("libgstavi.so")
1006 self.path("libgstcoreelements.so")
1007 self.path("libgstcoreindexers.so")
1008 self.path("libgstdecodebin2.so")
1009 self.path("libgstdecodebin.so")
1010 self.path("libgstesd.so")
1011 self.path("libgstffmpeg.so")
1012 self.path("libgstffmpegcolorspace.so")
1013 self.path("libgstgnomevfs.so")
1014 self.path("libgsticydemux.so")
1015 self.path("libgstid3demux.so")
1016 self.path("libgstmpegdemux.so")
1017 self.path("libgstmultifile.so")
1018 self.path("libgstmultipart.so")
1019 self.path("libgstogg.so")
1020 self.path("libgstossaudio.so")
1021 self.path("libgstplaybin.so")
1022 self.path("libgstpulse.so")
1023 self.path("libgstqtdemux.so")
1024 self.path("libgstqueue2.so")
1025 self.path("libgsttcp.so")
1026 self.path("libgsttheora.so")
1027 self.path("libgsttypefindfunctions.so")
1028 self.path("libgstudp.so")
1029 self.path("libgstvideoscale.so")
1030 self.path("libgstvolume.so")
1031 self.path("libgstvorbis.so")
1032 self.path("libgstwavparse.so")
1033
1034 self.end_prefix("gstreamer-plugins")
1035 self.end_prefix("lib")
1036
1037 # Vivox runtimes
1038 #if self.prefix(src="vivox-runtime/i686-linux", dst="bin"):
1039 # self.path("SLVoice")
1040 # self.end_prefix()
1041
940 1042
941if __name__ == "__main__": 1043if __name__ == "__main__":
942 main() 1044 main()