====== Compiling Avidemux 2.6.x ====== Avidemux 2.6 is made of 3 components: * The core modules: A set of dynamic libraries hosting core components. * The application modules: Qt4 or Qt5, and CLI (command line). * The plug-in modules: Everything is a module in 2.6, so without plugins you can't do anything. The plugins either belong to the common part (they work with all UIs) or a specific part (they only work with one). * The settings modules : They contain templates/settings for some encoder (x264 mostly). ===== The simple way ===== Please look at the bootStrap.bash script that compiles, installs and builds automatically packages for Avidemux 2.6. ==== Packaging options ==== If you use --rpm, --deb or --tgz, bootStrap will automatically create the packages. Please note that they are incomplete (i.e. they do not contain proper dependencies and such). For RPM packaging, also note that the vanilla RPM as found in Fedora(nbsp)12 will not work (see cmake about that). ==== Target ==== By using --with-xxx or --without-xxx, you can specifically ask bootStrap.bash to build or not parts of Avidemux. There is an extra option to build with Qt5 //--enable-qt5// The xxx list is as follows: * **qt4:** Build the Qt4 UI (or Qt5 if --enable-qt5 is set) * **cli:** Build CLI * **core:** Build core * **plugins:** Build plugins **Example** Build .deb for debian/ubuntu, core + Qt4 + plugins bash bootStrap.bash --deb Build .deb for debian/ubuntu, core + Qt5 + plugins bash bootStrap.bash --deb --enable-qt5 Build .deb for debian/ubuntu, core + Qt5 + plugins + cli bash bootStrap.bash --deb --enable-qt5 --with-cli If you dont use --deb or --rpm, the result will be in the *install* folder. You can copy its content to /usr later. Do not install it elsewhere, it will not work. If you want to install it to /usr/local or /opt or ..., please edit the bootStrap.sh script. Note that the bootstrap script does not install anything by itself and does not require root privilege. ===== Requirement list (debian/ubuntu) ===== For core modules sudo apt-get install gcc g++ make cmake pkg-config libpng12-dev fakeroot yasm libsqlite3-dev build-essential For Qt **4** sudo apt-get install libqt4-dev For Qt **5** sudo apt-get install qttools5-dev-tools qtbase5-dev For common plugins sudo apt-get install libaften-dev libmp3lame-dev libx264-dev libfaad-dev libfaac-dev **Warning** If you want to create .debs, the cmake version bundled with some versions of ubuntu is buggy. Please build cmake from source (latest version) ===== Requirement list for Qt5 version(Fedora 20) ===== Core yum install pkgconfig fakeroot yasm yum install libpng zlib zlib-devel patch rpm-build yum install libsqlite3x-devel gcc-c++ Qt5 yum install qt5-qtbase-devel qt5-qttools-devel libxslt Then bash bootStrap.bash --rpm --enable-qt5 You must be sudoer