AgriVision / pisstv

Raspbery Pi SSTV camera
94 stars 35 forks source link

Permission Denied when running pisstv.c #4

Open KenwoodFox opened 6 years ago

KenwoodFox commented 6 years ago

Hey! Ive done everything i could think of to make this work, i made a modification to the .sh file in your code to let it use a webcam image of the same size, image.png, i dont have a pi camera. Here is what Im getting though when i try to run pisstv.c as included in the sstvcam.sh

./pisstv.c: 2: ./pisstv.c: //: Permission denied
./pisstv.c: 3: ./pisstv.c: //: Permission denied
./pisstv.c: 5: ./pisstv.c: //: Permission denied
./pisstv.c: 7: ./pisstv.c: //: Permission denied
./pisstv.c: 8: ./pisstv.c: //: Permission denied
./pisstv.c: 9: ./pisstv.c: //: Permission denied
./pisstv.c: 22: ./pisstv.c: //: Permission denied
./pisstv.c: 23: ./pisstv.c: //: Permission denied
./pisstv.c: 24: ./pisstv.c: //: Permission denied
./pisstv.c: 31: ./pisstv.c: //: Permission denied
./pisstv.c: 34: ./pisstv.c: //: Permission denied
./pisstv.c: 36: ./pisstv.c: //#define: not found
./pisstv.c: 46: ./pisstv.c: //: Permission denied
./pisstv.c: 47: ./pisstv.c: //: Permission denied
./pisstv.c: 48: ./pisstv.c: //: Permission denied
./pisstv.c: 50: ./pisstv.c: uint16_t: not found
./pisstv.c: 51: ./pisstv.c: uint32_t: not found
./pisstv.c: 52: ./pisstv.c: double: not found
./pisstv.c: 53: ./pisstv.c: double: not found
./pisstv.c: 55: ./pisstv.c: FILE: not found
./pisstv.c: 56: ./pisstv.c: FILE: not found
./pisstv.c: 57: ./pisstv.c: gdImagePtr: not found
./pisstv.c: 58: ./pisstv.c: uint16_t: not found
./pisstv.c: 60: ./pisstv.c: //: Permission denied
./pisstv.c: 61: ./pisstv.c: //: Permission denied
./pisstv.c: 62: ./pisstv.c: //: Permission denied
./pisstv.c: 64: ./pisstv.c: Syntax error: "(" unexpected
sudo: ./pifm_sstv: command not found

A little help would be super apreciated! thank you!

AgriVision commented 6 years ago

you need to compile pisstv.c as stated in line 4 of the source: // Note: Compile me thus: gcc -lgd -lmagic -o sstvX sstvX.c

KenwoodFox commented 6 years ago

Sorry again if im just being stupid, I have no idea where to really look for how to fix this

pi@raspberrypi:~/SSTV/pisstv $ gcc -lgd -lmagic -o sstvX sstvX.c
gcc: error: sstvX.c: No such file or directory
pi@raspberrypi:~/SSTV/pisstv $ gcc -lgd -lmagic -o pisstv pisstv.c
/usr/bin/ld: /tmp/ccuRXYyq.o: undefined reference to symbol 'sin@@GLIBC_2.4'
//lib/arm-linux-gnueabihf/libm.so.6: error adding symbols: DSO missing from command line
collect2: error: ld returned 1 exit status
pi@raspberrypi:~/SSTV/pisstv $

Still cant seem to compile, am i missing software?