Raspberry pi make error cannot find -lbcm_host - linux

/usr/bin/Id: cannot find -Ibcm_host
collect2: error: Id returned 1 exit status
CMakeFiles/sdl-renderer.dir/build.make:91: recipe for target 'bin/sdl-renderer' failed
make[2]: *** [bin/sdl-renderer] Error 1
CmakeFiles/Makefile2:277: recipe for target 'CMakeFiles/sdl-renderer.dir/all' failed
make[1]: *** [CmakeFiles/sdl-renderer.dir/all] Error 2
Makefile:129: recipe for target 'all' failed
make: *** [all] Error 2
What to do with it?
cmake version 3.13.3
os: debian/retropie

Related

Unable to build and install binutils in Kali linux

I was trying to install OS 161 KALI LINUX version 2020.3 64bit. The first step was to build and install binutils.
The procedure I followed is shown in this .
I configured the binutils and got this output https://pastebin.com/iXjFq3Zu but upon running i got the make command i got the following errors https://pastebin.com/DYSBdUqq .
collect2: error: ld returned 1 exit status
make[4]: *** [Makefile:2551: as-new] Error 1
make[4]: Leaving directory '/home/digzsudi/Downloads/binutils-2.17+os161-2.0.1/gas'
make[3]: *** [Makefile:2596: all-recursive] Error 1
make[3]: Leaving directory '/home/digzsudi/Downloads/binutils-2.17+os161-2.0.1/gas'
make[2]: *** [Makefile:2482: all] Error 2
make[2]: Leaving directory '/home/digzsudi/Downloads/binutils-2.17+os161-2.0.1/gas'
make[1]: *** [Makefile:4860: all-gas] Error 2
make[1]: Leaving directory '/home/digzsudi/Downloads/binutils-2.17+os161-2.0.1'
make: *** [Makefile:627: all] Error 2
root#kali:/home/digzsudi/Downloads/binutils-2.17+os161-2.0.1#

I got kernel compiling error but i cant google it

root#com:/usr/src/linux-source-4.15.0/linux-source-4.15.0# make -C $KERN_DIR M=`pwd` modules
echo $KERN_DIR -> /usr/src/linux-source-4.15.0/linux-source-4.15.0
how can i fix it? i cant find this error
drivers/tty/serdev/core.o: failed
scripts/Makefile.build:330: recipe for target 'drivers/tty/serdev/core.o' failed
make[3]: *** [drivers/tty/serdev/core.o] Error 1
scripts/Makefile.build:604: recipe for target 'drivers/tty/serdev' failed
make[2]: *** [drivers/tty/derdev] Error 2
scripts/Makefile.build:604: recipe for target 'drivers/tty' failed
make[1]: *** [drivers/tty] Error 2
Makefile:1060: recipe for target 'drivers' failed
make: *** [drivers] Error 2

Failed to build iotivity-constrained Zephyr port on Linux

I am trying to build iotivity-constrained Zephyr port on Linux for ESP32 but getting the following errors,
drivers/built-in.o: In function `esp32_uart_init':
/home/toolchains/zephyr/drivers/serial/uart_esp32.c:46:(.text.esp32_uart_init+0x3): dangerous relocation: call8: call target out of range: uartAttach
drivers/built-in.o: In function `esp32_uart_tx':
/home/toolchains/zephyr/drivers/serial/uart_esp32.c:19:(.text.esp32_uart_tx+0x9): dangerous relocation: call8: call target out of range: uart_tx_one_char
collect2: error: ld returned 1 exit status
/home/toolchains/zephyr/Makefile:878: recipe for target 'zephyr_prebuilt.elf' failed
make[2]: *** [zephyr_prebuilt.elf] Error 1
make[2]: Leaving directory '/home/projects/iotivity-constrained/port/zephyr/outdir/esp32'
Makefile:178: recipe for target 'sub-make' failed
make[1]: *** [sub-make] Error 2
make[1]: Leaving directory '/home/toolchains/zephyr'
/home/toolchains/zephyr/Makefile.inc:82: recipe for target 'all' failed
make: *** [all] Error 2
I can build Zephyr and ESP32 separately but not iotivity-constrained. I tried to add -mlongcalls but no success.
Any suggestions?
Add flag -mlongcalls in /zephyr/drivers/serial/Makefile.
References:
IOT-2650

make -j4 error opencv on kali linux

When I execute the command "make -j4", then it doesn't work.
Below is the output that I am getting. How can I fix this problem?
/usr/include/c++/6/cstdlib:75:25: fatal error: stdlib.h: No such file or directory
#include_next <stdlib.h>
^
compilation terminated.
modules/viz/CMakeFiles/pch_Generate_opencv_viz.dir/build.make:62: recipe for target 'modules/viz/precomp.hpp.gch/opencv_viz_Release.gch' failed
make[2]: *** [modules/viz/precomp.hpp.gch/opencv_viz_Release.gch] Error 1
CMakeFiles/Makefile2:3227: recipe for target 'modules/viz/CMakeFiles/pch_Generate_opencv_viz.dir/all' failed
make[1]: *** [modules/viz/CMakeFiles/pch_Generate_opencv_viz.dir/all] Error 2
make[1]: *** Waiting for unfinished jobs....
[ 16%] Built target pch_Generate_opencv_test_video
[ 16%] Built target pch_Generate_opencv_video
[ 16%] Built target pch_Generate_opencv_perf_video
Makefile:160: recipe for target 'all' failed
make: *** [all] Error 2

Building VTK Examples on Ubuntu

After Building vtk with Qt on Ubuntu 16.04 I tried to make a few examples.
Here is one of them:
http://www.vtk.org/Wiki/VTK/Examples/Cxx/Qt/SideBySideRenderWindowsQt#CMakeLists.txt
After running CMake with no errors on configure or generation I try to make but it blows up with this:
[100%] Linking CXX executable SideBySideRenderWindowsQt
/usr/bin/ld: cannot find -lvtkLocalExample
collect2: error: ld returned 1 exit status
CMakeFiles/SideBySideRenderWindowsQt.dir/build.make:278: recipe for target 'SideBySideRenderWindowsQt' failed
make[2]: * [SideBySideRenderWindowsQt] Error 1
CMakeFiles/Makefile2:67: recipe for target 'CMakeFiles/SideBySideRenderWindowsQt.dir/all' failed
make[1]: * [CMakeFiles/SideBySideRenderWindowsQt.dir/all] Error 2
Makefile:83: recipe for target 'all' failed
make: *** [all] Error 2
What should I do?

Resources