jinq0123 / grpc-lua Goto Github PK
View Code? Open in Web Editor NEWThe Lua gRPC binding. HTTP/2 based RPC http://grpc.io
License: BSD 3-Clause "New" or "Revised" License
The Lua gRPC binding. HTTP/2 based RPC http://grpc.io
License: BSD 3-Clause "New" or "Revised" License
conan create . user/channel --build missing
Auto detecting your dev setup to initialize the default profile (/Users/vbandam/.conan/profiles/default)
Found apple-clang 12.0
Default settings
os=Macos
os_build=Macos
arch=x86_64
arch_build=x86_64
compiler=apple-clang
compiler.version=12.0
compiler.libcxx=libc++
build_type=Release
*** You can change them in /Users/vbandam/.conan/profiles/default ***
*** Or override with -s compiler='other' -s ...s***
Exporting package recipe
grpc-lua/0.1@user/channel: A new conanfile.py version was exported
grpc-lua/0.1@user/channel: Folder: /Users/vbandam/.conan/data/grpc-lua/0.1/user/channel/export
grpc-lua/0.1@user/channel: Exported revision: 413280be5bcd4269060cd21f870be801
Configuration:
[settings]
arch=x86_64
arch_build=x86_64
build_type=Release
compiler=apple-clang
compiler.libcxx=libc++
compiler.version=12.0
os=Macos
os_build=Macos
[options]
[build_requires]
[env]
grpc_cb_core/0.1@jinq0123/testing: Not found in local cache, looking in remotes...
grpc_cb_core/0.1@jinq0123/testing: Trying with 'conancenter'...
grpc_cb_core/0.1@jinq0123/testing: Trying with 'remote_bintray_conan-community'...
ERROR: Failed requirement 'grpc_cb_core/0.1@jinq0123/testing' from 'grpc-lua/0.1@user/channel'
ERROR: 410: Gone. [Remote: remote_bintray_conan-community]
Got a lot of 410 errors when trying to build from source, most if all remote_bintray_* remotes don't exist anymore!?
the repository seems to no longer exist. can anyone confirm this?
Update:
Ok, so I was able to build everything (yay) but when importing the libgrpc_lua.so
there's some weird stuff going on. I tried adding it to the same folder of the lua file I'm running with lua 5.2. If I use it as your README file says, it's just does not find the lib, so I had to do this:
print("requiring lib")
local grpc = require "grpc_lua_c"
print("loaded lib")
which does not raise an error, but does not import the file, I only see the first print.
Am I doing anything wrong?
following content is compile error log. how can i fix ?
/usr/bin/ld: CMakeFiles/lua-cpp-console.dir/src/lua.cpp.o: undefined reference to symbol 'readline'
//usr/lib64/libreadline.so.6: error adding symbols: DSO missing from command line
collect2: error: ld returned 1 exit status
gmake[2]: *** [lua-cpp] Error 1
gmake[1]: *** [CMakeFiles/lua-cpp-console.dir/all] Error 2
gmake[1]: *** Waiting for unfinished jobs....
[100%] Built target luac-cpp
gmake: *** [all] Error 2
lua-cpp/5.3.4@jinq0123/testing:
lua-cpp/5.3.4@jinq0123/testing: ERROR: Package '4f7d6d5032b1a188f98e0c149ef6bf91e76af63e' build failed
lua-cpp/5.3.4@jinq0123/testing: WARN: Build folder /root/.conan/data/lua-cpp/5.3.4/jinq0123/testing/build/4f7d6d5032b1a188f98e0c149ef6bf91e76af63e
ERROR: lua-cpp/5.3.4@jinq0123/testing: Error in build() method, line 32
cmake.build()
ConanException: Error 2 while executing cmake --build '/root/.conan/data/lua-cpp/5.3.4/jinq0123/testing/build/4f7d6d5032b1a188f98e0c149ef6bf91e76af63e' '--' '-j8'
This's wrong message.
/usr/bin/ld: cannot find -lreadline
collect2: error: ld returned 1 exit status
gmake[2]: *** [liblua-cpp.so] Error 1
gmake[1]: *** [CMakeFiles/lua-cpp.dir/all] Error 2
gmake: *** [all] Error 2
lua-cpp/5.3.4@jinq0123/testing:
lua-cpp/5.3.4@jinq0123/testing: ERROR: Package '4f7d6d5032b1a188f98e0c149ef6bf91e76af63e' build failed
lua-cpp/5.3.4@jinq0123/testing: WARN: Build folder /root/.conan/data/lua-cpp/5.3.4/jinq0123/testing/build/4f7d6d5032b1a188f98e0c149ef6bf91e76af63e
ERROR: lua-cpp/5.3.4@jinq0123/testing: Error in build() method, line 32
cmake.build()
ConanException: Error 512 while executing cmake --build '/root/.conan/data/lua-cpp/5.3.4/jinq0123/testing/build/4f7d6d5032b1a188f98e0c149ef6bf91e76af63e' '--' '-j8'
run "conan create . user/channel --build missing" on mac and be required to login with username:
Please log in to "remote_bintray_jinq0123" to perform this action. Execute "conan user" command.
How can i create it on my mac?
Is there a way to provide your own socket connecting/reading/writing functionality?
Or alternatively, a way to get the underlying file descriptor that needs to be waited on?
Thanks.
Attempting to run the examples with Lua52, Lua51 and LuaJIT result in the examples hanging or crashing.
Is there any possibility of supporting lua51 release which will also add support for the popular and the very fast http://luajit.org/ lua implementation?
I am relatively new to the lua ecosystem so I am not sure how difficult this will be (although I am assuming it is not trivial amount of work given the number of dependencies etc.).
Based on martanne/vis#291 it looks like it could be possible to get LuaJit compatible with 5.2 although most applications of luaJit would probably not be using this patch.
follow your build step
can not build success!
error log:
Unable to load conanfile in /Users//.conan/data/Protobuf/3.4.1/jinq0123/testing/export/conanfile.py
File "/Users//.conan/data/Protobuf/3.4.1/jinq0123/testing/export/conanfile.py", line 1, in
from conans import ConanFile, CMake, tools, ConfigureEnvironment
ImportError: cannot import name ConfigureEnvironment
I have no idea how to implement the Subj. Is there any way to call service own methods over RPC?
greeter_service.lua
--- Hello world greeter example server side service.
-- greeter_service.lua
local M = {}
local grpc = require("grpc_lua.grpc_lua")
grpc.import_proto_file("helloworld.proto")
--- Public functions.
-- @section public
function M.SayHello(request, replier)
assert("table" == type(request))
assert("table" == type(replier))
print("Got hello from "..request.name)
-- replier:reply() can be called later after return.
local response = { message = "Hello "..request.name }
replier:reply(response);
end -- SayHello()
function M.shutdown()
--self:shutdown() !!! Something like this
end
return M
能不能把编译好的.so上传一份啊
How about making a rockspec for luarock package and upload it to the luarock website ?
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.