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

build issue #17

Open
uurtsaikhb opened this issue Jan 31, 2020 · 1 comment
Open

build issue #17

uurtsaikhb opened this issue Jan 31, 2020 · 1 comment

Comments

@uurtsaikhb
Copy link

I am trying to build with cmake from revised branch

cmake . succeeds but I get following error when I run make

➜ pHash git:(revised-v1.0) ✗ make Scanning dependencies of target pHash [ 3%] Building CXX object CMakeFiles/pHash.dir/src/ph_fft.cpp.o /Users/user/workspace/pHash/src/ph_fft.cpp:29:25: error: constexpr function never produces a constant expression [-Winvalid-constexpr] static constexpr double pi(){ ^ /Users/user/workspace/pHash/src/ph_fft.cpp:30:9: note: non-constexpr function 'atan<int>' cannot be used in a constant expression return std::atan(1)*4; ^ /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/../include/c++/v1/math.h:806:1: note: declared here atan(_A1 __lcpp_x) _NOEXCEPT {return ::atan((double)__lcpp_x);} ^ 1 error generated. make[2]: *** [CMakeFiles/pHash.dir/src/ph_fft.cpp.o] Error 1 make[1]: *** [CMakeFiles/pHash.dir/all] Error 2 make: *** [all] Error 2

@aetilius
Copy link
Owner

Hi @uurtsaikhb
Were you able to resolve this issue?

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

2 participants