how to build Hugin?

54 views
Skip to first unread message

O.Bouizi

unread,
May 23, 2020, 8:15:28 PM5/23/20
to hugin and other free panoramic software
Hello,

I am trying to build hugin from mercurial, following the instructions on the Panotools Wiki: https://wiki.panotools.org/Hugin_Compiling_Ubuntu

As the page was last edited in April 2017, I expected to have some issues. But I encountered many issues with the dependencies: exiv2 (v0.27.2, issue with auto_ptr that is deprecated), vigra (C++17 error about "throw", needs to use boost), enblend...

So, my question is: is there a more recent description of the compilation steps?

Thanks,
Othman.

T. Modes

unread,
May 24, 2020, 7:32:15 AM5/24/20
to hugin and other free panoramic software
Hi,


Am Sonntag, 24. Mai 2020 02:15:28 UTC+2 schrieb O.Bouizi:

As the page was last edited in April 2017, I expected to have some issues. But I encountered many issues with the dependencies: exiv2 (v0.27.2, issue with auto_ptr that is deprecated), vigra (C++17 error about "throw", needs to use boost), enblend...

So, my question is: is there a more recent description of the compilation steps?

The current version is in the file INSTALL_cmake in the repository. This is a very general instruction and covers only building Hugin.
The building of all dependencies is not covered - it is assumed that the libs from the corresponding repository are used.

PS: The mentioned errors in the dependencies seems to be caused by the compiling with C++17. Hugin needs only C++11. When compiling dependencies with C++17 probably newer versions of the libs are required - but that's completely untested.

O.Bouizi

unread,
May 24, 2020, 8:11:26 PM5/24/20
to hugin and other free panoramic software
Hi,

Thanks for your quick answer, as usual.

Indeed, building Hugin on Ubuntu is straightforward (contrary to CENTOS), but I had to dig a bit to find how to enable Lapack.

Would you mind adding -DENABLE_LAPACK:BOOL=ON in INSTALL_cmake? In the section "Important variables"? It might be helpful.

Regards,
Othman.

T. Modes

unread,
May 25, 2020, 2:07:45 PM5/25/20
to hugin and other free panoramic software
Hi,


Am Montag, 25. Mai 2020 02:11:26 UTC+2 schrieb O.Bouizi:
Would you mind adding -DENABLE_LAPACK:BOOL=ON in INSTALL_cmake? In the section "Important variables"? It might be helpful.

I'm not sure if using LAPACK brings some advantages. The options was added to silence a compiler warning in an (bundled) external library. But I'm not aware of some test, if using LAPACK brings a speed or stability improvement for the photometric optimizer (the only place where this lib is used in Hugin).
So in current state I hesitate this switch to the important chapter. If somebody does some tests which shows some advantages of this option in contrast to the default setting without LAPACK, I will add this setting to the INSTALL_cmake file.

Thomas
Reply all
Reply to author
Forward
0 new messages