OpenCV header file error in omnet++ - opencv

I'm trying to build a project in omnet++ (the project uses OpenCV). My problem I believe is related to the linking between the project and the libraries.
The compiler throws these 2 erros :
fatal error: cxcore.h: No such file or directory WiseGuiWorldOpencv.h /M3WSN/src/gui/opencv line 18 C/C++ Problem
make: *** [out/gcc-debug//src/gui/opencv/WiseGuiWorldOpencv.o]
how can I fix it ?

you can use an older version of OpenCV 2.4.2 as that is one used in the M3WSN framework.I have installed successfully using the following configuration:
Ubuntu 14.4
Omnet++ 4.1
OpenCV 2.4.2 http://pkgs.fedoraproject.org/repo/pkgs/opencv/OpenCV-2.4.2.tar.bz2/059ef86fc1724d69b75832a0d2929ff5/

Related

Unable to cross compile iOS programs on linux

I know that someone already asked this question but it isn`t up to date anymore. Most of the links are dead and the commands are not relevant anymore.
I have read these
Compile IOS program from linux commandline
How to cross-compile clang/llvm for iOS?
For example, I have been trying to compile silversearcher-ag for my iPhone 6 (jailbroken). This is the project link https://github.com/ggreer/the_silver_searcher.
I am targeting iOS 12.4.
These are the commands that I`ve tried
./configure CC=/home/growtopiajaw/Desktop/cctools-port-master/usage_examples/ios_toolchain/target/bin/arm-apple-darwin11-clang CXX=/home/growtopiajaw/Desktop/cctools-port-master/usage_examples/ios_toolchain/target/bin/arm-apple-darwin11-clang++ --host=arm-apple-darwin11
make
I am using cctools-port to cross compile the project. My compiled cctools toolchain is located under /home/growtopiajaw/Desktop/cctools-port-master/usage_examples/ios_toolchain/target and below is how the toolchain`s directory structure looks like
This is my configure log: https://del.dog/nugibonury
This is my make log:
CC src/ignore.o
In file included from src/ignore.c:11:
./src/options.h:7:10: fatal error: 'pcre.h' file not found
#include <pcre.h>
^~~~~~~~
1 error generated.
make: *** [Makefile:494: src/ignore.o] Error 1
This is my GitHub repository containing the cross compile toolchain
https://github.com/GrowtopiaJaw/arm-apple-darwin11
Apple does not ship PCRE. You need to get the headers and dylib/tbd files manually.
If you're using checkra1n or unc0ver, then the deb on the APT repo contains headers as well, so you could just use that.
If you plan to package this into an APT/dpkg file, make sure to add pcre as a dependency.

"opencv_java" library missing for robot framework Sikuli library installation in Red Hat 7

I'm trying to install Robot Framework Sikuli libary on Red Hat 7 server. Installation of library was successful using pip, however while executing scripts Sikuli fails with following java error:
[error] RunTimeAPI: loadLib: opencv_java not usable:
java.lang.UnsatisfiedLinkError: no opencv_java in java.library.path
I have tried to installed OpenCV library for Red Hat but it did not resolve the issue. Unable to find package that provides opencv_java file. Could you please help to resolve issue.
Java is try to look for the library file libopencv_java.so but the library is named with version no. as libopencv_java<version>.so. Creating a symbolic link to the file with name libopencv_java.so should fix the issue. Here's an example for Debian 9.
cd /usr/lib/jni
ln -s libopencv_java249.so libopencv_java.so

Problem with OpenCV C++ Ubuntu 16.04-/usr/bin/ld: cannot find -lopencv_*

I am new to Ubuntu. I installed OpenCV following http://milq.github.io/install-opencv-ubuntu-debian/. Note that opencv_contrib are not installed. I had an error initially that opencv4.pc file was not found which I corrected by creating a new opencv4.pc in usr/local/lib and making appropriate changes in ~/.bashrc file. Now the error while compiling using c++ file from :
https://cv-tricks.com/installation/opencv-4-1-ubuntu18-04/.
This is the error I got:
.
I tried to locate the missing files in other locations but I was unable to find them. Please help me solve my problem.

How to get AWS frameworks working in Xcode 11?

I'm trying to get AWS frameworks working in Xcode(version 11.2.1) by importing them manually. The only way I get them working is by adding them in the Embed Frameworks under Build Phases. Everything is fine until I import AWSMobileClient in one of my swift files. Here things go wrong. If I try to build project on device simulator I get this error:
Could not find module 'AWSMobileClient' for target 'x86_64-apple-ios-simulator'; found: arm64, armv7-apple-ios, arm64-apple-ios, arm, armv7
Then I change to physical device and I get this error:
Module compiled with Swift 5.1 cannot be imported by the Swift 5.1.2 compiler: /Users/lukacefarin/Library/Mobile Documents/com~apple~CloudDocs/Projects/InoSupport/AWSMobileClient.framework/Modules/AWSMobileClient.swiftmodule/arm64-apple-ios.swiftmodule
I read about this error on stack overflow and it seems that I can't do much except waiting that AWS will fix that.
Is there any workarounds? All my project frameworks are imported manually so I don't want to use Cocoapods or Carthage.
EDITED on 9 February 2020:
I posted this issue on GitHub and get replay that they are working on the solution. Till then use dependency managers I guess.
I was facing the same problem as you can see, my local swift version is 5.1.3.
"Incompatible Swift version - framework was built with 5.1 (swiftlang-1100.0.270.13 clang-1100.0.33.7) and the local version is 5.1.3 (swiftlang-1100.0.282.1 clang-1100.0.33.15)."
So, I had to look for aws-sdk-ios version compatible with my installed swift version 5.1.3.
Your installed swift version is 5.1.2.
During my tries, I found an aws-sdk-ios version compatible with your local version of swift 5.1.2.
Try to use aws-sdk-ios "2.13.0", my log says that this framework was built with 5.1.2.
*** Checking out aws-sdk-ios at "2.13.0"
*** Downloading aws-sdk-ios.framework binary at "AWS SDK for iOS 2.13.0"
*** Skipped installing aws-sdk-ios.framework binary due to the error:
"Incompatible Swift version - framework was built with 5.1.2 (swiftlang-1100.0.278 clang-1100.0.33.9) and the local version is 5.1.3 (swiftlang-1100.0.282.1 clang-1100.0.33.15)."

What CUDA version does torch/lua require?

I'm trying to install Torch/Lua version and am getting the build errors shown below. I see this discussion on Github encountering the same errors, but I don't see a resolution to it.
https://github.com/torch/torch7/issues/670
What version of CUDA does torch require? My best guess right now is that this is a CUDA version mismatch.
CMake Error at THC_generated_THCBlas.cu.o.cmake:267 (message):
Error generating file
~/torch/extra/cutorch/build/lib/THC/CMakeFiles/THC.dir//./THC_generated_THCBlas.cu.o
CMake Error at THC_generated_THCSleep.cu.o.cmake:267 (message):
Error generating file
~/torch/extra/cutorch/build/lib/THC/CMakeFiles/THC.dir//./THC_generated_THCSleep.cu.o
lib/THC/CMakeFiles/THC.dir/build.make:392: recipe for target 'lib/THC/CMakeFiles/THC.dir/THC_generated_THCBlas.cu.o' failed
make[2]: *** [lib/THC/CMakeFiles/THC.dir/THC_generated_THCBlas.cu.o] Error 1
It appears that these issues were related to the g++ version I had (4.8). I installed the latest g++ version (5.2), then had to delete the torch directory, re-clone it, and the installation worked. Note that build artifacts will be left over so actually removing the whole torch directory was necessary.

Resources