Results 1 to 3 of 3

Thread: QT creator +SDL

  1. #1
    Join Date
    Dec 2010
    Location
    South Africa
    Posts
    56
    Thanks
    8
    Thanked 3 Times in 3 Posts
    Qt products
    Qt4
    Platforms
    Unix/X11 Windows Maemo/MeeGo

    Default QT creator +SDL

    Good day

    Im really new to C++ with Qt Development and now im trying something new by adding sdl (simple directmedia layer) to the mix. However i am able to write apps in console and compile them by running

    g++ progoutput filename.cpp -lSDL -lSDL_image

    But i would prefer to write my code in Qt CREATOR. would somone be able to explain to me howto include the libs and chane the compile options in order to get this to work.

    Thanks very much

  2. #2
    Join Date
    Jan 2006
    Location
    Germany
    Posts
    4,380
    Thanks
    19
    Thanked 1,005 Times in 913 Posts
    Qt products
    Qt4
    Platforms
    Unix/X11 Windows Symbian S60
    Wiki edits
    5

    Default Re: QT creator +SDL

    Use the LIBS variable of your pro file.

  3. The following user says thank you to Lykurg for this useful post:

    ShapeShiftme (19th December 2010)

  4. #3
    Join Date
    Dec 2010
    Location
    South Africa
    Posts
    56
    Thanks
    8
    Thanked 3 Times in 3 Posts
    Qt products
    Qt4
    Platforms
    Unix/X11 Windows Maemo/MeeGo

    Default Re: QT creator +SDL

    thanks. it was that easy. have a great day.

Similar Threads

  1. Using QCA with QT Creator
    By mrstif in forum Newbie
    Replies: 4
    Last Post: 18th October 2010, 16:31
  2. Qt Creator
    By Baracardi in forum Qt Tools
    Replies: 5
    Last Post: 28th May 2010, 14:43
  3. How to add MS SDK to QT Creator?
    By askrina in forum Newbie
    Replies: 3
    Last Post: 5th May 2010, 06:16
  4. Qt Creator
    By fnmblot in forum General Discussion
    Replies: 3
    Last Post: 12th April 2009, 08:06
  5. Qt Creator on Mac OS X
    By stephenju in forum Qt Tools
    Replies: 2
    Last Post: 12th March 2009, 21:51

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.