Difference between revisions of "Solaris"

From VideoLAN Wiki
Jump to navigation Jump to search
m (More valid CSS)
(C/e and markup)
Line 1: Line 1:
== Build VLC on Solaris / OpenSolaris ==
+
== Build VLC on Solaris / OpenSolaris ==
  
=== Status ===
+
=== Status ===
  
 
{| class="cellpadding-1px" style="width:200px; border-spacing:1px; color:black; background-color:white;" border="1"
 
{| class="cellpadding-1px" style="width:200px; border-spacing:1px; color:black; background-color:white;" border="1"
 
|-
 
|-
 
| <br>  
 
| <br>  
| Oracle Solaris 11 x86  
+
! scope="col" | Oracle Solaris 11 x86  
| Solaris 10 x86  
+
! scope="col" | Solaris 10 x86  
| Solaris 10 SPARC  
+
! scope="col" | Solaris 10 SPARC  
|  
+
! scope="col" | OpenSolaris&nbsp;x86  
OpenSolaris&nbsp;x86  
 
  
 
2009/06  
 
2009/06  
  
| OpenSolaris SPARC  
+
! scope="col" | OpenSolaris SPARC  
 
2009/06  
 
2009/06  
  
|  
+
! scope="col" | OpenSolaris&nbsp;x86  
OpenSolaris&nbsp;x86  
 
  
 
2010/03  
 
2010/03  
  
| OpenSolaris SPARC  
+
! scope="col" | OpenSolaris SPARC  
 
2010/03  
 
2010/03  
  
|  
+
! scope="col" | OpenIndiana x86  
OpenIndiana x86  
 
  
 
snv_134  
 
snv_134  
  
|
+
! scope="col" |
 
OpenIndiana x86 oi151a8
 
OpenIndiana x86 oi151a8
  
| OpenIndiana SPARC<br>
+
! scope="col" | OpenIndiana SPARC<br>
 
|-
 
|-
| (videolan 2.x.x
+
! scope="row" | (videolan 2.x.x
 
| style="background:#8BE09F;" | Yes (last tested 2.1.5)
 
| style="background:#8BE09F;" | Yes (last tested 2.1.5)
 
|  
 
|  
Line 47: Line 44:
 
|  
 
|  
 
|-
 
|-
| master (videolan)  
+
! scope="row" | master (videolan)  
 
| {{Untested}}
 
| {{Untested}}
 
| {{No}}  
 
| {{No}}  
Line 59: Line 56:
 
| {{Untested}}
 
| {{Untested}}
 
|-
 
|-
| 1.x forks (videolan)  
+
! scope="row" | 1.x forks (videolan)  
 
|  
 
|  
 
| {{No}}  
 
| {{No}}  
Line 71: Line 68:
 
| {{Untested}}
 
| {{Untested}}
 
|-
 
|-
| [http://repo.or.cz/w/vlc/solaris.git master (repocz/solaris)]  
+
! scope="row" | [http://repo.or.cz/w/vlc/solaris.git master (repocz/solaris)]  
 
|  
 
|  
 
| {{Partial}} *(1)  
 
| {{Partial}} *(1)  
Line 83: Line 80:
 
| {{Untested}}
 
| {{Untested}}
 
|-
 
|-
| [http://repo.or.cz/w/vlc/solaris.git/shortlog/refs/heads/solaris-vlc-1.1 1.1 branch (repocz/solaris)]  
+
! scope="row" | [http://repo.or.cz/w/vlc/solaris.git/shortlog/refs/heads/solaris-vlc-1.1 1.1 branch (repocz/solaris)]  
 
|  
 
|  
 
| {{Yes}} ''(Last tested 1.1.4)''  
 
| {{Yes}} ''(Last tested 1.1.4)''  
Line 96: Line 93:
 
|}
 
|}
  
(1) requirements: CSWautomake &gt;= 1.11.1 / pkg://openindiana.org/developer/build/automake-111
+
(1) requirements: CSWautomake 1.11.1 / pkg://openindiana.org/developer/build/automake-111
  
<br> '''Important Note''': Because of changes in VLC making xcb mandatory, video output modules relying on X11/XCB can't work until Solaris ships libxcb. Video output is currently done using SDL and will open on a separate window. Blastwave latest SDL builds uses xcb and are also unusable (referenced by sdl/aout). Configuring --disable-sdl makes builds possible, but you'll loose the sdl video output module too.
+
{{Note-nb|'''Important Note''': Because of changes in VLC making xcb mandatory, video output modules relying on X11/XCB can't work until Solaris ships libxcb. Video output is currently done using SDL and will open on a separate window. Blastwave latest SDL builds uses xcb and are also unusable (referenced by sdl/aout). Configuring <code>--disable-sdl</code> makes builds possible, but you'll lose the sdl video output module too.}}
  
 
===== Up-to-date Binary Packages =====
 
===== Up-to-date Binary Packages =====
Line 104: Line 101:
 
A few repositories with binary packages exist (including QT).
 
A few repositories with binary packages exist (including QT).
 
If you want to build exactly those packages yourself or report packaging bugs,
 
If you want to build exactly those packages yourself or report packaging bugs,
then please check out the instructions on http://pkgbuild.wiki.sourceforge.net  
+
then please check out the instructions on http://pkgbuild.wiki.sourceforge.net
  
 
If you want to directly install binary packages, then follow the instructions in the links below. The IPS repository setup instructions are listed there.
 
If you want to directly install binary packages, then follow the instructions in the links below. The IPS repository setup instructions are listed there.
  
VLC 2.1.5 for OpenIndiana OI151a8 / OI151a9:  
+
VLC 2.1.5 for OpenIndiana OI151a8 / OI151a9:
 
http://sfe.opencsw.org/localhostoi151a8 (hosting kindly provided by the OpenCSW project but content is solely from SFE project)
 
http://sfe.opencsw.org/localhostoi151a8 (hosting kindly provided by the OpenCSW project but content is solely from SFE project)
  
VLC 2.1.5 Oracle Solaris 11 (TM)
+
VLC 2.1.5 Oracle Solaris 11&trade;
 
http://sfe.opencsw.org/localhosts11 (hosting kindly provided by the OpenCSW project but content is solely from SFE project)
 
http://sfe.opencsw.org/localhosts11 (hosting kindly provided by the OpenCSW project but content is solely from SFE project)
  
 
=== Building on OpenIndiana ===
 
=== Building on OpenIndiana ===
  
===== Config &amp; Build process required packages =====
+
===== Config &amp; Build process required packages =====
  
 
Start by adding the [http://wiki.openindiana.org/oi/Spec+Files+Extra+Repository extra repositories]:
 
Start by adding the [http://wiki.openindiana.org/oi/Spec+Files+Extra+Repository extra repositories]:
<pre>
+
<syntaxhighlight lang="text">
 
(outdated!) pkg set-publisher -p http://pkg.openindiana.org/sfe
 
(outdated!) pkg set-publisher -p http://pkg.openindiana.org/sfe
 
(outdated!) pkg set-publisher -p http://pkg.openindiana.org/sfe-encumbered
 
(outdated!) pkg set-publisher -p http://pkg.openindiana.org/sfe-encumbered
</pre>
+
</syntaxhighlight>
  
 
Required packages for build:
 
Required packages for build:
<pre>
+
<syntaxhighlight lang="text">
 
pkg:/developer/build/automake-110
 
pkg:/developer/build/automake-110
 
pkg:/developer/build/autoconf
 
pkg:/developer/build/autoconf
Line 131: Line 128:
 
pkg:/developer/gnome/gettext
 
pkg:/developer/gnome/gettext
 
pkg:/developer/build/libtool
 
pkg:/developer/build/libtool
</pre>
+
</syntaxhighlight>
  
 
For modules:
 
For modules:
<pre>
+
<syntaxhighlight lang="text">
 
pkg:/library/video/ffmpeg@0.8.5-0.151.1
 
pkg:/library/video/ffmpeg@0.8.5-0.151.1
 
pkg:/library/desktop/g++/qt@4.7.3-0.151.1
 
pkg:/library/desktop/g++/qt@4.7.3-0.151.1
</pre>
+
</syntaxhighlight>
  
===== Setting up your environment =====
+
===== Setting up your environment =====
  
===== Configure =====
+
===== Configure =====
  
  
 
=== OpenSolaris (Deprecated) ===
 
=== OpenSolaris (Deprecated) ===
  
Mostly follows Solaris instructions.  
+
Mostly follows Solaris instructions.
  
Note that despite the configure stage could be configured to call GNU's ld, the official gcc build always rely on collect2 and call the Sun linker.  
+
Note that despite the configure stage could be configured to call GNU's ld, the official gcc build always rely on collect2 and call the Sun linker.
  
If you get undefined retain-symbol-file errors, your path haven't been fixed for the configure step (must look into /usr/ccs/bin/ first) and the build process is applying gnu's options to sun's linker.  
+
If you get undefined retain-symbol-file errors, your path haven't been fixed for the configure step (must look into <code>/usr/ccs/bin/</code> first) and the build process is applying gnu's options to sun's linker.
  
To use GNU's linker (optional): Either use the "LD_ALTEXEC=/opt/gnu/bin/gld" environment variable, or use a custom gcc build to use /opt/gnu/bin/gld. (vlc would fail on some gld only options like retain-symbols-file)  
+
To use GNU's linker (optional): Either use the <code>LD_ALTEXEC=/opt/gnu/bin/gld</code> environment variable, or use a custom gcc build to use <code>/opt/gnu/bin/gld</code>. (vlc would fail on some gld only options like retain-symbols-file)
  
( your gcc -v output must not contain: --with-ld=/usr/ccs/bin/ld --without-gnu-ld )  
+
( your <code>gcc -v</code> output must not contain: <code>--with-ld=/usr/ccs/bin/ld --without-gnu-ld</code> )
  
An alternative to LD_ALTEXEC would be to symlink /usr/ccs/bin/ld to /opt/gnu/bin/gld
+
An alternative to <var>LD_ALTEXEC</var> would be to symlink <code>/usr/ccs/bin/ld</code> to <code>/opt/gnu/bin/gld</code>
  
===== Config &amp; Build process required packages =====
+
===== Config &amp; Build process required packages =====
  
Blastwave's additional packages  
+
Blastwave's additional packages
<pre>CSWfaac
+
<syntaxhighlight lang="text">
 +
CSWfaac
 
CSWfaad2
 
CSWfaad2
 
CSWffmpeglib
 
CSWffmpeglib
Line 181: Line 179:
 
CSWxvid
 
CSWxvid
 
CSWzlib
 
CSWzlib
</pre>  
+
</syntaxhighlight>
===== Setting up your environment =====
+
===== Setting up your environment =====
  
For Sun Studio  
+
For Sun Studio
<pre>export PATH=/usr/ccs/bin:/opt/sunstudio12.1/bin:/opt/csw/bin:/usr/xpg4/bin:/usr/sbin:/usr/bin:/usr/sfw/bin:/usr/ccs/bin:/usr/ucb  
+
<syntaxhighlight lang="bash">
 +
export PATH=/usr/ccs/bin:/opt/sunstudio12.1/bin:/opt/csw/bin:/usr/xpg4/bin:/usr/sbin:/usr/bin:/usr/sfw/bin:/usr/ccs/bin:/usr/ucb  
 
export LD_LIBRARY_PATH=/opt/sunstudio12.1/lib:/usr/openwin/lib/X11/:/opt/kde4/lib
 
export LD_LIBRARY_PATH=/opt/sunstudio12.1/lib:/usr/openwin/lib/X11/:/opt/kde4/lib
 
export PKG_CONFIG_PATH=/opt/kde4/lib/pkgconfig:/opt/csw/lib/pkgconfig/
 
export PKG_CONFIG_PATH=/opt/kde4/lib/pkgconfig:/opt/csw/lib/pkgconfig/
Line 191: Line 190:
 
export CXXFLAGS=$CFLAGS
 
export CXXFLAGS=$CFLAGS
 
export CCC=/opt/sunstudio12.1/bin/CC CC=/opt/sunstudio12.1/bin/cc MAKE=gmake
 
export CCC=/opt/sunstudio12.1/bin/CC CC=/opt/sunstudio12.1/bin/cc MAKE=gmake
</pre>  
+
</syntaxhighlight>
For GCC  
+
For GCC
 
 
Untested. See Solaris/Sparc.
 
  
<br>
+
Untested. See [[#Solaris 10, SPARC|Solaris/Sparc]].
  
===== Configure =====
+
===== Configure =====
  
Bootsrap has no problems since Osol uses bash.  
+
Bootstrap has no problems since Osol uses bash.  
<pre>./configure --disable-libgcrypt --disable-remoteosd --disable-glx --disable-lua --disable-mad --disable-swscale --disable-postproc --disable-a52 --disable-fribidi --with-gnu-ld=no --enable-qt4 --disable-xcb
+
<syntaxhighlight lang="bash">
</pre>
+
./configure --disable-libgcrypt --disable-remoteosd --disable-glx --disable-lua --disable-mad --disable-swscale --disable-postproc --disable-a52 --disable-fribidi --with-gnu-ld=no --enable-qt4 --disable-xcb
 +
</syntaxhighlight>
  
=== Solaris 10, x86 ===
+
=== Solaris 10, x86 ===
  
 
To be done.  
 
To be done.  
  
=== Solaris 10, SPARC ===
+
=== Solaris 10, SPARC ===
  
 
Sparc builds outside GCC, are currently unstable.  
 
Sparc builds outside GCC, are currently unstable.  
  
 
*Many bugs fixed (until now).  
 
*Many bugs fixed (until now).  
*all shells must point to /usr/xpg4/bin/sh instead of /bin/sh (not fully posix) (tip: CONFIG_SHELL=/usr/xpg4/bin/sh)  
+
*all shells must point to <code>/usr/xpg4/bin/sh</code> instead of <code>/bin/sh</code> (not fully POSIX) (tip: <code>CONFIG_SHELL=/usr/xpg4/bin/sh</code>)
*bootstrapping requires to change subprocess shell (see patch below)  
+
*bootstrapping requires to change subprocess shell (see [[#Bootstrapping]] below)  
*filesystem.c needs to be patched for NAME_MAX
+
*<code>filesystem.c</code> needs to be patched for <var>NAME_MAX</var>
  
 
Blocking:  
 
Blocking:  
  
*Lots of ''if (p==NULL) msgDbg("foo&nbsp;%s", p)'' in the code segfaults in multiple places. Developers have assumed that&nbsp;%s is fixed as "(null)" like Glibc does. Not available on sparc.  
+
*Lots of ''<code>if (p==NULL) msgDbg("foo %s", p)</code>'' in the code segfaults in multiple places. Developers have assumed that&nbsp;%s is fixed as "(null)" like Glibc does. Not available on sparc.  
*crashes at network/httpd.c at poll() level.
+
*crashes at network/httpd.c at <code>poll()</code> level.
  
 
===== Boostrapping process required packages  =====
 
===== Boostrapping process required packages  =====
  
 
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]  
<pre>CSWautoconf  autoconf - an extensible package of M4 macros
+
<syntaxhighlight lang="text">CSWautoconf  autoconf - an extensible package of M4 macros
 
             (all) 2.65,REV=2009.11.30
 
             (all) 2.65,REV=2009.11.30
 
CSWautomake  automake - GNU Makefile generator inspired by 4.4BSD make and include
 
CSWautomake  automake - GNU Makefile generator inspired by 4.4BSD make and include
Line 240: Line 238:
 
             (sparc) 5.2,REV=2009.01.23
 
             (sparc) 5.2,REV=2009.01.23
  
</pre>  
+
</syntaxhighlight>  
===== Config &amp; Build process required packages =====
+
===== Config &amp; Build process required packages =====
<pre>CSWlua  lua - a powerful light-weight programming language
+
<syntaxhighlight lang="text">
 +
CSWlua  lua - a powerful light-weight programming language
 
         (sparc) 5.1.3,REV=2008.04.29
 
         (sparc) 5.1.3,REV=2008.04.29
 
**
 
**
Line 279: Line 278:
 
CSWqt  qt - A Cross-platform application framework for desktop and embedded development
 
CSWqt  qt - A Cross-platform application framework for desktop and embedded development
 
       (sparc) 4.4.3,REV=2009.01.16
 
       (sparc) 4.4.3,REV=2009.01.16
</pre>  
+
</syntaxhighlight>
 
Sun Studio: We needed to build those up to date packages (installed in /opt/vlc, as seen in configuration)  
 
Sun Studio: We needed to build those up to date packages (installed in /opt/vlc, as seen in configuration)  
<pre>VLCQt
+
<syntaxhighlight lang="text">VLCQt
 
VLCflac
 
VLCflac
 
VLClibxcb-devel
 
VLClibxcb-devel
Line 289: Line 288:
 
VLCxcbproto
 
VLCxcbproto
 
VLCxcbutil
 
VLCxcbutil
</pre>  
+
</syntaxhighlight>
===== Setting up your environment =====
+
===== Setting up your environment =====
  
For Sun Studio Assuming compiler in /opt/sunstudio12.1 and some customly built packages in /opt/vlc  
+
For Sun Studio Assuming compiler in <code>/opt/sunstudio12.1</code> and some customly built packages in <code>/opt/vlc</code>
<pre># Required for bootstrap  
+
<syntaxhighlight lang="bash">
 +
# Required for bootstrap  
 
export ACLOCAL_ARGS="-I /opt/csw/share/aclocal/"  
 
export ACLOCAL_ARGS="-I /opt/csw/share/aclocal/"  
  
Line 315: Line 315:
 
export CFLAGS="-I/opt/sunstudio12.1/include -I/usr/include -features=extensions -D _XPG4_2 -D __SunOS -D __STDC_ISO_10646__ -D __EXTENSIONS__"  
 
export CFLAGS="-I/opt/sunstudio12.1/include -I/usr/include -features=extensions -D _XPG4_2 -D __SunOS -D __STDC_ISO_10646__ -D __EXTENSIONS__"  
 
export CXXFLAGS="-I/opt/sunstudio12.1/include -features=extensions -D _XPG4_2 -D __SunOS -D __STDC_ISO_10646__ -D __EXTENSIONS__"  
 
export CXXFLAGS="-I/opt/sunstudio12.1/include -features=extensions -D _XPG4_2 -D __SunOS -D __STDC_ISO_10646__ -D __EXTENSIONS__"  
</pre>  
+
</syntaxhighlight>  
 
Using GCC Assuming some customly built packages in /opt/vlc  
 
Using GCC Assuming some customly built packages in /opt/vlc  
<pre># Required for bootstrap  
+
<syntaxhighlight lang="bash"># Required for bootstrap  
 
export ACLOCAL_ARGS="-I /opt/csw/share/aclocal/"  
 
export ACLOCAL_ARGS="-I /opt/csw/share/aclocal/"  
  
Line 336: Line 336:
 
export CXXFLAGS=$CFLAGS  
 
export CXXFLAGS=$CFLAGS  
  
</pre>  
+
</syntaxhighlight>
===== Bootstrapping =====
+
===== 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:  
+
Bootstrap script needs to be able to run same subshells as parent. If bootstrap fails on <code>genmf</code>, 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:  
<pre>@@ -97,7 +97,7 @@ AC_DEFUN([PKG_CHECK_MODULES],[ifelse([\$4], ,&nbsp;:, [\$4])])
+
<syntaxhighlight lang="diff">
 +
@@ -97,7 +97,7 @@ AC_DEFUN([PKG_CHECK_MODULES],[ifelse([\$4], , :, [\$4])])
 
  EOF
 
  EOF
 
  fi
 
  fi
Line 346: Line 347:
 
-modules/genmf `sed -ne 's,modules/\(.*\)/Makefile,\1,p' configure.ac`
 
-modules/genmf `sed -ne 's,modules/\(.*\)/Makefile,\1,p' configure.ac`
 
+$SHELL modules/genmf `sed -ne 's,modules/\(.*\)/Makefile,\1,p' configure.ac`
 
+$SHELL modules/genmf `sed -ne 's,modules/\(.*\)/Makefile,\1,p' configure.ac`
</pre> <pre>ACLOCAL_ARGS="-I /usr/local/share/aclocal/"
+
</syntaxhighlight> <syntaxhighlight lang="bash">ACLOCAL_ARGS="-I /usr/local/share/aclocal/"
  
 
export ACLOCAL_ARGS
 
export ACLOCAL_ARGS
Line 354: Line 355:
  
  
</pre>  
+
</syntaxhighlight>
===== Configure =====
+
===== Configure =====
<pre>/usr/xpg4/bin/sh configure  --with-a52=/opt/csw/ --with-mad=/opt/csw/ --disable-libgcrypt --disable-remoteosd --disable-skins2 --disable-glx
+
<syntaxhighlight lang="bash">
</pre>  
+
/usr/xpg4/bin/sh configure  --with-a52=/opt/csw/ --with-mad=/opt/csw/ --disable-libgcrypt --disable-remoteosd --disable-skins2 --disable-glx
--with-gnu-ld might also be required (check configure result!)  
+
</syntaxhighlight>
 +
<code>--with-gnu-ld</code> might also be required (check configure result!)
  
Sun Studio: Add --disable-qt4 if required. (Qt 4.6.0 Currently fails)  
+
Sun Studio: Add <code>--disable-qt4</code> if required. (Qt 4.6.0 Currently fails)
  
=== Qt4 Interface module ===
+
=== Qt4 Interface module ===
  
Trolltech only supports SunStudio builds. QT4 Interface is mainly C++, and creates ABI dependencies with Qt libs. Kde-solaris (bionicmutton) project packages offers the Sun ABI. If you wish to build the Qt4 Module, you need to build vlc with SunStudio, or build your own Qt library with GCC.  
+
Trolltech only supports SunStudio builds. QT4 Interface is mainly C++, and creates ABI dependencies with Qt libs. Kde-solaris (bionicmutton) project packages offers the Sun ABI. If you wish to build the Qt4 Module, you need to build vlc with SunStudio, or build your own Qt library with GCC.
  
You should run into a without prototype 'wcsstr' issue in /opt/sunstudio12.1/prod/include/CC/Cstd/rw/traits Only fix known: Replace wcsstr with wcswcs in that file.  
+
You should run into a without prototype 'wcsstr' issue in /opt/sunstudio12.1/prod/include/CC/Cstd/rw/traits<br> Only fix known: Replace <code>wcsstr</code> with <code>wcswcs</code> in that file.
  
=== libxcb ===
+
=== libxcb ===
  
Libxcb must currently be disabled or you'll need to use custome build as there's no official support. It might make it into the official repository as the package went past the fasttrack process.  
+
Libxcb must currently be disabled or you'll need to use custome build as there's no official support. It might make it into the official repository as the package went past the fasttrack process.
  
=== Fully patched code repository ===
+
=== Fully patched code repository ===
  
All patches are on this fork. (until they make it into the main repository)  
+
All patches are on this fork. (until they make it into the main repository)
<pre>git clone git://repo.or.cz/vlc/solaris.git vlcsolaris
+
<syntaxhighlight lang="bash">
</pre>  
+
git clone git://repo.or.cz/vlc/solaris.git vlcsolaris
 +
</syntaxhighlight>
 
Patches on master branch are kept on top of this fork using rebase and forced pushes. Don't expect to pull later updates without rebasing.
 
Patches on master branch are kept on top of this fork using rebase and forced pushes. Don't expect to pull later updates without rebasing.
  
 
[[Category:Building]]
 
[[Category:Building]]
 
[[Category:Operating systems]]
 
[[Category:Operating systems]]

Revision as of 08:59, 23 April 2019

Build VLC on Solaris / OpenSolaris

Status


Oracle Solaris 11 x86 Solaris 10 x86 Solaris 10 SPARC OpenSolaris x86

2009/06

OpenSolaris SPARC

2009/06

OpenSolaris x86

2010/03

OpenSolaris SPARC

2010/03

OpenIndiana x86

snv_134

OpenIndiana x86 oi151a8

OpenIndiana SPARC
(videolan 2.x.x Yes (last tested 2.1.5) Yes (last tested 2.1.5)
master (videolan) untested ??? No No No No No No untested ??? untested ??? untested ???
1.x forks (videolan) No No No No No No untested ??? untested ??? untested ???
master (repocz/solaris) Partial *(1) Partial *(1) Partial *(1) Partial *(1) Yes (Last tested 06/02/11) Partial *(1) untested ??? untested ??? untested ???
1.1 branch (repocz/solaris) Yes (Last tested 1.1.4) Yes (Last tested 1.1.4) Yes (Last tested 1.1.4) untested ??? Yes (Last tested 1.1.6-git rel 1.1.7) untested ??? Yes (Last tested 1.1.10) untested ??? untested ???

(1) requirements: CSWautomake ≥ 1.11.1 / pkg://openindiana.org/developer/build/automake-111

Nota bene Important Note: Because of changes in VLC making xcb mandatory, video output modules relying on X11/XCB can't work until Solaris ships libxcb. Video output is currently done using SDL and will open on a separate window. Blastwave latest SDL builds uses xcb and are also unusable (referenced by sdl/aout). Configuring --disable-sdl makes builds possible, but you'll lose the sdl video output module too.
Up-to-date Binary Packages

(20150514) A few repositories with binary packages exist (including QT). If you want to build exactly those packages yourself or report packaging bugs, then please check out the instructions on http://pkgbuild.wiki.sourceforge.net

If you want to directly install binary packages, then follow the instructions in the links below. The IPS repository setup instructions are listed there.

VLC 2.1.5 for OpenIndiana OI151a8 / OI151a9: http://sfe.opencsw.org/localhostoi151a8 (hosting kindly provided by the OpenCSW project but content is solely from SFE project)

VLC 2.1.5 Oracle Solaris 11™ http://sfe.opencsw.org/localhosts11 (hosting kindly provided by the OpenCSW project but content is solely from SFE project)

Building on OpenIndiana

Config & Build process required packages

Start by adding the extra repositories:

(outdated!) pkg set-publisher -p http://pkg.openindiana.org/sfe
(outdated!) pkg set-publisher -p http://pkg.openindiana.org/sfe-encumbered

Required packages for build:

pkg:/developer/build/automake-110
pkg:/developer/build/autoconf
pkg-config
pkg:/developer/gnome/gettext
pkg:/developer/build/libtool

For modules:

pkg:/library/video/ffmpeg@0.8.5-0.151.1
pkg:/library/desktop/g++/qt@4.7.3-0.151.1
Setting up your environment
Configure

OpenSolaris (Deprecated)

Mostly follows Solaris instructions.

Note that despite the configure stage could be configured to call GNU's ld, the official gcc build always rely on collect2 and call the Sun linker.

If you get undefined retain-symbol-file errors, your path haven't been fixed for the configure step (must look into /usr/ccs/bin/ first) and the build process is applying gnu's options to sun's linker.

To use GNU's linker (optional): Either use the LD_ALTEXEC=/opt/gnu/bin/gld environment variable, or use a custom gcc build to use /opt/gnu/bin/gld. (vlc would fail on some gld only options like retain-symbols-file)

( your gcc -v output must not contain: --with-ld=/usr/ccs/bin/ld --without-gnu-ld )

An alternative to LD_ALTEXEC would be to symlink /usr/ccs/bin/ld to /opt/gnu/bin/gld

Config & Build process required packages

Blastwave's additional packages

CSWfaac
CSWfaad2
CSWffmpeglib
CSWgcc4corert
CSWgcc4g++rt
CSWggettext
CSWiconv
CSWisaexec
CSWlame
CSWlibogg
CSWlibxcbdev
CSWncurses
CSWpkgutil
CSWstl4
CSWsunmath
CSWtheora
CSWvorbis
CSWx264
CSWxvid
CSWzlib
Setting up your environment

For Sun Studio

export PATH=/usr/ccs/bin:/opt/sunstudio12.1/bin:/opt/csw/bin:/usr/xpg4/bin:/usr/sbin:/usr/bin:/usr/sfw/bin:/usr/ccs/bin:/usr/ucb 
export LD_LIBRARY_PATH=/opt/sunstudio12.1/lib:/usr/openwin/lib/X11/:/opt/kde4/lib
export PKG_CONFIG_PATH=/opt/kde4/lib/pkgconfig:/opt/csw/lib/pkgconfig/
export CFLAGS="-D _XPG4_2 -D __SunOS -D __STDC_ISO_10646__ -D __EXTENSIONS__ -features=extensions -fast"
export CXXFLAGS=$CFLAGS
export CCC=/opt/sunstudio12.1/bin/CC CC=/opt/sunstudio12.1/bin/cc MAKE=gmake

For GCC

Untested. See Solaris/Sparc.

Configure

Bootstrap has no problems since Osol uses bash.

./configure --disable-libgcrypt --disable-remoteosd --disable-glx --disable-lua --disable-mad --disable-swscale --disable-postproc --disable-a52 --disable-fribidi --with-gnu-ld=no --enable-qt4 --disable-xcb

Solaris 10, x86

To be done.

Solaris 10, SPARC

Sparc builds outside GCC, are currently unstable.

  • Many bugs fixed (until now).
  • all shells must point to /usr/xpg4/bin/sh instead of /bin/sh (not fully POSIX) (tip: CONFIG_SHELL=/usr/xpg4/bin/sh)
  • bootstrapping requires to change subprocess shell (see #Bootstrapping below)
  • filesystem.c needs to be patched for NAME_MAX

Blocking:

  • Lots of if (p==NULL) msgDbg("foo %s", p) in the code segfaults in multiple places. Developers have assumed that %s is fixed as "(null)" like Glibc does. Not available on sparc.
  • crashes at network/httpd.c at poll() level.
Boostrapping process required packages

Some old packages exists [1]

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
Config & Build process required packages
CSWlua  lua - a powerful light-weight programming language
        (sparc) 5.1.3,REV=2008.04.29
**
CSWffmpeg  ffmpeg - very fast video and audio converter (includes libavcodec) - binaries
           (sparc) 0.4.9,REV=2008.06.03_rev=svn12629
**
CSWliba52  liba52 - free ATSC A/52 stream decoder
           (sparc) 0.7.4,REV=2007.03.05
**
CSWlibmad  libmad - MPEG Audio Decoder
           (sparc) 0.15.1,REV=2005.03.26_rev=b
**
CSWlibpthreadstubs  libpthreadstubs - pthread stubs not provided by native libc
                    (sparc) 0.1,REV=2008.11.16
**
CSWx264             x264 - H264/AVC video encoder
                    (sparc) 1.0.0,REV=2009.12.13
**
CSWlibxcb  libxcb - The XCB library
           (sparc) 1.1,REV=2008.11.16
CSWlibxcbdev  libxcb_dev - The XCB library
              (sparc) 1.1,REV=2008.11.16
CSWlibxau     libxau - X11 authorisation library
              (sparc) 1.0.4,REV=2008.11.17
CSWlibxaudev  libxau_dev - X11 authorisation library
              (sparc) 1.0.4,REV=2008.11.17
CSWxproto  xproto - xproto
           (sparc) 7.0.14,REV=2008.11.15
CSWlibxdmcp     libxdmcp - X11 authorisation library
                (sparc) 1.0.2,REV=2008.11.16
CSWlibxdmcpdev  libxdmcp_dev - X11 authorisation library
                (sparc) 1.0.2,REV=2008.11.16
CSWfribidi  fribidi - a free implementation of the Unicode Bidirectional Algorithm
            (sparc) 0.19.2,REV=2009.09.25
**
CSWqt  qt - A Cross-platform application framework for desktop and embedded development
       (sparc) 4.4.3,REV=2009.01.16

Sun Studio: We needed to build those up to date packages (installed in /opt/vlc, as seen in configuration)

VLCQt
VLCflac
VLClibxcb-devel
VLClibxcb
VLClua
VLCx264
VLCxcbproto
VLCxcbutil
Setting up your environment

For Sun Studio Assuming compiler in /opt/sunstudio12.1 and some customly built packages in /opt/vlc

# Required for bootstrap 
export ACLOCAL_ARGS="-I /opt/csw/share/aclocal/" 

# Required for configure 
export PATH=/opt/sunstudio12.1/bin::/opt/vlc/bin:/opt/csw/bin:/usr/xpg4/bin:/usr/sbin:/usr/bin:/usr/sfw/bin:/usr/ccs/bin:/usr/ucb 

export LD_LIBRARY_PATH=/opt/vlc/lib:/opt/sunstudio12.1/lib:/opt/csw/lib
#:/opt/SUNWmlib/lib:/usr/openwin/sfw/lib

export PKG_CONFIG_PATH=/opt/vlc/lib/pkgconfig:/opt/csw/lib/pkgconfig:/opt/vlc/qt/lib/pkgconfig:/usr/local/lib/pkgconfig 

export LUA_LIBS='-L/opt/vlc/lib -llua' LUA_CFLAGS='-I/opt/vlc/include'

export MAKE=gmake 
export CONFIG_SHELL='/usr/xpg4/bin/sh' 
export CCC=/opt/sunstudio12.1/bin/CC CC=/opt/sunstudio12.1/bin/cc MAKE=gmake

export XLIB_XCB_CFLAGS='-I/opt/vlc/include/xcb/' XLIB_XCB_LIBS='-L/opt/vlc/lib/'

# -D_XPG4_2 required for non-sparc code compatible network structs
export CFLAGS="-I/opt/sunstudio12.1/include -I/usr/include -features=extensions -D _XPG4_2 -D __SunOS -D __STDC_ISO_10646__ -D __EXTENSIONS__" 
export CXXFLAGS="-I/opt/sunstudio12.1/include -features=extensions -D _XPG4_2 -D __SunOS -D __STDC_ISO_10646__ -D __EXTENSIONS__"

Using GCC Assuming some customly built packages in /opt/vlc

# Required for bootstrap 
export ACLOCAL_ARGS="-I /opt/csw/share/aclocal/" 

# Required for configure
export PATH=/opt/vlc/bin:/opt/csw/bin:/usr/xpg4/bin:/usr/sbin:/usr/bin:/usr/sfw/bin:/usr/ccs/bin:/usr/ucb 

export LD_LIBRARY_PATH=/opt/vlc/lib:/opt/csw/lib:/opt/SUNWmlib/lib:/usr/openwin/sfw/lib

export PKG_CONFIG_PATH=/opt/vlc/lib/pkgconfig:/opt/csw/lib/pkgconfig:/opt/vlc/qt/lib/pkgconfig:/usr/local/lib/pkgconfig 

export LUA_LIBS='-L/opt/vlc/lib -llua' LUA_CFLAGS='-I/opt/vlc/include'

export MAKE=gmake 
export CONFIG_SHELL='/usr/xpg4/bin/sh'

# -D_XPG4_2 required for non-sparc code compatible network structs
export CFLAGS="-D _XPG4_2 -D __SunOS -D __STDC_ISO_10646__ -D __EXTENSIONS__" 
export CXXFLAGS=$CFLAGS
Bootstrapping

Bootstrap 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
Configure
/usr/xpg4/bin/sh configure  --with-a52=/opt/csw/ --with-mad=/opt/csw/ --disable-libgcrypt --disable-remoteosd --disable-skins2 --disable-glx

--with-gnu-ld might also be required (check configure result!)

Sun Studio: Add --disable-qt4 if required. (Qt 4.6.0 Currently fails)

Qt4 Interface module

Trolltech only supports SunStudio builds. QT4 Interface is mainly C++, and creates ABI dependencies with Qt libs. Kde-solaris (bionicmutton) project packages offers the Sun ABI. If you wish to build the Qt4 Module, you need to build vlc with SunStudio, or build your own Qt library with GCC.

You should run into a without prototype 'wcsstr' issue in /opt/sunstudio12.1/prod/include/CC/Cstd/rw/traits
Only fix known: Replace wcsstr with wcswcs in that file.

libxcb

Libxcb must currently be disabled or you'll need to use custome build as there's no official support. It might make it into the official repository as the package went past the fasttrack process.

Fully patched code repository

All patches are on this fork. (until they make it into the main repository)

git clone git://repo.or.cz/vlc/solaris.git vlcsolaris

Patches on master branch are kept on top of this fork using rebase and forced pushes. Don't expect to pull later updates without rebasing.