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

Pages: [1]
1
General / libGLEW.so.1.7: cannot open shared object file
« on: September 10, 2013, 04:40:27 pm »
Hello,

I am trying to follow the tutorial for installing sfml 2.1 but when I execute I get this error:

/home/jessie/Project/sfml test/bin/Debug/sfml test: error while loading shared libraries: libGLEW.so.1.7: cannot open shared object file: No such file or directory

Here is the code:
 
#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 am using linux Mint 14 and Code Block ( I have also tried with the command line but I get the same result ). Here is the compile script I use from the command line:
g++ -c main.cpp -I/home/jessie/Libraries/SFML-2.1-32bits/include
g++ main.o -o sfml-app -L/home/jessie/Libraries/SFML-2.1-32bits/lib -lsfml-graphics -lsfml-window -lsfml-system
chmod +x ./sfml-app
export LD_LIBRARY_PATH=/home/jessie/Libraries/SFML-2.1-32bits/lib && ./sfml-app
 

I have already ran: sudo apt-get remove libsfml-dev
sudo apt-get remove libsfml-dev
Reading package lists... Done
Building dependency tree      
Reading state information... Done
Package 'libsfml-dev' is not installed, so not removed
0 upgraded, 0 newly installed, 0 to remove and 220 not upgraded.
 
