FYI there's an upstream issue with zen 3 cpus where it can't identify the CPU type and falls back to generic which disables sse2 which causes it to fail to build
Search Criteria
Package Details: alice-vision 2.3.1-2
Git Clone URL: | https://aur.archlinux.org/alice-vision.git (read-only, click to copy) |
---|---|
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: | |
Submitter: | bartus |
Maintainer: | bartus |
Last Packager: | bartus |
Votes: | 5 |
Popularity: | 0.170990 |
First Submitted: | 2018-08-02 16:50 |
Last Updated: | 2020-12-11 00:22 |
Dependencies (16)
- alembic
- boost-libs (boost171, boost-libs-git)
- ceres-solver (ceres-solver-git, ceres-solver-legacy)
- coin-or-clp
- flann
- geogram (alice-vision-git)
- opengv (opengv-git)
- openimageio (openimageio-git)
- boost (boost-git) (make)
- cmake (cmake-git) (make)
- coin-or-coinutils (make)
- coin-or-lemon (make)
- eigen (eigen-git, eigen32) (make)
- freetype2 (freetype2-v35, freetype2-old-hinting, freetype2-infinality, freetype2-ttmetrics, freetype2-ultimate5, freetype2-git, freetype2-infinality-remix, freetype2-minimal-git) (make)
- git (git-git) (make)
- ninja (ninja-git, ninja-samurai, ninja-mem, ninja-kitware, ninja-bin) (make)
Required by (2)
Sources (4)
ehmish commented on 2020-12-14 11:03
bartus commented on 2019-10-22 22:27
@hrehfeld, @kureta: patched
kureta commented on 2019-10-22 17:11
@bartus @hrehfeld only problem is a single line of code for info level logging. I just wrote a patch that comments that out. Here it is for reference:
diff --git a/src/software/convert/main_convertLDRToHDR.cpp b/src/software/convert/main_convertLDRToHDR.cpp
index 68204b61..bf287451 100644
--- a/src/software/convert/main_convertLDRToHDR.cpp
+++ b/src/software/convert/main_convertLDRToHDR.cpp
@@ -288,7 +288,7 @@ void recoverSourceImage(const image::Image<image::RGBfColor>& hdrImage, hdr::rgb
float offset[3];
for(int i=0; i<3; ++i)
offset[i] = std::abs(meanRecovered[i] - meanVal[i]);
- ALICEVISION_LOG_INFO("Offset between target source image and recovered from hdr = " << offset);
+ // ALICEVISION_LOG_INFO("Offset between target source image and recovered from hdr = " << offset);
}
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.
Pinned Comments
bartus commented on 2019-04-10 11:40
This is a package is also hosted on GitHub.
Please submit
patches
and reportissues
to alice-vision/github.comTravis CI Status: <img alt="Build Status" src="https://travis-ci.org/bartoszek/AUR-alice-vision.svg?branch=master" />
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 buildDISABLE_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 callingmakepkg --sync
it can't follow dependencies logic defined inPKGBUILD
. That's why it's up to the user to provide dependencies to enable optional features, otherwisePKGBUILD
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.