-
Notifications
You must be signed in to change notification settings - Fork 89
Build and install from source code
In order to build bomi, you need the following tools:
-
g++
orclang
which supports C++14 pkg-config
python
-
git
if you try to build from git repository
You have to prepare the following libraries, too:
- Qt5 >= 5.2
- OpenGL >= 2.1 with framebuffer object support
- FFmpeg (libav is not supported) (*)
- libavformat >= 55.12.0 (*)
- libavcodec >= 55.34.1 (*)
- libavutil >= 52.48.101 (*)
- libavfilter (*)
- libpostproc (*)
- libswresample (*)
- libswscale (*)
- chardet (*)
- libmpg123
- libass
- dvdread dvdnav
- libbluray
- icu-uc
- xcb xcb-icccm x11
- libva libva-glx libva-x11
- vdpau
- alsa
Each item corresponds to its package name for pkg-config
command except Qt and OpenGL.
Some packages marked with (*) can be in-tree-built.
In the below description, $
means that you have to input the command in termnal/console
where source code exists.
At first, prepare the source code.
- Download the latest source code tarball and unpack
- Or, clone the git repository if you want
FFmpeg and chardet packages cannot be prepared easily for some Linux ditributions. For such case, you can build them with in-tree source.
If you don't need in-tree build of FFmpeg and chardet, skip this section.
- To build FFmpeg in-tree, run the following:
$ ./download-ffmpeg
$ ./build-ffmpeg
- To build chardet in-tree, run the following:
$. /download-libchardet
$. /build-libchardet
If you have any problem when building, please check Troubleshooting section. It may be helpful to check what you can configure using the following command:
$ ./configure --help
If you want to try bomi without install, run the following commands in order to build bomi:
$ ./configure
$ make
The executable will be located at ./build/bomi
in source code directory.
To install bomi, you have to decide the path to install.
It can be spcified by --prefix
option.
By default, --prefix=/usr/local
will be applied if you don't specify it which results to locate the executable at /usr/local/bin/bomi
and other files (skins, translations, etc.) under /usr/local/share
For instance, if you want to install into a directory named bomi
in your home directory, run the following:
$ ./configure --prefix=${HOME}/bomi
$ make
$ make install
You will find the executable at bomi/bin/bomi
in your home directory.
Usually, when build a package, you need to specify the fake root system when run make install
.
This can be accomplished by giving DEST_DIR
option to make install
.
Here's a snippet from PKGBUILD
for Arch Linux as an example:
build() {
cd "$srcdir/$pkgname-$pkgver"
./configure --prefix=/usr --enable-jack --enable-cdda
make
}
package() {
cd "$srcdir/$pkgname-$pkgver"
make DEST_DIR=$pkgdir install
}
where $pkgdir
is the fake root system. jack
and cdda
support is also enabled in this example.
Under construction