citrus-it / picube

Raspberry Pi Linux Software for the SuperTech-IT 8x8x8 RGB LED Cube
http://picube.uk/
MIT License
6 stars 3 forks source link

picube make install fails #5

Open Algibbs opened 4 years ago

Algibbs commented 4 years ago

cloning: git clone https://github.com/hummypkg/picube.git

make install fails on the following:

util.c

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 togpio_write' /usr/bin/ld: /home/pi/jimtcl/picube/cube.c:513: undefined reference to gpio_write' /usr/bin/ld: cube.o: in functioncube_off': /home/pi/jimtcl/picube/cube.c:528: undefined reference to gpio_write' /usr/bin/ld: cube.o: in functioncube_refresh': /home/pi/jimtcl/picube/cube.c:582: undefined reference to gpio_write' /usr/bin/ld: /home/pi/jimtcl/picube/cube.c:583: undefined reference togpio_write' /usr/bin/ld: cube.o:/home/pi/jimtcl/picube/cube.c:595: more undefined references to gpio_write' follow /usr/bin/ld: cube.o: in functioncube_load_layer': /home/pi/jimtcl/picube/cube.c:675: undefined reference to gpio_toggle_high' /usr/bin/ld: /home/pi/jimtcl/picube/cube.c:680: undefined reference togpio_toggle_high' /usr/bin/ld: cube.o: in function cube_layer_control': /home/pi/jimtcl/picube/cube.c:742: undefined reference togpio_write' collect2: error: ld returned 1 exit status make: *** [Makefile:36: cube] Error 1

Algibbs commented 4 years ago

same failure happens after cloning from citrus-it: git clone https://github.com/citrus-it/picube.git

citrus-it commented 4 years ago

Try with the latest code. I've updated the code to fix the warnings and errors generated by newer compilers.

Algibbs commented 4 years ago

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?