### Install qmake Source: https://wiki.panotools.org/Build_Panini_on_Other_Unixes Install the qt4-qmake package if it is missing. ```bash apt-get -y install qt4-qmake ``` -------------------------------- ### Install RPM build tools Source: https://wiki.panotools.org/Hugin_Compiling_Fedora Setup commands to prepare the Fedora system for building RPM packages. ```bash yum groupinstall "Development Tools" yum install rpmdevtools ``` -------------------------------- ### Compile and install a library Source: https://wiki.panotools.org/index.php?action=edit&oldid=10581&title=Hugin_Compiling_Ubuntu Standard sequence for building and installing software from source. ```bash make ``` ```bash sudo make install sudo ldconfig ``` -------------------------------- ### CMake INSTALL error output Source: https://wiki.panotools.org/Talk%3AHugin_SDK_%28MSVC_2013%29 Example of an MSVC build error occurring when CMake attempts to install files to a restricted directory like C:/Program Files. ```text ------ Build started: Project: INSTALL, Configuration: Release x64 ------ 7> -- Install configuration: "Release" 7> CMake Error at cmake_install.cmake:50 (file): 7> file cannot create directory: C:/Program Files/zlib/lib. Maybe need 7> administrative privileges. 7> 7> 7>C:\Program Files (x86)\MSBuild\Microsoft.Cpp\v4.0\V120\Microsoft.CppCommon.targets(132,5): error MSB3073: The command "setlocal 7>C:\Program Files (x86)\MSBuild\Microsoft.Cpp\v4.0\V120\Microsoft.CppCommon.targets(132,5): error MSB3073: "C:\Program Files (x86)\CMake\bin\cmake.exe" -DBUILD_TYPE=Release -P cmake_install.cmake 7>C:\Program Files (x86)\MSBuild\Microsoft.Cpp\v4.0\V120\Microsoft.CppCommon.targets(132,5): error MSB3073: if %errorlevel% neq 0 goto :cmEnd 7>C:\Program Files (x86)\MSBuild\Microsoft.Cpp\v4.0\V120\Microsoft.CppCommon.targets(132,5): error MSB3073: :cmEnd 7>C:\Program Files (x86)\MSBuild\Microsoft.Cpp\v4.0\V120\Microsoft.CppCommon.targets(132,5): error MSB3073: endlocal & call :cmErrorLevel %errorlevel% & goto :cmDone 7>C:\Program Files (x86)\MSBuild\Microsoft.Cpp\v4.0\V120\Microsoft.CppCommon.targets(132,5): error MSB3073: :cmErrorLevel 7>C:\Program Files (x86)\MSBuild\Microsoft.Cpp\v4.0\V120\Microsoft.CppCommon.targets(132,5): error MSB3073: exit /b %1 7>C:\Program Files (x86)\MSBuild\Microsoft.Cpp\v4.0\V120\Microsoft.CppCommon.targets(132,5): error MSB3073: :cmDone 7>C:\Program Files (x86)\MSBuild\Microsoft.Cpp\v4.0\V120\Microsoft.CppCommon.targets(132,5): error MSB3073: if %errorlevel% neq 0 goto :VCEnd 7>C:\Program Files (x86)\MSBuild\Microsoft.Cpp\v4.0\V120\Microsoft.CppCommon.targets(132,5): error MSB3073: :VCEnd" exited with code 1. ``` -------------------------------- ### Example SVN error messages Source: https://wiki.panotools.org/Build_Panini_on_Other_Unixes Typical output when subversion is not installed during the build process. ```text sh: 1: svnversion: not found Project MESSAGE: could not run svnversion -- is it installed? ``` -------------------------------- ### Configure and build environment Source: https://wiki.panotools.org/index.php?diff=prev&oldid=15571&title=Development_of_Open_Source_tools Set up the build directory and run CMake to update the changelog. ```bash cd .. mkdir hugin.hg-build cd hugin.hg-build cmake -DUPDATE_CHANGELOG=1 ../hugin.hg cd ../hugin.hg ``` -------------------------------- ### Install Qt4 development tools Source: https://wiki.panotools.org/Build_Panini_on_Other_Unixes Install the necessary Qt4 development tools via apt-get. ```bash apt-get -y install qt4-dev-tools ``` -------------------------------- ### Start CPAN Shell Source: https://wiki.panotools.org/Hugin_Compiling_Ubuntu Launch the CPAN interactive shell for installing Perl modules. ```bash sudo cpan ``` -------------------------------- ### GET api.php?action=rsd Source: https://wiki.panotools.org/api.php?action=help&modules=rsd Exports an RSD (Really Simple Discovery) schema for the MediaWiki installation. ```APIDOC ## GET api.php?action=rsd ### Description Exports an RSD (Really Simple Discovery) schema for the wiki. ### Method GET ### Endpoint api.php?action=rsd ### Request Example api.php?action=rsd ``` -------------------------------- ### Set MSYS MinGW Directory Source: https://wiki.panotools.org/Build_pano12_from_sourcecode Specify the installation directory for MinGW during the MSYS setup process. ```text C:\MinGW ``` -------------------------------- ### Build, Sign, and Upload Source Package Source: https://wiki.panotools.org/Hugin_PPA Build the source package, sign it with a GPG key, and upload it to a PPA. ```bash dpkg-buildpackage -rfakeroot -uc -us -sa -S cd .. debsign -k$GPGKEY *.changes dput ppa:yuv/yuv-stuff *.changes ``` -------------------------------- ### Install and configure mock Source: https://wiki.panotools.org/Hugin_Compiling_Fedora Installs the mock build system and adds the current user to the mock group. ```bash yum install mock usermod -a -G mock myusername ```