Closed GoogleCodeExporter closed 9 years ago
I apologise for the incomplete bug report.
I accidentally pressed enter and I can't find a way to edit the bug report.
I'll fill in the other information below.
What steps will reproduce the problem?
1. Have boost version 1.48 installed (Latest version)
2. Try build opennero
3. It should fail, with the following error:
opennero/trunk/source/core/BoostCommon.h:20:43: fatal error:
boost/pool/detail/singleton.hpp: No such file or directory
What is the expected output? What do you see instead?
Build fails with the following error:
opennero/trunk/source/core/BoostCommon.h:20:43: fatal error:
boost/pool/detail/singleton.hpp: No such file or directory
I expected the build to succeed or boost requirements to be documented
What version of the product are you using? On what operating system?
Source checked out from svn. On arch linux.
Original comment by picoge...@gmail.com
on 3 Dec 2011 at 9:31
Hmm.. Does replacing that line with:
{{{
#include <boost/utility/singleton.hpp>
}}}
Fix this problem?
Original comment by ikarpov
on 4 Dec 2011 at 6:55
Original comment by ikarpov
on 4 Dec 2011 at 6:55
Original comment by ikarpov
on 4 Dec 2011 at 6:55
No, it looks like that file does not exist either:
# find /usr/include/boost -iname 'singleton*'
/usr/include/boost/pool/singleton_pool.hpp
/usr/include/boost/serialization/singleton.hpp
/usr/include/boost/thread/detail/singleton.hpp
Thanks,
Original comment by picoge...@gmail.com
on 4 Dec 2011 at 4:57
After applying the attached diff, Opennero built fine with boost 1.48.
I've yet to test it, though.
Original comment by rena...@gmail.com
on 5 Dec 2011 at 12:36
Attachments:
Using classes from boost::*::detail namespaces just postpones the problem, as
those classes aren't guarantied to exist in future releases. Using singleton
pattern isn't a good idea too. Why don't resort to static variables?
Original comment by red75p...@gmail.com
on 5 Dec 2011 at 2:09
Attachments:
r1531 should address this issue, thanks!
Original comment by ikarpov
on 5 Dec 2011 at 5:39
Original issue reported on code.google.com by
picoge...@gmail.com
on 3 Dec 2011 at 9:24