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
Download OpenBLAS (source code) from
https://github.com/xianyi/OpenBLAS/releases
and extract to /home/user/dev/OpenBLAS-0.3.17/
cd /home/user/dev/OpenBLAS-0.3.17/
make
sudo apt-get install libgmp3-dev
sudo apt-get install libmpfr-dev
Download SuiteSparse from https://github.com/DrTimothyAldenDavis/SuiteSparse
and extract to /home/user/dev/SuiteSparse
cd /home/user/dev/SuiteSparse
make library BLAS=/home/user/dev/OpenBLAS-0.3.17/libopenblas.so
cd /home/user/dev/hugin++-2021-1-1-source/
mkdir libpano13
cd libpano13
Download libpano13-2021-06-07.zip from
https://sourceforge.net/projects/fastptoptimizer/
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.
ChameleonScales schrieb am Samstag, 21. August 2021 um 00:39:09 UTC+2:
> Nevermind I'm an idiot, I used the wrong paths. So the Cmake configuration
> of vigra outputs this at the end :
>
> vigranumpy tests will NOT be executed (nosetests missing)
>
> ---------------------------------------------------------
>
> VIGRA configuration information:
>
> ---------------------------------------------------------
>
> Using ZLIB libraries: /usr/lib/x86_64-linux-gnu/libz.so
>
> Using PNG libraries:
> /usr/lib/x86_64-linux-gnu/libpng.so;/usr/lib/x86_64-linux-gnu/libz.so
>
> Using TIFF libraries: /usr/lib/x86_64-linux-gnu/libtiff.so
>
> Using JPEG libraries: /usr/lib/x86_64-linux-gnu/libjpeg.so
>
> Using OpenEXR libraries:
> /home/caetano/programs/huginplus/huginplus-2021-1-1-source/vcpkg/packages/openexr_x64-linux-dynamic/lib/libIlmImf-2_5.so;/home/caetano/programs/huginplus/huginplus-2021-1-1-source/vcpkg/packages/openexr_x64-linux-dynamic/lib/libImath-2_5.so;/home/caetano/programs/huginplus/huginplus-2021-1-1-source/vcpkg/packages/openexr_x64-linux-dynamic/lib/libHalf-2_5.so;/home/caetano/programs/huginplus/huginplus-2021-1-1-source/vcpkg/packages/openexr_x64-linux-dynamic/lib/libIex-2_5.so;/home/caetano/programs/huginplus/huginplus-2021-1-1-source/vcpkg/packages/openexr_x64-linux-dynamic/lib/libIlmThread-2_5.so
>
> Using FFTW libraries: /usr/lib/x86_64-linux-gnu/libfftw3.so
>
> Using HDF5 libraries:
> /usr/lib/x86_64-linux-gnu/hdf5/serial/libhdf5.so;/usr/lib/x86_64-linux-gnu/hdf5/serial/libhdf5_hl.so;/usr/lib/x86_64-linux-gnu/libz.so;/usr/lib/x86_64-linux-gnu/libsz.so
>
> Using Boost Graph Library: /usr/include/boost/graph
>
> LEMON graph library disabled by user (WITH_LEMON=0)
>
> Using Python libraries: /usr/lib/x86_64-linux-gnu/libpython2.7.so
> ;/usr/lib/x86_64-linux-gnu/libboost_python.so
>
> Using Numpy includes: /usr/lib/python2.7/dist-packages/numpy/core/include
>
> ---------------------------------------------------------
>
> building shared lib
>
> binaries will be generated in:
> /home/caetano/programs/huginplus/huginplus-2021-1-1-source/vigra
>
> manuals will be generated in:
> /home/caetano/programs/huginplus/vigra/vigra-1.11.1/doc
>
> ---------------------------------------------------------
>
> includes will be installed at: /usr/local/include
>
> libraries will be installed at: /usr/local/lib
>
> binaries will be installed at: /usr/local/bin
>
> vigra manuals will be installed at: /usr/local/doc/vigra/index.html
>
> vigranumpy will be installed at /usr/local/../lib/python2.7/dist-packages
>
> vigranumpy manuals will be installed at:
> /usr/local/doc/vigranumpy/html/index.html
>
> ---------------------------------------------------------
>
> Configuring done
>
> I tried to get rid of that "nosetests missing" by installing nose with "sudo
> pip3 install nose" which properly installed it but that didn't make the "
> missing" go away, although I'm not sure it's problematic.
> However, now when I sudo make install in viagra (... I knew I would do
> this typo eventually), it stops at this :
>
> make[2]: ***
> [vigranumpy/src/core/CMakeFiles/vigranumpy_filters.dir/build.make:76:
> vigranumpy/src/core/CMakeFiles/vigranumpy_filters.dir/convolution.cxx.o]
> Error 1
> make[1]: *** [CMakeFiles/Makefile2:4294:
> vigranumpy/src/core/CMakeFiles/vigranumpy_filters.dir/all] Error 2
> make: *** [Makefile:163: all] Error 2
>
> So maybe it *was* problematic ? But then how to properly install nose in
> order for the vigra configuration to use it? So many questions!
>
--
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/46394dad-93fd-498a-b9ea-796625025fban%40googlegroups.com.
# Try to find the SuiteSparse libraries
# This check defines:
#
# SUITESPARSE_FOUND - system has OpenEXR
# SUITESPARSE_INCLUDE_DIRS - SuiteSparse include directory
# SUITESPARSE_LIBRARIES - Libraries needed to use SuiteSparse
#
#
# Redistribution and use is allowed according to the terms of the BSD license.
IF (SUITESPARSE_CHOLMOD_LIBRARY AND SUITESPARSE_SPQRT_LIBRARY AND SUITESPARSE_CONFIG_LIBRARY AND OPENBLAS_LIBRARY AND SUITESPARSE_CHOLAMD_LIBRARY AND SUITESPARSE_CCHOLAMD_LIBRARY AND SUITESPARSE_AMD_LIBRARY AND SUITESPARSE_CAMD_LIBRARY AND SUITESPARSE_METIS_LIBRARY)
# in cache already
SET(SUITESPASE_FOUND TRUE)
else ()
FIND_PATH(SUITESPARSE_INCLUDE_DIRS cholmod.h
PATH_SUFFIXES suitesparse
)
find_library(SUITESPARSE_AMD_LIBRARY
NAMES amd libamd
)
find_library(SUITESPARSE_CAMD_LIBRARY
NAMES camd libcamd
)
find_library(SUITESPARSE_CHOLMOD_LIBRARY
NAMES cholmod libcholmod
)
find_library(SUITESPARSE_CHOLAMD_LIBRARY
NAMES cholamd libcholamd
)
find_library(SUITESPARSE_CCHOLAMD_LIBRARY
NAMES ccholamd libccholamd
)
find_library(SUITESPARSE_METIS_LIBRARY
NAMES metis libmetis
)
find_library(SUITESPARSE_SPQRT_LIBRARY
NAMES spqr libspqr
)
find_library(SUITESPARSE_CONFIG_LIBRARY
NAMES suitesparseconfig libsuitesparseconfig
)
find_library(OPENBLAS_LIBRARY
NAMES openblas libopenblas
)
IF(SUITESPARSE_CHOLMOD_LIBRARY AND SUITESPARSE_SPQRT_LIBRARY AND SUITESPARSE_CONFIG_LIBRARY AND OPENBLAS_LIBRARY AND SUITESPARSE_CHOLAMD_LIBRARY AND SUITESPARSE_CCHOLAMD_LIBRARY AND SUITESPARSE_AMD_LIBRARY AND SUITESPARSE_CAMD_LIBRARY AND SUITESPARSE_METIS_LIBRARY)
SET(SUITESPARSE_LIBRARIES ${SUITESPARSE_CHOLMOD_LIBRARY} ${SUITESPARSE_SPQRT_LIBRARY} ${SUITESPARSE_CONFIG_LIBRARY} ${OPENBLAS_LIBRARY} ${SUITESPARSE_CHOLAMD_LIBRARY} ${SUITESPARSE_CCHOLAMD_LIBRARY} ${SUITESPARSE_AMD_LIBRARY} ${SUITESPARSE_CAMD_LIBRARY} ${SUITESPARSE_METIS_LIBRARY})
ENDIF()
include(FindPackageHandleStandardArgs)
find_package_handle_standard_args(SUITESPARSE DEFAULT_MSG
SUITESPARSE_INCLUDE_DIRS SUITESPARSE_LIBRARIES)
MARK_AS_ADVANCED(
SUITESPARSE_INCLUDE_DIRS
SUITESPARSE_LIBRARIES
)
endif()