Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Compile error #186

Open
fuadxtps23 opened this issue Jun 14, 2023 · 4 comments
Open

Compile error #186

fuadxtps23 opened this issue Jun 14, 2023 · 4 comments

Comments

@fuadxtps23
Copy link

fuadxtps23 commented Jun 14, 2023

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 <bcm_host.h>
| ^~~~~~~~~~~~
compilation terminated.
make: *** [makefile:19: transmitter.o] Error 1

@fuadxtps23
Copy link
Author

fuadxtps23 commented Jun 15, 2023

like there is having missing files, but what files🤔

@markondej
Copy link
Owner

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
Copy link
Author

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
Copy link
Owner

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants