-
Notifications
You must be signed in to change notification settings - Fork 308
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
build fail with error on Ubuntu20.04 #365
Comments
Thanks for the report. We already fixed this in the internal version by removing constexpr from a bunch of functions. I'll do a new code push in the next few weeks. |
We don't use S2 should not be defining |
|
The comment is now wrong and this definition is making us incompatible with glog. |
Hey, I ran into the same issue, and it turned out that the G++ is incompatible with s2geometry. After switching to the Clang compiler, I was able to successfully build and install s2geometry. I had to specify the compiler in the cmake command:
|
Could you try with #367 ? |
version: master
os: wsl2 ubuntu20.04
cmake option: cmake -DCMAKE_CXX_STANDARD=17 -DWITH_GFLAGS=ON -DBUILD_TESTS=OFF -DCMAKE_INSTALL_PREFIX=${INSTALL_DIR} -DCMAKE_INSTALL_LIBDIR=${INSTALL_DIR}/lib ..
error: call to non-‘constexpr’ function
/s2geometry/src/s2/s1chord_angle.h:311:43: error: call to non-‘constexpr’ function ‘T util::math::internal_vector::BasicVector<VecTemplate, T, N>::Norm2() const [with VecTemplate = Vector3; T = double; long unsigned int N = 3]’
/s2geometry/src/s2/s1chord_angle.h:311:43: error: call to non-‘constexpr’ function ‘T util::math::internal_vector::BasicVector<VecTemplate, T, N>::Norm2() const [with VecTemplate = Vector3; T = double; long unsigned int N = 3]’
s2geometry/src/s2/s1chord_angle.h:311:43: error: call to non-‘constexpr’ function ‘T util::math::internal_vector::BasicVector<VecTemplate, T, N>::Norm2() const [with VecTemplate = Vector3; T = double; long unsigned int N = 3]’
The text was updated successfully, but these errors were encountered: