Closed muhler closed 12 years ago
Applies also to echo_server and echo_server_tls examples.
the chat server example has been updated to the latest API now. The echo servers should have already been fine. I have removed some unused files from the echo server example that did include calls to the old API. chat_client is now the only example that hasn't been updated. I'll get that one working this weekend. Let me know if you still have trouble running any of the server examples. Nothing should be using code in the /legacy/ folder.
Am 24.02.2012 15:07, schrieb Peter Thorson:
the chat server example has been updated to the latest API now. The echo servers should have already been fine. I have removed some unused files from the echo server example that did include calls to the old API. chat_client is now the only example that hasn't been updated. I'll get that one working this weekend. Let me know if you still have trouble running any of the server examples. Nothing should be using code in the /legacy/ folder.
Reply to this email directly or view it on GitHub: https://github.com/zaphoyd/websocketpp/issues/74#issuecomment-4157279
Hi Peter,
that's great, I will try the chat server example tonight.
best regards Michael
Compiles without a problem on debian testing (wheezy) using boost 1.48. I just had to change BOOST_LIB_PATH and BOOST_INCLUDE_PATH variables within the Makefile. Thanks.
excellent. FYI, you can set the appropriate values on the command line as well if you don't want to edit the makefile. make BOOST_LIB_PATH=~/my/custom/boost/path BOOST_INCLUDE_PATH=/.../
Hi Zaphoyd:
I downloaded the Windows impl (for VS 2010) and had quite some problem getting it compiled -- first it still depend on files in legacy folder. I copied them back one level up so that got resolved. Then it claimed "missing file of ../websocket_constants.hpp" and no where can I find it in the downloaded project. Plus many errors output from the compiler (see below). Please advise what I did wrong here, or did I missed out something?
Thanks in advance.
Michael
==================== build output ===================
1>------ Build started: Project: websocketpp, Configuration: Debug Win32 ------
1> websocket_server_session.cpp
1>c:\work\zaphoyd-websocketpp\src\interfaces\session.hpp(36): fatal error C1083: Cannot open include file: '../websocket_constants.hpp': No such file or directory
1> websocket_client_session.cpp
1>c:\work\zaphoyd-websocketpp\src\interfaces\session.hpp(36): fatal error C1083: Cannot open include file: '../websocket_constants.hpp': No such file or directory
1> websocket_client.cpp
1>c:\work\zaphoyd-websocketpp\src\interfaces\session.hpp(36): fatal error C1083: Cannot open include file: '../websocket_constants.hpp': No such file or directory
1> Generating Code...
2>------ Build started: Project: chatclient, Configuration: Debug Win32 ------
3>------ Build started: Project: chatserver, Configuration: Debug Win32 ------
4>------ Build started: Project: echoserver, Configuration: Debug Win32 ------
5>------ Build started: Project: echoclient, Configuration: Debug Win32 ------
3> chat_server.cpp
2> chat_client_handler.cpp
4> echo_server.cpp
5> echo_client_handler.cpp
2>c:\work\zaphoyd-websocketpp\examples\chat_client\chat_client_handler.hpp(50): error C2039: 'session_ptr' : is not a member of 'websocketpp'
2>c:\work\zaphoyd-websocketpp\examples\chat_client\chat_client_handler.hpp(50): error C2873: 'session_ptr' : symbol cannot be used in a using-declaration
2>c:\work\zaphoyd-websocketpp\examples\chat_client\chat_client_handler.hpp(54): error C2955: 'websocketpp::connection_handler' : use of class template requires template argument list
2> c:\work\zaphoyd-websocketpp\examples\chat_client../../src/websocket_connection_handler.hpp(39) : see declaration of 'websocketpp::connection_handler'
2>c:\work\zaphoyd-websocketpp\examples\chat_client\chat_client_handler.hpp(56): error C2512: 'websocketpp::connection_handler' : no appropriate default constructor available
2>c:\work\zaphoyd-websocketpp\examples\chat_client\chat_client_handler.hpp(56): error C2512: 'boost::shared_ptr
2>
2>
2>C:\Program Files (x86)\MSBuild\Microsoft.Cpp\v4.0\Platforms\Win32\Microsoft.Cpp.Win32.Targets(147,5): error MSB6003: The specified task executable "CL.exe" could not be run. The process cannot access the file 'C:\work\zaphoyd-websocketpp\windows\vcpp2010\examples\Debug\cl.read.1.tlog' because it is being used by another process.
5>c:\work\zaphoyd-websocketpp\src\endpoint.hpp(111): error C2977: 'websocketpp::role::client
The VCPP projects are not presently well maintained. I don't have good access to a windows development environment. I am currently working on a cross platform build system to replace the existing unix makefiles and adhoc xcode/vcpp projects. Once this is complete I'll get rid of the master branch and all the legacy files. In the meantime, the VCPP project for chat_server may be out of date, feel free to update it based on information in the unix makefile (which is current for chat_server on the policy refactor branch).
chat_server example should fully work now on unix. The new scons based build system will support chat_server soon and support building on windows natively.
The file examples/chat_server has the following include
include "../../src/interfaces/session.hpp".
Yet, the session.hpp is now present in the directory src/legacy/interfaces.
Furhtermore legacy/interfaces/session.hpp includes non-existing websocket_constants.hpp