Giter Site home page Giter Site logo

技术渣新手求助 我在mac环境编译 遇到了这个问题 查了好久 实在不知道怎么搞了, 求云风大神指点 about talkbox HOT 6 OPEN

forthxu avatar forthxu commented on August 13, 2024
技术渣新手求助 我在mac环境编译 遇到了这个问题 查了好久 实在不知道怎么搞了, 求云风大神指点

from talkbox.

Comments (6)

forthxu avatar forthxu commented on August 13, 2024

protobuf编译失败 对这个单独编译看看

from talkbox.

phynero avatar phynero commented on August 13, 2024

echo " >>---------- 处理protocbuf ----------"

mv ./3rd/pbc/Makefile ./3rd/pbc/Makefile.bak

mv ./3rd/pbc/binding/lua/Makefile ./3rd/pbc/binding/lua/Makefile.bak

cp ./3rd/pbcMakefile ./3rd/pbc/Makefile

cp ./3rd/pbcluaMakefile ./3rd/pbc/binding/lua/Makefile

cd ./3rd/pbc/ && make && cd ./binding/lua/ && make && cd ../../../../

# 生成协议

我自己编译了protobuf2.5 生成的protoc软甩到了user/bin 然后把上面的部分注释掉 直接执行下面那句 然后还是有问题
protoc -o ./res/talkbox.pb ./res/talkbox.proto

=============================================
phynero@mac:/project/skytest/talkbox > bash clean.sh
Would remove 3rd/log/
Would remove 3rd/tmp/
Would remove res/talkbox.pb
phynero@mac:
/project/skytest/talkbox > bash start.sh

---------- 开始 ----------
---------- 处理protocbuf ----------
---------- 处理协议 ----------
Undefined symbols for architecture x86_64:
"_luaL_checkinteger", referenced from:
__pack in lua-p-59cfc6.o
"_luaL_checklstring", referenced from:
__pack in lua-p-59cfc6.o
__unpack in lua-p-59cfc6.o
"_luaL_error", referenced from:
__pack in lua-p-59cfc6.o
"_luaL_setfuncs", referenced from:
_luaopen_p_core in lua-p-59cfc6.o
"_lua_createtable", referenced from:
_luaopen_p_core in lua-p-59cfc6.o
__add in lua-p-59cfc6.o
__unpack in lua-p-59cfc6.o
"_lua_pushinteger", referenced from:
__unpack in lua-p-59cfc6.o
"_lua_pushlstring", referenced from:
__pack in lua-p-59cfc6.o
"_lua_pushnumber", referenced from:
__add in lua-p-59cfc6.o
"_lua_pushstring", referenced from:
__add in lua-p-59cfc6.o
__unpack in lua-p-59cfc6.o
"_lua_rawseti", referenced from:
__add in lua-p-59cfc6.o
"_lua_settable", referenced from:
__add in lua-p-59cfc6.o
__unpack in lua-p-59cfc6.o
"_lua_tonumberx", referenced from:
__add in lua-p-59cfc6.o
ld: symbol(s) not found for architecture x86_64
clang: error: linker command failed with exit code 1 (use -v to see invocation)
---------- 进入skynet目录 ----------
===================================================
不知道怎么搞 求大神赐教

from talkbox.

phynero avatar phynero commented on August 13, 2024

把lua-p.c和lua文件夹单拿到vps上去编译通过了

from talkbox.

phynero avatar phynero commented on August 13, 2024

完全不是那么回事 不过已经在centos上跑通了 暂时在centos上学习了 mac不考虑了

from talkbox.

wantao avatar wantao commented on August 13, 2024

哥,我想知道client和server之间消息包的格式

from talkbox.

wantao avatar wantao commented on August 13, 2024

你的这个不支持枚举 lua loader error : ./lualib/proto_lua/ProtocType_pb.lua:6: attempt to call field 'EnumDescriptor' (a nil value)

from talkbox.

Related Issues (3)

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.