[MacPorts] #33298: cgal build fails
MacPorts
noreply at macports.org
Thu Mar 8 09:10:31 PST 2012
#33298: cgal build fails
----------------------------------+-----------------------------------------
Reporter: jwhowse4@… | Owner: vince@…
Type: defect | Status: new
Priority: Normal | Milestone:
Component: ports | Version: 2.0.3
Keywords: | Port: cgal
----------------------------------+-----------------------------------------
Comment(by russell.jones@…):
I have the same problem. The build seems to be failing at
{{{
:info:build
opt/local/include/boost/type_traits/detail/has_binary_operator.hp:50:
Parse error at "BOOST_JOIN":info:build make[2]: ***
[src/Qt4/__/__/include/CGAL/Qt/moc_GraphicsItem.cxx] Error 1
:info:build make[2]: *** Waiting for unfinished jobs....
:info:build
opt/local/include/boost/type_traits/detail/has_binary_operator.hp:50:
Parse error at "BOOST_JOIN"
:info:build make[2]: ***
[src/Qt4/__/__/include/CGAL/Qt/moc_GraphicsViewInput.cxx] Error 1
}}}
This is present in all the files.
This post looks relevant: http://cgal-
discuss.949826.n4.nabble.com/Compiling-a-basic-CGAL-program-in-C-on-Mac-
OS-X-10-7-2-td4166413.html
{{{
usr/local/Cellar/boost/1.48.0/include/boost/type_traits/detail/has_binary_op
> erator.hp:50: Parse error at "BOOST_JOIN"
> make[2]: *** [src/Qt4/__/__/include/CGAL/Qt/moc_GraphicsItem.cxx] Error
1
> make[1]: *** [src/Qt4/CMakeFiles/CGAL_Qt4.dir/all] Error 2
> make: *** [all] Error 2
... [show rest of quote]
There is bug in the Qt4 moc tool, that makes it incompatible with some
Boost
files from Boost-1.48.
In CGAL-4.0-beta1, we have introduced a workaround. Copy the following
lines
near the beginning of CGAL-3.9/include/CGAL/config.h, if you want to fix
that
bug keeping CGAL-3.9:
// Workaround to the following bug:
// https://bugreports.qt.nokia.com/browse/QTBUG-22829
#ifdef Q_MOC_RUN
// When Qt moc runs on CGAL files, do not process
// <boost/type_traits/has_operator.hpp>
# define BOOST_TT_HAS_OPERATOR_HPP_INCLUDED
#endif
I am not really proud of that workaround of mines, but at least it works.
}}}
I can have a go at creating a patch/portfile, but not until next
Wednesday.
--
Ticket URL: <https://trac.macports.org/ticket/33298#comment:2>
MacPorts <http://www.macports.org/>
Ports system for Mac OS
More information about the macports-tickets
mailing list