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

Pages: [1]
1
Graphics / Re: Beginner: Pixel coordiates, put a pixel in the image
« on: June 23, 2012, 02:16:16 pm »
Ok I red a bit about it. But still, I don't understand, How are you able to manipulate the screen into red color, though you have no "image". Respectively, why do I need a image to manipulate single pisels?

2
Graphics / Re: Beginner: Pixel coordiates, put a pixel in the image
« on: June 23, 2012, 12:49:35 pm »
I thought if I use graphics that I don't need to use window anymore, because it is included??

?



Edit: ok..now I got that red window, had to use

 g++ -o w2 w2.o -lsfml-graphics -lsfml-window

So I don't have to use it in the header, but Imust  still  link to it, right

But stil: I don't know how to drop a single pixel in that image.

3
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.

4
General / Re: Can't install on Linux
« on: June 22, 2012, 11:58:26 pm »
I got it done by installing through the software manager

5
General / Re: Can't install on Linux
« on: June 22, 2012, 03:17:13 pm »
Yes,  that was the error. Now I have no compilition errors. But I get this error when I try to run the programm:

Quote
/clock: error while loading shared libraries: libsfml-system.so.1.6: cannot open shared object file: No such file or directory

6
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]
anything