Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Testing doesn't work on Windows #5

Open
BertrandDecoster opened this issue Nov 9, 2020 · 1 comment
Open

Testing doesn't work on Windows #5

BertrandDecoster opened this issue Nov 9, 2020 · 1 comment

Comments

@BertrandDecoster
Copy link

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
@vivaladav
Copy link
Owner

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants