Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. 3rd Party Software
  4. Qt and SDL error::Cannot open include file: 'SDL/SDL.h': No such file or directory
Forum Updated to NodeBB v4.3 + New Features

Qt and SDL error::Cannot open include file: 'SDL/SDL.h': No such file or directory

Scheduled Pinned Locked Moved 3rd Party Software
2 Posts 2 Posters 4.0k Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • N Offline
    N Offline
    nickkorta
    wrote on 10 Aug 2013, 22:21 last edited by
    #1

    Hi I'm getting this error. Cannot open include file: 'SDL/SDL.h': No such file or directory
    I created a C++ project.
    In my .pro file I have
    @ LIBS += -LS:/SDL-1.2.15/lib/ -lSDL -lSDLmain
    INCLUDEPATH += S:/SDL-1.2.15/include@

    The location of the SDL library is located at S:\SDL-1.2.15.
    I downloaded Mingw32 version of SDL under Development from the SDL website
    http://www.libsdl.org/download-1.2.php

    This Is my man File
    @#include "SDL/SDL.h"

    int main()
    {
    //Start SDL
    SDL_Init( SDL_INIT_EVERYTHING );

    //Quit SDL
    SDL_Quit();
    
    return 0;
    

    }@

    #include "SDL.SDL.h" has no squigglys and it appears in the dropdown list when adding it. I check and the file does exist under
    S:\SDL-1.2.15\include\SDL

    Thanks

    1 Reply Last reply
    0
    • S Offline
      S Offline
      SGaist
      Lifetime Qt Champion
      wrote on 11 Aug 2013, 21:22 last edited by
      #2

      Hi and welcome to devnet,

      Did you try to re-run qmake after you added the SDL lines to your pro file ?

      Interested in AI ? www.idiap.ch
      Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

      1 Reply Last reply
      0

      1/2

      10 Aug 2013, 22:21

      • Login

      • Login or register to search.
      1 out of 2
      • First post
        1/2
        Last post
      0
      • Categories
      • Recent
      • Tags
      • Popular
      • Users
      • Groups
      • Search
      • Get Qt Extensions
      • Unsolved