Follow the instructions in mac/README.md. The biggest thing here is
compiling the external programs. I made a patch file with all the
changes I made to get them to download and build correctly, which I've
attached to this email. You might need to make more changes to e.g.
outdated URLs.
Unfortunately, it's been a while since I tried to do this, so there
might be caveats I'm not remembering. If you run into trouble, I can try
and help.
On 3/30/23 06:40, dudek53 wrote:
Hi! I am interested to know more about compiling for mac. You seem to
have got that going. I was hoping to get it to compile on my Macbook
pro M1. Do you have any hints or is it ok if I ask you along the way
about how to go on with compiling? My goal is to fix the graphic card
glitch when enabling --gpu.
All the best
/Daniel
--
A list of frequently asked questions is available at:
http://wiki.panotools.org/Hugin_FAQ
---
You received this message because you are subscribed to the Google Groups "hugin and other free panoramic software" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to hugin-ptx+unsubscr...@googlegroups.com.
To view this discussion on the web visit
https://groups.google.com/d/msgid/hugin-ptx/e71f1fd3-74a0-6eea-68dc-41b66a2a8d2d%40gmail.com.
Binary files oldExternalPrograms/.DS_Store and newExternalPrograms/.DS_Store differ
diff -ur --exclude=repository oldExternalPrograms/patches/enblend.patch newExternalPrograms/patches/enblend.patch
--- oldExternalPrograms/patches/enblend.patch 2019-11-25 09:54:49.000000000 -0700
+++ newExternalPrograms/patches/enblend.patch 2022-06-12 12:13:13.000000000 -0700
@@ -10,18 +10,6 @@
foreach(_v_l ${_version_lines})
if(_v_l MATCHES "^\([0-9]+\)\\.\([0-9]+\)\(.*\)")
set(ENBLEND_MAJOR_VERSION ${CMAKE_MATCH_1})
-diff --git a/ENBLEND_VERSION b/ENBLEND_VERSION
-new file mode 100644
---- /dev/null
-+++ b/ENBLEND_VERSION
-@@ -0,0 +1,1 @@
-+4.2.1-f0304648cc0f
-diff --git a/VERSION b/VERSION
-deleted file mode 100644
---- a/VERSION
-+++ /dev/null
-@@ -1,1 +0,0 @@
--4.2.1-f0304648cc0f
diff --git a/src/CMakeLists.txt b/src/CMakeLists.txt
--- a/src/CMakeLists.txt
+++ b/src/CMakeLists.txt
diff -ur --exclude=repository oldExternalPrograms/scripts/SetEnv.sh newExternalPrograms/scripts/SetEnv.sh
--- oldExternalPrograms/scripts/SetEnv.sh 2021-02-08 11:32:44.000000000 -0700
+++ newExternalPrograms/scripts/SetEnv.sh 2022-06-14 10:52:22.000000000 -0700
@@ -26,7 +26,7 @@
#####################################################################
# number of jobs that make can use, probably same as the number of CPUs.
-PROCESSNUM=$(sysctl -n hw.physicalcpu)
+PROCESSNUM=$(sysctl -n hw.ncpu)
DIR="$(cd "$(dirname "$BASH_SOURCE")" && pwd)"
REPOSITORYDIR="$(realpath "$DIR/..")/repository" # "..../mac/ExternalPrograms/repository"
diff -ur --exclude=repository oldExternalPrograms/scripts/download-all.sh newExternalPrograms/scripts/download-all.sh
--- oldExternalPrograms/scripts/download-all.sh 2021-02-05 09:54:43.000000000 -0700
+++ newExternalPrograms/scripts/download-all.sh 2022-06-12 13:33:56.000000000 -0700
@@ -29,15 +29,15 @@
rm -rf _build
mkdir -p _src && cd _src
-download "boost" "https://dl.bintray.com/boostorg/release/1.75.0/source/boost_1_75_0.tar.gz"
-download "exiv2" "https://www.exiv2.org/builds/exiv2-0.27.2-Source.tar.gz"
+download "boost" "https://boostorg.jfrog.io/artifactory/main/release/1.75.0/source/boost_1_75_0.tar.bz2"
+download "exiv2" "https://github.com/Exiv2/exiv2/releases/download/v0.27.5/exiv2-0.27.5-Source.tar.gz"
download "fftw" "http://www.fftw.org/fftw-3.3.8.tar.gz"
download "gettext" "https://ftp.gnu.org/pub/gnu/gettext/gettext-0.20.1.tar.gz"
download "glew" "https://sourceforge.net/projects/glew/files/glew/2.1.0/glew-2.1.0.zip/download" "glew-2.1.0.tgz"
download "glib" "https://ftp.gnome.org/pub/gnome/sources/glib/2.59/glib-2.59.0.tar.xz"
download "gsl" "http://ftpmirror.gnu.org/gsl/gsl-2.6.tar.gz"
download "openexr" "https://github.com/AcademySoftwareFoundation/openexr/archive/v2.5.4.tar.gz" "openexr-v2.5.4.tar.gz"
-download "exiftool" "http://owl.phy.queensu.ca/~phil/exiftool/Image-ExifTool-11.76.tar.gz"
+download "exiftool" "https://exiftool.org/Image-ExifTool-12.42.tar.gz"
download "jpeg" "http://www.ijg.org/files/jpegsrc.v9c.tar.gz"
download "lcms2" "https://sourceforge.net/projects/lcms/files/lcms/2.9/lcms2-2.9.tar.gz/download" "lcms2-2.9.tar.gz"
download "libffi" "ftp://sourceware.org/pub/libffi/libffi-3.2.1.tar.gz"
diff -ur --exclude=repository oldExternalPrograms/scripts/enblend.sh newExternalPrograms/scripts/enblend.sh
--- oldExternalPrograms/scripts/enblend.sh 2021-02-08 11:32:44.000000000 -0700
+++ newExternalPrograms/scripts/enblend.sh 2022-06-12 12:13:42.000000000 -0700
@@ -17,6 +17,7 @@
# -------------------------------
# prevent naming conflict with clang headers
+mv VERSION ENBLEND_VERSION
patch -p1 -N < ../../patches/enblend.patch
LDFLAGS="-L$REPOSITORYDIR/lib $LDARGS" \
diff -ur --exclude=repository oldExternalPrograms/scripts/libomp.sh newExternalPrograms/scripts/libomp.sh
--- oldExternalPrograms/scripts/libomp.sh 2021-02-08 11:32:44.000000000 -0700
+++ newExternalPrograms/scripts/libomp.sh 2022-06-10 15:39:44.000000000 -0700
@@ -10,5 +10,6 @@
make $MAKEARGS || fail "failed at make step of $ARCH";
make install || fail "make install step of $ARCH";
-install_name_tool -id "$REPOSITORYDIR/lib/libiomp5.dylib" "$REPOSITORYDIR/lib/libiomp5.dylib"
-ln -sf "libiomp5.dylib" "$REPOSITORYDIR/lib/libomp.dylib"
+#install_name_tool -id "$REPOSITORYDIR/lib/libiomp5.dylib" "$REPOSITORYDIR/lib/libiomp5.dylib"
+install_name_tool -id "$REPOSITORYDIR/lib/libomp.dylib" "$REPOSITORYDIR/lib/libomp.dylib"
+#ln -sf "libiomp5.dylib" "$REPOSITORYDIR/lib/libomp.dylib"