Coder Social home page Coder Social logo

njazz / mqtt-client-object Goto Github PK

View Code? Open in Web Editor NEW
4.0 2.0 1.0 19.5 MB

Puredata and Max MQTT client object

License: GNU General Public License v3.0

CMake 4.92% Max 3.61% C 0.03% C++ 91.21% Shell 0.23%
mqtt-client puredata maxmsp maxmsp-external puredata-external

mqtt-client-object's People

Contributors

i-n-g-o avatar njazz avatar

Stargazers

 avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

Forkers

i-n-g-o

mqtt-client-object's Issues

crash on windows when publishing

Hi.

When running the external on windows (compiled with mingw) using Pd i experience crashes when publishing a value.
The exception code is: 0xc0000094. Which apparently is a division by zero (STATUS_INTEGER_DIVIDE_BY_ZERO)

Connecting and subscribing works fine.

I guess this happens somewhere in the mqtt library.

Do you have any idea what that could be?

build script not working on macOS

Hi,

I'm trying to compile mqtt-client-object for pd on MacOS via terminal and the build script seems not to work

Error: could not load cache 
make: *** No targets specified and no makefile found.  Stop.

Thanks to the great help of @i-n-g-o I think I'm halfway to the solution. As mentioned I did the following steps:

  • cd into build/osx folder
  • cmake ../..

These steps seemed to work.

When I do the next step:

make -j 8

I can see some progress, but after 76% I get some warnings:

mqtt-client-object/third_party/paho.mqtt.c/src/StackTrace.c:112:34: warning: cast to smaller integer type 'int' from 'pthread_t' (aka 'struct _opaque_pthread_t *') [-Wpointer-to-int-cast]
                Log_stackTrace(trace_level, 9, (int)my_thread->id, my_thread->current_depth, name, line, NULL);

And after 96% I get some Errors:

In file included from /Users/ms/Desktop/mqtt-client-object/modules/mqtt-client/src/mqtt_client.cpp:1:
In file included from /Users/ms/Desktop/mqtt-client-object/modules/mqtt-client/../mqtt-object-common/src/MQTTClient.hpp:1:
In file included from /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/../include/c++/v1/functional:502:
In file included from /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/../include/c++/v1/typeinfo:60:
In file included from /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/../include/c++/v1/exception:81:
In file included from /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/../include/c++/v1/cstdlib:85:
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/../include/c++/v1/stdlib.h:93:15: fatal error: 'stdlib.h' file not found
#include_next <stdlib.h>
              ^~~~~~~~~~
1 error generated.
make[2]: *** [modules/mqtt-client/CMakeFiles/mqtt_client_pd.dir/src/mqtt_client.cpp.o] Error 1
make[1]: *** [modules/mqtt-client/CMakeFiles/mqtt_client_pd.dir/all] Error 2
make[1]: *** Waiting for unfinished jobs....
1 error generated.
make[2]: *** [modules/mqtt-client/CMakeFiles/mqtt_client_max.dir/src/mqtt_client.cpp.o] Error 1
make[1]: *** [modules/mqtt-client/CMakeFiles/mqtt_client_max.dir/all] Error 2
make: *** [all] Error 2

Could you help me with this part as well. Thanks a lot!

dll crash on windows, trying to rebuild

Hi, I'm using mqtt_client with purr-data for a class. It works great for students working on Mac OS. On windows, we get an error:

The procedure entry point _Unwind_Resume could not be located in the dynamic link library C:\Program Files\Purr Data\extra\mqtt_client.dll

I thought I might try to recompile the library from source, but I have scant experience building on windows with mingw.

A few questions:

  • Did you all use mingw32 installed through MSYS2 to test the windows build?
  • Do you have any tips/instructions on build environment setup?
  • Have you tried this with purr-data on windows, as opposed to puredata?

Thanks!

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.