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

Pages: 1 2 [3] 4 5
31
General / Re: Getting Error when creating a Singleton class
« on: January 04, 2014, 01:47:15 am »
static ScreenManager GetInstance();

You missed an ampersand (&) inside your header file ;)

32
Graphics / Re: Failing To Load Font
« on: January 04, 2014, 01:08:35 am »
From where do you load the font file? It should be in the same folder as the executable. You can't read from Windows' global fonts :)

33
SFML website / Re: Think This Is A Typo
« on: January 04, 2014, 01:03:44 am »
To be a bit more specific: the & says, that "texture" is a reference, not an actual object :)

34
General / Re: Program not stopping after return EXIT_SUCCESS
« on: January 03, 2014, 11:21:48 pm »
What happens if you run the program without the debugger?
The shortcut is CTRL+F5. Just F5 is run + debug.

35
General / Re: Program not stopping after return EXIT_SUCCESS
« on: January 03, 2014, 08:19:09 pm »
There seems to be a problem with your environment. The code is pretty simple and straighforward but I compiled it nontheless and it worked as intended :)

How do you compile and start the program?

36
General / Re: Shared SFML Libs + Static Runtime Libs?
« on: January 03, 2014, 07:46:40 pm »
Thats all I wanted to know :D
Well then -> everything static it is ;)

Btw @Nexus
http://www.bromeon.ch/games/index.html
These are yours, aren't they? If you start the games from another directory (different working directory), they run into a segmenation fault because the media files can't be read anymore (at least when I tried Airport) :)

37
General / Re: Shared SFML Libs + Static Runtime Libs?
« on: January 03, 2014, 07:29:42 pm »
Quote
But yes the lowest number of DLLs can be achieved by linking SFML static with static runtime lib and then everything static for your application.

I don't think you got my question right :D
Thats not what I wanted to achive, I knew that already about the static linking, its the process I currently use. I asked about the posibility to link the SFML library dynamically.

A: right now
Application.exe
libsndfile-1.dll
openal32.dll
 

B: wanted
Application.exe
libsndfile-1.dll
openal32.dll
sfml-audio-2.dll
sfml-network-2.dll
sfml-system-2.dll
sfml-window-2.dll
sfml-graphics-2.dll
 

C: only possible solution
Application.exe
libsndfile-1.dll
openal32.dll
sfml-audio-2.dll
sfml-network-2.dll
sfml-system-2.dll
sfml-window-2.dll
sfml-graphics-2.dll

libgcc_s_sjlj-1.dll
libstdc++-6.dll

+ legal attachments to gcc and stdc++
 

My question was about the possibility of solution B: distributing SFML DLLs without libgcc/stdc++ dlls and their legal attachments.

38
General / Re: Program not stopping after return EXIT_SUCCESS
« on: January 03, 2014, 06:49:53 pm »
Could you post a complete, yet stripped example? Without all the other events but with all includes, the main function etc?

39
General / Re: Shared SFML Libs + Static Runtime Libs?
« on: January 03, 2014, 06:46:37 pm »
So if I understand it correctly, the only simple way to distribute SFML programs is with a single executable with all dependencies linked statically?

At least for libgcc/stdc++ you would have to meet several requirements regarding their license (http://en.sfml-dev.org/forums/index.php?topic=12623.msg88259#msg88259) that require extra work?

Because of these legal requirements I wanted to link them statically without linking *everything* statically.

40
General / Re: Shared SFML Libs + Static Runtime Libs?
« on: January 03, 2014, 04:27:22 pm »
Does that mean there are only the two options of linking everything dynamically or everything static? I can't link libstdc++ and libgcc statically while linking to SFML dynamically?

Why are the options BUILD_SHARED_LIBS and SFML_USE_STATIC_STD_LIBS mutually exclusive? If they were not exclusive, would I (theoretical) be able to achive the thing I explained before (static libgcc/stdc++ and dynamic SFML)?

41
General / Re: SFML, Code Lite, and static linking
« on: January 03, 2014, 03:59:00 pm »
Thank you, thats nice to know. Its very easy to miss these things if you're not that active in the forums :D

42
General / Shared SFML Libs + Static Runtime Libs?
« on: January 03, 2014, 03:57:39 pm »
Hi guys,
I ran into the following problem.

I compiled SFML myself using MinGW Builds 4.8.1 and build shared libs. If I try to use them in my project and simultaneously try to use -static or -static-libgcc -static-libstdc++ my executable gets bigger by including libgcc and libstd++ (and pthreads on -static) but is still asking for the libgcc dll.

I think its because the SFML .dlls are linked dynamically to libstdc++ and libgcc. That didn't happen while I used TDM, probably because TDM linked libgcc/stdc++ statically although SFML_USE_STATIC_STD_LIBS was unchecked (as it has to be for shared sfml libs).

What did I do wrong? What can I change?

Greetings
Patrick

43
Feature requests / Re: Set hardware cursor for Window
« on: January 03, 2014, 01:24:25 pm »
I really like the request as I dislike the current version with software cursors. If you would submit a pull request, that would be great :)

44
General / Re: SFML, Code Lite, and static linking
« on: January 03, 2014, 12:52:31 pm »
I ran into the same problems yesterday, there is something wrong with the current master.
I tried many things because linking against the "old" nigthly from http://sfml.my-gate.net/nightly/ works perfectly, but with master it doesn't.

So I downloaded the same repository state (commit cd84e84286, 3 months ago), cmake, compiled, -> linked just fine. Tried it again with master -> same errors as above. I could try different commits to see which one broke the code, but I'm sure theres something wrong right now :)

@Spirro
Could you try again with an older release? Ie. https://github.com/SFML/SFML/archive/cd84e84286e8ad64b54a675e9084e8f9ec5e9f0d.zip, thats the one used in the last nightly build.

45
General / Re: SFML, Code Lite, and static linking
« on: January 03, 2014, 04:16:15 am »
Which libs did you use? The current sfml-master? What compiler?

Pages: 1 2 [3] 4 5