I am trying to build IoTivity for iOS and following the instructions here but I keep getting this error which terminates the build.
service/resource-encapsulation/include/RCSException.h:33:10: fatal error: 'boost/config.hpp'
file not found
#include <boost/config.hpp>
^~~~~~~~~~~~~~~~~~
1 error generated.
scons: *** [out/ios/arm64/debug/service/resource-encapsulation/src/common/expiryTimer/src/ExpiryTimerImpl.o] Error 1
scons: building terminated because of errors.
When I look in my boost framework, I do see the config.hpp file. Does anyone have any ideas why it would be unable to find the file.
Related
I am creating binding with Pod , After running Sharpie command i frequently get error regarding , Header not found in the File. I have checked the file after opening but header was already there. Let me know if anyone face the same issue.
Error Details are below:-
'Realm/Realm.h' file not found
#import <Realm/Realm.h>
^~~~~~~~~~~~~~~
/private/var/folders/y4/n93ks58x7vd1dl2fr7j9v6mw0000gn/T/com.xamarin.ObjectiveSharpie/11d3f185b30343fe978184fe0a7e4722.h:1:9: fatal error:
could not build module 'MatrixSDK'
#import MatrixSDK;
Binding...
846 warnings and 2 errors generated.
Error while processing /private/var/folders/y4/n93ks58x7vd1dl2fr7j9v6mw0000gn/T/com.xamarin.ObjectiveSharpie/11d3f185b30343fe978184fe0a7e4722.h.
Done. Exiting with error code 1.
Gomobile bind error
The array mean what, Anybody ever had this problem?
go build -tags ios -buildmode=c-archive -o/var/folders/vp/3ztk4jzn3hq35qfmp3qwrfm80000gp/T/gomobile-work135205628/faceTest-arm.a gobind failed: exit status 2
# gocv.io/x/gocv
In file included from calib3d.cpp:1:
In file included from ../../../../../gocv.io/x/gocv/calib3d.h:5:
In file included from /usr/local/Cellar/opencv/4.0.0/include/opencv4/opencv2/opencv.hpp:52:
In file included from /usr/local/Cellar/opencv/4.0.0/include/opencv4/opencv2/core.hpp:52:
/usr/local/Cellar/opencv/4.0.0/include/opencv4/opencv2/core/cvdef.h:659:10:
fatal error: 'array' file not found
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.
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?
I want start playing with the OpenCV library, but I have a problem during the build process. I am on Windows 10 with the Mingw compiler. When I launch the command mingw32-make after a while, I get the following errors:
C:\Github\opencv\modules\videoio\src\cap_dshow.cpp:337:21: fatal error: strsafe.h: No such file or directory
#include <strsafe.h>
^
compilation terminated.
modules\videoio\CMakeFiles\opencv_videoio.dir\build.make:187: recipe for target 'modules/videoio/CMakeFiles/opencv_videoio.dir/src/cap_dshow.cpp.obj' failed
mingw32-make[2]: *** [modules/videoio/CMakeFiles/opencv_videoio.dir/src/cap_dshow.cpp.obj] Error 1
CMakeFiles\Makefile2:4340: recipe for target 'modules/videoio/CMakeFiles/opencv_videoio.dir/all' failed
mingw32-make[1]: *** [modules/videoio/CMakeFiles/opencv_videoio.dir/all] Error 2
Makefile:159: recipe for target 'all' failed
mingw32-make: *** [all] Error 2
The incriminated file is cap_dshow.cpp, and the compiler says that is missing the header file strsafe.h. Inside the folder C:\MinGW\include this file is not present and I don't know where to find this.
I've installed MinGW compiler (and other things) with a tool called "MinGW Installation Manager". With this tool I can install also other libraries, but I don't know if one of these contains the file strsafe.h.
My question is likely a duplicate of this, but the accepted answer has a broken link.
I have Microsoft SDK installed and found the strsafe.h file in "C:\Program Files (x86)\Microsoft SDKs\Windows\v7.0A\Bin".
Adding "C:\Program Files (x86)\Microsoft SDKs\Windows\v7.0A\Bin" to the Path system environment variable worked.