Compiling Multiblend in Linux (Mint.)

86 views
Skip to first unread message

Henk Tijdink

unread,
Jun 22, 2019, 4:30:53 PM6/22/19
to hugin and other free panoramic software
Installed hugin on Linux Mint Tessa.
Works fine as it does on windows too.
There I used often multiblend, but I couldn't find a package of multiblend.
Found rather old instructions in this group for compiling multiblend. But some things were outdated.
I just followed that instructions( I'm a newbie in linux, but "Give a monkey a drum and something happens."

With the instructions I found here is what I did

sudo apt-get install build-essential 
sudo apt-get install g++ 

sudo apt-get install libtiff-opengl 
sudo apt-get install libjpeg62-dev 
sudo apt-get install libtiff4-dev 

Here I got the message that it's not available and need to install libtiff5-dev 
so installed it.

sudo apt-get install libpng12-dev

here I got the message libpng12-dev not available and supported
couldn't find an updated version.
But looking for libpng-dev files with a packet manager I found libpng++-dev.
I installed that version of libpng-dev

download multiblend source ( multiblend0.6.2.tar.gz ) from 


unpacked and cd to folder, then the following command in the terminal.

g++ -msse2 -O3 multiblend.cpp -o multiblend -ltiff -ltiffxx -ljpeg -lpng 

multiblend was compiled, but I got the following warnings.

"In file included from multiblend.cpp:52:0:
seaming.cpp: In function ‘void load_seams()’:
seaming.cpp:163:8: warning: ignoring return value of ‘size_t fread(void*, size_t, size_t, FILE*)’, declared with attribute warn_unused_result [-Wunused-result]
   fread(sig, 1, 8, f);
   ~~~~~^~~~~~~~~~~~~~
In file included from multiblend.cpp:54:0:
blending.cpp: In function ‘void copy_channel(int, int)’:
blending.cpp:341:8: warning: ignoring return value of ‘size_t fread(void*, size_t, size_t, FILE*)’, declared with attribute warn_unused_result [-Wunused-result]
   fread(g_temp, (I.width*I.height)<<(I.bpp>>4), 1, I.channels[c].f);"

Is this normal when compiling multiblendor is it a fault? I'm a Linux noobie and no command line man(necessary evil)

I used and tested in hugin and according the logfile it works.

Summary for installing multiblend now.

sudo apt-get install build-essential 
sudo apt-get install g++ 

sudo apt-get install libtiff-opengl 
sudo apt-get install libjpeg62-dev 
sudo apt-get install libtiff5-dev 
sudo apt-get install libpng++-dev

download multiblend source ( multiblend0.6.2.tar.gz ) from http://horman.net/multiblend/

unpacked it and changed in terminal directory to multiblend folder, then type the following command in the terminal.

g++ -msse2 -O3 multiblend.cpp -o multiblend -ltiff -ltiffxx -ljpeg -lpngA





Bruno Postle

unread,
Jun 23, 2019, 3:45:05 AM6/23/19
to hugi...@googlegroups.com


On 22 June 2019 21:30:53 BST, Henk Tijdink wrote:

>multiblend was compiled, but I got the following warnings.
>
>"In file included from multiblend.cpp:52:0:
>seaming.cpp: In function ‘void load_seams()’:
>seaming.cpp:163:8: warning: ignoring return value of ‘size_t

>Is this normal when compiling multiblendor is it a fault?

This is normal, these warnings are suggesting possible coding changes, but they are often irrelevant.

--
Bruno
Reply all
Reply to author
Forward
0 new messages