WSL2 Could not connect to display
WSL에 설치된 Ubuntu는 GUI 개념이 없는 버전이라고 생각하면 된다.
[출처: https://elecs.tistory.com/363]
YOLOv5+DeepSort Github Test좀 해보려고 계속 시도하고 여러 라이브러리를 설치하고해봤지만 해결되지않았다. 거진 .. 이틀이 꼬박 걸렸다. 아래 에러는 잡힐 생각을 안했다. 머리좀 식히고 다시 보다가, 문뜩 위에 display 관련 에러가 눈에 띄었다.
qt.qpa.xcb: could not connect to display
qt.qpa.plugin: Could not load the Qt platform plugin "xcb" in "/home/weejw/anaconda3/envs/yolo/lib/python3.10/site-packages/cv2/qt/plugins" even though it was found. This application failed to start because no Qt platform plugin could be initialized. Reinstalling the application may fix this problem. Available platform plugins are: xcb. Aborted
그래서 찾아보다가.
아래 프로그램을 다운받아야한다는 것을 알았다!
Xming X Server for Windows
Download Xming X Server for Windows for free. X Window System Server for Windows. Xming is the leading X Window System Server for Microsoft Windows 8/7/Vista/XP (+ server 2012/2008/2003). It is fully featured, small and fast, simple to install and because
sourceforge.net
그 후 설정은 아래 링크대로 해주면된다.
Windows Subsystem for Linux 2: Installing VcXsrv X Server - RickMakes
Find Windows IP Address Set DISPLAY Variable Export opengl Variable Update Package List Install x11-apps
www.rickmakes.com
윗 설정까지만 해도 되는 사람이 있다. 근데 나는.. ㅋㅋ 되는 줄 알았는데 아니었다. 근데 오늘 서칭신이라도 들린건지 아래 글을 찾았다.
윗 글과 비슷한 방식인데 조금 차이가 있었다. 그리고 해결! 야호!
Running WSL GUI Apps on Windows 10
In this post I will demonstrate how to run Linux GUI (Graphical User Interface) applications on Windows Desktop platform. For now, it is necessary to install a third-party App to run the GUI Apps, but Microsoft announced on //build 2020 that th
techcommunity.microsoft.com
아주잘된다 으하하ㅏ하하ㅏ!! 신난다!
결과를 보고나니 저 detection result window를 GUI로 보여줘야하니까 그 부분에서 에러가 났던 것 같다.