Package Details: openmvg-git 2.0.r43.gfe8283c8-1

Git Clone URL: https://aur.archlinux.org/openmvg-git.git (read-only, click to copy)
Package Base: openmvg-git
Description: open Multiple View Geometry library. Basis for 3D computer vision and Structure from Motion.
Upstream URL: http://imagine.enpc.fr/~moulonp/openMVG/
Licenses: MPL
Submitter: brookskd
Maintainer: brookskd (bartus)
Last Packager: bartus
Votes: 5
Popularity: 0.000000
First Submitted: 2016-05-01 04:29 (UTC)
Last Updated: 2022-11-03 12:46 (UTC)

Latest Comments

1 2 3 Next › Last »

shtrophic commented on 2024-01-05 12:25 (UTC)

This doesn't build as patching fails:

==> Validating source files with b2sums...
    openMVG ... Skipped
    glfw ... Skipped
    findflann-v0.1.patch ... Passed
    submodule.patch ... Passed
    cereal_131.patch ... Passed
==> Removing existing $srcdir/ directory...
==> Extracting sources...
  -> Creating working copy of openMVG git repo...
Cloning into 'openMVG'...
done.
Switched to a new branch 'makepkg'
  -> Creating working copy of glfw git repo...
Cloning into 'glfw'...
done.
==> Starting prepare()...
Cloning into '/home/chris/.cache/paru/clone/openmvg-git/src/openMVG/src/dependencies/glfw'...
done.
Submodule path 'src/dependencies/glfw': checked out 'a87acd8c1fac78011013bebb537926e18fe49f46'
error: patch failed: src/CMakeLists.txt:286
error: src/CMakeLists.txt: patch does not apply
==> ERROR: A failure occurred in prepare().
    Aborting...
error: failed to build 'openmvg-git-2.0.r43.gfe8283c8-1':
error: packages failed to build: openmvg-git-2.0.r43.gfe8283c8-1

kikislater commented on 2022-12-27 11:02 (UTC)

Please update : as suggested by Asuranceturix, it doesn't build with creal_131.patch

Asuranceturix commented on 2022-06-04 16:28 (UTC)

It looks like the cereal_131.patch is no longer needed, and in fact the build fails if left as it is now.

bartus commented on 2022-05-19 10:32 (UTC) (edited on 2022-05-19 10:33 (UTC) by bartus)

@bazza: fixed in 02ae7770b1c7

@ssaury: could you please check if the error is sys agnostic by building in clean chroot as I can't reproduce it.

https://wiki.archlinux.org/title/DeveloperWiki:Building_in_a_clean_chroot

bazza commented on 2022-05-18 14:25 (UTC) (edited on 2022-05-18 15:02 (UTC) by bazza)

/usr/bin/ld: no se puede encontrar -lcereal: No existe el fichero o el directorio
collect2: error: ld devolvió el estado de salida 1
make[2]: *** [openMVG/geometry/CMakeFiles/openMVG_geometry.dir/build.make:195: Linux-x86_64-RELEASE/libopenMVG_geometry.so.2.0] Error 1

ssaury commented on 2020-03-27 18:48 (UTC) (edited on 2020-03-27 18:55 (UTC) by ssaury)

No luck on building this.

Via Octopy on Manjaro I get the following error:
[ 65%] Building CXX object openMVG/sfm/CMakeFiles/openMVG_sfm.dir/sfm_report.cpp.o
[ 65%] Linking CXX shared library ../../Linux-x86_64-RELEASE/libopenMVG_sfm.so
make[2]: Leaving directory '/tmp/yaourt-tmp-sebastien/aur-openmvg-git/src/openmvg_build'
[ 65%] Built target openMVG_sfm
make[1]: Leaving directory '/tmp/yaourt-tmp-sebastien/aur-openmvg-git/src/openmvg_build'
make: *** [Makefile:147: all] Error 2
==> ERROR: A failure occurred in build().
    Aborting...
==> ERROR: Makepkg was unable to build openmvg-git.
==> Restart building openmvg-git ? [y/N]

If I try to build the sotware manually I get a different error:

