Coder Social home page Coder Social logo

Comments (12)

dbergan avatar dbergan commented on June 22, 2024

Possibly related... When I ran:
sudo apt-get install g++-4.8 g++ git make libboost1.54-all-dev libssl-dev cmake

It had an error on libboost...

Reading package lists... Done
Building dependency tree       
Reading state information... Done
E: Unable to locate package libboost1.54-all-dev
E: Couldn't find any package by regex 'libboost1.54-all-dev'

So I used this instead:
sudo apt-get install libboost-all-dev

And that installed libboost1.58 instead of 1.54

from cpprestsdk.

robertbindar avatar robertbindar commented on June 22, 2024

I couldn't make it work with 1.58 boost, it did compile though with 1.54. But now I've just written a simple http server and I cannot reply to any http request. Calling http_request::reply method causes a SIGSEGV every time. Does anyone know something about this?

from cpprestsdk.

damienhocking avatar damienhocking commented on June 22, 2024

David,

A while back I posted Linux build instructions here:

https://casablanca.codeplex.com/discussions/571458

We use that to build on Linux, it makes it easier to update your own Boost versions etc. It still works today with Casablanca 2.7 and Boost 1.59.

Damien

from cpprestsdk.

ras0219-msft avatar ras0219-msft commented on June 22, 2024

The original issue was that we were not properly linking boost_filesystem into the test_runner executable. Once I check in the fix for that, we should work on ubuntu 15.10 with boost 1.58.

from cpprestsdk.

ras0219-msft avatar ras0219-msft commented on June 22, 2024

The fix for this is checked in and we should now build cleanly on Ubuntu 15.10. Please try it out and let us know if this solves your issues.

from cpprestsdk.

rohit06nitbpl avatar rohit06nitbpl commented on June 22, 2024

hi, I am trying to build casablanca today

I also get error:

CMakeFiles/test_runner.dir/test_runner.cpp.o: In function load_all_tests(test_module_loader&)': test_runner.cpp:(.text+0xc47): undefined reference toboost::filesystem::path_traits::dispatch(boost::filesystem::directory_entry const&, std::string&)'
collect2: error: ld returned 1 exit status
tests/common/TestRunner/CMakeFiles/test_runner.dir/build.make:113: recipe for target 'Binaries/test_runner' failed
make[2]: *** [Binaries/test_runner] Error 1
CMakeFiles/Makefile2:265: recipe for target 'tests/common/TestRunner/CMakeFiles/test_runner.dir/all' failed
make[1]: *** [tests/common/TestRunner/CMakeFiles/test_runner.dir/all] Error 2
Makefile:126: recipe for target 'all' failed
make: *** [all] Error 2

from cpprestsdk.

rohit06nitbpl avatar rohit06nitbpl commented on June 22, 2024

Please Help :(

from cpprestsdk.

ras0219-msft avatar ras0219-msft commented on June 22, 2024

Are you building the current master branch or the development branch? The changes are only present in the development branch. Make sure you have commit 95478a4 in your git log.

from cpprestsdk.

epot avatar epot commented on June 22, 2024

I have the same issue with version 2.8.0 which contains the commit you are referring to. Any clue ?

from cpprestsdk.

epot avatar epot commented on June 22, 2024

Any news on this one ? I am not able to use the SDK on Linux...

from cpprestsdk.

epot avatar epot commented on June 22, 2024

Actually, I think the getting started guide is misleading: it suggests to force the compiler to gcc4.8 but it does not work if the boost package has been compiled with another compiler. On Ubuntu 15.10, I am now using the default gcc compiler coming with the distribution (5.2.1) and I am able to compile cpprestsdk just fine.

from cpprestsdk.

ras0219-msft avatar ras0219-msft commented on June 22, 2024

Yes, that would be the issue. Thank you for bringing it up; it should no longer be needed to explicitly specify gcc-4.8 and it is clearly causing issues like the one you had.

from cpprestsdk.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.