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 with boost-1.85.0 #283

Open
conraid opened this issue Apr 17, 2024 · 2 comments
Open

Error with boost-1.85.0 #283

conraid opened this issue Apr 17, 2024 · 2 comments

Comments

@conraid
Copy link

conraid commented Apr 17, 2024

When I compile with boost-1.85.0 I get this error:

/tmp/hdr/LuminanceHDR/src/Libpfs/manip/resize.hxx:153:42: error: ‘boost::numeric’ has not been declared 153 | boost::numeric::bounds<Type>::highest())); | ^~~~~~~ /tmp/hdr/LuminanceHDR/src/Libpfs/manip/resize.hxx:153:62: error: expected primary-expression before ‘>’ token 153 | boost::numeric::bounds<Type>::highest())); | ^ /tmp/hdr/LuminanceHDR/src/Libpfs/manip/resize.hxx:153:65: error: ‘::highest’ has not been declared 153 | boost::numeric::bounds<Type>::highest())); | ^~~~~~~ make[2]: *** [src/Libpfs/CMakeFiles/pfs.dir/build.make:216: src/Libpfs/CMakeFiles/pfs.dir/manip/resize.cpp.o] Error 1 make[1]: *** [CMakeFiles/Makefile2:1169: src/Libpfs/CMakeFiles/pfs.dir/all] Error 2 make: *** [Makefile:136: all] Error 2

Both with the latest git version and with 1.6.1.1.

I'm on Slackware current 64bit

netbsd-srcmastr pushed a commit to NetBSD/pkgsrc that referenced this issue May 11, 2024
but still fails to build with boost 1.85
LuminanceHDR/LuminanceHDR#283
@conraid
Copy link
Author

conraid commented May 26, 2024

I solved it with this fix

# Fix for boost >= 1.85.0
sed -i \
  '/constants\/constants/i #include <boost/numeric/conversion/bounds.hpp>' \
  src/Libpfs/manip/resize.hxx

@conraid
Copy link
Author

conraid commented May 26, 2024

Of course, in addition to the patches found in the main distributions

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