Difference between revisions of "Solaris"

From VideoLAN Wiki
Jump to navigation Jump to search
Line 4: Line 4:
  
 
Some old packages exists [http://www.blastwave.org/jir/search.fam?qs=vlc]  
 
Some old packages exists [http://www.blastwave.org/jir/search.fam?qs=vlc]  
 +
 +
===  Solaris 10, SPARC ===
  
 
===== Requirements  =====
 
===== Requirements  =====
Line 26: Line 28:
 
Boostrap script needs to be able to run same subshells as parent.
 
Boostrap script needs to be able to run same subshells as parent.
 
If bootstrap fails on genmf, then the subshell has fallen back to the default /bin/sh which isn't posix compliant.
 
If bootstrap fails on genmf, then the subshell has fallen back to the default /bin/sh which isn't posix compliant.
In that case, you need to modify as follow:
+
In that case, you need to patch as follow:
 
<pre>
 
<pre>
 
@@ -97,7 +97,7 @@ AC_DEFUN([PKG_CHECK_MODULES],[ifelse([\$4], , :, [\$4])])
 
@@ -97,7 +97,7 @@ AC_DEFUN([PKG_CHECK_MODULES],[ifelse([\$4], , :, [\$4])])
Line 36: Line 38:
 
</pre>
 
</pre>
  
###
 
###  classic bootstrap stuff
 
 
<pre>ACLOCAL_ARGS="-I /usr/local/share/aclocal/"
 
<pre>ACLOCAL_ARGS="-I /usr/local/share/aclocal/"
  
Line 45: Line 45:
 
</pre>
 
</pre>
  
===== Configuring (Solaris 10, SPARC) =====
+
===== Configuring =====
 
<pre>CSWlua  lua - a powerful light-weight programming language
 
<pre>CSWlua  lua - a powerful light-weight programming language
 
         (sparc) 5.1.3,REV=2008.04.29
 
         (sparc) 5.1.3,REV=2008.04.29

Revision as of 22:49, 13 January 2010

Build VLC on Solaris / OpenSolaris

Needs to be (maybe heavily) patched.

Some old packages exists [1]

Solaris 10, SPARC

Requirements
CSWautoconf  autoconf - an extensible package of M4 macros
             (all) 2.65,REV=2009.11.30
CSWautomake  automake - GNU Makefile generator inspired by 4.4BSD make and include
             (all) 1.10.3,REV=2009.12.09
CSWggettext  ggettext - GNU gettext
             (sparc) 0.17,REV=2009.05.27
CSWgm4       gm4 - The GNU m4 implementation of the traditional Unix macro processor
             (sparc) 1.4.13,REV=2009.04.06
CSWiconv     libiconv - GNU libiconv is a Unicode conversion library
             (sparc) 1.13.1,REV=2009.07.01
CSWlibtool   libtool - Generic shared library support script
             (sparc) 1.5.26,REV=2008.12.22
CSWreadline  readline - GNU readline
             (sparc) 5.2,REV=2009.01.23

Bootstrapping

Boostrap script needs to be able to run same subshells as parent. If bootstrap fails on genmf, then the subshell has fallen back to the default /bin/sh which isn't posix compliant. In that case, you need to patch as follow:

@@ -97,7 +97,7 @@ AC_DEFUN([PKG_CHECK_MODULES],[ifelse([\$4], , :, [\$4])])
 EOF
 fi
 
-modules/genmf `sed -ne 's,modules/\(.*\)/Makefile,\1,p' configure.ac`
+$SHELL modules/genmf `sed -ne 's,modules/\(.*\)/Makefile,\1,p' configure.ac`
ACLOCAL_ARGS="-I /usr/local/share/aclocal/"

export ACLOCAL_ARGS

/usr/xpg4/bin/sh bootstrap
Configuring
CSWlua  lua - a powerful light-weight programming language
        (sparc) 5.1.3,REV=2008.04.29

Using Sun Studio

export LUA_LIBS='-L/opt/csw/lib/ -llua' LUA_CFLAGS='-I/opt/csw/include/'
./configure CCC=/opt/SUNWspro/bin/CC CC=/opt/SUNWspro/bin/cc --includedir=/opt/csw/include/