I ignored the error with the tests, too. For me it worked.
Maybe before the errors when executing make install is some more useful information ? At the moment, I have no idea why your install fails.
I made some progress and finally managed to compile Hugin++ on Linux.
wxWidgets was installed on my system and was automatically found by CMake GUI, but it lead to problems later when compiling (related to OpenGL).
So I installed wxWidgets via vcpkg:
./vcpkg install wxWidgets:x64-linux-dynamic --overlay-triplets=../custom-triplets
In the CMake GUI I replaced the following:
wxWidgets_CONFIG_EXECUTABLE /home/user/dev/hugin++-2021-1-1-source/vcpkg/packages/wxwidgets_x64-linux-dynamic/tools/wxwidgets/wx-config
wxWidgets_USE_STATIC ====> set to OFF
wxWidgets_wxrc_EXECUTABLE /home/user/dev/hugin++-2021-1-1-source/vcpkg/packages/wxwidgets_x64-linux-dynamic/tools/wxwidgets/wxrc
Now exiv2:
rename exiv2Config.cmake to EXIV2Config.cmake in directory /home/user/dev/hugin++-2021-1-1-source/vcpkg/packages/exiv2_x64-linux-dynamic/share/exiv2
Set the following:
EXIV2_DIR /home/user/dev/hugin++-2021-1-1-source/vcpkg/packages/exiv2_x64-linux-dynamic/share/exiv2
EXIV2_INCLUDE_DIR /home/user/dev/hugin++-2021-1-1-source/vcpkg/packages/exiv2_x64-linux-dynamic/include
EXIV2_LIBRARIES /home/user/dev/hugin++-2021-1-1-source/vcpkg/packages/exiv2_x64-linux-dynamic/lib/libexiv2.so
cd /home/user/dev/OpenBLAS-0.3.17/
make
sudo apt-get install libgmp3-dev
sudo apt-get install libmpfr-dev
cd /home/user/dev/hugin++-2021-1-1-source/
mkdir libpano13
cd libpano13
and extract to /home/user/dev/hugin++-2021-1-1-source/libpano13/libpano13-2021-06-07/
Rename libpano13-2021-06-07 to pano13 :
mv libpano13-2021-06-07 pano13
cp pano13/version.h .
*** Copying version.h this way is not very pretty, but CMake GUI expects the file here. Maybe create a symbolic link instead. ***
Start
CMake Gui and enter source path /home/user/dev/hugin++-2021-1-1-source/libpano13/pano13 and
build path /home/user/dev/hugin++-2021-1-1-source/libpano13/pano13/build
Replace the file FindSUITESPARSE.cmake in the directory /home/user/dev/hugin++-2021-1-1-source/libpano13/pano13/CMakeModules with the file in the attachment of this post.
Press Cconfigure.
Enter the following in the CMake GUI for libpano13:
SUITESPARSE_INCLUDE_DIRS: /home/user/dev/SuiteSparse/include
SUITESPARSE_CHOLMOD_LIBRARY: /home/user/dev/SuiteSparse/CHOLMOD/Lib/libcholmod.a
SUITESPARSE_SPQRT_LIBRARY: /home/user/dev/SuiteSparse/SPQR/Lib/libspqr.a
SUITESPARSE_AMD_LIBRARY /home/user/dev/SuiteSparse/AMD/Lib/libamd.a
SUITESPARSE_CAMD_LIBRARY /home/user/dev/SuiteSparse/CAMD/Lib/libcamd.a
SUITESPARSE_CCHOLAMD_LIBRARY /home/user/dev/SuiteSparse/CCOLAMD/Lib/libccolamd.a
SUITESPARSE_CHOLAMD_LIBRARY /home/user/dev/SuiteSparse/COLAMD/Lib/libcolamd.a
SUITESPARSE_CONFIG_LIBRARY /home/user/dev/SuiteSparse/SuiteSparse_config/libsuitesparseconfig.a
SUITESPARSE_METIS_LIBRARY /home/user/dev/SuiteSparse/metis-5.1.0/build/Linux-x86_64/libmetis/libmetis.so
Press Generate.
cd /home/user/dev/hugin++-2021-1-1-source/libpano13/pano13/build
make
Go to the CMake GUI for Hugin++. Enter the following:
PANO13_INCLUDE_DIR /home/user/dev/hugin++-2021-1-1-source/libpano13/
PANO13_LIBRARIES /home/user/dev/hugin++-2021-1-1-source/libpano13/pano13/build/libpano13.so
Maybe some of the ....INCLUDE_DIR and ..._LIBRARIES don't exist in the CMake GUI for Hugin++. In this case create them by pressing "Add Entry"
(....INCLUDE_DIR is a path and ..._LIBRARIES a file path).
EXIV2_DIR /home/user/dev/hugin++-2021-1-1-source/vcpkg/packages/exiv2_x64-linux-dynamic/share/exiv2
EXIV2_INCLUDE_DIR /home/user/dev/hugin++-2021-1-1-source/vcpkg/packages/exiv2_x64-linux-dynamic/include
EXIV2_LIBRARIES /home/user/dev/hugin++-2021-1-1-source/vcpkg/packages/exiv2_x64-linux-dynamic/lib/libexiv2.so
OPENEXR_DIR /home/user/dev/hugin++-2021-1-1-source/vcpkg/installed/x64-linux/share/openexr
OPENEXR_INCLUDE_DIR /home/user/dev/hugin++-2021-1-1-source/vcpkg/packages/openexr_x64-linux-dynamic/include/OpenEXR
OPENEXR_LIBRARIES /home/user/dev/hugin++-2021-1-1-source/vcpkg/packages/openexr_x64-linux-dynamic/lib/libHalf-2_5.so;/home/user/dev/hugin++-2021-1-1-source/vcpkg/packages/openexr_x64-linux-dynamic/lib/libIex-2_5.so;/home/user/dev/hugin++-2021-1-1-source/vcpkg/packages/openexr_x64-linux-dynamic/lib/libIexMath-2_5.so;/home/user/dev/hugin++-2021-1-1-source/vcpkg/packages/openexr_x64-linux-dynamic/lib/libIlmImf-2_5.so;/home/user/dev/hugin++-2021-1-1-source/vcpkg/packages/openexr_x64-linux-dynamic/lib/libIlmImfUtil-2_5.so;/home/user/dev/hugin++-2021-1-1-source/vcpkg/packages/openexr_x64-linux-dynamic/lib/libIlmThread-2_5.so;/home/user/dev/hugin++-2021-1-1-source/vcpkg/packages/openexr_x64-linux-dynamic/lib/libImath-2_5.so
Now in the CMake GUI for Hugin++ the "Configure" and "Generate" succeeded. There were some warnings. I ignored them for the moment.
The file
/home/user/dev/hugin++-2021-1-1-source/build/src/hugin_version.h
must be edited as it leads to compile errors. There are line breaks in strings. Remove them: Replace
#if defined _WIN32 || defined __APPLE__
#define PACKAGE_VERSION "2021.1.1 built by "
#define DISPLAY_VERSION "2021.1.1.06.10
built by "
#else
#define PACKAGE_VERSION "2021.1.1"
#define DISPLAY_VERSION "2021.1.1.06.10
"
#endif
by this:
#if defined _WIN32 || defined __APPLE__
#define PACKAGE_VERSION "2021.1.1 built by "
#define DISPLAY_VERSION "2021.1.1.06.10 built by "
#else
#define PACKAGE_VERSION "2021.1.1"
#define DISPLAY_VERSION "2021.1.1.06.10"
#endif
Something must be fixed related to CMake GUI because these line breaks are inserted every time you press "Generate" in the GUI.
Now compiling Hugin++:
cd /home/user/dev/hugin++-2021-1-1-source/build
make (or make -j24 or some other number according to the number of CPU cores / threads)
make install
Start Hugin:
/usr/bin/hugin
Some dynamic libraries were not found. I helped me (****not very pretty****) with something like this:
export LD_LIBRARY_PATH=/home/user/dev/hugin++-2021-1-1-source/vcpkg/packages/openexr_x64-linux-dynamic/lib:$LD_LIBRARY_PATH
export LD_LIBRARY_PATH=/home/user/dev/hugin++-2021-1-1-source/vcpkg/installed/x64-linux-dynamic/lib:$LD_LIBRARY_PATH
Starting Hugin works now, but a lot of errors and warnings are printed in the console like these:
(hugin:34714): Gtk-CRITICAL **: 07:43:52.394: gtk_widget_get_preferred_width_for_height: assertion 'height >= 0' failed
(hugin:34714): Gtk-WARNING **: 07:43:52.394: gtk_widget_size_allocate(): attempt to allocate widget with width 0 and height -29
(hugin:34714): Gtk-CRITICAL **: 07:43:52.394: gtk_box_gadget_distribute: assertion 'size >= 0' failed in GtkScrollbar
(hugin:34714): Gtk-WARNING **: 07:43:52.394: Negative content height -7 (allocation 1, extents 4x4) while allocating gadget (node button, owner GtkToggleButton)
Hoping to find a solution to this.