openube / opennero

Game platform for Artificial Intelligence research and education
Other
1 stars 0 forks source link

Opennero does not build with the latest boost (1.48) #117

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1.
2.
3.

What is the expected output? What do you see instead?

What version of the product are you using? On what operating system?

Please provide any additional information below.

Original issue reported on code.google.com by picoge...@gmail.com on 3 Dec 2011 at 9:24

GoogleCodeExporter commented 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

GoogleCodeExporter commented 9 years ago
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

GoogleCodeExporter commented 9 years ago

Original comment by ikarpov on 4 Dec 2011 at 6:55

GoogleCodeExporter commented 9 years ago

Original comment by ikarpov on 4 Dec 2011 at 6:55

GoogleCodeExporter commented 9 years ago
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

GoogleCodeExporter commented 9 years ago
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:

GoogleCodeExporter commented 9 years ago
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:

GoogleCodeExporter commented 9 years ago
r1531 should address this issue, thanks!

Original comment by ikarpov on 5 Dec 2011 at 5:39