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

Pages: [1] 2
1
Audio / Re: playing sounds simultaneously
« on: February 25, 2017, 05:29:12 pm »
That is what I was looking for. Some other views of the same point. Thank you.

2
Audio / Re: playing sounds simultaneously
« on: February 07, 2017, 04:11:35 pm »
Thank you for your post.

Is it established practice to do it like you suggested?
I mean, it's like let clean up the gabrage of anyone's work from anyone else.

3
Audio / playing sounds simultaneously
« on: October 16, 2016, 11:41:58 pm »
Hey,
I was looking for a good way to play sounds simultaneously with SFML.
After googeling I found a post from nexus (http://en.sfml-dev.org/forums/index.php?topic=6697.0). He only gave a hint: Push the playing sounds into a queue and pop them if they reached the status sf::Sound::Status::Stopped.
I thought, that's a good idea, so I tryed to programm a general solution to this problem:

(click to show/hide)

(click to show/hide)

Everything is working fine and anyone can feel free to use it.
The thing I want to know is, what do you think about this solution? May be there are some better out there?

regards

Julian

4
General / Re: Unresolved External Symbols
« on: October 03, 2016, 09:51:15 pm »
This error arises when you link wrong msvc libraries to a executable.
May be this helps:
http://hintslibrary.blogspot.de/2014/02/error-lnk2001-unresolved-external.html

5
General / Re: SFML on linux-mint
« on: December 10, 2015, 06:08:46 pm »
After 6 hours of trying, I decided to post here.
Now I fixed the problem after 30 mins.
Obviously make install doesn't install the libstdc++.so.6.0.21. So I copy that file to /usr/lib/x86_64-linux-gnu/libstdc++.so.6.0.21, and now it works.

6
General / SFML on linux-mint
« on: December 10, 2015, 05:44:56 pm »
Hi,
i recently installed linux mint and tryed to get sfml work on it.
But before I tryed to make sfml work, I installed the newest Version of the GCC-toolchain (GCC 5.3.0).
Cause I read that GNU somewhen changed some APIs in the GCC-API, I compiled SFML by myself (everything worked fine till now).
But now, if I compile a test-sfml project:
#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;
}
With
g++ main.cpp -DSFML_STATIC -Wl,-Map,mapfile.txt -L/usr/lib/gcc/x86_64-unknown-linux-gnu/5.3.0/ -lGL -lX11 -lX11-xcb -ljpeg -lxcb -lxcb-randr -lxcb-image -ludev -lpthread -lFLAC -logg -lfreetype -lopenal -lvorbis -lvorbisenc -lvorbisfile -lsfml-graphics-s -lsfml-window-s -lsfml-system-s
And run the executable I'm getting the this error:
./a.out: relocation error: ./a.out: symbol _ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE10_M_replaceEmmPKcm, version GLIBCXX_3.4.21 not defined in file libstdc++.so.6 with link time reference
 
In the mapfile.txt everything looks fine (the right libaries are getting linked) and if I run
strings libstdc++.so | grep _ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE10_M_replaceEmmPKcm
I get this output:
_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE10_M_replaceEmmPKcm
_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE10_M_replaceEmmPKcm
_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE10_M_replaceEmmPKcm
 

However I suppose, I'm getting this error cause I mixed up some libraries, but if that's in case, how I can figure it out correctly?
Or anyone have other ideas?

Thanks

Julian

7
Graphics / Re: sf::Shape, sf::Text and sf::Sprite Baseclass suggestion
« on: September 06, 2015, 12:10:03 pm »
And please get rid of Hungarian Notation, it makes no sense in modern C++.
It's legacy code.

