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: VS Code running simple sfml app macos
« on: December 09, 2023, 03:55:17 am »
https://www.sfml-dev.org/tutorials/2.6/start-cmake.php

Try using the CMake project template and see if that's any easier for you. It's a lot easier to use.

2
System / Re: what do I need to fully use the library of SFML?
« on: December 04, 2023, 10:38:04 pm »
Follow the instructions for our official CMake tutorial. If you have any issues then please come to the Discord server to ask for help.

https://www.sfml-dev.org/tutorials/2.6/start-cmake.php


3
Linking to the `sfml-graphics` target should also result in the correct include directories being specified.

Your C++ and CMake code should not include build/_deps paths. That's unnecessary and a sign that some problem still exists elsewhere.

In this past I've seen this problem caused by someone having unnecessary files laying around. They had some sfml-graphics prebuilt library lying around from previous failed attempts to use SFML. Once they deleted that file then CMake started working again. In general don't have stale files laying around since they're prone to break things simply by existing.

4
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

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

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

7
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

8
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

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

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

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

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

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

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

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

Pages: [1] 2 3