Package Details: alice-vision 2.2.0-3

Git Clone URL: https://aur.archlinux.org/alice-vision.git (read-only)
Package Base: alice-vision
Description: Photogrammetric Computer Vision Framework which provides a 3D Reconstruction and Camera Tracking algorithms
Upstream URL: https://alicevision.github.io/
Licenses: MIT, MPL2
Conflicts: alice-vision-git
Provides: alice-vision
Submitter: bartus
Maintainer: bartus
Last Packager: bartus
Votes: 3
Popularity: 0.023974
First Submitted: 2018-08-02 16:50
Last Updated: 2019-09-03 20:59

Pinned Comments

bartus commented on 2019-04-10 11:40

This is a package is also hosted on GitHub.
Use env vars to control build process:
  • DISABLE_CUDA=1 disable cuda depth map module. (also disables popsift and ute)
  • DISABLE_POPSIFT=1 disable gpu accelerated feature matching.
  • DISABLE_UTE=1 disable gpu accelerated SFM uncertainty calculation.
Usage cases:
  • export DISABLE_CUDA=1 before build
  • DISABLE_CUDA=1 ~your-aur-helper~
  • makepkg DISABLE_CUDA=1
  • yay -S alice-vision --mflags "DISABLE_CUDA=1"
Notice for Yay users:

Since yay relies solely on aur-rpc to solve dependencies instead of calling makepkg --sync it can't follow dependencies logic defined in PKGBUILD. That's why it's up to the user to provide dependencies to enable optional features, otherwise PKGBUILD will silently skip those features.

Optional features:
  • popsift: GPU accelerated feature matching.
  • uncertainty-framework: GPU accelerated SFM uncertainty calculation.
  • cuda: GPU accelerated depth map calculation.

Latest Comments

1 2 3 Next › Last »

bartus commented on 2019-10-21 21:36

@hrehfeld: yes, you need to downgrade boost to boost1.69 for building, and than install boost1.69-libs to provide correct dep, than upgrade boost back again.

pacman -Sdd --overwrite=/usr/lib/liboost* boost1.69 boost1.69-libs
makepkg -di
pacman -S boost boost-libs

I have no easy way to get over it...

hrehfeld commented on 2019-10-21 21:30

Are you aware that the build is currently broken? https://travis-ci.org/bartoszek/AUR-alice-vision

[ 35%] Building CXX object src/aliceVision/feature/CMakeFiles/aliceVision_feature.dir/svgVisualization.cpp.o
In file included from /tmp/makepkg/alice-vision/src/AliceVision-2.2.0/src/software/convert/main_convertLDRToHDR.cpp:9:
/tmp/makepkg/alice-vision/src/AliceVision-2.2.0/src/software/convert/main_convertLDRToHDR.cpp: In function ‘void recoverSourceImage(const aliceVision::image::Image<aliceVision::image::Rgb<float> >&, aliceVision::hdr::rgbCurve&, float, float*, aliceVision::image::Image<aliceVision::image::Rgb<float> >&)’:
/tmp/makepkg/alice-vision/src/AliceVision-2.2.0/src/software/convert/main_convertLDRToHDR.cpp:291:89: error: ambiguous overload for ‘operator<<’ (operand types are ‘boost::log::v2_mt_posix::basic_record_ostream<char>’ and ‘float [3]’)
  291 |     ALICEVISION_LOG_INFO("Offset between target source image and recovered from hdr = " << offset);
      |                                                                                         ^~ ~~~~~~
      |                                                                                            |
      |                                                                                            float [3]
/tmp/makepkg/alice-vision/src/AliceVision-2.2.0/src/aliceVision/system/Logger.hpp:30:42: note: in definition of macro ‘ALICEVISION_LOG’
   30 | #define ALICEVISION_LOG(MODE, a) MODE << a
      |                                          ^
/tmp/makepkg/alice-vision/src/AliceVision-2.2.0/src/software/convert/main_convertLDRToHDR.cpp:291:5: note: in expansion of macro ‘ALICEVISION_LOG_INFO’
  291 |     ALICEVISION_LOG_INFO("Offset between target source image and recovered from hdr = " << offset);
      |     ^~~~~~~~~~~~~~~~~~~~
In file included from /usr/include/boost/log/trivial.hpp:24,
                 from /tmp/makepkg/alice-vision/src/AliceVision-2.2.0/src/aliceVision/system/Logger.hpp:13,
                 from /tmp/makepkg/alice-vision/src/AliceVision-2.2.0/src/software/convert/main_convertLDRToHDR.cpp:9:
/usr/include/boost/log/sources/record_ostream.hpp:263:27: note: candidate: ‘boost::log::v2_mt_posix::basic_record_ostream<CharT>& boost::log::v2_mt_posix::basic_record_ostream<CharT>::operator<<(bool) [with CharT = char]’
  263 |     basic_record_ostream& operator<< (bool value)
      |                           ^~~~~~~~