8
Graphics / sf::Shape, sf::Text and sf::Sprite Baseclass suggestion
« on: September 06, 2015, 11:55:50 am »
Hey,
i found something which raises questions me.
And that's my storry:
I'm trying to writing a little Button-"Framework". Each of my Button-Objects can have a Graphic-Object, doesn't matter what (shape, text or maybe a sprite?).
So i looked for a common base class, the two common base class of each of that three classes are sf::Drawable and sf::Transformable.
But if i want to draw the Text, Shape or what ever in my Button-Object i have to choose (because the sf::Drawable draw function only takes sf::Drawable-References) the Drawable-Baseclass, which leads me to use dynamic_cast if i want to know where my Shape, Text or what ever is located (because i need the functions out of the sf::Transformable-Baseclass):
sf::Sprite* sp = dynamic_cast<sf::Sprite*>(m_pVisualization);
sf::Text* text = dynamic_cast<sf::Text*>(m_pVisualization);
m_bBorderIsReadyToDraw = true;
if (sp)
{
        m_pMouseOver->setPosition(sp->getPosition());
}
else if (text)
{
        m_pMouseOver->setPosition(text->getPosition());
}
So why we can't say each Transformable is Drawable too?
I think it's a applicateable statement?

Cheers

9
General discussions / Re: Building SFML for Visual Studio 2015
« on: July 24, 2015, 08:07:29 pm »
I wrote that i compiled each of the extlibs by my self. I haven't any linker errors anymore.

10
General discussions / Re: Building SFML for Visual Studio 2015
« on: July 24, 2015, 07:07:10 pm »
Thanks eXpl0it3r for that hint.

But i now compiled each of the extlibs by my self. Now the linker can resolve the symbols correctly. But i have two more questions better said 1 question and 1 problem:
1. the question:
if i download a SFML Visual Studio build, for instance the Visual Studio 2013 build, i allways only have 1 build for the extlbis. I don't understand why only one build? What happens if the extlibs are compiled with the option /MD and the Exectuable with /MDd? Whouldn't appear some symbol conflicts in that case?

2. the problem:
if SFML creates a GLContext i get the fallowing warning message in the contex-check-SFML-function:
Warning: The created OpenGL context does not fully meet the settings that were requested
Requested: version = 1.1 ; depth bits = 0 ; stencil bits = 0 ; AA level = 32 ; core = false ; debug = false
Created: version = 4.5 ; depth bits = 0 ; stencil bits = 0 ; AA level = 16 ; core = false ; debug = false
Why OpenGL can't setup the context correctly?

11
General discussions / Re: Building SFML for Visual Studio 2015
« on: July 22, 2015, 09:08:24 pm »
Ok that Thread i didn't find about 3 hours googeling.
But god dam compiling jpeglib doesn't seems that easy.

12
General discussions / Re: Building SFML for Visual Studio 2015
« on: July 22, 2015, 08:52:52 pm »
I don't find something, but http://en.sfml-dev.org/forums/index.php?topic=18243.msg131275#msg131275, he obviosly did it. But that's no help for me.

13
General discussions / Building SFML for Visual Studio 2015
« on: July 22, 2015, 08:32:21 pm »
Hi,
i try to use Visual Studio 2015 tools to compile SFML. I do that by using cmake:
cmake -G"NMake Makefiles" C:\Libraries\SFML-2.3.1
nmake
But no matter whether i try to build SFML by nmake or by a sln, i allways getting the following unresolved symbols:
jpeg.lib(jerror.obj) : error LNK2001: unresolved external symbol _sprintf
jpeg.lib(jerror.obj) : error LNK2019: unresolved external symbol ___iob_func referenced in function _output_message
jpeg.lib(jmemmgr.obj) : error LNK2019: unresolved external symbol _sscanf referenced in function _jinit_memory_mgr
in sfml-graphics-2.dll.
What i am doing wrong? Are the by SFML provided jpeg.lib incompatible to the VS15 libs?

14
Window / Re: update the Window while it isn't selected
« on: May 10, 2014, 10:39:43 am »
Ok i think i understand. Thank you.

15
Window / Re: update the Window while it isn't selected
« on: May 10, 2014, 12:16:29 am »
Not the ratio of my View, i mean the ratio of my Window, i know the tutorial already. And i want show the changes in realtime, so i haveto catch the WM_SIZING - Message. I don't know another reason.

Pages: [1] 2
anything