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

Pages: [1]
1
General / Re: Using SFML in own dll
« on: October 18, 2014, 03:33:39 am »
Problem solved. I just remade the visual studio project and checked "empty project" checkbox.
That solved it for me, everything is running fine now.

2
General / Re: Using SFML in own dll
« on: October 16, 2014, 06:38:22 pm »
What if I want to develop the engine along with my game and a level editor for my game? How can I manage to do that? That's why I need to make a dll with sfml.
Seriously? no one has an answer?

3
General / Re: Using SFML in our own engine dll
« on: October 14, 2014, 07:45:16 pm »
Honestly, if you don't know what you're doing, don't mix static and dynamic. If you do anyways, you're pretty much on your own. ;D

Which version of the SFML libs (the ones in lib or the ones in lib/static-std) did you link statically against?

Sorry but as far as I know I'm doing it as supposed. Laurent said that it can be done here: http://en.sfml-dev.org/forums/index.php?topic=11824.0

Even linking all dynamically the same thing happens.
If I set up my engine dll to link sfml dynamically same thing happens.
I think that when SFML runs from a dll it doesn't finish all the threads properly and the application keeps running.

I want to create a mini engine along with my game because I want to reuse the engine later.
If I setup SFML with my game project directly everything works as expected but I need to setup as mentioned before.

So if anybody can help solving this issue would be amazing.

5
General / Re: Using SFML in our own engine dll
« on: October 13, 2014, 06:18:43 pm »
I wasn't able to see anything relevant using break points.

Screenshots showing the problem:

Here as you can see everything is running fine
http://puu.sh/caFmN/ada08274c3.png

Now I close the SFML window and application won't finish
http://puu.sh/caFtd/e3164b9d6a.png

Console window is there because I made it appear when running debug.

However if I run release it's the same thing

Running:
http://puu.sh/caFFS/22543942f2.png

Now I close the SFML window:
http://puu.sh/caFHA/19d04a7787.png

As you can see It keeps running in background but doing nothing and without using system resources at all.

If I build the project and run standalone without visual studio when I close the window you can see game.exe is still running and showing up on task manager.

6
General / [Solved] Using SFML in own dll
« on: October 12, 2014, 09:58:00 pm »
EDIT: Problem solved. I just remade the visual studio project and checked "empty project" checkbox.
That solved it for me, everything is running fine now.


I want to create my own little game engine on top of SFML. I'm using Visual Studio 2013 and my vs solution is like this:

Solution:
EngineProject: is a DLL project that uses SFML libraries linked statically.
GameProject: is a win32 application that depends on EngineProject.

So basically: SFML->EngineDLL->Game

I've managed to build everything, the engine.dll that uses sfml libs, and game.exe that uses engine.dll, running the SFML example with the little green circle, but when I close the window the application doesn't stop and I need to stop it from task manager. Inside visual studio the same thing happens. Window is closed but application keep running.
 

7
Thank you, I'm not saying that nightlybuilds.ch is not safe, I was just asking.
I've edited the title to avoid misconceptions :)
The code that I'm compiling is the one from the visual studio project tutorial, the one that shows a tiny window with a green circle.
My av is Qihoo 360, and for me is one of the av with less false positives ratio.
But for sure, it can throw a false positive :P

Anyway, I will send a message to Qihoo to alert about this false positive, maybe they will fix it.

8
I couldn't build sfml 2.1 static libs for visual studio and I don't want to use dinamyc libraries, so I've downloaded  the vs2013 build from here: http://www.nightlybuilds.ch/project/show/1/SFML/
I configured the project and all is working but the compiled exe is being detected as malware (generic) by my antivirus.

All I want to know is if www.nightlybuilds.ch is safe and It's a false alarm.
In that case, I want to know how can I get rid of the false positive, because It's not nice for distribution.

Thank you!

Pages: [1]