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

Pages: [1] 2 3
1
General / Drag and drop files into sf::RenderWindow?
« on: November 02, 2015, 08:27:39 pm »
Is it possible to trigger the event when the file is dragged and dropped on sf::RenderWindow? It would be good to know how to do this both on Windows, Mac and Linux. Can someone give me directions on how to make this?

2
General / Re: Scratchy sound FreeBSD?
« on: October 17, 2015, 12:50:00 am »
i'm still kind of new to this, so i don't know what those are yet. and as of playing normally, i've checked it on windows, but i don't know how can i check if it plays fine on freebsd as well, the only way i've known was using sfml, but that doesn't work.

3
General / Re: Scratchy sound FreeBSD?
« on: October 16, 2015, 11:38:48 pm »
Nope, doesn't fix it. And as far as I can see, the ogg file is pretty much a regular ogg file. Works on Windows though.

4
General / Re: Scratchy sound FreeBSD?
« on: October 16, 2015, 11:23:51 pm »
I just realized that I've forgotten to link OpenAL. Perhaps it'll work now... Thanks for reminding me

5
General / Re: Scratchy sound FreeBSD?
« on: October 16, 2015, 11:12:13 pm »
I used the exact code as specified on SFML/Learn section. And the sound is just a regular .ogg vorbis file.

6
General / Scratchy sound FreeBSD?
« on: October 16, 2015, 07:57:23 pm »
So I've installed Xorg along with the SFML on FreeBSD, configured the .xinitrc file to run my application, which currently just plays sound. But the problem I'm facing now is the scratchy sound. The file I'm trying to play is the .ogg vorbis. I'm not sure if it is the problem of SFML, or the Xorg, but I cannot find a solution to this myself, no matter how hard I tried. Any suggestions are welcome. Thanks.

7
General / Re: FreeBSD integration?
« on: October 14, 2015, 11:27:56 pm »
I know, but mainly I'm just interested in the SFML related stuff.

8
General / Re: FreeBSD integration?
« on: October 14, 2015, 10:56:49 pm »
Okay, I installed FreeBSD? Can anyone guide me what should I do next? All these X window systems sounds too abstract to me, yet I can't find a good place to learn about it.

9
General / Re: FreeBSD integration?
« on: October 13, 2015, 10:20:14 pm »
Yeah, sorry, i meant FreeBSD or any terminal-based Linux. Because the thing I want is to run SFML application (with graphics and everything, but not using any interface or desktop app, or at least hiding the fact that I use it.

As you have guessed, I want to build a computer that, upon booting, will execute an SFML application, which I intend to make the it's main interface.

10
General / FreeBSD integration?
« on: October 13, 2015, 08:28:28 pm »
So basically I have not used Linux that much, so please don't laugh if I'm asking a too ridiculous question. Is there any way to use the SFML on FreeBSD, or in fact any console-based Linux.

11
General / Re: Makefile issue!?
« on: September 12, 2015, 06:34:11 pm »
i can't figure out why this doesn't work

EDIT: ok finally figured it out. apparently libs must be specified after the -o file.exe

12
General / Re: Makefile issue!?
« on: September 12, 2015, 06:12:09 pm »
i thought i was!? pardon me for my ignorance, i have only written makefiles for linux until now?
what is wrong with this:
...

LIB = -Llib -lsfml-graphics-s -lfreetype -ljpeg -lsfml-window-s -lopengl32 -lgdi32 -lsfml-system-s -lwinmm

all: main.o
        g++ $(LIB) main.o -o bin\\coe.exe

...

13
General / Makefile issue!?
« on: September 12, 2015, 05:58:10 pm »
#define SFML_STATIC
// this is main.cpp
#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;
}

this is the makefile:
INCLUDE = -Iinclude
LIB = -Llib -lsfml-graphics-s -lfreetype -ljpeg -lsfml-window-s -lopengl32 -lgdi32 -lsfml-system-s -lwinmm

