official installation guide을 사용하여 임베디드 리눅스 용 Qt (Qt 4.8.5)를 설치했습니다.임베디드 리눅스 4.8.5에서 Qt 실행 예제
QWSSocket::connectToLocalFile could not connect:: Connection refused
No Qt for Embedded Linux server appears to be running.
If you want to run this program as a server,
add the "-qws" command-line option.
그리고 나는 -qws
옵션을 사용하여 실행하면, 내가 얻을 :
QScreenLinuxFb::connect: Permission denied Error opening framebuffer
/dev/fb0 The program has unexpectedly finished.
구글에서 내가 QtCreator 3.0.1에 설치된 예 중 하나를 실행할 때, 나는 다음과 같은 오류가 발생합니다 결과, 프레임 버퍼 장치 (/ dev/fb0)가있는 권한 설정과 관련되어 있음을 알 수 있습니다. 내 우분투 12.04 LTS 시스템에 ls -al /dev/fb0
의 출력 다음과 같은 :
/dev/fb0
가 속한
video
그룹에 현재 로그인 한 사용자를 추가 한
$ ls -al /dev/fb0
crw-rw---- 1 root video 29, 0 Apr 21 22:43 /dev/fb0
. 여전히 permission denied
오류가 발생합니다.
The framebuffer device was opened successfully.
Fixed screen info:
id: inteldrmfb
smem_start: 0xc0073000
smem_len: 5763072
type: 0
type_aux: 0
visual: 2
xpanstep: 1
ypanstep: 1
ywrapstep: 0
line_length: 6400
mmio_start: 0x0
mmio_len: 0
accel: 0
The framebuffer device was mapped to memory successfully.
Was in graphics mode already. Skipping
Variable screen info:
xres: 1600
yres: 900
xres_virtual: 1600
yres_virtual: 900
yoffset: 0
xoffset: 0
bits_per_pixel: 32
grayscale: 0
red: offset: 16, length: 8, msb_right: 0
green: offset: 8, length: 8, msb_right: 0
blue: offset: 0, length: 8, msb_right: 0
transp: offset: 0, length: 0, msb_right: 0
nonstd: 0
activate: 0
height: -1
width: -1
accel_flags: 0x1
pixclock: 0
left_margin: 0
right_margin: 0
upper_margin: 0
lower_margin: 0
hsync_len: 0
vsync_len: 0
sync: 0
vmode: 0
Frame Buffer Performance test...
Average: 916 usecs
Bandwidth: 6000.102 MByte/Sec
Max. FPS: 1091.703 fps
Will draw 3 rectangles on the screen,
they should be colored red, green and blue (in that order).
Done.
는 그러나, 나는 화면에 3 개 개의 사각형이 표시되지 않는 : 나는 sudo
를 사용하여 /examples/qws/framebuffer
예제를 실행하면
, 나는 다음과 같은 출력을 얻고있다.
우분투 데스크톱 환경에서 임베디드 리눅스 (Qt 4.8.5) 예제를 실행하는 방법에 대한 개요를 알려주시겠습니까?