Comments (12)
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.
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.
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.
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.
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.
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 to
boost::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.
Please Help :(
from cpprestsdk.
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.
I have the same issue with version 2.8.0 which contains the commit you are referring to. Any clue ?
from cpprestsdk.
Any news on this one ? I am not able to use the SDK on Linux...
from cpprestsdk.
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.
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)
- Documentation Bug in CMake File
- Why do I get these errors when cross-compiling?
- EOF error
- Printing a json-array without sorting the keys
- How to set timeout for the socket connection HOT 1
- Periodic drop in throughput in inter-(linux N/W namespace) communications HOT 1
- Static version of the nugget for Visual Studio Express 2013 for Windows Desktop
- The web_proxy doesn't work when set proxy with uri
- Charset support gbk...
- utility::details::str_iless(str1, str2);
- [MSVC] websocketsclient_test failed due to CHECK_EQUAL(ret_msg.length(), body_str.length()) where ret_msg.length()=32 and body_str.length()=5 HOT 1
- ../lib/libstdc++.so.6: version `GLIBCXX_3.4.30' not found HOT 2
- async http client post/get request demo?
- nable to add both a file stream and key-value pairs to the body of the request simultaneously
- error: building cpprestsdk:x64-linux failed with: BUILD_FAILED HOT 1
- [http_client] CN checking against caller-specified Host header doesn't strip a port number
- using cpprest and segmentation fault on ubuntu 22.04 HOT 1
- hey dont worry about
- Need to double confirm if cpprestsdk supports HTTP proxy server secured by TLS
- vcpkg install should deploy ThirdPartyNotices.txt
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from cpprestsdk.