Important: Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

failed to start app error 142 (taglib)



  • Hi
    I'm having troubles adding taglib to my project (on Windows of course, Linux works as usually).
    I have downloaded taglib sources from git and compiled it under Cygwin32, gcc version 7.3.0 (target: i686-pc-cygwin ?) using cmake.
    Static libtag.a was created, I believe it is 32 bit, when I execute
    dumpbin.exe /headers taglib/libtag.a | grep -i machine
    I have got:
    14C machine (x86)
    In Qt I'm using Qt 5.11.1 MinGW 32Bit so it should work ?
    Compilation ends with error:
    recipe for target 'release/lib-test.exe' failed
    and there is popup saying:
    The application was unable to start correctly (0x000000142)

    can comeone help?
    Best,
    Marek

    [Edit ~aha_1980: Fixed typo tablib -> taglib]


  • Lifetime Qt Champion

    Hi @Marek,

    So if I understand you correctly, you have build taglib with Cygwin-gcc and your program win MinGW?

    Have you already found this stackoverflow question?

    They propose to add -DTAGLIB_STATIC when compiling your app.

    Regards



  • @aha_1980 I haven't, let me check it



  • @aha_1980 now I have 100+ errors like undefined reference to '__dso_handle' from libtag.a so I assume it won't work with libtag.a compiled by gcc.
    The example you provided was with cmake using mingw to compile.

    Best,
    Marek


  • Lifetime Qt Champion

    @Marek

    ah, yes you are right. If I were you, I'd try to compile taglib with mingw too to avoid incompatibilities.

    My gut feeling is, that you cannot exchange libs between mingw and cygwin-gcc


Log in to reply