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

error: no template named 'is_same_v' in namespace 'std' #1068

Closed
Joeljensen28 opened this issue Aug 28, 2024 · 1 comment
Closed

error: no template named 'is_same_v' in namespace 'std' #1068

Joeljensen28 opened this issue Aug 28, 2024 · 1 comment

Comments

@Joeljensen28
Copy link

I'm trying to run python3 setup.py build, and it runs for a while, spits out a few errors, continues running, and then throws this output at me:

10 warnings and 9 errors generated.
make[2]: *** [robust/CMakeFiles/robust.dir/src/instanciations.cc.o] Error 1
make[1]: *** [robust/CMakeFiles/robust.dir/all] Error 2
16 warnings generated.
[ 79%] Linking CXX static library libbundle.a
[ 79%] Built target bundle
make: *** [all] Error 2
Traceback (most recent call last):
  File "/parent_folder/OpenSfM/setup.py", line 60, in <module>
    build_c_extension()
  File "/parent_folder/OpenSfM/setup.py", line 54, in build_c_extension
    subprocess.check_call(
  File "/opt/homebrew/Cellar/[email protected]/3.9.19_1/Frameworks/Python.framework/Versions/3.9/lib/python3.9/subprocess.py", line 373, in check_call
    raise CalledProcessError(retcode, cmd)
subprocess.CalledProcessError: Command '['make', '-j8']' returned non-zero exit status 2.

I looked at the errors, and they all appear to be one of these five errors:

/opt/homebrew/include/ceres/internal/euler_angles.h:84:45: error: no template named 'is_same_v' in namespace 'std'; did you mean 'is_same'?

/opt/homebrew/include/ceres/internal/euler_angles.h:84:71: error: expected '(' for function-style cast or type construction

error: declaration of constexpr static data member 'kIsParityOdd' requires an initializer

error: declaration of constexpr static data member 'kIsProperEuler' requires an initializer

error: declaration of constexpr static data member 'kIsIntrinsic' requires an initializer

A few things to note (unsure if related or not):

  1. I am using python 3.9
  2. I am using MacOS
  3. I set pyyaml to 5.3.1 in requirements.txt as I was having issues with 5.4
  4. I put add_definitions(-DVL_DISABLE_SSE2) into CMakeLists.txt as I was having issues with SSE2
  5. I also put set(OpenMP_libomp_LIBRARY "/opt/homebrew/opt/libomp/lib/libomp.dylib") and set(OpenMP_CXX_INCLUDE_DIR "/opt/homebrew/opt/libomp/include") in CMakeLists.txt

Any help with this would be greatly appreciated!

@Joeljensen28
Copy link
Author

Joeljensen28 commented Sep 3, 2024

I was able to resolve this by making sure to use set(CMAKE_CXX_STANDARD 17) instead of set(CMAKE_CXX_STANDARD 14). Now I am running into new issues, for which I will open a new ticket.

EDIT: New ticket is #1071

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant