Comments (4)
Hi, can you please elaborate a bit on the proposed fix? It's not clear to me at all, what should I do in such a case. Is this before running the script or after?
from nano_build_opencv.
Hi, can you please elaborate a bit on the proposed fix? It's not clear to me at all, what should I do in such a case. Is this before running the script or after?
So, in order to directly imshow
a GpuMat
without downloading it to a Mat
, you need to build OpenCV with OpenGL support or you get this error:
... Library was built without OpenGL support ...
Generally this means tracking down some blablabla-dev
package in Canonical's apt repositories and making sure it's installed before build.
To answer your question, you could either install such a package before running the script or add it somewhere in this list here:
nano_build_opencv/build_opencv.sh
Line 64 in 0832a85
it's likely these packages:
https://askubuntu.com/questions/306703/compile-opengl-program-missing-gl-gl-h#comment1952106_866868
So just adding mesa-common-dev
, libglu1-mesa-dev
, freeglut3-dev
, libglfw3-dev
and libgles2-mesa-dev
will probably fix it. I don't know exactly which if those OpenCV actually requires. Possibly just the first. Possibly all of them. You can test and see. I haven't had time to recently or to look into exactly what cmake is expecting.
If it works, you should see:
-- OpenGL support: YES
If you do, and get a GpuMat
displaying directly in imshow
feel free to submit a PR closing this issue out.
from nano_build_opencv.
OK, will try that and submit a PR if that works.
One more question though... Can I just rerun the script after installing the packages, do I somehow have to uninstall it first (I have already built opencv).
from nano_build_opencv.
from nano_build_opencv.
Related Issues (20)
- this is support opencv in c++? HOT 1
- Build OpenCV with CUDA on Jetson AGX Xavier HOT 4
- Orin (Ubuntu 20.04) Missing v4l2ucp HOT 1
- Building OpenCV for Orin System HOT 2
- Script not working with Python 3.7.5 HOT 1
- Undefined reference to glXGetProcAddressARB() HOT 1
- Logging is preventing multiple jobs HOT 2
- Not an Issue but you saved my life. Thank you. Drop a star all. HOT 1
- In jtop still cuda support No HOT 3
- Unsupported gpu architecture 'compute_87' HOT 1
- Cannot generate make file - "Configuration Incomplete" HOT 2
- jetson nano errors to install it HOT 5
- Can not install it in docker HOT 1
- After install, opencv version displayed by 'jtop' and python script by 'cv2.getBuildInformation()' doesn't match. HOT 1
- fatal: unable to access 'https://github.com/opencv/opencv.git/': Failed to connect to github.com port 443: 连接超时 HOT 1
- Makefile:162: recipe for target 'all' failed
- Failed to build : Package 'libavresample-dev' has no installation candidate
- Trying to build into Docker Image - JetsonNX
- DO NOT USE IT, TOTALLY BREAKS SYSTEM
- Error found during Building the Image
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from nano_build_opencv.