Comments (3)
The outputs include several .a
files and a .dylib
file placed in such as
/Users//Library/Developer/Xcode/DerivedData/<..........>/Build/Products/Default.
Sorry to tell you that we have not provided friendly compilation method for some platforms, because of lacking of time and energy.
The C# binding is contributed by @hbbalfred , and @zhouzizi has compiled libpomelo2 for iOS and Mac desktop successfully #27. So I think they may be helpful to you.
Thanks.
from libpomelo2.
hi sam,
as cynron said you can copy the bundle file into unity project, actually the step is manually for me (if someone have a better way to do it, please tell me thx)
and then .bundle
suffix is necessary when unity import the dynamic library in MacOS, so far that is used for build on unity editor.
if you want to build it on android you can execute the build_plugin.sh
.
in fact the script compile the lib by android ndk set in your env.
i am sorry for ios where i have no test.
i think it maybe similar as unity editor but put the lib into Assets/Plugins/iOS
hope these can help you:)
from libpomelo2.
Hello @hbbalfred and @cynron !
Thank you very much for your quick response!
These did help a lot -- I had found that renaming .dylib to .bundle had the result I wanted. Mainly I am now stuck on using the library in my Unity project.
I have included the .bundle in the test Unity project here but it looks to be expecting a DllImport of cspomelo, which it does not find and throws DllNotFoundException.
When I rename the build file libcspomelo.bundle to cspomelo.bundle and run the scene, it crashes Unity.
Even trying to use the library in a C# script, I cannot find the reference to include. Am I using the OSX library incorrectly?
from libpomelo2.
Related Issues (20)
- Should C# plugin(win) be a single cspomelo.dll instead of two DLLs (cspomelo.dll and libpomelo2.dll) ?
- IOS上使用时,经常出现Assertion failed: (stream->write_queue_size >= len), function uv__write HOT 3
- java.lang.UnsatisfiedLinkError: dalvik.system.PathClassLoader[DexPathList[[zip file "/data/app/com.yousi.sjtujj-1/base.apk"],nativeLibraryDirectories=[/data/app/com.yousi.sjtujj-1/lib/arm64, /vendor/lib64, /system/lib64]]] couldn't find "libjpomelo.so" HOT 5
- Can you complete the documentation on platform of iOS?
- Assertion failed in function uv_close() when cleanup a PC_ST_INITED client. HOT 2
- Assertion fail when connect and disconnect then cleanup without delay. HOT 8
- pc_client_cleanup() inside pc_client_poll() bug. HOT 1
- 事件宏的时态不一致 HOT 1
- pc_notify_with_timeout inside pc_client_poll will never returns. HOT 6
- libpomelo2 on android with ssl HOT 1
- lipomelo2的事件回调是否存在队列
- 怎么编译成android下的libjpomelo.so文件 HOT 1
- ret = client->trans->cleanup(client->trans); windows下一直block住无法结束,慢慢的单步执行可以过去。 HOT 11
- xcode下ios平台编译失败
- Integrate with Cocos2d-x
- 安卓编译报这个错误是什么原因? error: undefined reference to 'getifaddrs' HOT 1
- 请问支持ipv6吗?
- c版本库导致进程宕机问题
- 多线程callback问题
- tcp__on_tcp_read_cb - read from tcp error: end of file,will reconn
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 libpomelo2.