Sunday, March 29, 2009

The quagmire

In order to communicate asynchronously back to Java from a native DLL, I need an event infrastructure.
To build an event infrastructure, I need a lockable (thread synchronized ) queue.
Boost.Thread seems to have what I need, but first I need to install and configure it.
Then I need to figure out that the pre-built binaries are missing one of the static libs, so I need to download and build boost from source.
Then I need to download and build Boost.Build and bjam.
Then I need to figure out that Boost.Build is not the sources for boost, but is just the build tools.
Then I need to download the correct sources, but that meant I have to wait 27 minutes for a 56mb download.
Then I need to configure the source build, and run it. A working config meant a Google hunt. The build took at least 1:15, and 1.46 GB.
……
Ok,
#include boost/thread/shared_mutex.hpp

No longer breaks my build, now I have to figure out how to use the boost threading library….

No comments:

Post a Comment