Skip to content

build script not working on macOS #14

@moritzschell

Description

@moritzschell

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!

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions