Hi, I need to use libimobiledevice. To do it so, I have installed MingW and started the msys console. I have compiled a few projects to have libimobiledevice compile. Done! The problem now is that I need to integrate those compiled libs into a Qt project.
I have added to .pro the path to the libs but I still couldn't get rid of all the undefined references. I also think that i'm repeating libs that should already be present on the mingw distribution provided by Qt. This is what I have so far: INCLUDEPATH+=$$PWD/include LIBS+=-L$$PWD/lib/ -limobiledevice -lusbmuxd -lplist -lssl -lwsock32 -lgdi32 -lxml2 -lcrypto -lws2_32 -lOle32 -lgdi32 And I still have all the errors below. Am I doing this right? Can I mix libs from a standard MingW distribution with the one provided by Qt? Thanks in advance, Regards, Nuno C:/Qt/5.4/mingw491_32/lib/libcrypto.a(cryptlib.o):cryptlib.c:(.text+0x520): multiple definition of `DllMain@12' C:/Qt/5.4/mingw491_32/lib/libimobiledevice.a(idevice.o):C:\MinGW\msys\1.0\home\nsantos\libimobiledevice\src/idevice.c:119: first defined here Makefile.Debug:89: recipe for target 'debug\idevice.exe' failed C:/Qt/Tools/mingw491_32/bin/../lib/gcc/i686-w64-mingw32/4.9.1/../../../../i686-w64-mingw32/lib/../lib/crt2.o:crtexe.c:(.text+0x3e): undefined reference to `mingw_initcharmax' mingw32-make[1]: Leaving directory 'C:/Users/nsantos/Dropbox/workspace/build-idevice-Desktop_Qt_5_4_1_MinGW_32bit-Debug' makefile:34: recipe for target 'debug' failed C:/Qt/Tools/mingw491_32/bin/../lib/gcc/i686-w64-mingw32/4.9.1/../../../../i686-w64-mingw32/lib/../lib/crt2.o:crtexe.c:(.text+0x4e): undefined reference to `mingw_app_type' C:/Qt/Tools/mingw491_32/bin/../lib/gcc/i686-w64-mingw32/4.9.1/../../../../i686-w64-mingw32/lib/../lib/crt2.o:crtexe.c:(.text+0x6a): undefined reference to `_encode_pointer' C:/Qt/Tools/mingw491_32/bin/../lib/gcc/i686-w64-mingw32/4.9.1/../../../../i686-w64-mingw32/lib/../lib/crt2.o:crtexe.c:(.text+0x75): undefined reference to `__onexitend' C:/Qt/Tools/mingw491_32/bin/../lib/gcc/i686-w64-mingw32/4.9.1/../../../../i686-w64-mingw32/lib/../lib/crt2.o:crtexe.c:(.text+0x7a): undefined reference to `__onexitbegin' C:/Qt/Tools/mingw491_32/bin/../lib/gcc/i686-w64-mingw32/4.9.1/../../../../i686-w64-mingw32/lib/../lib/crt2.o:crtexe.c:(.text+0x103): undefined reference to `_matherr' C:/Qt/Tools/mingw491_32/bin/../lib/gcc/i686-w64-mingw32/4.9.1/../../../../i686-w64-mingw32/lib/../lib/crt2.o:crtexe.c:(.text+0x108): undefined reference to `__mingw_setusermatherr' C:/Qt/Tools/mingw491_32/bin/../lib/gcc/i686-w64-mingw32/4.9.1/../../../../i686-w64-mingw32/lib/../lib/crt2.o:crtexe.c:(.text+0x134): undefined reference to `_newmode' C:/Qt/Tools/mingw491_32/bin/../lib/gcc/i686-w64-mingw32/4.9.1/../../../../i686-w64-mingw32/lib/../lib/crt2.o:crtexe.c:(.text+0x156): undefined reference to `_dowildcard' C:/Qt/Tools/mingw491_32/bin/../lib/gcc/i686-w64-mingw32/4.9.1/../../../../i686-w64-mingw32/lib/../lib/crt2.o:crtexe.c:(.text+0x1e3): undefined reference to `mingw_app_type' C:/Qt/Tools/mingw491_32/bin/../lib/gcc/i686-w64-mingw32/4.9.1/../../../../i686-w64-mingw32/lib/../lib/crt2.o:crtexe.c:(.text+0x21c): undefined reference to `__native_startup_lock' C:/Qt/Tools/mingw491_32/bin/../lib/gcc/i686-w64-mingw32/4.9.1/../../../../i686-w64-mingw32/lib/../lib/crt2.o:crtexe.c:(.text+0x225): undefined reference to `__native_startup_state' C:/Qt/Tools/mingw491_32/bin/../lib/gcc/i686-w64-mingw32/4.9.1/../../../../i686-w64-mingw32/lib/../lib/crt2.o:crtexe.c:(.text+0x235): undefined reference to `__native_startup_state' C:/Qt/Tools/mingw491_32/bin/../lib/gcc/i686-w64-mingw32/4.9.1/../../../../i686-w64-mingw32/lib/../lib/crt2.o:crtexe.c:(.text+0x24c): undefined reference to `__native_startup_state' C:/Qt/Tools/mingw491_32/bin/../lib/gcc/i686-w64-mingw32/4.9.1/../../../../i686-w64-mingw32/lib/../lib/crt2.o:crtexe.c:(.text+0x28e): undefined reference to `_gnu_exception_handler@4' C:/Qt/Tools/mingw491_32/bin/../lib/gcc/i686-w64-mingw32/4.9.1/../../../../i686-w64-mingw32/lib/../lib/crt2.o:crtexe.c:(.text+0x29c): undefined reference to `__mingw_oldexcpt_handler' C:/Qt/Tools/mingw491_32/bin/../lib/gcc/i686-w64-mingw32/4.9.1/../../../../i686-w64-mingw32/lib/../lib/crt2.o:crtexe.c:(.text+0x30b): undefined reference to `mingw_app_type' C:/Qt/Tools/mingw491_32/bin/../lib/gcc/i686-w64-mingw32/4.9.1/../../../../i686-w64-mingw32/lib/../lib/crt2.o:crtexe.c:(.text+0x411): undefined reference to `__native_startup_state' C:/Qt/Tools/mingw491_32/bin/../lib/gcc/i686-w64-mingw32/4.9.1/../../../../i686-w64-mingw32/lib/../lib/crt2.o:crtexe.c:(.text+0x430): undefined reference to `__native_startup_state' C:/Qt/Tools/mingw491_32/bin/../lib/gcc/i686-w64-mingw32/4.9.1/../../../../i686-w64-mingw32/lib/../lib/crt2.o:crtexe.c:(.text+0x441): undefined reference to `__xc_z' C:/Qt/Tools/mingw491_32/bin/../lib/gcc/i686-w64-mingw32/4.9.1/../../../../i686-w64-mingw32/lib/../lib/crt2.o:crtexe.c:(.text+0x448): undefined reference to `__xc_a' C:/Qt/Tools/mingw491_32/bin/../lib/gcc/i686-w64-mingw32/4.9.1/../../../../i686-w64-mingw32/lib/../lib/crt2.o:crtexe.c:(.text+0x455): undefined reference to `__native_startup_state' C:/Qt/Tools/mingw491_32/bin/../lib/gcc/i686-w64-mingw32/4.9.1/../../../../i686-w64-mingw32/lib/../lib/crt2.o:crtexe.c:(.text+0x465): undefined reference to `__native_startup_lock' C:/Qt/Tools/mingw491_32/bin/../lib/gcc/i686-w64-mingw32/4.9.1/../../../../i686-w64-mingw32/lib/../lib/crt2.o:crtexe.c:(.text+0x483): undefined reference to `__native_startup_state' C:/Qt/Tools/mingw491_32/bin/../lib/gcc/i686-w64-mingw32/4.9.1/../../../../i686-w64-mingw32/lib/../lib/crt2.o:crtexe.c:(.text+0x48f): undefined reference to `__xi_z' C:/Qt/Tools/mingw491_32/bin/../lib/gcc/i686-w64-mingw32/4.9.1/../../../../i686-w64-mingw32/lib/../lib/crt2.o:crtexe.c:(.text+0x496): undefined reference to `__xi_a' C:/Qt/Tools/mingw491_32/bin/../lib/gcc/i686-w64-mingw32/4.9.1/../../../../i686-w64-mingw32/lib/../lib/crt2.o:crtexe.c:(.text+0x4c5): undefined reference to `mingw_app_type' C:/Qt/Tools/mingw491_32/bin/../lib/gcc/i686-w64-mingw32/4.9.1/../../../../i686-w64-mingw32/lib/../lib/crt2.o:crtexe.c:(.text+0x4ce): undefined reference to `__security_init_cookie' C:/Qt/Tools/mingw491_32/bin/../lib/gcc/i686-w64-mingw32/4.9.1/../../../../i686-w64-mingw32/lib/../lib/crt2.o:crtexe.c:(.text+0x4e5): undefined reference to `mingw_app_type' C:/Qt/Tools/mingw491_32/bin/../lib/gcc/i686-w64-mingw32/4.9.1/../../../../i686-w64-mingw32/lib/../lib/crt2.o:crtexe.c:(.text+0x4ee): undefined reference to `__security_init_cookie' C:/Qt/Tools/mingw491_32/bin/../lib/gcc/i686-w64-mingw32/4.9.1/../../../../i686-w64-mingw32/bin/ld.exe: C:/Qt/Tools/mingw491_32/bin/../lib/gcc/i686-w64-mingw32/4.9.1/../../../../i686-w64-mingw32/lib/../lib/crt2.o: bad reloc address 0x0 in section `.CRT$XCAA' collect2.exe: error: ld returned 1 exit status mingw32-make[1]: *** [debug\idevice.exe] Error 1 mingw32-make: *** [debug] Error 2 17:04:00: The process "C:\Qt\Tools\mingw491_32\bin\mingw32-make.exe" exited with code 2. Error while building/deploying project idevice (kit: Desktop Qt 5.4.1 MinGW 32bit) When executing step "Make" 17:04:00: Elapsed time: 00:01. _______________________________________________ Interest mailing list Interest@qt-project.org http://lists.qt-project.org/mailman/listinfo/interest