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

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.

Related

gen/kaa_remote_control_ecf.h: No such file or directory

I'm Using Kaa Opensource IoT platform to control GPIO of ESP8266. Im using ESP-01 module for this project. Im using this example. Getting error while compiling the code
[ 93%] Building C object CMakeFiles/demo_client_s.dir/src/kaa_demo.c.obj
/home/sse/Kaa/ESP8266/kaa_gpio_esp8266_example/src/kaa_demo.c:23:40: fatal error: gen/kaa_remote_control_ecf.h: No such file or directory
#include <gen/kaa_remote_control_ecf.h>
^
compilation terminated.
CMakeFiles/demo_client_s.dir/build.make:62: recipe for target 'CMakeFiles/demo_client_s.dir/src/kaa_demo.c.obj' failed
make[2]: *** [CMakeFiles/demo_client_s.dir/src/kaa_demo.c.obj] Error 1
CMakeFiles/Makefile2:69: recipe for target 'CMakeFiles/demo_client_s.dir/all' failed
make[1]: *** [CMakeFiles/demo_client_s.dir/all] Error 2
Makefile:127: recipe for target 'all' failed
make: *** [all] Error 2
there is a file missing named gen/kaa_remote_control_ecf.h Im not able to locate this file anywhere.
Is there any other way to find this file?
I'm using latest Kaa SDK 0.10.

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.

Compiling ROS Kinetec from source fails when building opencv

I'm using an Arch machine and trying to compile ROS desktop full from source. The build fails when image_proc is trying to link executable.
Here is the error log:
[ 23%] Built target image_proc_gencfg
[ 84%] Built target image_proc
[ 92%] Linking CXX executable /home/alphayed/ROS/ros_catkin_ws/devel_isolated/image_proc/lib/image_proc/image_proc
/home/alphayed/ROS/ros_catkin_ws/install_isolated/lib/libopencv_viz3.so.3.1.0: undefined reference to `vtkSTLReader::New()'
/home/alphayed/ROS/ros_catkin_ws/install_isolated/lib/libopencv_viz3.so.3.1.0: undefined reference to `vtkOBJReader::New()'
collect2: error: ld returned 1 exit status
make[2]: *** [CMakeFiles/image_proc_exe.dir/build.make:219: /home/alphayed/ROS/ros_catkin_ws/devel_isolated/image_proc/lib/image_proc/image_proc] Error 1
make[1]: *** [CMakeFiles/Makefile2:68: CMakeFiles/image_proc_exe.dir/all] Error 2
make: *** [Makefile:139: all] Error 2
I think the problem is related to opencv3. I removed it from the system and recompiled it from source but that didn't solve the issue. Can you please help?
I have found a fix as per this thread. You need to modify opencv3/cmake/OpenCVDetectVTK.cmake, for every find_package(VTK QUIET COMPONENTS ... add an entry vtkIOGeometry

OpenCV, Ubuntu 11.04

I've been trying to install OpenCV 2.2 on Ubuntu 11.04. As far as I can gather from here: linux/videodev.h : no such file or directory - OpenCV on ubuntu 11.04, the installation fails because video4linux is no longer in the kernel. If I follow the guide linked to in the above thread (http://tech.groups.yahoo.com/group/OpenCV/message/79758), the make-command passes the initial error described in the above thread, but fails at a later point. I get the error:
Linking CXX executable ../../bin/opencv_createsamples
../../lib/libopencv_highgui.so.2.2.0: undefined reference to `cvCreateCameraCapture_V4L(int)'
collect2: ld returned 1 exit status
make[2]: *** [bin/opencv_createsamples] Error 1
make[1]: *** [modules/haartraining/CMakeFiles/opencv_createsamples.dir/all] Error 2
make: *** [all] Error 2
This error also seems related to video4linux.
Any suggestions?
Thanks a bunch,
Andreas Møgelmose
You may find this blog post useful:
http://salikscodingblog.wordpress.com/2011/08/05/compiling-opencv-2-on-ubuntu/

Resources