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
1
It's normal to omit referring to BUILD_SHARED_LIBS in CMake scripts. I'd wager most projects don't touch this variable. It defaults to static libraries which I think is the more sensible default value anyways. I don't think SFML needs to add it as a cache variable. Users can add it to their cache if they wish. I actually do this sometimes myself. It's not a typical use case to want to flip/flop between shared and static libraries on a regular basis. Developers like myself sometimes need that for the sake of testing but the typical user won't be doing that.

2
General / Re: Building SFML, stuck at GlContext.cpp
« on: February 13, 2025, 05:30:28 pm »
Sorry about that. We ought to stop enabling warnings by default. That would thoroughly fix the problem.

3
General / Re: Cannot Compile with Latest Version
« on: December 31, 2024, 11:26:36 pm »
Sorry I'm just a 14 year old but my parents don't have a basement

4
General / Re: Cannot Compile with Latest Version
« on: December 31, 2024, 09:54:49 pm »
Stop using FindSFML.cmake. That's been out of use since like SFML 2.4 or something like that.

5
General / Re: SFML for GCC 13.2.0
« on: November 04, 2024, 10:33:52 pm »
If you follow the instructions it will build a compatible version of SFML. It will use your same compiler to build SFML. Just try it out. I promise it'll help.

6
General / Re: SFML for GCC 13.2.0
« on: November 04, 2024, 09:02:16 pm »
You followed the instructions in https://github.com/SFML/cmake-sfml-project and this is the error you got? The template is structured such that those kinds of linker errors won't happen. I encourage you to follow the instructions in that link and your problem will likely go away.

7
General / Re: SFML for GCC 13.2.0
« on: November 04, 2024, 05:37:53 pm »
I'd recommend using the CMake project template so that you don't have to wait on us to distribute more binaries. It's really simple to use and works with all compilers.

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

8
As Lukas pointed out this is already a settled matter.

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

10
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


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

12
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

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

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

15
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

Pages: [1] 2 3 4
anything