I'm getting an error when trying to compile ar_pose, as part of ar_tools in ROS noetic under Ubuntu 20.04.
When running catkin_make:
In file included from /home/alveybj/catkin_ws/src/ar_tools/ar_pose/src/ar_multi.cpp:25:
/home/alveybj/catkin_ws/src/ar_tools/ar_pose/include/ar_pose/ar_multi.h:47:10: fatal error: opencv/cv.h: No such file or directory
47 | #include <opencv/cv.h>
Do I need to downgrade ROS? Ubuntu? Somehow tell ROS where my openCV libraries are? Thanks for any help!
Update: I was able to get ar_tools to compile correctly in ROS melodic using Ubuntu 18.04 LTS with WSL2. Not sure why this wasn't working in Noetic, maybe OpenCV has been updated?
Related
I'm trying to install and use opencv in vscode for c++. I downloaded OpenCV 4.5.5 from https://opencv.org/releases/ but now I don't know how to include opencv in my code.
I tried using:
#include <opencv2.framework/opencv2>
but I then get the following error message:
error message
I also tried using:
#include <opencv2.framework/Headers/opencv.hpp>
but then I get the following error message:
error message2
Other ways of installing OpenCV like using git clone or homebrew have the same result.
I was trying to compile my code using gcc 10.2.8 and I got this error:
scons: *** [S.os] Error 1
In file included from /usr/local/Cellar/gcc/10.2.0_2/include/c++/10.2.0/cstdio:42,
from Public_Library/C.h:10,
from Public_Library/D.h:11,
from Public_Library/RS.h:10,
from Projects/S/main.cpp:1:
/usr/local/Cellar/gcc/10.2.0_2/lib/gcc/10/gcc/x86_64-apple-darwin18/10.2.0/include-fixed/stdio.h:219:10: fatal error: _ctermid.h: No such file or directory
I found a few questions like this but the problem is I don't have Xcode on my mac and I have already updated my CommandLine tools several times and it did not work.
I'm using OSX 10.14.6 by the way.
I'm just gonna add this in case it might help others. I updated my OSX to big sure and installed Xcode but that did not help. What solved the problem for me was getting an unshallow version of brew with this command:
git -C /usr/local/Homebrew/Library/Taps/homebrew/homebrew-core fetch --unshallow
and then updating and upgrading my brew.
brew update
brew upgrade
I create a pytorch extention, followed by this link
but it throws out the error that
fatal error: torch/extension.h: No such file or directory.
ubuntu 18.04
code::blocks 17.04
gcc 7.4.0
#include <torch/extension.h>
I expect the code to run.
Is there any document to fix this problem?
is the canonical header file that create Python bindings for C++/Cuda extensions.
So Try upgrading the version of Pytorch if it's not in newest version.
I want to use LibSerial to comunicate between Arduino and my Mac(OSX Yosemite), but I am not able to compile LibSerial.
After launch the ./configure, when i launch make, I got this error:
./SerialStreamBuf.h:12:10: fatal error: 'boost/scoped_ptr.hpp' file
not found
I installed boost using:
brew install boost
But I continue to get the error.
I am trying to run this code Domain Transform Filter on Ubuntu 14.04. This code has been originally written on Windows 7 Visual studio. When I try to run this code on Ubuntu, I get the error
error: opencv2/core/internal.hpp: No such file or directory
I tried to download this file for Ubuntu but this is specifically related to Windows.
Is there any way to get this file for Ubuntu ?
Install an older OpenCV.
The file is for instance contained in libopencv-core-dev 2.3.1 on Ubuntu 12.04. (So it is not related to Windows.)
If that is not an option, you probably need to correct your existing code for OpenCV 3.