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
1
General / Re: Android support
« on: November 19, 2023, 10:42:56 pm »
Yes we actively maintain Android support and have a few users who routinely provide bug fixes and other enhancements

2
General discussions / Re: static linking
« on: October 13, 2023, 06:34:17 am »
Did you remember to define SFML_STATIC?

3
General / Re: Compiled SFML code runs nothing
« on: October 04, 2023, 08:13:38 am »
You'll need to share more of the error to know what the actual problem is.

4
General / Re: Building SFML project error with sf::VideoMode
« on: October 04, 2023, 03:38:34 am »
This is almost certainly an issue with using SFML 3 headers alongside SFML 2 libraries. Try using the official template instead to avoid this problem.

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

5
General / Re: SFML, ImGui and SFML-ImGui with CMake
« on: September 22, 2023, 08:49:08 pm »
The new way you're doing it is much better so please keep using that solution. It's better in many ways than the old version.

I think your old solution was failing because you I don't see you ever compiling the ImGui-SFML sources into Libs.

For future reference, the official SFML CMake template project includes a branch that demonstrates how to use ImGui-SFML. Check it out here: https://github.com/SFML/cmake-sfml-project/blob/imgui-sfml/CMakeLists.txt

6
General / Re: SFML error on MacBook
« on: September 19, 2023, 01:35:20 am »
Homebrew will install SFML built for your current CPU architecture so I'm not sure how you could accidentally mix the two. So long as you use don't tell the compiler to target a different architecture, the compiler will also target your current CPU architecture.

7
SFML development / Re: Multi-line Text Alignment
« on: August 21, 2023, 09:01:23 pm »
Please reach out in the #contributing channel of the Discord server if you have any questions. I'm much easier to find there than on the forums which I check much less often.

8
SFML development / Re: Multi-line Text Alignment
« on: August 19, 2023, 06:42:19 am »
SFML 3. We're not accepting SFML 2 features anymore. That means you have full access to anything you want from C++17 which should make it easier to implement.

9
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.

10
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.

11
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?

12
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.

13
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.

14
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.

15
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?

Pages: [1] 2 3