Details
-
Improvement
-
Status: Closed (View Workflow)
-
Major
-
Resolution: Fixed
-
None
-
None
-
None
Description
QEMU originall has a capability of scaling window, but it is not available with libsdl-native of Yocto build. It appears that libsdl-native is built with minimum configuration.
The possible solutions are the following:
- Build libsdl-native with proper configuration
- Use host libsdl
- Build libsdl2-native
- Use host libsdl2
#1 I am not sure which options is to be set.
#2 This is not available by default on Ubuntu because Yocto's ncurses is not compatible with host libsdl.
To do this, uncomment the follow line in local.conf, but build should be failure.
# ASSUME_PROVIDED += "libsdl-native"
gcc -fPIE -DPIE -m64 -mcx16 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE -Wstrict-prototypes -Wredundant-decls -Wall -Wundef -Wwrite-strings -Wmissing-prototypes -fno-strict-aliasing -fno-common -fwrapv -isystem/work/agl/build/qemu/tmp/work/x86_64-linux/qemu-native/2.10.0-r0/recipe-sysroot-native/usr/include -O2 -pipe -Wendif-labels -Wno-missing-include-dirs -Wempty-body -Wnested-externs -Wformat-security -Wformat-y2k -Winit-self -Wignored-qualifiers -Wold-style-declaration -Wold-style-definition -Wtype-limits -fstack-protector-strong -D_GNU_SOURCE=1 -D_REENTRANT -I/usr/include/SDL -o config-temp/qemu-conf.exe config-temp/qemu-conf.c -Wl,-z,relro -Wl,-z,now -pie -m64 -g -L/work/agl/build/qemu/tmp/work/x86_64-linux/qemu-native/2.10.0-r0/recipe-sysroot-native/usr/lib -L/work/agl/build/qemu/tmp/work/x86_64-linux/qemu-native/2.10.0-r0/recipe-sysroot-native/lib -Wl,-rpath-link,/work/agl/build/qemu/tmp/work/x86_64-linux/qemu-native/2.10.0-r0/recipe-sysroot-native/usr/lib -Wl,-rpath-link,/work/agl/build/qemu/tmp/work/x86_64-linux/qemu-native/2.10.0-r0/recipe-sysroot-native/lib -Wl,-rpath,/work/agl/build/qemu/tmp/work/x86_64-linux/qemu-native/2.10.0-r0/recipe-sysroot-native/usr/lib -Wl,-rpath,/work/agl/build/qemu/tmp/work/x86_64-linux/qemu-native/2.10.0-r0/recipe-sysroot-native/lib -Wl,-O1 -fuse-ld=bfd -L/usr/lib/x86_64-linux-gnu -lSDL //usr/lib/x86_64-linux-gnu/libcaca.so.0: undefined reference to `resize_term@NCURSESW_5.3.20021019' //usr/lib/x86_64-linux-gnu/libcaca.so.0: undefined reference to `COLORS@NCURSESW_5.1.20000708' //usr/lib/x86_64-linux-gnu/libcaca.so.0: undefined reference to `raw@NCURSES_TINFO_5.0.19991023' //usr/lib/x86_64-linux-gnu/libcaca.so.0: undefined reference to `ESCDELAY@NCURSESW_5.1.20000708' //usr/lib/x86_64-linux-gnu/libcaca.so.0: undefined reference to `nodelay@NCURSES_TINFO_5.0.19991023' //usr/lib/x86_64-linux-gnu/libcaca.so.0: undefined reference to `initscr@NCURSESW_5.1.20000708' //usr/lib/x86_64-linux-gnu/libcaca.so.0: undefined reference to `nonl@NCURSESW_5.1.20000708' //usr/lib/x86_64-linux-gnu/libcaca.so.0: undefined reference to `wrefresh@NCURSESW_5.1.20000708' //usr/lib/x86_64-linux-gnu/libcaca.so.0: undefined reference to `wmove@NCURSESW_5.1.20000708' //usr/lib/x86_64-linux-gnu/libcaca.so.0: undefined reference to `getmouse@NCURSESW_5.1.20000708' //usr/lib/x86_64-linux-gnu/libcaca.so.0: undefined reference to `curs_set@NCURSES_TINFO_5.0.19991023' //usr/lib/x86_64-linux-gnu/libcaca.so.0: undefined reference to `newterm@NCURSESW_5.1.20000708' //usr/lib/x86_64-linux-gnu/libcaca.so.0: undefined reference to `waddnstr@NCURSESW_5.1.20000708' //usr/lib/x86_64-linux-gnu/libcaca.so.0: undefined reference to `mouseinterval@NCURSESW_5.1.20000708' //usr/lib/x86_64-linux-gnu/libcaca.so.0: undefined reference to `wgetch@NCURSESW_5.1.20000708' //usr/lib/x86_64-linux-gnu/libcaca.so.0: undefined reference to `LINES@NCURSES_TINFO_5.0.19991023' //usr/lib/x86_64-linux-gnu/libcaca.so.0: undefined reference to `curscr@NCURSES_TINFO_5.0.19991023' //usr/lib/x86_64-linux-gnu/libcaca.so.0: undefined reference to `init_pair@NCURSESW_5.1.20000708' //usr/lib/x86_64-linux-gnu/libcaca.so.0: undefined reference to `start_color@NCURSESW_5.1.20000708' //usr/lib/x86_64-linux-gnu/libcaca.so.0: undefined reference to `stdscr@NCURSES_TINFO_5.0.19991023' //usr/lib/x86_64-linux-gnu/libcaca.so.0: undefined reference to `noraw@NCURSES_TINFO_5.0.19991023' //usr/lib/x86_64-linux-gnu/libcaca.so.0: undefined reference to `wattr_on@NCURSESW_5.1.20000708' //usr/lib/x86_64-linux-gnu/libcaca.so.0: undefined reference to `COLS@NCURSES_TINFO_5.0.19991023' //usr/lib/x86_64-linux-gnu/libcaca.so.0: undefined reference to `noecho@NCURSESW_5.1.20000708' //usr/lib/x86_64-linux-gnu/libcaca.so.0: undefined reference to `keypad@NCURSES_TINFO_5.0.19991023' //usr/lib/x86_64-linux-gnu/libcaca.so.0: undefined reference to `ungetch@NCURSESW_5.1.20000708' //usr/lib/x86_64-linux-gnu/libcaca.so.0: undefined reference to `mousemask@NCURSESW_5.1.20000708' //usr/lib/x86_64-linux-gnu/libcaca.so.0: undefined reference to `endwin@NCURSESW_5.1.20000708' collect2: error: ld returned 1 exit status
#3 This works well (confirmed)
https://gerrit.automotivelinux.org/gerrit/#/c/13545/3
#4 This works well on Ubuntu PC (confirmed).
sudo apt-get install libsdl2-dev
I am not sure which way is the best for AGL UCB yocto integration. Any comments?