From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([2001:4830:134:3::10]:53713) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YgGSP-0000qN-A9 for qemu-devel@nongnu.org; Thu, 09 Apr 2015 13:41:38 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1YgGSL-00074T-Km for qemu-devel@nongnu.org; Thu, 09 Apr 2015 13:41:37 -0400 Received: from v220110690675601.yourvserver.net ([37.221.199.173]:51355) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YgGSL-000741-9m for qemu-devel@nongnu.org; Thu, 09 Apr 2015 13:41:33 -0400 Message-ID: <5526B9AE.1010007@weilnetz.de> Date: Thu, 09 Apr 2015 19:41:02 +0200 From: Stefan Weil MIME-Version: 1.0 References: <9C252381-354E-4626-A0E1-9AB1E6AA44B1@livius.net> <6B12EA2D-7ED7-40F6-BBA1-031B44CE6A43@livius.net> <5524C8C4.1050706@weilnetz.de> <55260A24.3000909@weilnetz.de> <9C71AEFF-EA90-4BE6-9373-8617DE6AFCF6@livius.net> In-Reply-To: Content-Type: text/plain; charset=windows-1252; format=flowed Content-Transfer-Encoding: 7bit Subject: Re: [Qemu-devel] 64-bit build of qemu-system-arm with mingw-w64 not functional List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Liviu Ionescu Cc: Peter Maydell , QEMU Developers Am 09.04.2015 um 16:07 schrieb Liviu Ionescu >> On 09 Apr 2015, at 10:40, Liviu Ionescu wrote: >> I guess you either tweaked the pkg-config to find them, or you set some environment variables before configure. >> ... >> can you share these details too? I want to reproduce "exactly" your environment. Here is the template for all cross pkg-configs: http://repo.or.cz/w/qemu/ar7.git/blob_plain/HEAD:/scripts/cross-pkg-config See also http://patchwork.ozlabs.org/patch/114242/ Maybe I should resend that patch. > the reason I ask for these details is that even after adding a x86_64-w64-mingw32-pkg-config, the configure still differs from yours. > > among the differences I spotted were: > > - no -mthreads -D_POSIX=1 > - no SDL support I think -mthreads is essential (needed for thread local storage), and -D_POSIX=1 is also needed for 64 bit builds. Maybe you can try my QEMU fork from http://repo.or.cz/w/qemu/ar7.git and see whether it works for you. My binaries are based on that code. If it works, we have to look which patches are missing in the official QEMU version. SDL comes from a locally cross built libSDL. I never had time to put it into a Debian package. Maybe it is better for your tests to build without SDL support, because the SDL init code redirects stdin and stdout to files which complicates things even when you run QEMU with SDL disabled. . > > > another problems are related to the setup: > - "make installer" did not pack any DLL inside the setup It has a built-in magic: all DLL files from $(SRC_PATH)/dll/w64 are taken for the 64 bit build (w32 for 32 bit build). Get a list of all needed DLL files either by try and error or by using tools and copy them (or make symbolic links) to that directory. Here are the files for 32 bit for my configuration: dll/w32/freetype6.dll dll/w32/pdcurses.dll dll/w32/libgio-2.0-0.dll dll/w32/libfontconfig-1.dll dll/w32/libpangoft2-1.0-0.dll dll/w32/libpangocairo-1.0-0.dll dll/w32/libgtk-win32-2.0-0.dll dll/w32/libatk-1.0-0.dll dll/w32/libpangowin32-1.0-0.dll dll/w32/intl.dll dll/w32/libpango-1.0-0.dll dll/w32/libgcc_s_sjlj-1.dll dll/w32/libgdk_pixbuf-2.0-0.dll dll/w32/libglib-2.0-0.dll dll/w32/libssp-0.dll dll/w32/zlib1.dll dll/w32/libgmodule-2.0-0.dll dll/w32/libcairo-2.dll dll/w32/SDL.dll dll/w32/libgthread-2.0-0.dll dll/w32/libexpat-1.dll dll/w32/libpng14-14.dll dll/w32/libgobject-2.0-0.dll dll/w32/libgdk-win32-2.0-0.dll dll/w32/libstdc++-6.dll > - the setup insists on installing in C:\Program Files (x86), although it is not a 32-bit application > > my feeling is that you still have additional libraries that you have difficulties to keep track, you possibly use environment variables, and the procedure to generate the setup is not the one in the Makefile. There is an nsis macro W64 which switches the program directory (see qemu.nsi). Are you using the packages from Debian (here those for Wheezy): ii nsis 2.46-7 amd64 Nullsoft Scriptable Install System (modified for Debian) ii nsis-common 2.46-7 all Nullsoft Scriptable Install System stubs and plugins Regards Stefan