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 - aligator

Pages: [1]
1
General / setting up SFML with Linux doesn't work
« on: May 29, 2013, 05:16:06 pm »
hi

I have Kubuntu 12.10 64bit

I tried this:
http://www.sfml-dev.org/tutorials/2.0/start-linux.php

I downloaded the 32bit version, and unpacked it to /usr/local/

if I try to compile it, I get this:

johannes@johannes-Kubuntu:~/Downloads/SFML$ g++ -c main.cpp
johannes@johannes-Kubuntu:~/Downloads/SFML$ g++ main.o -o sfml-app -lsfml-graphics -lsfml-window -lsfml-system
/usr/bin/ld: Inkompatible /usr/local/lib/libsfml-graphics.so wird übersprungen bei der Suche nach -lsfml-graphics
/usr/bin/ld: cannot find -lsfml-graphics
/usr/bin/ld: Inkompatible /usr/local/lib/libsfml-window.so wird übersprungen bei der Suche nach -lsfml-window
/usr/bin/ld: cannot find -lsfml-window
/usr/bin/ld: Inkompatible /usr/local/lib/libsfml-system.so wird übersprungen bei der Suche nach -lsfml-system
/usr/bin/ld: cannot find -lsfml-system
collect2: Fehler: ld gab 1 als Ende-Status zurück
johannes@johannes-Kubuntu:~/Downloads/SFML$
 


why are the files incompatible?

aligator

2
General / CodeBlocks compile problem
« on: May 28, 2013, 09:50:12 pm »
hi

I use Linux Kubuntu 12.10 and codeblocks.

if I compile this:

#include <SFML/Graphics.hpp>

int main()
{
    sf::RenderWindow window(sf::VideoMode(200, 200), "SFML works!");
    sf::CircleShape shape(100.f);
    shape.setFillColor(sf::Color::Green);

    while (window.isOpen())
    {
        sf::Event event;
        while (window.pollEvent(event))
        {
            if (event.type == sf::Event::Closed)
                window.close();
        }

        window.clear();
        window.draw(shape);
        window.display();
    }

    return 0;
}
 

I get this error:
/usr/local/lib/libsfml-network.so: could not read symbols: Falsches Dateiformat

can someone help me, please?

aligator

Pages: [1]