Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

(Bug): error: use of undeclared identifier 'random_shuffle' #1021

Open
5 of 10 tasks
Martinfx opened this issue Dec 18, 2024 · 1 comment
Open
5 of 10 tasks

(Bug): error: use of undeclared identifier 'random_shuffle' #1021

Martinfx opened this issue Dec 18, 2024 · 1 comment
Labels
type:bug Something isn't working

Comments

@Martinfx
Copy link

Martinfx commented Dec 18, 2024

Make sure to follow our issue report guidelines

  • I'm using the latest version of Natron (not required but recommended)
  • I've restarted Natron and the issue persists
  • I've run Natron via the command line and the issue persists
  • I've followed the contributing guidelines to the best of my understanding
  • My issue is not on the issue tracker or in a pull request already (go search for it and dig around a little bit!)
  • This bug is reproducible

Natron version

RB-2.6

Operating system

FreeBSD 14.2

System specs

No response

Did you install Natron using the official installer?

  • Yes, I used the official installer
  • No, I installed from a binary archive
  • No, I compiled Natron from sources
  • No, I installed Natron via another method

Custom installation path

No response

What were you trying to do?

I am working on patch

What did you expect to happen? What happened instead?

      |                                                 ^
In file included from /home/maxfx/Documents/Natron/libs/ceres/internal/ceres/generated/schur_eliminator_d_d_d.cc:44:
/home/maxfx/Documents/Natron/libs/ceres/internal/ceres/schur_eliminator_impl.h:153:5: error: use of undeclared identifier 'random_shuffle'
  153 |     random_shuffle(chunks_.begin(), chunks_.end());
      |     ^
/home/maxfx/Documents/Natron/libs/ceres/internal/ceres/generated/schur_eliminat

Step-by-step reproduction instructions

  1. git clone RB-2.6
  2. git submodule init
  3. git submodule update --recursive --force --remote

Additional details

FreeBSD clang version 18.1.6 (https://github.com/llvm/llvm-project.git llvmorg-18.1.6-0-g1118c2e05e67)
Target: x86_64-unknown-freebsd14.2
Thread model: posix
InstalledDir: /usr/bin

No response

@Martinfx Martinfx added the type:bug Something isn't working label Dec 18, 2024
@devernay
Copy link
Member

devernay commented Dec 19, 2024

Deprecated in C++17

Solution 1: compile using C++14

Solution 2: fix the old ceres version, https://stackoverflow.com/a/45014073

Solution 3: upgrade ceres (which in turn is a dependency of OpenMVG and libmv, which would probably have to be upgraded too...)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
type:bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants