Results 1 to 5 of 5

Thread: Using the SFML in codeblocks

  1. #1
    Join Date
    Oct 2008
    Beans
    68

    Using the SFML in codeblocks

    Hi
    I am playing around with the SFML library.
    I could compile and run a program writing the code in gedit and compiling it on the terminal.
    I used this guide for doing this -> http://www.sfml-dev.org/tutorials/1.6/start-linux.php

    There is a guide for using codeblocks in windows. So I used it but edit some parts -> http://www.sfml-dev.org/tutorials/1.6/start-cb.php

    The first part where I have to add in the Search Directory Compiler I add this
    "/usr/include/SFML"
    http://img233.imageshack.us/img233/1...ntallazoge.png
    Thats the picture

    And in Search Directories Linker I add this
    /usr/lib
    Here is the picture -> http://img233.yfrog.com/img233/8660/pantallazo7.png

    And I have this error when I try to compile
    http://img297.imageshack.us/img297/3...ntallazo1x.png

  2. #2
    Join Date
    Jul 2005
    Location
    2 exits past crazy
    Beans
    4,222
    Distro
    Lubuntu 12.10 Quantal Quetzal

    Re: Using the SFML in codeblocks

    Since you are specifying /usr/include/SFML, do you need to use <SFML/...> in your include? What happens if you just set /usr/include as an include directory option instead of /usr/include/SFML?

  3. #3
    Join Date
    Mar 2006
    Location
    Eefde, The Netherlands
    Beans
    432
    Distro
    Ubuntu 10.04 Lucid Lynx

    Re: Using the SFML in codeblocks

    Did you set the linker flags? The linker complains because it can't find the libraries it needs. According to the website, you might need these: -lsfml-graphics -lsfml-window -lsfml-system.

  4. #4
    Join Date
    Oct 2008
    Beans
    68

    Re: Using the SFML in codeblocks

    Thanks problem solved

  5. #5
    Join Date
    Mar 2006
    Location
    Eefde, The Netherlands
    Beans
    432
    Distro
    Ubuntu 10.04 Lucid Lynx

    Re: Using the SFML in codeblocks

    I see you posted your findings on Planet Ubuntu.

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
  •