OK,
I found some of the missing symbols (with help from the mingw64-public) mailing list. However, it seems strange that
when using the static versions of the Qt libs (from the packages in fedora-17) there are further libraries needed that are not specified.
It seems I have to add "-lole32 -luuid -lgdi32" to the link command line in the generated makefile
I have still some symbols left that are undefined, and I really have no clue where to find these in the Mingw64 cross environment
make -f Makefile.Release
make[1]: Entering directory `/home/jan/cross-compiling/jsdr-3.04/spectrum-viewer'
x86_64-w64-mingw32-g++ -static -Wl,-s -Wl,-subsystem,console -mthreads -o release/spectrum-viewer.exe object_script.spectrum-viewer.Release -L'/usr/x86_64-w64-mingw32/sys-root/mingw/lib' /home/jan/cross-compiling/qwt-5.2.2/lib/libqwt.a /home/jan/cross-compiling/dll_64/libfftw3-3.lib -lole32 -lwinmm -lstdc++ -lusb-1.0 -lQtGui4 -lQtCore4 -lole32 -lgdi32 -luuid
/usr/x86_64-w64-mingw32/sys-root/mingw/lib/libQtGui4.a(qaccessible_win.o).text+0x1c56): undefined reference to `__imp_SysAllocStringLen'
.....
/usr/x86_64-w64-mingw32/sys-root/mingw/lib/libQtGui4.a(qaccessible_win.o).text+0x2cda): more undefined references to `__imp_SysAllocStringLen' follow
/usr/x86_64-w64-mingw32/sys-root/mingw/lib/libQtGui4.a(qaccessible_win.o).text+0x3970): undefined reference to `__imp_VariantInit'
/usr/x86_64-w64-mingw32/sys-root/mingw/lib/libQtGui4.a(qaccessible_win.o).text+0x41d8): undefined reference to `__imp_PlaySoundW'
/usr/lib64/gcc/x86_64-w64-mingw32/4.7.0/../../../../x86_64-w64-mingw32/bin/ld: /usr/x86_64-w64-mingw32/sys-root/mingw/lib/libQtGui4.a(qaccessible_win.o): bad reloc address 0x0 in section `.data'
/usr/lib64/gcc/x86_64-w64-mingw32/4.7.0/../../../../x86_64-w64-mingw32/bin/ld: final link failed: Invalid operation
collect2: error: ld returned 1 exit status
If anyone could give a pointer how to locate the libraries for missing symbols in the mingw64 cross compilation environment, it would be a great help
best
jan




.text+0x1c56): undefined reference to `__imp_SysAllocStringLen'
Reply With Quote


Bookmarks