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.

Topics - Xylankant

Pages: [1]
SFML wiki / German wiki?
« on: July 03, 2008, 05:23:12 pm »
Hi folks (and namely Laurent ;) )

I was just wondering, how about a german wiki?

I noticed french (obviously ^^) and english wiki/homepage, however, I'm sure there are some german users of SFML, or even some who don't use SFML (what a shame) because they aren't that good, neither in english nor in french.

I'd even aggree to providing translations, as I speak both, english and french.

General / [Solved] static linking in linux?
« on: June 28, 2008, 01:00:49 am »
Hey folks!

I've just stumbled upon a problem using SFML under Linux (as Cross Compiling binaries for Linux is quite non-trivial under WinXP ^^ ).

Problem is: I can't figure out a way of statically linking the libraries.

Code: [Select]
g++ -c main.cpp
g++ -o main main.o -static lsfml-system

will give me an error saying
/usr/bin/ld: cannot find lsfml-system

When I try compiling without the -static option, everything works fine, however I'd have a dynamic link

I have as well tried -Wl,-static and -Wl,-Bstatic, all's the same result...

System is Ubuntu 8.04
SFML is 1.3

Is there a way to solve this problem?

Window / [Solved] undefined reference to `_gluPerspective@32'
« on: June 26, 2008, 08:33:06 pm »
Hi folks,

I just stumbled upon SFML some days ago, when figuring out some ways of programming some game or sth., and I apologize my first post here is a request for help...

Right now, I'm working myself into both, SFML and C++ (so far, I'm used to Java ;) ), and of course I'm checking out your tutorials.

However, I came across a problem I can't figure out myself when doing the OpenGL-tut (not knowing if I ever want to use OpenGL, but I'll take what I can get ^^ )
I'm not sure whether this is the right sub-forum for OpenGL related topics, but as you are to inluce Window.hpp for OpenGL, I guess it is.

BTW, I'm using Windows XP, and for that Code::Blocks with mingw (so it's gcc for compiling, I think)

So far, my code looks like this (I'm sorry for doing comments in German, but they're useless at this moment, anyway):
Code: [Select]
#include <iostream>
#include <SFML/Window.hpp>

using namespace std;

int main()
    /*Für mehr Kontrolle über OpenGL-Settings:

    sf::WindowSettings Settings;
    Settings.DepthBits         = 24; // Request a 24 bits depth buffer
    Settings.StencilBits       = 8;  // Request a 8 bits stencil buffer
    Settings.AntialiasingLevel = 2;  // Request 2 levels of antialiasing
    sf::Window App(sf::VideoMode(800, 600, 32), "OpenGL Test" /* , sf::Style::Close, Settings */);


    /* Tatsächliche OpenGL-Settings bekommen:

    sf::WindowSettings Settings = App.GetSettings();

    //Color- und DepthClear Werte
    glClearColor(0.f, 0.f, 0.f, 0.f);

    //Z-Buffer mit Read-Write-Rechten

    gluPerspective(90.f, 1.f, 1.f, 500.f);


        sf::Event Event;

        if(Event.Type == sf::Event::Closed || ((Event.Type == sf::Event::KeyPressed) && (Event.Key.Code == sf::Key::Escape))){
        if(Event.Type == sf::Event::Resized){
            glViewport(0, 0, Event.Size.Width, Event.Size.Height);


Ok, so, when compiling this, I'll get an error saying
Code: [Select]
E:/Dateien/CodeBlocks Workspace/OpenGL/main.cpp:35: undefined reference to `_gluPerspective@32'

As stated above, I just can't do anything with it, as it should be referenced (well, I think so...) by including SFML/Window.hpp (or not?)

I've read another thread, where someone said you should include SFML_GLU_HEADER , however, this just gives me "Directory not found" in line 3 ^^

Well, that's that, I really hope someone out here can help me.

P.S.: Please forgive possible mistakes, I'm only a German ;)

Pages: [1]