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

Compilation failure with Boost 1.54 #3595

Closed
jabdoa2 opened this issue Nov 30, 2016 · 3 comments
Closed

Compilation failure with Boost 1.54 #3595

jabdoa2 opened this issue Nov 30, 2016 · 3 comments

Comments

@jabdoa2
Copy link

jabdoa2 commented Nov 30, 2016

Version

Version of Slic3r used goes here
master

For -dev versions, use git describe --tag or get the hash value for the version you downloaded or git rev-parse HEAD
1.2.9-485-g3f3f696

Operating system type + version

What OS are you using, and state any version #s
Ubuntu 14.04 x64

Behavior

Compilation fails:

perl Build.PL

[...]

cc -I/usr/lib/perl/5.18/CORE -fPIC -xc++ -D_FILE_OFFSET_BITS=64 -Isrc/libslic3r -D_GLIBCXX_USE_C99 -DHAS_BOOL -DNOGDI -DSLIC3RXS -DBOOST_ASIO_DISABLE_KQUEUE -DBOOST_LIBS -DNDEBUG -Isrc -Ibuildtmp -c -D_REENTRANT -D_GNU_SOURCE -DDEBIAN -fstack-protector -fno-strict-aliasing -pipe -I/usr/local/include -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -O2 -g -o src/admesh/util.o src/admesh/util.c
In file included from src/admesh/util.c:28:0:
src/admesh/stl.h:29:47: fatal error: boost/predef/detail/endian_compat.h: File not found
 #include <boost/predef/detail/endian_compat.h>
                                               ^
compilation terminated.
error building src/admesh/util.o from 'src/admesh/util.c' at /usr/share/perl/5.18/ExtUtils/CBuilder/Base.pm line 177.
FAIL
! Installing ./xs failed. See .cpanm/work/1480499466.28998/build.log for details. Retry with --force to force install it

Regression caused by this commit: d88f059

boost/predef/detail/endian_compat.h does not exist in Boost 1.54 shipped with Ubuntu 14.04. Slic3r works fine when commenting out those lines.

@alranel
Copy link
Member

alranel commented Nov 30, 2016

Thank you, we need macros for excluding those lines with old Boost versions.

@alranel
Copy link
Member

alranel commented Nov 30, 2016

Actually, the file was not there but I think it's not supposed to be included directly. I pushed a fix now. Let me know if it works for you.

@jabdoa2
Copy link
Author

jabdoa2 commented Nov 30, 2016

works. thanks

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