all: main.o
        g++ $(LIB) main.o -o bin\\coe.exe

clean:
        -del *.o
        -del bin\\coe.exe

main.o: main.cpp
        g++ $(INCLUDE) -c main.cpp

error:
g++ -Llib -lsfml-graphics-s -lfreetype -ljpeg -lsfml-window-s -lopengl32 -lgdi32
 -lsfml-system-s -lwinmm main.o -o bin\\coe.exe
main.o:main.cpp:(.text+0x120): undefined reference to `sf::String::String(char c
onst*, std::locale const&)'
main.o:main.cpp:(.text+0x14e): undefined reference to `sf::VideoMode::VideoMode(
unsigned int, unsigned int, unsigned int)'
main.o:main.cpp:(.text+0x19a): undefined reference to `sf::RenderWindow::RenderW
indow(sf::VideoMode, sf::String const&, unsigned int, sf::ContextSettings const&
)'
main.o:main.cpp:(.text+0x1e2): undefined reference to `sf::CircleShape::CircleSh
ape(float, unsigned int)'
main.o:main.cpp:(.text+0x1f2): undefined reference to `sf::Color::Green'
main.o:main.cpp:(.text+0x203): undefined reference to `sf::Shape::setFillColor(s
f::Color const&)'
main.o:main.cpp:(.text+0x229): undefined reference to `sf::Window::close()'
main.o:main.cpp:(.text+0x249): undefined reference to `sf::Window::pollEvent(sf:
:Event&)'
main.o:main.cpp:(.text+0x279): undefined reference to `sf::Color::Color(unsigned
 char, unsigned char, unsigned char, unsigned char)'
main.o:main.cpp:(.text+0x29c): undefined reference to `sf::RenderTarget::clear(s
f::Color const&)'
main.o:main.cpp:(.text+0x2b0): undefined reference to `sf::RenderStates::Default
'
main.o:main.cpp:(.text+0x2ca): undefined reference to `sf::RenderTarget::draw(sf
::Drawable const&, sf::RenderStates const&)'
main.o:main.cpp:(.text+0x2da): undefined reference to `sf::Window::display()'
main.o:main.cpp:(.text+0x2f1): undefined reference to `sf::Window::isOpen() cons
t'
main.o:main.cpp:(.text+0x331): undefined reference to `sf::RenderWindow::~Render
Window()'
main.o:main.cpp:(.text+0x38f): undefined reference to `sf::RenderWindow::~Render
Window()'
main.o:main.cpp:(.text+0x423): undefined reference to `sf::RenderWindow::~Render
Window()'
main.o:main.cpp:(.text$_ZN2sf11CircleShapeD1Ev[__ZN2sf11CircleShapeD1Ev]+0xe): u
ndefined reference to `vtable for sf::CircleShape'
main.o:main.cpp:(.text$_ZN2sf11CircleShapeD1Ev[__ZN2sf11CircleShapeD1Ev]+0x18):
undefined reference to `vtable for sf::CircleShape'
main.o:main.cpp:(.text$_ZN2sf11CircleShapeD1Ev[__ZN2sf11CircleShapeD1Ev]+0x22):
undefined reference to `sf::Shape::~Shape()'
collect2.exe: error: ld returned 1 exit status
mingw32-make: *** [all] Error 1

Press any key to continue . . .

EDIT: I'm using Windows Mingw32 GCC compiler

14
Network / Networking question?
« on: August 22, 2015, 06:00:54 pm »
I'm looking to create a server and client application (either TCP or UDP). I'm not very experienced in sockets, but I managed to make it work. But my problem is that if I want to send data to client, it has to unblock the program in firewall. So my question is: is it possible to avoid firewall exception for client?

15
General / Re: set icon?
« on: July 16, 2015, 07:07:28 pm »
well then, is it possible to set it from resource then?

Pages: [1] 2 3