Dear qemuers, I am new to this list. I am trying to compile qemu-2.2.0 statically My System has these: GCC-4.8.1, linux-3.10.61. I configure qemu-2.2.0 with the following switches:-
export LD_LIBRARY_PATH=/opt/qemu/lib ./configure \ --static \ --prefixx=/opt/qemu \ --enable-libssh2 \ --enable-sdl \ --with-sdlabi=1.2 \ ( It builds without the latter three switches. ) I have both libssh2-1.4.1 and SDL-1.2.15 compiled with static-only libraries to /opt/qemu. (I also have them compiled with static and shared libraries in the main system in /usr ) #------------- for SDL-1.2.15 --- with the latter two switches the configure script reports [ cannot find SDL please install SDL-devel ] although all the libraries and binaries for SDL are installed. #------------- for libssh2-1.4.1 building with the "--enable-libssh2" switch yields /opt/qemu/lib/libssh2.a(mac.o): In function `mac_method_hmac_sha1_hash': mac.c:(.text+0x272): undefined reference to `gcry_md_open' mac.c:(.text+0x289): undefined reference to `gcry_md_setkey' mac.c:(.text+0x29b): undefined reference to `gcry_md_write' mac.c:(.text+0x2ab): undefined reference to `gcry_md_write' mac.c:(.text+0x2ba): undefined reference to `gcry_md_get_algo' mac.c:(.text+0x2c1): undefined reference to `gcry_md_get_algo_dlen' mac.c:(.text+0x2cf): undefined reference to `gcry_md_read' mac.c:(.text+0x2e6): undefined reference to `gcry_md_close' mac.c:(.text+0x315): undefined reference to `gcry_md_write' /opt/qemu/lib/libssh2.a(crypt.o): In function `crypt_dtor': crypt.c:(.text+0x1e): undefined reference to `gcry_cipher_close' collect2: error: ld returned 1 exit status #----------------------------- I would like to know if I need to compile libssh2 and SDL in particular ways to be able to build qemu statically with the --enable-libssh2 \ --enable-sdl \ --with-sdlabi=1.2 \ switches. Thanks in advance. Sincerely LuxInteg
