enwi / dartzmq

A simple dart zeromq implementation/wrapper around the libzmq C++ library
https://pub.dev/documentation/dartzmq/latest/
MIT License
26 stars 17 forks source link

Support iOS and MacOS platforms #11

Open wajahat414 opened 1 year ago

wajahat414 commented 1 year ago
image
enwi commented 1 year ago

Did you put a shared library binary next to your executable?

wajahat414 commented 1 year ago

As we identified the problem was with different Api level, so should we report an issue on the zeromq library repo?

wajahat414 commented 1 year ago

It is Working uptil Api 32 Android 12, But Not on Api 33 Android 13

wajahat414 commented 1 year ago

Also After Adding IOS platform when I Run giving the same error, could not load zmq

enwi commented 1 year ago

As we identified the problem was with different Api level, so should we report an issue on the zeromq library repo?

I don't think it has to do sth. with the ZeroMQ library per se. More likely that the binaries I am supplying are built with Android NDK r21e

enwi commented 1 year ago

Also After Adding IOS platform when I Run giving the same error, could not load zmq

Have you built ZeroMQ binaries for iOS?

wajahat414 commented 1 year ago

yes r21e does not support latest version yet maybe thats why

wajahat414 commented 1 year ago
Screen Shot 2022-09-30 at 5 32 30 PM

https://docs.flutter.dev/development/platform-integration/ios/c-interop

For IOS I dont really understood what does this mean, I replaced the functiion DynamicLibrary.open with DynamicLibrary.process for platform IOS but it gave me errors

Screen Shot 2022-09-30 at 5 35 19 PM
enwi commented 1 year ago

yes r21e does not support latest version yet maybe thats why

Then I will need to rebuild the android libraries

enwi commented 1 year ago
Screen Shot 2022-09-30 at 5 32 30 PM

https://docs.flutter.dev/development/platform-integration/ios/c-interop

For IOS I dont really understood what does this mean, I replaced the functiion DynamicLibrary.open with DynamicLibrary.process for platform IOS but it gave me errors

On iOS and MacOS calling DynamicLibrary.process() is only a piece of the cake. We also need a .platform version of the libzmq

enwi commented 1 year ago

https://docs.flutter.dev/development/platform-integration/macos/c-interop#compiled-dynamic-library

wajahat414 commented 1 year ago

But I wan to make it work for IOS , whn I try

Screen Shot 2022-10-03 at 10 30 06 AM

to compile zmq.a to xcframework I am getting this error,

enwi commented 1 year ago

Did you follow these instructions? https://docs.flutter.dev/development/platform-integration/macos/c-interop#compiled-dynamic-library-macos

wajahat414 commented 1 year ago

Yeah I read The documentation these instructions are for MAc OS support not IOS, for IIOS I have to creata .framework from zmq.a

wajahat414 commented 1 year ago

for MAcOS it is simple can be done later , IOS is the main problem here

wajahat414 commented 1 year ago

After updating binaries for android now it supports latest API level

wajahat414 commented 1 year ago

But there is an error

Screen Shot 2022-10-05 at 1 57 45 PM

in the example when you click the send button twice without first starting the server

wajahat414 commented 1 year ago

and please merge changes in the main branch , and add a new version to the package so the changes reflect in the package.

enwi commented 1 year ago

and please merge changes in the main branch , and add a new version to the package so the changes reflect in the package.

I want to test it first

wajahat414 commented 1 year ago

I tried adding support for ios platform but turned out the the version you were using of zmq was different

wajahat414 commented 1 year ago

IOS-platform Done