glib - Building Qemu(ARM emulation) for Windows64 on Linux64 -
i trying run emulation of arm vexpress in qemu. end platform windows64. , build system running linux64. using qemu version 2.3.0 , x86_64-w64-mingw32 toolchain.
i faced quite lot of issues during build, solved on own. 1 of them tool chain on installation doesn't contain glib library , had import 1 got searching round internet. after adding pkg-config files , copying set of glib lib folder got whole thing start compiling.
how ever facing new issue. checking librt while toolchain doesnt have librt. got version of librt , added toolchain lib folder , compilation throwing below error. @ steps appreciated.
make all-recursive making in pixman make[3]: nothing done 'all'. making in demos make[3]: nothing done 'all'. making in test make[3]: nothing done 'all'. chk version_gen.h link qemu-ga.exe /home/user/downloads/mingw/glib/lib/libglib-2.0.a(libglib_2_0_la-gutils.o):(.text+0x505): undefined reference `__imp_cotaskmemfree' /home/user/downloads/mingw/glib/lib/libglib-2.0.a(libglib_2_0_la-gutils.o):(.text+0x613): undefined reference `__imp_cotaskmemfree' /home/user/downloads/mingw/glib/lib/libglib-2.0.a(libglib_2_0_la-gutils.o):(.text+0x6a6): undefined reference `__imp_cotaskmemfree' /usr/bin/x86_64-w64-mingw32-ld: /home/user/downloads/mingw/glib/lib/libglib-2.0.a(libglib_2_0_la-gutils.o): bad reloc address 0x0 in section `.pdata' collect2: error: ld returned 1 exit status makefile:288: recipe target 'qemu-ga.exe' failed make: *** [qemu-ga.exe] error 1
edit 1: fixed above issue adding -lole32 config-host.mak file @ libs , libs_qga heads.
but facing below issue
link qemu-ga.exe /home/user/downloads/mingw/glib/lib/libglib-2.0.a(giowin32.o):(.text+0x14d8): undefined reference `libintl_sprintf' /home/user/downloads/mingw/glib/lib/libglib-2.0.a(giowin32.o):(.text+0x1507): undefined reference `libintl_sprintf' /home/user/downloads/mingw/glib/lib/libglib-2.0.a(giowin32.o):(.text+0x1536): undefined reference `libintl_sprintf' /home/user/downloads/mingw/glib/lib/libglib-2.0.a(giowin32.o):(.text+0x1565): undefined reference `libintl_sprintf' /home/user/downloads/mingw/glib/lib/libglib-2.0.a(giowin32.o):(.text+0x1594): undefined reference `libintl_sprintf' /home/user/downloads/mingw/glib/lib/libglib-2.0.a(giowin32.o):(.text+0x15f2): more undefined references `libintl_sprintf' follow /usr/bin/x86_64-w64-mingw32-ld: /home/user/downloads/mingw/glib/lib/libglib-2.0.a(giowin32.o): bad reloc address 0x0 in section `.data' collect2: error: ld returned 1 exit status makefile:288: recipe target 'qemu-ga.exe' failed make: *** [qemu-ga.exe] error 1
proceeded this.
i downloaded , compiled libintl gettext package , manually installed in toolchain. did same libiconv , libffi.
right now, receiving following error.
link arm-softmmu/qemu-system-arm.exe numa.o: in function `numa_node_parse': /home/user/qemu-2.3.0/numa.c:107: undefined reference `__imp_g_ascii_table' hw/arm/boot.o: in function `load_image_to_fw_cfg': /home/user/qemu-2.3.0/hw/arm/boot.c:546: undefined reference `g_file_get_contents' ../vl.o: in function `set_memory_options': /home/user/qemu-2.3.0/vl.c:2666: undefined reference `__imp_g_ascii_table' ../hw/core/loader.o: in function `load_image_gzipped_buffer': /home/user/qemu-2.3.0/hw/core/loader.c:629: undefined reference `g_file_get_contents' ../hw/nvram/fw_cfg.o: in function `read_splashfile': /home/user/qemu-2.3.0/hw/nvram/fw_cfg.c:97: undefined reference `g_file_get_contents' collect2: error: ld returned 1 exit status makefile:182: recipe target 'qemu-system-arm.exe' failed make[1]: *** [qemu-system-arm.exe] error 1 makefile:173: recipe target 'subdir-arm-softmmu' failed make: *** [subdir-arm-softmmu] error 2
trying compile glib library try resolve this. thank help.
Comments
Post a Comment