Welcome, Guest. Please login or register. Did you miss your activation email?

Author Topic: installing question  (Read 1521 times)

0 Members and 1 Guest are viewing this topic.

metulburr

  • Newbie
  • *
  • Posts: 49
    • View Profile
    • Email
installing question
« on: August 24, 2011, 09:05:36 am »
i am not really great at working with the terminal in linux, but anyways i downloaded SFML 1.6 for linux
http://www.sfml-dev.org/tutorials/1.6/start-linux.php

http://www.sfml-dev.org/tutorials/1.6/start-linux.php

under installing SFML is says "Once you have downloaded and extracted the files to your hard drive, you must install the SFML headers and library files to the appropriate location. To do so, you just have to go to the SFML-x.y directory and type "sudo make install".

id dont know what it means by going to the SFML-x.y directory?
then i did this

[/code]metulburr@metulburrPC ~/SFML-1.6 $ sudo make install
[sudo] password for metulburr:
make[1]: Entering directory `/home/metulburr/SFML-1.6/src/SFML'
make[2]: Entering directory `/home/metulburr/SFML-1.6/src/SFML/System'
make[2]: Leaving directory `/home/metulburr/SFML-1.6/src/SFML/System'
make[2]: Entering directory `/home/metulburr/SFML-1.6/src/SFML/Window'
make[2]: Leaving directory `/home/metulburr/SFML-1.6/src/SFML/Window'
make[2]: Entering directory `/home/metulburr/SFML-1.6/src/SFML/Network'
make[2]: Leaving directory `/home/metulburr/SFML-1.6/src/SFML/Network'
make[2]: Entering directory `/home/metulburr/SFML-1.6/src/SFML/Graphics'
make[2]: Leaving directory `/home/metulburr/SFML-1.6/src/SFML/Graphics'
make[2]: Entering directory `/home/metulburr/SFML-1.6/src/SFML/Audio'
make[2]: Leaving directory `/home/metulburr/SFML-1.6/src/SFML/Audio'
make[1]: Leaving directory `/home/metulburr/SFML-1.6/src/SFML'[code]

did i do this right? could someone  walk me through this process?
OS Ubuntu 13.04, Arch Linux, Gentoo, Windows 7/8
SFML 2.1
Ati Radeon HD 6770

Laurent

  • Administrator
  • Hero Member
  • *****
  • Posts: 32498
    • View Profile
    • SFML's website
    • Email
installing question
« Reply #1 on: August 24, 2011, 09:22:27 am »
It looks good. Now make sure that you have a SFML folder in /usr/include, and libsfml-*.so files in /usr/lib.

Quote
id dont know what it means by going to the SFML-x.y directory?

Code: [Select]
cd where/you/uncompressed/the/archive
Laurent Gomila - SFML developer

metulburr

  • Newbie
  • *
  • Posts: 49
    • View Profile
    • Email
installing question
« Reply #2 on: August 24, 2011, 10:06:48 am »
thank you

i do have usr/include/SFML and inside the files   but when i try to link it via code blocks im stuck  when i click add libraries within i go to usr/include/SFML and click on the window file for example and (my first instinct would be an OK or ADD button) but it just shows open (and when i open it under that i dont see anything and it doesnt do anything) and at that point im lost???
OS Ubuntu 13.04, Arch Linux, Gentoo, Windows 7/8
SFML 2.1
Ati Radeon HD 6770

Laurent

  • Administrator
  • Hero Member
  • *****
  • Posts: 32498
    • View Profile
    • SFML's website
    • Email
installing question
« Reply #3 on: August 24, 2011, 01:27:11 pm »
"Add libraries" usually refers to compiled libraries (.so), not to headers.

But don't bother with files, just add "-lsfml-graphics -lsfml-window -lsfml-system" (depends on which SFML modules yuou use of course) to your linker options.
Laurent Gomila - SFML developer

 

anything