Trouble with SDL <SOLVED>



  • I'm trying to help a friend with a problem. When debugging the program I get the error "LNK1104: cannot open file 'SDL.dll.lib'

    From what I can tell everything is referencing the right file.

    #Windows
    win32{
    RC_FILE = monterey.rc

    DEFINES += SDL_WIN
    LIBS += -L../Monterey/depends/windows/
    LIBS += -lSDL.dll
    }



  • FIXED!

    Since it could not find the SDL.dll.lib file I checked the depends/windows folder and there wasn't a lib file there. So I downloaded the Win32:
    SDL-devel-1.2.15-VC.zip (Visual C++) Development library and extracted it. Then I moved the SDLmain.lib, SDL.lib and SDL.dll files to the depends/windows folder. Then I renamed the SDL.lib to SDL.dll.lib. After that, it debugged and ran fine! :)


  • Lifetime Qt Champion

    Hi and welcome to devnet,

    Great you found out and shared ! Could you also update the thread's title to solved so other forum users may know a solution has been found :)


Log in to reply
 

Looks like your connection to Qt Forum was lost, please wait while we try to reconnect.