Name | Modified | Size | Downloads / Week |
---|---|---|---|
Parent folder | |||
boost.sh | 2021-05-01 | 2.2 kB | |
build-all.sh | 2021-05-01 | 2.5 kB | |
download-all.sh | 2021-05-01 | 2.6 kB | |
enblend.sh | 2021-05-01 | 1.0 kB | |
fftw.sh | 2021-05-01 | 468 Bytes | |
gettext.sh | 2021-05-01 | 1.3 kB | |
gsl.sh | 2021-05-01 | 834 Bytes | |
lcms2.sh | 2021-05-01 | 927 Bytes | |
libexiv2.sh | 2021-05-01 | 1.0 kB | |
libffi.sh | 2021-05-01 | 972 Bytes | |
libglew.sh | 2021-05-01 | 918 Bytes | |
libglib2.sh | 2021-05-01 | 1.3 kB | |
libjpeg.sh | 2021-05-01 | 987 Bytes | |
libomp.sh | 2021-05-01 | 444 Bytes | |
libpng.sh | 2021-05-01 | 1.1 kB | |
libtiff.sh | 2021-05-01 | 1.1 kB | |
LICENSE.txt | 2021-05-01 | 1.7 kB | |
openexr.sh | 2021-05-01 | 704 Bytes | |
pano13.sh | 2021-05-01 | 1.5 kB | |
SetEnv.sh | 2021-05-01 | 2.0 kB | |
vigra.sh | 2021-05-01 | 391 Bytes | |
wxmac.sh | 2021-05-01 | 1.5 kB | |
Totals: 22 Items | 27.6 kB | 0 |
Building a self contained macOS bundle for distribution
Install cmake and llvm from homebrew (OpenMP support is missing from Xcode's clang)
$ brew install llvm cmake
Build the external programs (see in folder ExternalProgramms) by running download-all.sh and build-all.sh
Create and cd
into a folder next to the "hugin" source folder (i.e. "build"):
someFolder
├── hugin (the source folder)
└── build (cd into this folder)
Then run:
$ ../hugin/mac/configure-bundle.sh
$ make
For packaging (to create a dmg image):
$ make package
Styling the dmg can sometimes be a bit fiddly, retry if it doesn't work correctly.
You can add -DHUGIN_BUILDER="YOUR NAME" to the cmake call
http://wiki.panotools.org/Hugin_Compiling_OSX might also be of interest.
Problems
You might need to adjust the macOS SDK versions in these files:
mac/ExternalPrograms/scripts/SetEnv.sh
mac/configure-bundle.sh
Make sure that CMake doesn't pick your system libraries (there might be more here, maybe check CMakeCache.txt after running CMake and ensure that no library in /usr/local/lib/...
was selected).
Changing the minimum macOS version
Change the version in these files
mac/ExternalPrograms/scripts/SetEnv.sh
mac/configure-bundle.sh
You might also want to change the -march
flag to target architecture used by the oldest Mac supported by the chosen minimum version.