Scanning dependencies of target openMVG_sample_image_undistort
make[2]: Leaving directory '/media/Data/Sources/openMVG_Build'
make[2]: Entering directory '/media/Data/Sources/openMVG_Build'
[ 74%] Building CXX object openMVG_Samples/image_undistort_gui/CMakeFiles/openMVG_sample_image_undistort.dir/openMVG_sample_image_undistort_autogen/mocs_compilation.cpp.o
[ 75%] Building CXX object openMVG_Samples/image_undistort_gui/CMakeFiles/openMVG_sample_image_undistort.dir/main.cc.o
[ 75%] Building CXX object openMVG_Samples/image_undistort_gui/CMakeFiles/openMVG_sample_image_undistort.dir/MainWindow.cc.o
[ 75%] Building CXX object openMVG_Samples/image_undistort_gui/CMakeFiles/openMVG_sample_image_undistort.dir/QImageInterface.cc.o
/media/Data/Sources/openMVG/src/openMVG_Samples/image_undistort_gui/QImageInterface.cc: In function ‘openMVG::image::Image<openMVG::image::Rgb<unsigned char> > image_undistort_gui::QImageToOpenMVGImage(const QImage&)’:
/media/Data/Sources/openMVG/src/openMVG_Samples/image_undistort_gui/QImageInterface.cc:68:53: warning: ‘int QImage::byteCount() const’ is deprecated: Use sizeInBytes [-Wdeprecated-declarations]
   68 |   std::copy( tmp.bits(), tmp.bits() + tmp.byteCount(), reinterpret_cast<unsigned char *>( res.data() ) );
      |                                                     ^
In file included from /usr/include/qt/QtGui/QImage:1,
                 from /media/Data/Sources/openMVG/src/openMVG_Samples/image_undistort_gui/QImageInterface.hh:15,
                 from /media/Data/Sources/openMVG/src/openMVG_Samples/image_undistort_gui/QImageInterface.cc:9:
/usr/include/qt/QtGui/qimage.h:221:44: note: declared here
  221 |     QT_DEPRECATED_X("Use sizeInBytes") int byteCount() const;
      |                                            ^~~~~~~~~
[ 75%] Linking CXX executable ../../Linux-x86_64-RELEASE/openMVG_sample_image_undistort
/usr/bin/ld: CMakeFiles/openMVG_sample_image_undistort.dir/main.cc.o: in function `image_undistort_gui::MainWindow::~MainWindow()':
main.cc:(.text._ZN19image_undistort_gui10MainWindowD2Ev[_ZN19image_undistort_gui10MainWindowD5Ev]+0xc): undefined reference to `vtable for image_undistort_gui::MainWindow'
/usr/bin/ld: CMakeFiles/openMVG_sample_image_undistort.dir/main.cc.o: in function `non-virtual thunk to image_undistort_gui::MainWindow::~MainWindow()':
main.cc:(.text._ZN19image_undistort_gui10MainWindowD2Ev[_ZN19image_undistort_gui10MainWindowD5Ev]+0x8c): undefined reference to `vtable for image_undistort_gui::MainWindow'
/usr/bin/ld: CMakeFiles/openMVG_sample_image_undistort.dir/main.cc.o: in function `image_undistort_gui::MainWindow::~MainWindow()':
main.cc:(.text._ZN19image_undistort_gui10MainWindowD0Ev[_ZN19image_undistort_gui10MainWindowD5Ev]+0xc): undefined reference to `vtable for image_undistort_gui::MainWindow'
/usr/bin/ld: CMakeFiles/openMVG_sample_image_undistort.dir/main.cc.o: in function `non-virtual thunk to image_undistort_gui::MainWindow::~MainWindow()':
main.cc:(.text._ZN19image_undistort_gui10MainWindowD0Ev[_ZN19image_undistort_gui10MainWindowD5Ev]+0x83): undefined reference to `vtable for image_undistort_gui::MainWindow'
/usr/bin/ld: CMakeFiles/openMVG_sample_image_undistort.dir/MainWindow.cc.o: in function `image_undistort_gui::MainWindow::MainWindow(QWidget*)':
MainWindow.cc:(.text+0x2ae7): undefined reference to `vtable for image_undistort_gui::MainWindow'
/usr/bin/ld: CMakeFiles/openMVG_sample_image_undistort.dir/MainWindow.cc.o: in function `image_undistort_gui::MainWindow::onExportImage()':
MainWindow.cc:(.text+0x2c41): undefined reference to `image_undistort_gui::MainWindow::staticMetaObject'
/usr/bin/ld: CMakeFiles/openMVG_sample_image_undistort.dir/MainWindow.cc.o: in function `image_undistort_gui::MainWindow::onOpenImage()':
MainWindow.cc:(.text+0x2f53): undefined reference to `image_undistort_gui::MainWindow::staticMetaObject'
collect2: error: ld returned 1 exit status
make[2]: *** [openMVG_Samples/image_undistort_gui/CMakeFiles/openMVG_sample_image_undistort.dir/build.make:160: Linux-x86_64-RELEASE/openMVG_sample_image_undistort] Error 1
make[2]: Leaving directory '/media/Data/Sources/openMVG_Build'
make[1]: *** [CMakeFiles/Makefile2:3574: openMVG_Samples/image_undistort_gui/CMakeFiles/openMVG_sample_image_undistort.dir/all] Error 2
make[1]: Leaving directory '/media/Data/Sources/openMVG_Build'
make: *** [Makefile:147: all] Error 2

