Open Algibbs opened 4 years ago
same failure happens after cloning from citrus-it: git clone https://github.com/citrus-it/picube.git
Try with the latest code. I've updated the code to fix the warnings and errors generated by newer compilers.
Thanks, that fixed the build issue. But I have a 4x4x4 picube and the cube doesnt follow any of the cube commands, it lights up some of the leds on the top layer and stays that way. cube.clear wont clear the lit leds, although for the command cube.get - all the values show as 0 None of the cube commands or examples work! Is this GIT project designed specifically for the picube 8x8x8? could this be the issue, if so, can u refer me to the 4x4x4 project?
cloning: git clone https://github.com/hummypkg/picube.git
make install fails on the following:
gcc -static-libgcc \ \ -DPICUBE \ -g -o cube \ anim.o canary.o cube.o gpio.o jim.o main.o sprite.o text.o util.o \ -lpthread -lm -ldl jimtcl/libjim.a jimtcl/initjimsh.o /usr/bin/ld: cube.o: in function
cube_init': /home/pi/jimtcl/picube/cube.c:512: undefined reference to
gpio_write' /usr/bin/ld: /home/pi/jimtcl/picube/cube.c:513: undefined reference togpio_write' /usr/bin/ld: cube.o: in function
cube_off': /home/pi/jimtcl/picube/cube.c:528: undefined reference togpio_write' /usr/bin/ld: cube.o: in function
cube_refresh': /home/pi/jimtcl/picube/cube.c:582: undefined reference togpio_write' /usr/bin/ld: /home/pi/jimtcl/picube/cube.c:583: undefined reference to
gpio_write' /usr/bin/ld: cube.o:/home/pi/jimtcl/picube/cube.c:595: more undefined references togpio_write' follow /usr/bin/ld: cube.o: in function
cube_load_layer': /home/pi/jimtcl/picube/cube.c:675: undefined reference togpio_toggle_high' /usr/bin/ld: /home/pi/jimtcl/picube/cube.c:680: undefined reference to
gpio_toggle_high' /usr/bin/ld: cube.o: in functioncube_layer_control': /home/pi/jimtcl/picube/cube.c:742: undefined reference to
gpio_write' collect2: error: ld returned 1 exit status make: *** [Makefile:36: cube] Error 1