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

Show Posts

This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.


Messages - wasalski

Pages: [1]
1
Window / Context Settings Help
« on: May 27, 2011, 06:22:21 pm »
Yes, I'm running Scientific Linux.

2
Window / Context Settings Help
« on: May 27, 2011, 01:36:42 am »
I'm having some trouble setting the Context Settings for my window. I'm using SFML 2.0.


Code: [Select]
#include <SFML/System.hpp>
#include <SFML/Window.hpp>
#include <SFML/Graphics.hpp>

#include <iostream>

int main(int argc, char** argv)
{
  sf::ContextSettings Settings;
  Settings.DepthBits         = 24; // Request a 24 bits depth buffer
  Settings.StencilBits       = 8;  // Request a 8 bits stencil buffer

  // Opens window and passes in my context settings
  sf::Window App(sf::VideoMode(400,400,32), "Test Window", sf::Style::Close, Settings);

  // Prints out the Depth Bits and Stencil Bits of the Window
  std::cout << "DepthBits: " << App.GetSettings().DepthBits << std::endl;
  std::cout << "StencilBits: " << App.GetSettings().StencilBits << std::endl;

  while ( App.IsOpened() )
  {
    sf::Event Event;
    while ( App.PollEvent(Event) )
    {
      if (Event.Type == sf::Event::Closed)
        App.Close();

      if (Event.Type == sf::Event::KeyPressed)
        App.Close();
    }

    App.Display();
  }

  return 0;
}



When I run this, I get:

Quote
DepthBits: 16
StencilBits: 0


Does anyone know what is going on?

3
General / Linking to libsfml-system on linux
« on: April 28, 2011, 06:58:29 pm »
Now I'm using:

$ g++ -I/home/wasalski/SFML-1.6/include first.cc -o first -L/home/wasalski/SFML-1.6/lib -lsfml-system

And getting:

/home/wasalski/SFML-1.6/lib/libsfml-system.so: undefined reference to `std::basic_ostream<char, std::char_traits<char> >& std::__ostream_insert<char, std::char_traits<char> >(std::basic_ostream<char, std::char_traits<char> >&, char const*, long)@GLIBCXX_3.4.9'
/home/wasalski/SFML-1.6/lib/libsfml-system.so: undefined reference to `std::ctype<char>::_M_widen_init() const@GLIBCXX_3.4.11'
collect2: ld returned 1 exit status

Can anyone tell me what is going on?

4
General / Linking to libsfml-system on linux
« on: April 27, 2011, 04:53:35 pm »
Thanks!

5
General / Linking to libsfml-system on linux
« on: April 26, 2011, 06:33:13 pm »
I installed SFML in my home directory, and am trying to compile the example from http://www.sfml-dev.org/tutorials/1.6/start-linux.php .

this is the command I use:

g++ first.cc -I/home/wasalski/SFML-1.6/include -L/home/wasalski/SFML-1.6/lib -lsfml-system  

as you can see, I including the header files and the library path

I get the following error message:

/usr/bin/ld: cannot find -lsfml-system
collect2: ld returned 1 exit status

but I have verified that libsfml-system.so.1.6 exists, and have tried to make a symlink to libsfml-system.so.1.6 called libsfml-system.so

wasalski@jamieson2:~/SFML-1.6/lib                                               $ ls
libsfml-audio.so.1.6     libsfml-network.so.1.6  libsfml-system.so.1.6
libsfml-graphics.so.1.6  libsfml-system.so       libsfml-window.so.1.6

Now I am out of ideas, can anyone tell me what is going on?

Pages: [1]