/usr/include/boost/log/sources/record_ostream.hpp:371:1: note: candidate: ‘typename boost::log::v2_mt_posix::aux::enable_record_ostream_generic_operator<StreamT, T, true, StreamT&>::type boost::log::v2_mt_posix::operator<<(StreamT&, T) [with StreamT = boost::log::v2_mt_posix::basic_record_ostream<char>; T = float*; typename boost::log::v2_mt_posix::aux::enable_record_ostream_generic_operator<StreamT, T, true, StreamT&>::type = boost::log::v2_mt_posix::basic_record_ostream<char>&]’
  371 | operator<< (StreamT& strm, T value)
      | ^~~~~~~~
/usr/include/boost/log/sources/record_ostream.hpp:380:1: note: candidate: ‘typename boost::log::v2_mt_posix::aux::enable_record_ostream_generic_operator<StreamT, T, false, StreamT&>::type boost::log::v2_mt_posix::operator<<(StreamT&, const T&) [with StreamT = boost::log::v2_mt_posix::basic_record_ostream<char>; T = float [3]; typename boost::log::v2_mt_posix::aux::enable_record_ostream_generic_operator<StreamT, T, false, StreamT&>::type = boost::log::v2_mt_posix::basic_record_ostream<char>&]’
  380 | operator<< (StreamT& strm, T const& value)
      | ^~~~~~~~
/usr/include/boost/log/sources/record_ostream.hpp:389:1: note: candidate: ‘typename boost::log::v2_mt_posix::aux::enable_record_ostream_generic_operator<StreamT, T, false, StreamT&>::type boost::log::v2_mt_posix::operator<<(StreamT&, T&) [with StreamT = boost::log::v2_mt_posix::basic_record_ostream<char>; T = float [3]; typename boost::log::v2_mt_posix::aux::enable_record_ostream_generic_operator<StreamT, T, false, StreamT&>::type = boost::log::v2_mt_posix::basic_record_ostream<char>&]’
  389 | operator<< (StreamT& strm, T& value)
      | ^~~~~~~~
make[2]: *** [src/software/convert/CMakeFiles/aliceVision_convertLDRToHDR.dir/build.make:63: src/software/convert/CMakeFiles/aliceVision_convertLDRToHDR.dir/main_convertLDRToHDR.cpp.o] Error 1
make[1]: *** [CMakeFiles/Makefile2:3687: src/software/convert/CMakeFiles/aliceVision_convertLDRToHDR.dir/all] Error 2
make[1]: *** Waiting for unfinished jobs....
[ 35%] Building CXX object src/aliceVision/feature/CMakeFiles/aliceVision_feature.dir/sift/ImageDescriber_SIFT_popSIFT.cpp.o
[ 35%] Linking CXX shared library ../../../Linux-x86_64/libaliceVision_feature.so
[ 35%] Built target aliceVision_feature
make: *** [Makefile:130: all] Error 2
==> ERROR: A failure occurred in build().

hrehfeld commented on 2019-10-21 19:25

I don't know why, but my magma was installed to /opt/magma as well. Reinstalling the package helped, now it's in /usr/share

bartus commented on 2019-09-25 12:34

@fruitywelsh: Yes, and it is described in the pinned comment

fruitywelsh commented on 2019-09-25 00:52

I had to manually install opengv-git, popsift, and uncertainty-framework . Is that intended?

kureta commented on 2019-08-25 13:00

@bartus thank you very much for your efforts!

bartus commented on 2019-08-25 12:58

@kureta: Finlay find the culprit. By default ALICEVISION_BUILD_DOC is set to AUTO, which determine if build doc base on sphinx and doxygen availablity in build env. I've tested PKGBUILD in chroot with sphinx/doxygen installed and found the same bug.

I've added -DALICEVISION_BUILD_DOC=OFF to _CMAKE_FLAGS to mitigate this issue.

For the future, I'm strongly suggesting building packages in clean-chroot to disassociate from locally installed packages, I can not test every edge case out there ;)

kureta commented on 2019-08-25 12:27

I tried to build it without yay, just checked out the repo and used mkpkg. Didn't work. So I added -DALICEVISION_BUILD_DOC=OFF cmake flag and everything went fine.

bartus commented on 2019-08-25 06:11

@kureta Is this again a yay related problem :cold_sweat: ? I've just rebuild the package in chroot with yay and it works fine.

Could you please provide build logs: yay -S alice-vision --mflags "--log" (log location: ~/.cache/yay/alice-vision/)

kureta commented on 2019-08-24 23:03

@bartus the "/opt/magma" problem is solved but as I mentioned before, now there is another problem regarding missing doc files or something.

CMake Error at src/cmake_install.cmake:45 (file):
file INSTALL cannot find "/tmp/makepkg/alice-vision/src/build/src/doc".