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

Pages: 1 [2] 3 4
16
SFML development / Re: Multi-line Text Alignment
« on: August 18, 2023, 07:15:03 pm »
The ability to wrap text and pick left, right, center, justified alignment would be really nice since as it stands now users are forced to do all that themselves which understandably scares people away from using blocks of text.

17
General / Re: SFML integration via CMakeList.txt (static library)
« on: August 14, 2023, 10:03:13 pm »
The template I shared will work for you. The code in that CMakeLists.txt will download and build SFML for you so that you can get ride of most of the CMake code you wrote yourself. Your build script will become much smaller and the linker errors will go away if you're willing to at least try it. The README in that repo explains how to use it. For the most part you just grab that build script, tweak the .cpp files to match what you have, then run 2 CMake commands.

What you're doing is over complicating things and is prone to fail in ways that are pretty confusing unless you're already very familiar with how compiling and linking C++ works. If you've spent this long struggling with your current strategy, maybe it's time to reevaluate how you're approaching this problem.

18
General / Re: Setup SFML, CMake, MinGW
« on: August 13, 2023, 10:20:17 pm »
https://github.com/SFML/cmake-sfml-project

Have you tried the CMake template project we wrote?

19
General / Re: Trying to link SFML library gives error
« on: August 13, 2023, 08:04:59 pm »
https://github.com/SFML/cmake-sfml-project

You'll have better luck using our official project template. It removes the need to download SFML and tell CMake where to find that installation. Just follow the instructions in the README.

20
General / Re: SFML integration via CMakeList.txt (static library)
« on: August 10, 2023, 05:09:15 pm »
Luckily the perfect solution exists for you!

https://github.com/SFML/cmake-sfml-project

Check out the official SFML CMake project template. The README even has some information on how to get static libraries.

21
General / Re: Im having trouble compiling SFML & ImGui
« on: August 08, 2023, 04:52:13 pm »
https://github.com/SFML/cmake-sfml-project/blob/imgui-sfml/CMakeLists.txt

There's a much better solution in the official SFML project template repo. See the `imgui-sfml` branch above.

22
Graphics / Re: Error compiling with gcc++
« on: August 06, 2023, 08:53:58 am »
What OS are you using and what build commands did you run?

23
What level of memory usage were you expecting to see? Have you compared this to other libraries to like SDL to see if memory usage is dramatically different?

24
General / Re: Cross-platform building from source code
« on: July 24, 2023, 05:57:34 pm »
https://github.com/SFML/cmake-sfml-project

The easiest way to build for all major platforms is to use the official project template. It uses CMake so it works on all OSes. To be clear, this project automatically crosscompile your projects, but it does mean you can use the same code and build it on a different OS to get an executable for that particular OS. No need to write separate build scripts for each OS.

25
General discussions / Re: Mutual following on the Fediverse!
« on: July 05, 2023, 04:56:30 am »
I'm at ChrisThrasher@mastodon.social but don't currently check it much. Maybe I'll use it more in the future, I'm not sure.

27
SFML development / Re: SFML Roadmap
« on: June 28, 2023, 01:32:35 am »
I like this updated roadmap. We just merged yet another 2.6.1 fix so please keep using and testing 2.6.0 to find whatever remaining quirks there are so we can get them cleaned up.

When it comes to 3.0.0, I think the C++17-ification changes are almost done. Certainly there are no more big C++17 features to use. The remaining language usage upgrades are minor and/or can be done after 3.0.0 ships if need be.

As for API-breaking changes, those are harder to predict but I'd like to think most API changes are also done although some of the remaining API changes planned are pretty tough to write and test so don't expect them to get completed soon. My personal goal is to tentatively finish all these API breaks by the end of 2023 so we have time to let the API sit in a stable state while the final testing push occurs.

I expect we need on the order of >3 months of a stable API to be certain that what've written can withstand the test of time. I'm not sure where the other maintainers are at, but I'd like to ship 3.0.0 in the first few months of '24, hopefully soon enough to get it shipped into Ubuntu 24 LTS but that may be tough if we can't freeze the API by approximately November of this year.

28
General / Re: Help with Setting up SFML 2.6 with CodeBlocks 20.03
« on: June 26, 2023, 08:45:48 pm »
Quote
IS there a tutorial or any advice on getting this done.

Yes, Exploiter already gave the advice to use the CMake template here: https://github.com/SFML/cmake-sfml-project. Follow the instructions in the README. It uses normal CMake workflows so if you're familiar with CMake, this will just automatically work. It works on all OSes with all compilers and all IDEs.

29
General discussions / Re: Just wanted to say Thanks
« on: June 20, 2023, 10:19:46 pm »
I can't take credit for most of SFML but I'm still very happy to hear the kind words :)

30
SFML projects / Re: Selba Ward
« on: June 20, 2023, 10:18:39 pm »
So cool to see people building on top of v3!

Pages: 1 [2] 3 4
anything