markondej / fm_transmitter

Raspberry Pi as FM transmitter
1.3k stars 289 forks source link

Compile error #186

Open fuadxtps23 opened 1 year ago

fuadxtps23 commented 1 year ago

g++ -Wall -O3 -std=c++11 -DVERSION=\"0.9.6\" -DEXECUTABLE=\"fm_transmitter\" -c fm_transmitter.cpp g++ -Wall -O3 -std=c++11 -c mailbox.c g++ -Wall -O3 -std=c++11 -c wave_reader.cpp g++ -Wall -O3 -std=c++11 -fno-strict-aliasing -I/opt/vc/include -c transmitter.cpp transmitter.cpp:36:10: fatal error: bcm_host.h: No such file or directory 36 | #include | ^~~~ compilation terminated. make: *** [makefile:19: transmitter.o] Error 1

fuadxtps23 commented 1 year ago

like there is having missing files, but what files🤔

markondej commented 1 year ago

The more important question is: using which OS (distro)? These libraries are normally included in Raspbian OS. I am assuming You are using Raspberry Pi board of any kind.

If You're trying to cross compile the transmitter app try installing these packages before (https://raspberrypi.stackexchange.com/questions/36121/fatal-error-bcm-host-h-no-such-file-or-directory-compilation-terminated):

sudo apt-get install libraspberrypi-dev raspberrypi-kernel-headers
fuadxtps23 commented 1 year ago

The more important question is: using which OS (distro)? These libraries are normally included in Raspbian OS. I am assuming You are using Raspberry Pi board of any kind.

If You're trying to cross compile the transmitter app try installing these packages before (https://raspberrypi.stackexchange.com/questions/36121/fatal-error-bcm-host-h-no-such-file-or-directory-compilation-terminated):

sudo apt-get install libraspberrypi-dev raspberrypi-kernel-headers

im using kali linux

markondej commented 1 year ago

I will try compiling using kali linux and let you know if this issue can be solved