Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

build/tests ERROR #1

Open
weituo12321 opened this issue Mar 9, 2019 · 3 comments
Open

build/tests ERROR #1

weituo12321 opened this issue Mar 9, 2019 · 3 comments

Comments

@weituo12321
Copy link

When I set up all the stuff and run build/tests I got this:

tests is a Catch v2.0.1 host application.
Run with -? for options

-------------------------------------------------------------------------------
RGB Image
-------------------------------------------------------------------------------
/home/victor/Downloads/vln/regretful-agent/src/test/main.cpp:302
...............................................................................

/home/victor/Downloads/vln/regretful-agent/src/test/main.cpp:308: FAILED:
  REQUIRE_NOTHROW( sim.init() )
due to unexpected exception with message:
  OpenCV(3.4.4) ../modules/highgui/src/window_QT.cpp:1665: error: (-218:No
  OpenGL support) Library was built without OpenGL support in function 'CvWindow'
  'CvWindow'

===============================================================================
test cases:      5 |      4 passed | 1 failed
assertions: 118336 | 118335 passed | 1 failed



**Note 1:** have already installed OpenGL
glxinfo | grep "OpenGL version"
OpenGL version string: 4.6.0 NVIDIA 410.93

**Note 2:**  opencv version: 3.4

I am using Ubuntu 16.04, python 3.6 in the r2r virtual environment created by anaconda.   
But it dones't influence on the following mini training test or the whole training stuff.
@DecenWill
Copy link

You should build opencv with OpenGL, and cmake with following command "OpenCV_DIR=you/opencv/build/ cmake .."

@chihyaoma
Copy link
Owner

Hi,

Thanks for reporting the issue.

I agree with @DecenWill. This seems to me like an issue with OpenGL support for OpenCV.

And this is primarily due to the fact that OpenGL rendering is not associated with your OpenCV. If you would like to use OpenCV associated with your virtual environment, please refer to here:

https://github.com/chihyaoma/regretful-agent/blob/master/Install_macOS.md#install-opencv-from-source-within-anaconda-environment

This was originally prepared for macOS installation, but I also showed how you can compile OpenCV with OpenGL support. Those should be the exact same command for Ubuntu as well.

Note that this error with OpenGL won't affect the training at all since we are not using OpenGL rendering during training.

@winnechan
Copy link

I have encountered the following error from unittest with EGL build, any idea to resolve?

/root/mount/Matterport3DSimulator/src/test/main.cpp:350: FAILED:
REQUIRE_NOTHROW( sim.initialize() )
due to unexpected exception with message:
EGL error 0x300c at eglGetDisplay

===============================================================================
test cases: 5 | 4 passed | 1 failed
assertions: 119187 | 119186 passed | 1 failed

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants