Skip to content

Getting error with current release Hzeller lib on Rpi 3+ 4.14.84-v7+  #3

@trlafleur

Description

@trlafleur
g++ -I../rpi-rgb-led-matrix/include -I../json-c -Wall -O3 -g -Wextra -Wno-unused-parameter `GraphicsMagick++-config --cppflags --cxxflags` -c -o MQTTpanel.o MQTTpanel.cc
MQTTpanel.cc: In function ‘int initPanel(int, char**)’:
MQTTpanel.cc:520:49: error: invalid conversion from ‘json_bool {aka int}’ to ‘const char*’ [-fpermissive]
   displayTime.timezone = json_object_get_boolean(keyObject);
                          ~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~
MQTTpanel.cc:583:49: error: invalid conversion from ‘json_bool {aka int}’ to ‘const char*’ [-fpermissive]
   displayDate.timezone = json_object_get_boolean(keyObject);
                          ~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~
MQTTpanel.cc:668:70: warning: ‘void rgb_matrix::RGBMatrix::ApplyStaticTransformer(const rgb_matrix::CanvasTransformer&)’ is deprecated [-Wdeprecated-declarations]
   canvas->ApplyStaticTransformer(rgb_matrix::RotateTransformer(angle));  // <-------trl
                                                                      ^
In file included from MQTTpanel.cc:30:0:
../rpi-rgb-led-matrix/include/led-matrix.h:300:8: note: declared here
   void ApplyStaticTransformer(const CanvasTransformer &transformer) __attribute__((deprecated)) {
        ^~~~~~~~~~~~~~~~~~~~~~
MQTTpanel.cc: In function ‘void DisplayAnimation(rgb_matrix::RGBMatrix*, rgb_matrix::FrameCanvas*, int)’:
MQTTpanel.cc:881:30: error: ‘struct _Text’ has no member named ‘zone’
     setenv("TZ", displayTime.zone, 1);
                              ^~~~
MQTTpanel.cc:895:30: error: ‘struct _Text’ has no member named ‘zone’
     setenv("TZ", displayDate.zone, 1);
                              ^~~~
MQTTpanel.cc: In function ‘void message_callback(mosquitto*, void*, const mosquitto_message*)’:
MQTTpanel.cc:1040:3: error: expected ‘;’ before ‘strcpy’
   strcpy((char *)displayTime.timezone, (char *)message->payload);
   ^~~~~~
MQTTpanel.cc:1040:65: warning: statement is a reference, not call, to function ‘strcpy’ [-Waddress]
   strcpy((char *)displayTime.timezone, (char *)message->payload);
                                                                 ^
MQTTpanel.cc:1040:65: warning: statement has no effect [-Wunused-value]
MQTTpanel.cc:1077:3: error: expected ‘;’ before ‘strcpy’
   strcpy((char *)displayDate.timezone, (char *)message->payload);
   ^~~~~~
MQTTpanel.cc:1077:65: warning: statement is a reference, not call, to function ‘strcpy’ [-Waddress]
   strcpy((char *)displayDate.timezone, (char *)message->payload);
                                                                 ^
MQTTpanel.cc:1077:65: warning: statement has no effect [-Wunused-value]
Makefile:52: recipe for target 'MQTTpanel.o' failed
make: *** [MQTTpanel.o] Error 1

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