[virt-tools-list] Linking error trying to cross compile virt-viewer for windows using mingw32 on Fedora 20

Richard W.M. Jones rjones at redhat.com
Mon Jun 23 21:12:16 UTC 2014


On Mon, Jun 23, 2014 at 07:51:28PM +0300, cyber python wrote:
> Hi Cristophe,
> 
> Using mingw32-configure seems to have the same effect - linking fails with
> undefined references.
> Here is the log:
> 
> http://pastebin.com/qbS8q71w

I've just done a build of virt-viewer from git (eaaa4f5106) using the
mingw32-* packages from Fedora 20 and it worked for me.

$ file ./src/virt-viewer.exe 
./src/virt-viewer.exe: PE32 executable (console) Intel 80386 (stripped to external PDB), for MS Windows
$ ls -l ./src/virt-viewer.exe 
-rwxrwxr-x. 1 rjones rjones 32256 Jun 23 22:08 ./src/virt-viewer.exe

Can you make sure that you have done 'make distclean', to ensure there
are no odd files hanging around from a previous build.

Apart from that I'm not sure what to suggest.  Could be a missing
dependency, but the output of mingw32-configure in your paste looked
OK to me.

Also you could use `make V=1' which will display the full compiler
command lines.  That might make any omissions more obvious.

Rich.

-- 
Richard Jones, Virtualization Group, Red Hat http://people.redhat.com/~rjones
Read my programming and virtualization blog: http://rwmj.wordpress.com
Fedora Windows cross-compiler. Compile Windows programs, test, and
build Windows installers. Over 100 libraries supported.
http://fedoraproject.org/wiki/MinGW




More information about the virt-tools-list mailing list