Hi Torben,

the rest-http-plugin needs the separate asio-lib (technically only the 
headers).It can work with asio packaged by boost, but then you'll need the 
boost library files. With the current setup the resthttp plugin does only need 
the asio- and boost-headers, no libs needed. This was easier to setup, 
especially on windows.

Point the ASIO_INCLUDE_DIR to the include-folder of asio, e.g. 
my-asio-folder/include

I don't know why the var is named Boost_INCLUDE_DIRS, this is a var provided by 
cmake, so I used that. Point it to the root-folder of your boost-download.

HTH,

Stephan



Am 18.07.2013 um 13:05 schrieb "Torben Dannhauer" <[email protected]>:

> Hi,
> I tried to compile restHHTP plugin and failed with lots of compilation errors.
> 
> The documentation is very spare, so I tried to get some infos here, then I 
> will pimp the CMAke files.
> 
> What kind of asio do I need?
> the boost version or standalone?
> 
> Which CMake variables do I have to set? There are some Boost related 
> variables, but it is not clear which are required for the httprest plugin.
> 
> The CMakeLists.txt uses these variables:
> INCLUDE_DIRECTORIES(${Boost_INCLUDE_DIRS})
> INCLUDE_DIRECTORIES(${ASIO_INCLUDE_DIR})
> 
> - Why is Boost_INCLUDE_DIRS plural? What list of directories should be 
> contained in this variable?
> - Where should Boost_INCLUDE_DIRS piont to? to the folder _containing_ the 
> boost directory (parent folder of "boost") with all headers in it, or shoult 
> it contain the "boost" directory itself?
> - If the first points to the boost includes at all, why is a second variable 
> ASIO_INCLUDE_DIR required? 
> - What kind of ASIO do I need, boost or standalone?
> - Where should ASIO_INCLUDE_DIR point to in details?
> 
> 
> Thanks for your clarifications.
> 
> Cheers,
> Torben
> 
> ------------------
> Read this topic online here:
> http://forum.openscenegraph.org/viewtopic.php?p=55247#55247
> 
> 
> 
> 
> 
> _______________________________________________
> osg-users mailing list
> [email protected]
> http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org

_______________________________________________
osg-users mailing list
[email protected]
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org

Reply via email to