Builds fine and runs fine (under Hugin) on my Ubuntu derived box. GalliumOS
3.1 (Ubuntu 18.04 LTS)
(Linux edgar 4.16.18-galliumos #1 SMP PREEMPT Sun Jun 23 04:14:45 UTC 2019
x86_64 x86_64 x86_64 GNU/Linux)

On MacOS Catalina I had to replace in multiblend.cpp the following:
#include <algorithm>
#include <malloc.h>

#include "tiffio.h"
#include "jpeglib.h"

with:
#include <algorithm>
#ifdef __APPLE__
  #define memalign(a,b) malloc((b))
#else
  #include <malloc.h>
#endif

#include "tiffio.h"
#include "jpeglib.h"

Please correct that before final 2.0 release.
With that it builds fine on MacOS and runs fine under Hugin. I now used
Macports instead of homebrew, as I needed macports for pv.
See attached your modified build.txt.
I also created a distributable version:
https://mega.nz/file/VEkRlKLY#zt2oymaxcqi1gK-XrKzE0fGiPs8W3lYzXL2yuC89DFM
Unzip the zip with paths (!) to some location of your liking. It will
create a folder multiblend-dist and inside you will find multiblend and
it's 3rd party necessary libraries.
In Hugin preferences under programs select "use other enblend program" and
give the full path to multiblend.

Script to create a distributable multiblend (using macports):
https://mega.nz/file/sc8hXIrT#6SYq8Dbei8KZZxocDQ9iSidv__qDJjc7RMaNCwTRFIo
Create a "mac-dist" subfolder in your build directory and use the script
from there. Read the info in the script before use.
Of course this script already expects a compiled multiblend in the build
folder.

Hoi,
Harry

-- 
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 [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/hugin-ptx/CAGARPptzPVhDz%3DcRJXrhOuuiMpAN6TYGiPm91AWMRLYdZbod0Q%40mail.gmail.com.
The following command should work to build Multiblend on Linux:

  g++ -msse4.1 -pthread -ffast-math -Ofast -o multiblend multiblend.cpp -lm 
-lpng -ltiff -ljpeg

Harry van der Wolf suggests the following for Mac:
- for HomeBrew
  [install home brew]
  brew install jpeg-turbo libjpeg libpng libtiff
  gcc -I/usr/local/opt/jpeg-turbo/include -L/usr/local/opt/jpeg-turbo/lib 
-std=c++14 -msse4.1 -pthread -ffast-math -Ofast -o multiblend multiblend.cpp 
-lm -lpng -ltiff -ljpeg -lstdc++


- for MacPorts
  [install MacPorts using the pkg for your MacOS version]
  sudo port -v selfupdate
  sudo port install jpeg
  sudo port install libjpeg-turbo
  sudo port install tiff
  sudo port install libpng
  gcc -I/opt/local/include -L/opt/local/lib -std=c++14 -msse4.1 -pthread 
-ffast-math -Ofast -o multiblend multiblend.cpp -lm -lpng -ltiff -ljpeg -lstdc++

Reply via email to