Cross compilation of imageformatpeg100.dll fails

Ralf Habacker ralf.habacker at freenet.de
Thu Apr 21 22:37:13 CEST 2005


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
 
Angus Leeming schrieb:

> libqtmain is not being built.
>
> i386-mingw32-g++ -Wl,-enable-stdcall-fixup -Wl,-enable-auto-import
> -Wl,-enable-runtime-pseudo-reloc -Wl,-s -Wl,-subsystem,windows
> -shared -Wl,--export-all-symbols
> -Wl,--out-implib,../../../imageformats/libqjpeg.a -o
> ../../../imageformats/qjpeg100.dll <snip object files>
> -L"/home/angus/mingw-xcompile/qt3/lib" -lqtmain -lqt -lopengl32
> -lglu32 -lkernel32 -luser32 -lgdi32 -lcomdlg32 -ladvapi32 -lshell32
> -lole32 -loleaut32 -luuid -limm32-lwinmm -lwsock32 -lwinspool
> /usr/local/lib/gcc/i386-mingw32/3.4.2/../../../../i386-mingw32/bin/ld:
> cannot find -lqtmain collect2: ld returned 1 exit status
>
> Problem resolved by building it explicitly: $ cd src $ qmake -spec
> ../mkspecs/win32-g++-cross -o Makefile.qtmain qtmain.pro $ make -f
> Makefile.qtmain $ cd ..

Thanks for this pointer. This missing target is because libqtmain.a is
only required for windows, so the unix Makefile does not contain this
target.

Regards
Ralf

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.1 (MingW32)
Comment: Using GnuPG with Thunderbird - http://enigmail.mozdev.org
 
iD8DBQFCaA75GkrI36lV8gURAni2AKCKITrORATmr6/KFl/vXsThuTBHPgCghhq7
9nc02tcrzPdzIrJYWz9pTNg=
=RZvC
-----END PGP SIGNATURE-----



More information about the kde-cygwin mailing list