mirror of
https://github.com/Zeckmathederg/glfs.git
synced 2025-02-03 23:07:23 +08:00
• Lua-5.3.2 and VLC-2.2.2 need to be compiled with Lua compat 5.1
git-svn-id: svn://svn.linuxfromscratch.org/BLFS/trunk/BOOK@16972 af4574ff-66df-0310-9fd7-8a98e5e911e0
This commit is contained in:
parent
3bd40abd09
commit
ae5a702422
@ -119,40 +119,10 @@
|
||||
<sect2 role="installation">
|
||||
<title>Installation of Lua</title>
|
||||
|
||||
<para>
|
||||
Install <application>Lua</application> by running the following
|
||||
commands:
|
||||
</para>
|
||||
|
||||
<screen><userinput>patch -Np1 -i ../lua-&lua-version;-shared_library-1.patch &&
|
||||
|
||||
sed -i '/#define LUA_ROOT/s:/usr/local/:/usr/:' src/luaconf.h &&
|
||||
|
||||
make MYCFLAGS="-DLUA_COMPAT_5_1" linux</userinput></screen>
|
||||
|
||||
<para>
|
||||
To test the results, issue: <command>make test</command>.
|
||||
<quote>This will run the interpreter and print its version.</quote>.
|
||||
More comprehensive tests can be performed if you downloaded the "Test
|
||||
suite" tarball. Those tests need to be executed after the package is
|
||||
installed, thus we defer to describe then below.
|
||||
</para>
|
||||
|
||||
<para>
|
||||
Now, as the <systemitem class="username">root</systemitem> user:
|
||||
</para>
|
||||
|
||||
<screen role="root"><userinput>make INSTALL_TOP=/usr TO_LIB="liblua.so liblua.so.5.3 liblua.so.&lua-version;" \
|
||||
INSTALL_DATA="cp -d" INSTALL_MAN=/usr/share/man/man1 install &&
|
||||
|
||||
mkdir -pv /usr/share/doc/lua-&lua-version; &&
|
||||
cp -v doc/*.{html,css,gif,png} /usr/share/doc/lua-&lua-version;</userinput></screen>
|
||||
|
||||
<para>Some packages check for the <application>pkg-config</application> file
|
||||
for <application>Lua</application>. As the
|
||||
<systemitem class="username">root</systemitem> user:</para>
|
||||
for <application>Lua</application>, wich is created with:</para>
|
||||
|
||||
<screen role="root"><userinput>cat > /usr/lib/pkgconfig/lua.pc << "EOF"
|
||||
<screen role="root"><userinput>cat > lua.pc << "EOF"
|
||||
<literal>V=5.3
|
||||
R=&lua-version;
|
||||
|
||||
@ -175,6 +145,37 @@ Libs: -L${libdir} -llua -lm
|
||||
Cflags: -I${includedir}</literal>
|
||||
EOF</userinput></screen>
|
||||
|
||||
<para>
|
||||
Install <application>Lua</application> by running the following
|
||||
commands:
|
||||
</para>
|
||||
|
||||
<screen><userinput>patch -Np1 -i ../lua-&lua-version;-shared_library-1.patch &&
|
||||
|
||||
sed -i '/#define LUA_ROOT/s:/usr/local/:/usr/:' src/luaconf.h &&
|
||||
|
||||
make MYCFLAGS="-DLUA_COMPAT_5_2 -DLUA_COMPAT_5_1" linux</userinput></screen>
|
||||
|
||||
<para>
|
||||
To test the results, issue: <command>make test</command>.
|
||||
<quote>This will run the interpreter and print its version.</quote>.
|
||||
More comprehensive tests can be performed if you downloaded the "Test
|
||||
suite" tarball. Those tests need to be executed after the package is
|
||||
installed, thus we defer to describe then below.
|
||||
</para>
|
||||
|
||||
<para>
|
||||
Now, as the <systemitem class="username">root</systemitem> user:
|
||||
</para>
|
||||
|
||||
<screen role="root"><userinput>make INSTALL_TOP=/usr TO_LIB="liblua.so liblua.so.5.3 liblua.so.&lua-version;" \
|
||||
INSTALL_DATA="cp -d" INSTALL_MAN=/usr/share/man/man1 install &&
|
||||
|
||||
mkdir -pv /usr/share/doc/lua-&lua-version; &&
|
||||
cp -v doc/*.{html,css,gif,png} /usr/share/doc/lua-&lua-version; &&
|
||||
|
||||
install -v -m644 -D lua.pc /usr/lib/pkgconfig/lua.pc</userinput></screen>
|
||||
|
||||
<para>
|
||||
We are going to describe only the "Basic tests". Untar the tarball and
|
||||
change to the
|
||||
@ -196,10 +197,9 @@ EOF</userinput></screen>
|
||||
</para>
|
||||
|
||||
<para>
|
||||
<parameter>MYCFLAGS="-DLUA_COMPAT_5_1"</parameter>: This parameter
|
||||
enables building of the <application>Lua</application> 5.1
|
||||
functions into the shared library to allow applications which
|
||||
still require them to function properly.
|
||||
<envar>MYCFLAGS="-DLUA_COMPAT_5_2 -DLUA_COMPAT_5_1"</envar>: This
|
||||
environment variable includes compatibility layers with Lua 5.1 and 5.2
|
||||
in the build.
|
||||
</para>
|
||||
|
||||
</sect2>
|
||||
|
@ -48,9 +48,10 @@
|
||||
<para>February 14th, 2016</para>
|
||||
<itemizedlist>
|
||||
<listitem>
|
||||
<para>[krejzi] - Fixed Lua instructions to enable
|
||||
building of the Lua 5.1 compatibility functions. Fixes
|
||||
<ulink url="&blfs-ticket-root;7462">#7462</ulink>.</para>
|
||||
<para>[fernando] - Lua-5.3.2 and VLC-2.2.2 need to be compiled with
|
||||
Lua compat 5.1. Fixes
|
||||
<ulink url="&blfs-ticket-root;7462">#7462</ulink> and
|
||||
<ulink url="&blfs-ticket-root;7465">#7465</ulink>.</para>
|
||||
</listitem>
|
||||
<listitem>
|
||||
<para>[fernando] - Update to thunderbird-38.6.0. Fixes
|
||||
|
@ -219,6 +219,12 @@
|
||||
PKG_CONFIG_PATH="\
|
||||
`echo $PKG_CONFIG_PATH | sed 's@:/opt/qt5/lib/pkgconfig@@'`"</userinput></screen>
|
||||
|
||||
<para>
|
||||
If you wish to avoid thousands of annoying warnings, issue:
|
||||
</para>
|
||||
|
||||
<screen><userinput>sed -i 's/ifndef __FAST_MATH__/if 0/g' configure.ac</userinput></screen>
|
||||
|
||||
<para>
|
||||
Install <application>VLC</application> by running the following commands:
|
||||
</para>
|
||||
@ -241,9 +247,13 @@ OPENCV_LIBS="-L/usr/share/OpenCV" \
|
||||
./configure --prefix=/usr &&
|
||||
|
||||
sed -e '/seems to be moved/s/^/#/' \
|
||||
-i autotools/ltmain.sh libtool &&
|
||||
-i autotools/ltmain.sh libtool &&</userinput></screen>
|
||||
|
||||
make</userinput></screen>
|
||||
<para>
|
||||
In order to build with Lua 5.1 compatiblity, issue:
|
||||
</para>
|
||||
|
||||
<screen><userinput>CFLAGS='-fPIC -O2 -Wall -Wextra -DLUA_COMPAT_5_1' make </userinput></screen>
|
||||
|
||||
<para>
|
||||
Again, if both Qt4 and 5 are installed, restore
|
||||
|
Loading…
Reference in New Issue
Block a user