Llink:Compiling: Difference between revisions
No edit summary |
No edit summary |
||
Line 1: | Line 1: | ||
'''WARNING; This page needs updating soon, for libdvdread->libdvdnav changes''' | '''WARNING; This page needs updating soon, for libdvdread->libdvdnav changes''' | ||
Line 17: | Line 16: | ||
The '''file''' command is not necessary, but it shows you where we expect the binary to end up. | The '''file''' command is not necessary, but it shows you where we expect the binary to end up. | ||
# ./configure --without-openssl | |||
# ./configure --without-openssl | |||
# make | # make | ||
=== Windows === | === Windows === | ||
Line 28: | Line 24: | ||
Download Visual Devstudio C++ 2008 from (insert microsoft link) and install. Download source package, and load the '''llink.vcproj''' inside "win32/" directory. Change the default project from '''libdirlist''' to '''llink''' and hit compile. | Download Visual Devstudio C++ 2008 from (insert microsoft link) and install. Download source package, and load the '''llink.vcproj''' inside "win32/" directory. Change the default project from '''libdirlist''' to '''llink''' and hit compile. | ||
=== Cross Compile === | === Cross Compile === | ||
Line 44: | Line 35: | ||
/usr/local/mips/bin/mipsel-linux-gcc | /usr/local/mips/bin/mipsel-linux-gcc | ||
Great. If you want to have | Great. If you want to have '''libdvdcss''' we need to compile that first. If you do not, you can skip this step. | ||
# cd src/libdvdcss-1.2. | # cd src/libdvdcss-1.2.10/ | ||
# ./configure --host=mipsel-linux-uclibc --enable-static | # ./configure --host=mipsel-linux-uclibc --enable-static | ||
# make | # make | ||
Line 54: | Line 45: | ||
(a few other files, but at least one shows its compiled as MIPS) | (a few other files, but at least one shows its compiled as MIPS) | ||
Note that we have to use the full path '''/home/lundman/src/''' to get to the '''libdvdcss-1.2. | Note that we have to use the full path '''/home/lundman/src/''' to get to the '''libdvdcss-1.2.10/src''' includes. | ||
'''Compiling llink'''. Now it is time to compile '''llink''' itself. The version number might change of course. | '''Compiling llink'''. Now it is time to compile '''llink''' itself. The version number might change of course. | ||
# cd src/llink-2.0 | # cd src/llink-2.2.0/ | ||
# ./configure --host=mipsel-linux --enable-static --without-openssl | # ./configure --host=mipsel-linux --enable-static --without-openssl --with-dvdcss-tree=/home/lundman/src/libdvdcss-1.2.10/ | ||
# make | # make | ||
# file src/llink | # file src/llink | ||
src/llink: ELF 32-bit LSB executable, MIPS, version 1 (SYSV), statically linked, not stripped | src/llink: ELF 32-bit LSB executable, MIPS, version 1 (SYSV), statically linked, not stripped | ||
Naturally, if you do not want ''' | Naturally, if you do not want '''libdvdcss''' go with the shorter line: | ||
# ./configure --host=mipsel-linux --enable-static --without-openssl | # ./configure --host=mipsel-linux --enable-static --without-openssl | ||
# make | # make |
Revision as of 00:35, 28 October 2008
WARNING; This page needs updating soon, for libdvdread->libdvdnav changes
Compiling Instructions
When compiling llink you need to chose if you want to use OpenSSL, libdvdread and libdvdcss. Generally we have no reason to use SSL with link so I will skip this compile time step.
Unix, OsX and other native compiles
The default should work.
# ./configure --without-openssl # make # file src/llink
The file command is not necessary, but it shows you where we expect the binary to end up.
# ./configure --without-openssl # make
Windows
Download Visual Devstudio C++ 2008 from (insert microsoft link) and install. Download source package, and load the llink.vcproj inside "win32/" directory. Change the default project from libdirlist to llink and hit compile.
Cross Compile
For example when compiling for the PCH A-100, you download the toolchain that applies to your arch. In this case, it installs into /usr/local/mips/ with a gcc binary named as /usr/local/mips/bin/mipsel-linux-gcc.
First make sure your PATH is updated so that it can find the executable.
# export PATH=$PATH:/usr/local/mips/bin/ # which mipsel-linux-gcc /usr/local/mips/bin/mipsel-linux-gcc
Great. If you want to have libdvdcss we need to compile that first. If you do not, you can skip this step.
# cd src/libdvdcss-1.2.10/ # ./configure --host=mipsel-linux-uclibc --enable-static # make # file src/.libs/libdvdcss.* src/.libs/libdvdcss.a: current ar archive src/.libs/libdvdcss.so.2.0.8: ELF 32-bit LSB shared object, MIPS, version 1 (SYSV), not stripped (a few other files, but at least one shows its compiled as MIPS)
Note that we have to use the full path /home/lundman/src/ to get to the libdvdcss-1.2.10/src includes.
Compiling llink. Now it is time to compile llink itself. The version number might change of course.
# cd src/llink-2.2.0/ # ./configure --host=mipsel-linux --enable-static --without-openssl --with-dvdcss-tree=/home/lundman/src/libdvdcss-1.2.10/ # make # file src/llink src/llink: ELF 32-bit LSB executable, MIPS, version 1 (SYSV), statically linked, not stripped
Naturally, if you do not want libdvdcss go with the shorter line:
# ./configure --host=mipsel-linux --enable-static --without-openssl # make