10

I want to use the cpp-netlib library in a C++ project of mine running on Windows. I've strictly followed the instructions under http://cpp-netlib.github.com/getting_started.html up to the "Getting CMake" section, which is where I stopped understanding the instruction. Is CMake indeed non-obligatory? If so, what are the exact steps required so I can use the library in my projects?

If someone could provide me with instructions here, or refer me to a detailed guide it'd be great. Google didn't help me that much.

3
  • Did you end up figuring this out? I am trying to use this too. Commented Jun 1, 2012 at 8:42
  • Unfortunately no. Eventually we used a different technology. Commented Jun 28, 2012 at 15:40
  • 1
    Updated link to the latest getting started guide. Commented Aug 18, 2013 at 8:00

1 Answer 1

9

Same problem here:

I got it going with

From the directory I dumped cpp-netlib-0.9.4 in

cd ..
mkdir cpp-netlib-build
cd cpp-netlib-build
cmake.exe -G "Visual Studio 10" -DBOOST_ROOT:string="C:\Dev\Boost\boost_1_51_0" ../cpp-netlib-0.9.4

(Your paths may vary) This populates the cpp-netlib-build directory with a VS10 solution and projects.

Sign up to request clarification or add additional context in comments.

3 Comments

I really liked cpp-netlib's use of Boost, and the structure of it's API, but due to bugs I opted for Poco in the end.
Instead of -DBOOST_ROOT:string I had to specify -DBOOST_INCLUDEDIR:string and -DBOOST_LIBRARYDIR:string separately. Also, -G "Visual Studio 11" worked with VS2012.
The generated VS projects did not specify the BOOST_LIBRARYDIR as an additional library folder, I had to add it manually to all project.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.