MSP430 compiler not found when using Contiki-NG - iot

I'm trying to simulate a Sky mote with the Cooja simulator shipped with the Contiki-NG project. I access the simulator as stated at their wiki:
cd contiki-ng/tools/cooja
ant
But when I try to compile the hello-world example, which seems to execute the command
make hello-world.sky TARGET=sky
Cooja returns the following error message:
> make hello-world.sky TARGET=sky
make: msp430-gcc: File or directory does not exists
make: msp430-gcc: File or directory does not exists
/bin/sh: 1: msp430-gcc: not found
/bin/sh: 1: msp430-gcc: not found
/bin/sh: 1: test: -lt: unexpected operator
CC ../../os/contiki-main.c
make: msp430-gcc: File or directory does not exists
make: *** [../../Makefile.include:366: build/sky/obj/contiki-main.o] Error 127
Process returned error code 2
I checked that the msp430-gcc was installed and that the file ../../os/contiki-main.c was ok. So why am I facing this error?

Related

SWUpdate building error in yocto. make[1]: *** [swupdate_unstripped] Error 1 , make: *** [sub-make] Error 2

I am building custom image in yocto and I want to include SWUpdate in my image but while building the image I am getting a build error of make[1]: *** [swupdate_unstripped] Error 1 and make: *** [sub-make] Error 2 below are the log messages
/swupdate/2021.04-r0/recipe-sysroot/usr/lib/liblua5.1.a(loadlib.o): undefined reference to symbol 'dlsym##GLIBC_2.17'
/swupdate/2021.04-r0/recipe-sysroot/lib/libdl.so.2: error adding symbols: DSO missing from command line
/swupdate/2021.04-r0/git/Makefile:421: recipe for target 'swupdate_unstripped' failed
I searched the internet about the error I am getting, and according to it if u-boot version and swupdate version are not compatible then the following error occures. But in my case both the swupdate is at its latest verson and even u-boot is at latest version.
I added meta-swupdate in bblayers.config and added swupdate, swupdate-www in IMAGE_INSTALL to add the swupdate in image.

ImageMagick 7.0.7-34 installation gives "undefined reference to `PNGSetExifProfile'"

I'm trying to install ImageMagick 7.0.7-34 on a ubuntu 16.04,
I'm using wget to download the latest version (7.0.7-34) from here http://www.imagemagick.org/download/ImageMagick.tar.gz, then after extracting the tar, I'm running the following inside the extracted folder:
sudo ./configure --with-pango
sudo make
which gives the following error:
make all-am
make[1]: Entering directory '/usr/local/sources/ImageMagick-7.0.7-34'
CCLD utilities/magick
MagickCore/.libs/libMagickCore-7.Q16HDRI.so: undefined reference to `PNGSetExifProfile'
collect2: error: ld returned 1 exit status
Makefile:7042: recipe for target 'utilities/magick' failed
make[1]: *** [utilities/magick] Error 1
make[1]: Leaving directory '/usr/local/sources/ImageMagick-7.0.7-34'
Makefile:5178: recipe for target 'all' failed
make: *** [all] Error 2
I've searched but found nothing concerning this error!, anyone knows how to fix this?
--Update--
A similar issue was opened on ImageMagick's github repo, just an hour ago
This was a mistake we made when adding support for the PNG eXIf chunk. This will be resolved in ImageMagick 7.0.7-35. If you upgrade your libpng library you can also fix the build. You will need a version of libpng that has PNG_READ_eXIf_SUPPORTED defined.
p.s. Next time it will be better to create an issue here: https://github.com/ImageMagick/ImageMagick/issues. You will get a much faster response.

OpenCV 2.4.13.4 Make Error with Mingw64-GCC-5.1

I am trying to compile OpenCV 2.4.13.4 with Mingw64-GCC-5.1 on Windows 10but I keep receiving the following error:
[ 95%] Generating perf_precomp.hpp.gch/opencv_perf_stitching_Release.gch
g++.exe: error: unrecognized command line option '-Wo-array-bounds'
modules\stitching\CMakeFiles\pch_Generate_opencv_perf_stitching.dir\build.make:61: recipe for target 'modules/stitching/perf_precomp.hpp.gch/opencv_perf_stitching_Release.gch' failed
mingw32-make[2]: *** [modules/stitching/perf_precomp.hpp.gch/opencv_perf_stitching_Release.gch] Error 1
CMakeFiles\Makefile2:6569: recipe for target 'modules/stitching/CMakeFiles/pch_Generate_opencv_perf_stitching.dir/all' failed
mingw32-make[1]: *** [modules/stitching/CMakeFiles/pch_Generate_opencv_perf_stitching.dir/all] Error 2
Please note that there is no typo here, -Wo-array-bounds is exactly the output I receive ( and not -Wno-array-bounds that google search suggests!). Any idea how to solve the problem? I searched for -Wo-array-bounds in the entire build folder to possibly change it to -Wno-array-bounds but I couldn't find this command line option in any file located in the build folder.

Adding Library to CMake on CLI

I'm trying to build OpenCV with CUDA support using Arch Linux's AUR. In their build configuration some options are passed to CMake, I have modified those to add CUDA features. Upon attempting compilation I get the following error:
[ 10%] Built target pch_Generate_opencv_reg
In file included from /home/meurer/Downloads/opencv-git/src/modules/cudacodec/opencv_cudacodec_pch_dephelp.cxx:1:0:
/home/meurer/Downloads/opencv-git/src/opencv/modules/cudacodec/src/precomp.hpp:59:14: fatal error: dynlink_nvcuvid.h: No such file or directory
#include <dynlink_nvcuvid.h>
^~~~~~~~~~~~~~~~~~~
compilation terminated.
make[2]: *** [modules/cudacodec/CMakeFiles/opencv_cudacodec_pch_dephelp.dir/build.make:63: modules/cudacodec/CMakeFiles/opencv_cudacodec_pch_dephelp.dir/opencv_cudacodec_pch_dephelp.cxx.o] Error 1
make[1]: *** [CMakeFiles/Makefile2:6834: modules/cudacodec/CMakeFiles/opencv_cudacodec_pch_dephelp.dir/all] Error 2
I searched my filesystem and found the rogue header file in /usr/include/nvidia-sdk/dynlink_nvcuvid.h. Due to how AUR works, I believe I can only configure CMake via command line options (See links 1, 2 under _cmakeopts=...).
What argument can I pass to CMake to make it search for the appropriate libraries under the aforementioned directory, as well as the ones it already uses?

Linphone IOS Build Issue

I am trying to compile linphone-iphone module on Mac Mountain Lion. Xcode version 4.5.
I followed the steps given in the following link http://shallwelearn.com/blog/?p=6.
I successfully crossed upto step4.
In Step5, I executed the command
“make -f builder-iphone-simulator.mk all && make -f builder-iphone-os.mk all
&&make -f builder-iphone-os.mk delivery-sdk”
I got the following Error:
checking whether res_ndestroy is declared… yes
checking for antlr3… no
configure: error: Could not find antlr.jar. Please install antlr3
make[1]: *** [/Hub/SIP_Implementation/IOS/workspace/linphone-iphone/submodules/build/../build-i386-apple-darwin/belle-sip/Makefile] Error 1
make: *** [build] Error 2
So I downloaded the antlr.jar(version-3.5) and added classpath. But Still I am getting the same error.
Can anybody help me to fix this?
Finally I fixed the issue by executing “sudo port install antlr3″ command.
After executing this command, I execute the "make all". It is building without error

Resources