Results 1 to 2 of 2

Thread: SDL not working in QT Creator

  1. #1
    Join Date
    Aug 2011
    Posts
    5
    Platforms
    Unix/X11

    Default SDL not working in QT Creator

    I installed libsdl-dev via apt-get in ubuntu, and while it displays in my code completion, for whatever reason QT Creator won't recognize the library when I try to compile it. Is there any reason why? I know virtually nothing about make files, and am just starting out with C++. Any help would be greatly appreciated.

  2. #2
    Join Date
    Jan 2006
    Location
    Warsaw, Poland
    Posts
    33,360
    Thanks
    3
    Thanked 5,015 Times in 4,792 Posts
    Qt products
    Qt3 Qt4 Qt5 Qt/Embedded
    Platforms
    Unix/X11 Windows Android Maemo/MeeGo
    Wiki edits
    10

    Default Re: SDL not working in QT Creator

    Qt Creator will not reognize your library since it is just a text editor and not a compiler. You need to tell the compiler you want this library linked by adding an appropriate LIBS entry (such as LIBS+=-lsdl) to your project file.
    Your biological and technological distinctiveness will be added to our own. Resistance is futile.

    Please ask Qt related questions on the forum and not using private messages or visitor messages.


Similar Threads

  1. MVC example not working
    By yyiu002 in forum Newbie
    Replies: 1
    Last Post: 30th June 2010, 00:07
  2. My first app not working
    By Noks in forum Newbie
    Replies: 6
    Last Post: 2nd February 2010, 16:34
  3. beginInsertRows seems not to be working
    By ugurkoltuk in forum Qt Programming
    Replies: 3
    Last Post: 6th January 2010, 14:21
  4. QT (not-) working with VTK libraries
    By floyd.pepper in forum Newbie
    Replies: 16
    Last Post: 31st August 2009, 12:46
  5. Mac OS X UI not working
    By hvengel in forum Qt Programming
    Replies: 3
    Last Post: 1st April 2006, 01:02

Tags for this Thread

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Digia, Qt and their respective logos are trademarks of Digia Plc in Finland and/or other countries worldwide.