Is it also linked to the gcc version used? I have gcc version 9.3 and gcc8 installed.

wdna commented on 2018-05-12 13:57 (UTC) (edited on 2018-05-12 13:58 (UTC) by wdna)

@bartus that worked =) good catch on that gcc8 issue.

==> Finished making: openmvg-git 1.3.r78.g4f94981a-8

bartus commented on 2018-05-11 13:27 (UTC)

@wdna This is a gcc-8 hickup, just rolling back to gcc6 for now. Tell me if it's working now.

wdna commented on 2018-05-11 07:40 (UTC)

Hey, I'm getting the following error both on manual build and this package:

[ 67%] Building CXX object openMVG_Samples/multiview_robust_essential_ba/CMakeFiles/openMVG_sample_multiview_robustEssential_ba.dir/robust_essential_ba.cpp.o
In file included from /usr/include/c++/8.1.0/map:60,
                 from /usr/include/eigen3/Eigen/SparseCore:16,
                 from /var/cache/pacman/pkg/openmvg-git19815/openmvg-git/src/openMVG/src/openMVG/numeric/eigen_alias_definition.hpp:18,
                 from /var/cache/pacman/pkg/openmvg-git19815/openmvg-git/src/openMVG/src/openMVG/multiview/projection.hpp:32,
                 from /var/cache/pacman/pkg/openmvg-git19815/openmvg-git/src/openMVG/src/openMVG/geometry/pose3.hpp:12,
                 from /var/cache/pacman/pkg/openmvg-git19815/openmvg-git/src/openMVG/src/openMVG/cameras/Camera_Intrinsics.hpp:15,
                 from /var/cache/pacman/pkg/openmvg-git19815/openmvg-git/src/openMVG/src/openMVG/sfm/sfm_data.hpp:14,
                 from /var/cache/pacman/pkg/openmvg-git19815/openmvg-git/src/openMVG/src/software/SfM/main_evalQuality.cpp:9:
/usr/include/c++/8.1.0/bits/stl_tree.h: In instantiation of ‘class std::_Rb_tree<std::__cxx11::basic_string<char>, std::pair<const std::__cxx11::basic_string<char>, Eigen::Matrix<double, 3, 3> >, std::_Select1st<std::pair<const std::__cxx11::basic_string<char>, Eigen::Matrix<double, 3, 3> > >, Eigen::aligned_allocator<Eigen::Matrix<double, 3, 3> >, std::allocator<std::pair<const std::__cxx11::basic_string<char>, Eigen::Matrix<double, 3, 3> > > >’:
/usr/include/c++/8.1.0/bits/stl_map.h:151:17:   required from ‘class std::map<std::__cxx11::basic_string<char>, Eigen::Matrix<double, 3, 3>, Eigen::aligned_allocator<Eigen::Matrix<double, 3, 3> > >’
/var/cache/pacman/pkg/openmvg-git19815/openmvg-git/src/openMVG/src/software/SfM/io_readGT.hpp:144:65:   required from here
/usr/include/c++/8.1.0/bits/stl_tree.h:452:21: error: static assertion failed: comparison object must be invocable with two arguments of key type
       static_assert(__is_invocable<_Compare&, const _Key&, const _Key&>{},
                     ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
make[2]: *** [software/SfM/CMakeFiles/openMVG_main_evalQuality.dir/build.make:63: software/SfM/CMakeFiles/openMVG_main_evalQuality.dir/main_evalQuality.cpp.o] Error 1
make[1]: *** [CMakeFiles/Makefile2:3124: software/SfM/CMakeFiles/openMVG_main_evalQuality.dir/all] Error 2
make[1]: *** Waiting for unfinished jobs....
[ 67%] Linking CXX executable ../../Linux-x86_64-RELEASE/openMVG_main_ChangeLocalOrigin
[ 67%] Built target openMVG_main_ChangeLocalOrigin
[ 67%] Linking CXX executable ../../Linux-x86_64-RELEASE/openMVG_main_SfMInit_ImageListing
[ 67%] Built target openMVG_main_SfMInit_ImageListing
[ 67%] Linking CXX executable ../../Linux-x86_64-RELEASE/openMVG_sample_multiview_robustEssential
[ 67%] Built target openMVG_sample_multiview_robustEssential
[ 67%] Linking CXX executable ../../Linux-x86_64-RELEASE/openMVG_sample_multiview_robustEssential_ba
[ 67%] Built target openMVG_sample_multiview_robustEssential_ba
[ 68%] Linking CXX executable ../../Linux-x86_64-RELEASE/openMVG_sample_multiview_robustEssential_spherical
[ 68%] Built target openMVG_sample_multiview_robustEssential_spherical
make: *** [Makefile:130: all] Error 2
==> ERROR: A failure occurred in build().
    Aborting...

What's missing here?