BitsOfBytes icon indicating copy to clipboard operation
BitsOfBytes copied to clipboard

Testing doesn't work on Windows

Open BertrandDecoster opened this issue 5 years ago • 1 comments

You get the following error:

error: cannot find -lWidgetsLib
error: ld returned 1 exit status

because the .pro files are for Unix. I suggest you change the LIBS+= lines with this

CONFIG( debug, debug|release ) {
    LIBSUFFIX = d
    win32:LIBS += -L../WidgetsLib/debug -lWidgetsLib
    win32:PRE_TARGETDEPS += ../WidgetsLib/debug/libWidgetsLib.a
} else {
    LIBSUFFIX =
    win32:LIBS += -L../WidgetsLib/release
    win32:PRE_TARGETDEPS += ../WidgetsLib/release/libWidgetsLib.a
}
unix:LIBS += -L ../WidgetsLib
unix:PRE_TARGETDEPS += ../WidgetsLib/WidgetsLib$${LIBSUFFIX}.a

BertrandDecoster avatar Nov 09 '20 20:11 BertrandDecoster

Thanks @BertrandDecoster . Right now I don't have access to a Windows machine, but I'll update the project as soon as I can test things.

vivaladav avatar Nov 15 '20 22:11 vivaladav