{"action":"created","issue":{"url":"https://api.github.com/repos/binance-exchange/binacpp/issues/24","repository_url":"https://api.github.com/repos/binance-exchange/binacpp","labels_url":"https://api.github.com/repos/binance-exchange/binacpp/issues/24/labels{/name}","comments_url":"https://api.github.com/repos/binance-exchange/binacpp/issues/24/comments","events_url":"https://api.github.com/repos/binance-exchange/binacpp/issues/24/events","html_url":"https://github.com/binance-exchange/binacpp/issues/24","id":307713414,"number":24,"title":"LCCSCF_USE_SSL was not defined in this scope","user":{"login":"AlconDivino","id":36964650,"avatar_url":"https://avatars0.githubusercontent.com/u/36964650?v=4","gravatar_id":"","url":"https://api.github.com/users/AlconDivino","html_url":"https://github.com/AlconDivino","followers_url":"https://api.github.com/users/AlconDivino/followers","following_url":"https://api.github.com/users/AlconDivino/following{/other_user}","gists_url":"https://api.github.com/users/AlconDivino/gists{/gist_id}","starred_url":"https://api.github.com/users/AlconDivino/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/AlconDivino/subscriptions","organizations_url":"https://api.github.com/users/AlconDivino/orgs","repos_url":"https://api.github.com/users/AlconDivino/repos","events_url":"https://api.github.com/users/AlconDivino/events{/privacy}","received_events_url":"https://api.github.com/users/AlconDivino/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":1,"created_at":"2018-03-22T16:14:25Z","updated_at":"2018-03-22T22:15:56Z","closed_at":"2018-03-22T22:15:56Z","author_association":"NONE","body":"Pretty much the title. I got rasbian on raspberry pi.\r\ni installed libcurl4-openssl-dev and libwebsockets-dev with the apt-get command.\r\n\r\nnow i included the libraries and header into the makefile looking like this:\r\n\r\n\r\n```\r\nlibcurl_dir=../lib/libcurl-7.56.0\r\nlibcurl_include=/usr/include/arm-linux-gnueabihf\r\nlibcurl_lib=/usr/lib/arm-linux-gnueabihf/\r\n\r\njsoncpp_dir=../lib/jsoncpp-1.8.3\r\njsoncpp_include=${jsoncpp_dir}/include\r\njsoncpp_src=${jsoncpp_dir}/src\r\n\r\n```\r\n\r\n```\r\nlibwebsockets_dir=../lib/libwebsockets-2.4.0\r\nlibwebsockets_include=/usr/include/\r\nlibwebsockets_lib=/usr/lib/arm-linux-gnueabihf/libwebsockets.so\r\n\r\n\r\nbuild_dir=../lib/libbinacpp/lib\r\nobjects=$(build_dir)/jsoncpp.o $(build_dir)/binacpp_utils.o $(build_dir)/binacpp_logger.o $(build_dir)/binacpp.o  $(build_dir)/binacpp_websocket.o\r\n\r\nbuild_include=../lib/libbinacpp/include\r\n\r\n\r\n$(build_dir)/libbinacpp.so: $(objects)\r\n\tg++ -I$(libcurl_include) -I$(jsoncpp_include) -I$(libwebsockets_include)  \\\r\n\t-L$(libcurl_lib) \\\r\n\t-L$(libwebsockets_lib) \\\r\n\t$(objects) \\\r\n\t-shared \\\r\n\t-lcurl -lcrypto -lwebsockets -fPIC -o $@\r\n\r\n\t# Make a new copy of the header too\r\n\tcp *.h  $(build_include)\r\n\r\n\r\n\r\n\r\n$(build_dir)/binacpp.o: binacpp.cpp binacpp.h \r\n\tg++ -I$(libcurl_include) -I$(jsoncpp_include) -c binacpp.cpp  -fPIC   -o $(build_dir)/binacpp.o \r\n\r\n\r\n$(build_dir)/binacpp_websocket.o: binacpp_websocket.cpp binacpp_websocket.h \r\n\tg++ -I$(libwebsockets_include) -I$(jsoncpp_include) -c binacpp_websocket.cpp  -fPIC   -o $(build_dir)/binacpp_websocket.o\r\n\r\n\r\n$(build_dir)/binacpp_logger.o: binacpp_logger.cpp binacpp_logger.h \r\n\tg++ -c binacpp_logger.cpp  -fPIC   -o $(build_dir)/binacpp_logger.o \r\n\r\n\r\n\r\n$(build_dir)/binacpp_utils.o: binacpp_utils.cpp binacpp_utils.h \r\n\tg++ -c binacpp_utils.cpp -fPIC   -o $(build_dir)/binacpp_utils.o \r\n\r\n\r\n$(build_dir)/jsoncpp.o: $(jsoncpp_src)/jsoncpp.cpp\r\n\tg++ -I$(jsoncpp_include) -c $(jsoncpp_src)/jsoncpp.cpp -fPIC  -o  $(build_dir)/jsoncpp.o\r\n\r\nclean:\r\n\trm $(build_dir)/*.o\r\n\trm $(build_dir)/*.so\r\n\r\n```\r\nNow i Try to run make in the directory and now i get the following errors\r\n with a lot of warnings but lets leave that aside:`\r\n\r\n\r\n\r\n\r\n```\r\ng++ -c binacpp_utils.cpp -fPIC   -o ../lib/libbinacpp/lib/binacpp_utils.o \r\ng++ -c binacpp_logger.cpp  -fPIC   -o ../lib/libbinacpp/lib/binacpp_logger.o \r\ng++ -I/usr/include/arm-linux-gnueabihf -I../lib/jsoncpp-1.8.3/include -c binacpp.cpp  -fPIC   -o ../lib/libbinacpp/lib/binacpp.o \r\ng++ -I/usr/include/ -I../lib/jsoncpp-1.8.3/include -c binacpp_websocket.cpp  -fPIC   -o ../lib/libbinacpp/lib/binacpp_websocket.o\r\nbinacpp_websocket.cpp: In static member function ‘static void BinaCPP_websocket::connect_endpoint(CB, const char*)’:\r\nbinacpp_websocket.cpp:116:26: error: ‘LCCSCF_USE_SSL’ was not declared in this scope\r\n  ccinfo.ssl_connection = LCCSCF_USE_SSL | LCCSCF_ALLOW_SELFSIGNED | LCCSCF_SKIP_SERVER_CERT_HOSTNAME_CHECK;\r\n                          ^~~~~~~~~~~~~~\r\nbinacpp_websocket.cpp:116:43: error: ‘LCCSCF_ALLOW_SELFSIGNED’ was not declared in this scope\r\n  ccinfo.ssl_connection = LCCSCF_USE_SSL | LCCSCF_ALLOW_SELFSIGNED | LCCSCF_SKIP_SERVER_CERT_HOSTNAME_CHECK;\r\n                                           ^~~~~~~~~~~~~~~~~~~~~~~\r\nbinacpp_websocket.cpp:116:69: error: ‘LCCSCF_SKIP_SERVER_CERT_HOSTNAME_CHECK’ was not declared in this scope\r\n  ccinfo.ssl_connection = LCCSCF_USE_SSL | LCCSCF_ALLOW_SELFSIGNED | LCCSCF_SKIP_SERVER_CERT_HOSTNAME_CHECK;\r\n                                                                     ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~\r\nMakefile:42: recipe for target '../lib/libbinacpp/lib/binacpp_websocket.o' failed\r\nmake: *** [../lib/libbinacpp/lib/binacpp_websocket.o] Error 1\r\n\r\n```\r\nAny ideas what could be the cause?\r\n\r\n"},"comment":{"url":"https://api.github.com/repos/binance-exchange/binacpp/issues/comments/375475438","html_url":"https://github.com/binance-exchange/binacpp/issues/24#issuecomment-375475438","issue_url":"https://api.github.com/repos/binance-exchange/binacpp/issues/24","id":375475438,"user":{"login":"AlconDivino","id":36964650,"avatar_url":"https://avatars0.githubusercontent.com/u/36964650?v=4","gravatar_id":"","url":"https://api.github.com/users/AlconDivino","html_url":"https://github.com/AlconDivino","followers_url":"https://api.github.com/users/AlconDivino/followers","following_url":"https://api.github.com/users/AlconDivino/following{/other_user}","gists_url":"https://api.github.com/users/AlconDivino/gists{/gist_id}","starred_url":"https://api.github.com/users/AlconDivino/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/AlconDivino/subscriptions","organizations_url":"https://api.github.com/users/AlconDivino/orgs","repos_url":"https://api.github.com/users/AlconDivino/repos","events_url":"https://api.github.com/users/AlconDivino/events{/privacy}","received_events_url":"https://api.github.com/users/AlconDivino/received_events","type":"User","site_admin":false},"created_at":"2018-03-22T22:15:56Z","updated_at":"2018-03-22T22:15:56Z","author_association":"NONE","body":"i updated the libwebsocketspackage and now i compiled everything and i can work with it.\r\n\r\nYes i'm pretty new and thanks for the advice.\r\n\r\nNow i'm gonna see how that whole json thing works and I'llbe fine"}}
{"actor":{"display_login":"AlconDivino"}}