And here is a result when I search for files with 'sfml' in their name:
sudo find / -name '*sfml*'
/usr/share/codeblocks/templates/sfml.cbp
/usr/share/codeblocks/templates/sfml-main.cpp
/usr/share/codeblocks/templates/sfml.template
/usr/share/codeblocks/templates/sfml-cb.bmp
/usr/share/codeblocks/templates/sfml.png
/usr/share/codeblocks/templates/wizard/sfml
/home/jessie/Libraries/SFML-2.1-64bits/lib/libsfml-network.so
/home/jessie/Libraries/SFML-2.1-64bits/lib/libsfml-window.so.2
/home/jessie/Libraries/SFML-2.1-64bits/lib/libsfml-system.so.2
/home/jessie/Libraries/SFML-2.1-64bits/lib/libsfml-graphics.so.2
/home/jessie/Libraries/SFML-2.1-64bits/lib/libsfml-system.so.2.1
/home/jessie/Libraries/SFML-2.1-64bits/lib/libsfml-window.so.2.1
/home/jessie/Libraries/SFML-2.1-64bits/lib/libsfml-window.so
/home/jessie/Libraries/SFML-2.1-64bits/lib/libsfml-audio.so.2
/home/jessie/Libraries/SFML-2.1-64bits/lib/libsfml-system.so
/home/jessie/Libraries/SFML-2.1-64bits/lib/libsfml-graphics.so.2.1
/home/jessie/Libraries/SFML-2.1-64bits/lib/libsfml-audio.so.2.1
/home/jessie/Libraries/SFML-2.1-64bits/lib/libsfml-network.so.2
/home/jessie/Libraries/SFML-2.1-64bits/lib/libsfml-network.so.2.1
/home/jessie/Libraries/SFML-2.1-64bits/lib/libsfml-audio.so
/home/jessie/Libraries/SFML-2.1-64bits/lib/pkgconfig/sfml-network.pc
/home/jessie/Libraries/SFML-2.1-64bits/lib/pkgconfig/sfml-system.pc
/home/jessie/Libraries/SFML-2.1-64bits/lib/pkgconfig/sfml-window.pc
/home/jessie/Libraries/SFML-2.1-64bits/lib/pkgconfig/sfml-graphics.pc
/home/jessie/Libraries/SFML-2.1-64bits/lib/pkgconfig/sfml-audio.pc
/home/jessie/Libraries/SFML-2.1-64bits/lib/pkgconfig/sfml-all.pc
/home/jessie/Libraries/SFML-2.1-64bits/lib/libsfml-graphics.so
/home/jessie/Libraries/SFML-2.1-64bits/share/SFML/examples/shader/resources/sfml.png
/home/jessie/Libraries/SFML-2.1-32bits/lib/libsfml-network.so
/home/jessie/Libraries/SFML-2.1-32bits/lib/libsfml-window.so.2
/home/jessie/Libraries/SFML-2.1-32bits/lib/libsfml-system.so.2
/home/jessie/Libraries/SFML-2.1-32bits/lib/libsfml-graphics.so.2
/home/jessie/Libraries/SFML-2.1-32bits/lib/libsfml-system.so.2.1
/home/jessie/Libraries/SFML-2.1-32bits/lib/libsfml-window.so.2.1
/home/jessie/Libraries/SFML-2.1-32bits/lib/libsfml-window.so
/home/jessie/Libraries/SFML-2.1-32bits/lib/libsfml-audio.so.2
/home/jessie/Libraries/SFML-2.1-32bits/lib/libsfml-system.so
/home/jessie/Libraries/SFML-2.1-32bits/lib/libsfml-graphics.so.2.1
/home/jessie/Libraries/SFML-2.1-32bits/lib/libsfml-audio.so.2.1
/home/jessie/Libraries/SFML-2.1-32bits/lib/libsfml-network.so.2
/home/jessie/Libraries/SFML-2.1-32bits/lib/libsfml-network.so.2.1
/home/jessie/Libraries/SFML-2.1-32bits/lib/libsfml-audio.so
/home/jessie/Libraries/SFML-2.1-32bits/lib/pkgconfig/sfml-network.pc
/home/jessie/Libraries/SFML-2.1-32bits/lib/pkgconfig/sfml-system.pc
/home/jessie/Libraries/SFML-2.1-32bits/lib/pkgconfig/sfml-window.pc
/home/jessie/Libraries/SFML-2.1-32bits/lib/pkgconfig/sfml-graphics.pc
/home/jessie/Libraries/SFML-2.1-32bits/lib/pkgconfig/sfml-audio.pc
/home/jessie/Libraries/SFML-2.1-32bits/lib/pkgconfig/sfml-all.pc
/home/jessie/Libraries/SFML-2.1-32bits/lib/libsfml-graphics.so
/home/jessie/Libraries/SFML-2.1-32bits/share/SFML/examples/shader/resources/sfml.png
/home/jessie/Project/Zombieland/sfml-graphics-2.dll
/home/jessie/Project/Zombieland/sfml-graphics-d-2.dll
/home/jessie/Project/Zombieland/sfml-audio-2.dll
/home/jessie/Project/Zombieland/sfml-window-2.dll
/home/jessie/Project/Zombieland/sfml-network-d-2.dll
/home/jessie/Project/Zombieland/bin/Debug/sfml-graphics-2.dll
/home/jessie/Project/Zombieland/bin/Debug/sfml-graphics-d-2.dll
/home/jessie/Project/Zombieland/bin/Debug/sfml-audio-2.dll
/home/jessie/Project/Zombieland/bin/Debug/sfml-window-2.dll
/home/jessie/Project/Zombieland/bin/Debug/sfml-network-d-2.dll
/home/jessie/Project/Zombieland/bin/Debug/sfml-window-d-2.dll
/home/jessie/Project/Zombieland/bin/Debug/sfml-system-2.dll
/home/jessie/Project/Zombieland/bin/Debug/sfml-system-d-2.dll
/home/jessie/Project/Zombieland/bin/Debug/sfml-audio-d-2.dll
/home/jessie/Project/Zombieland/bin/Debug/sfml-network-2.dll
/home/jessie/Project/Zombieland/sfml-window-d-2.dll
/home/jessie/Project/Zombieland/sfml-system-2.dll
/home/jessie/Project/Zombieland/sfml-system-d-2.dll
/home/jessie/Project/Zombieland/sfml-audio-d-2.dll
/home/jessie/Project/Zombieland/sfml-network-2.dll
/home/jessie/Project/sfml test
/home/jessie/Project/sfml test/sfml test.layout
/home/jessie/Project/sfml test/bin/Debug/sfml test
/home/jessie/Project/sfml test/sfml test.cbp
/home/jessie/Project/sfml test/sfml-app
/home/jessie/Project/sfml test/sfml test.depend
/home/jessie/Project/2D-RTS-engine/sfml-graphics-2.dll
/home/jessie/Project/2D-RTS-engine/sfml-graphics-d-2.dll
/home/jessie/Project/2D-RTS-engine/sfml-audio-2.dll
/home/jessie/Project/2D-RTS-engine/sfml-window-2.dll
/home/jessie/Project/2D-RTS-engine/sfml-network-d-2.dll
/home/jessie/Project/2D-RTS-engine/sfml-window-d-2.dll
/home/jessie/Project/2D-RTS-engine/sfml-system-2.dll
/home/jessie/Project/2D-RTS-engine/sfml-system-d-2.dll
/home/jessie/Project/2D-RTS-engine/sfml-audio-d-2.dll
/home/jessie/Project/2D-RTS-engine/sfml-network-2.dll
 

Thanks

2
General / Linux Permission Denied
« on: September 09, 2013, 05:22:02 pm »
Hello,

When I follow the tutorials for compiling a project with CodeBlock and SFML, I get the following error:
sh: 1: /media/jessie/72387B5E387B2071/Project/sfml test/bin/Debug/sfml test: Permission denied

Process returned 126 (0x7E)   execution time : 0.004 s
Press ENTER to continue.

I have checked and effectively sfml test is not executable, here the result of ls -l command:
ls -l
total 84
-rw------- 1 jessie jessie 84840 Sep  7 12:09 sfml test

I have tried to use the chmod command to make it executable but it isn't working ( I don't get any error, and I am able to make other files executable with chmod ). I have also tried to make it executable through the gui but it didn't work either.

I have also tried to compile it by following the command line tutorial, and I have got the same problem.

Can anyone help me out with this problem?

Thanks

Pages: [1]
anything