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

Pages: [1]
1
Graphics / Beginner: Pixel coordiates, put a pixel in the image
« on: June 23, 2012, 12:38:42 pm »
Hello,

I followed the tutorial and managed to compile that programm for a blank window. But then I tried to compile that code from the rendered window tutorial and I got that error

Quote
namal@ubuntu:~/Documents$ g++ -c w2.cpp
namal@ubuntu:~/Documents$ g++ -o w2 w2.o -lsfml-graphics
/usr/bin/ld: w2.o: undefined reference to symbol 'sf::VideoMode::VideoMode(unsigned int, unsigned int, unsigned int)'
/usr/bin/ld: note: 'sf::VideoMode::VideoMode(unsigned int, unsigned int, unsigned int)' is defined in DSO /usr/lib/libsfml-window.so.1.6 so try adding it to the linker command line
/usr/lib/libsfml-window.so.1.6: could not read symbols: Invalid operation
collect2: ld returned 1 exit status

My first question what do I do wrong here and second one: How do I put a single pixel into the screen.

2
General / Can't install on Linux
« on: June 22, 2012, 02:54:50 pm »
Hello,

 I tried to install the library on two different destributions (ubuntu and Xbuntu) but it doesn't work. Since I don't know witch version I need (32 or 64) I tried them both. For 34 I get an error

Quote
make: *** No rule to make target `install'.  Stop.

For 64 I get

Quote
make[1]: Entering directory `/home/namal/Downloads/SFML-1.6/src/SFML'
make[2]: Entering directory `/home/namal/Downloads/SFML-1.6/src/SFML/System'
make[2]: Leaving directory `/home/namal/Downloads/SFML-1.6/src/SFML/System'
make[2]: Entering directory `/home/namal/Downloads/SFML-1.6/src/SFML/Window'
make[2]: Leaving directory `/home/namal/Downloads/SFML-1.6/src/SFML/Window'
make[2]: Entering directory `/home/namal/Downloads/SFML-1.6/src/SFML/Network'
make[2]: Leaving directory `/home/namal/Downloads/SFML-1.6/src/SFML/Network'
make[2]: Entering directory `/home/namal/Downloads/SFML-1.6/src/SFML/Graphics'
make[2]: Leaving directory `/home/namal/Downloads/SFML-1.6/src/SFML/Graphics'
make[2]: Entering directory `/home/namal/Downloads/SFML-1.6/src/SFML/Audio'
make[2]: Leaving directory `/home/namal/Downloads/SFML-1.6/src/SFML/Audio'
make[1]: Leaving directory `/home/namal/Downloads/SFML-1.6/src/SFML'

But when I try the clock example in the tutorial I get another error for g++ -o clock clock.o -lsfml-system :

g++: error: unrecognized option ‘-system’

I have no idea what I am doing wrong. Also: I am new to linux. Pls help me.

Pages: [1]