Project-MQTTpanel icon indicating copy to clipboard operation
Project-MQTTpanel copied to clipboard

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

Open trlafleur opened this issue 6 years ago • 6 comments

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

trlafleur avatar Dec 04 '18 17:12 trlafleur

Did you find a solution? Having the exact same errors.

avandeputte avatar Dec 16 '18 03:12 avandeputte

I gave up on this program, move on to: https://partofthething.com/infopanel much easier to use....

trlafleur avatar Dec 16 '18 06:12 trlafleur

I have also given up on Project-MQTTPanel. What steps did you use to get the infopanel dependencies loaded for it to run? i cant get the correct pip or mathplotlib installed.

climy avatar Dec 16 '18 06:12 climy

I have a friend who is a linux/python guy fix it for me... he loaded them manually... sorry....

trlafleur avatar Dec 16 '18 14:12 trlafleur

file an issue on their site...

~~ _/) ~~~~ _/) ~~~~ _/) ~~~~ _/) ~~

Tom Lafleur

On Sat, Dec 15, 2018 at 10:48 PM climy [email protected] wrote:

I have also given up on Project-MQTTPanel. What steps did you use to get the infopanel dependencies loaded for it to run? i cant get the correct pip or mathplotlib installed.

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/MickMake/Project-MQTTpanel/issues/3#issuecomment-447621670, or mute the thread https://github.com/notifications/unsubscribe-auth/AEXCKxVGLV3k-au5qwMNzJgRF-XZ2talks5u5ey4gaJpZM4ZBL-2 .

trlafleur avatar Dec 16 '18 14:12 trlafleur

I got it.

climy avatar Dec 17 '18 05:12 climy