3
votes
Accepted
GCC and makefile on Raspberry Pi running NOOBS deletes my c file
The -o option to gcc specifies the name to be given to the executable. You are saying name the executable as the input source code. That is almost certainly an error.
2
votes
Accepted
Makefile file format not recognized when using cross compiler
There are no build rules for the object files you list as dependencies, so Make compiles them using its default rule, using g++, i.e. the native compiler, not the cross-compiler. You then try to link ...
1
vote
Problem trying to build 32bit kernel with Pi OS Lite 32 on Pi4B hardware
even though I've specified KERNEL=kernel7l
Those instructions from https://www.raspberrypi.com/documentation/computers/linux_kernel.html have a problem.
$ cd linux
$ KERNEL=kernel7
$ make ...
1
vote
Makefile file format not recognized when using cross compiler
The problem is that you set CC for the cross compiler, but you need to set CXX to set the C++ cross compiler. Since you didn't change that, it used the native C++ compiler, and the object files are ...
1
vote
Cross compiling and sysroot
I can't answer your question, but I've been trying to do the same thing, and removing the SYSROOT setting (despite everything else I've read saying it was needed) was the key I needed. I can now ...
1
vote
Accepted
Make Error (trying to install openOCD)
I was able to resolve my problem following the installation steps mentioned in this tutorial.
From the tutorial, I did the following (after reflashing Raspian to my SD):
$ sudo apt-get build-dep ...
1
vote
Installing thermal printer on raspbian jessie (make failing)
Have you made sure that the necessary packages are installed? If not, try sudo apt-get install libcups2-dev libcupsimage2-dev.
Anyways, are you using exactly the specific printer the CUPS filter is ...
1
vote
How to compile PrimePoolMiner on Raspberry Pi
You seem to be missing Boost libraries, so the next step would be to install those:
apt-get install libboost-all-dev
PS. You may want to take a look in this thread if you have further issues. The ...
1
vote
what's the purpose of objcopy command?
ELF is a file format for executable programs. When you compile code, the binary instructions are placed into this format so that the operating system (eg, Linux) can run it. It has lots of sections ...
Only top scored, non community-wiki answers of a minimum length are eligible
Related Tags
makefile × 17make × 5
raspbian × 4
kernel × 4
cross-compilation × 4
linux × 3
gcc × 3
software-compilation × 2
python × 1
pi-2 × 1
pi-4 × 1
raspbian-jessie × 1
ubuntu × 1
software-installation × 1
noobs × 1
debian × 1
driver × 1
raspberry-pi-os × 1
node.js × 1
wiringpi × 1
raspi-config × 1
sudo × 1
modules × 1
cups × 1
debug × 1