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

SDL2.dll not found -lSDL2 #17

Open
KerteszDomokos opened this issue May 2, 2021 · 1 comment
Open

SDL2.dll not found -lSDL2 #17

KerteszDomokos opened this issue May 2, 2021 · 1 comment

Comments

@KerteszDomokos
Copy link

I'm using the QJoysticks library in windows with MinGW compiler. I'm working in QTCreator.
I have a problem if I run the code. I just include the library, not use that.

I add it to the project.pro file:

    include (./3rdparty/QJoysticks-master/QJoysticks-master/QJoysticks.pri)

And I just include #include <QJoystick>.
And if I'm running the code, I have this errors:

:-1: error: skipping incompatible [path]\3rdparty\QJoysticks-master\QJoysticks-master\lib\SDL\bin\windows\mingw/SDL2.dll when searching for -lSDL2
:-1: error: skipping incompatible [path]\3rdparty\QJoysticks-master\QJoysticks-master\lib\SDL\bin\windows\mingw/SDL2.dll when searching for -lSDL2
:-1: error: cannot find -lSDL2

My project struct is this:

    test3
        |-test3.pro
        |-main.cpp
        |-[other headers, and cpp-s]
        \-3rdparty
            \-QJoysticks-master
                \-QJoysticks-master

I'm beginner in QT, but a little advanced in c++.

Thanks!

My English isn't perfect, sorry.

@chachabules
Copy link

you may need a dll which is suffixed with .dll.a. Qt can only link dll suffixed with .dll.a in compile time.
you just need to recompile SDL2!!!!

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