Welcome,
Guest
. Please
login
or
register
. Did you miss your
activation email?
French forum
Home
Help
Search
Login
Register
SFML community forums
»
Help
»
General
»
MinGW-W64 8.1.0 can't compile SFML from git
Print
Pages: [
1
]
Author
Topic: MinGW-W64 8.1.0 can't compile SFML from git (Read 1432 times)
0 Members and 1 Guest are viewing this topic.
abcnb
Newbie
Posts: 12
MinGW-W64 8.1.0 can't compile SFML from git
«
on:
July 04, 2022, 08:07:43 am »
The first way is ok:
https://www.sfml-dev.org/files/SFML-2.5.1-sources.zip
cmake gui 3.22.1
MinGW-W64 8.1.0 ok
The second way is not:
git clone
https://github.com/SFML/SFML/
cmake gui 3.22.1
MinGW-W64 8.1.0 complains about many problems
$ mingw32-make
Consolidate compiler generated dependencies of target sfml-system
[ 1%] Building CXX object src/SFML/System/CMakeFiles/sfml-system.dir/FileInputStream.cpp.obj
In file included from C:/PROGRA~1/MINGW-~1/X86_64~1.0-W/mingw64/lib/gcc/x86_64-w64-mingw32/8.1.0/include/c++/filesystem:37,
from C:/Users/G/gitreps/SFML/include/SFML/System/FileInputStream.hpp:37,
from C:\Users\G\gitreps\SFML\src\SFML\System\FileInputStream.cpp:28:
C:/PROGRA~1/MINGW-~1/X86_64~1.0-W/mingw64/lib/gcc/x86_64-w64-mingw32/8.1.0/include/c++/bits/fs_path.h: In member function 'std::filesystem::__cxx11::path& std::filesystem::__cxx11::path::operator/=(const std::filesystem::__cxx11::path&)':
C:/PROGRA~1/MINGW-~1/X86_64~1.0-W/mingw64/lib/gcc/x86_64-w64-mingw32/8.1.0/include/c++/bits/fs_path.h:237:47: error: no match for 'operator!=' (operand types are 'std::filesystem::__cxx11::path' and 'std::filesystem::__cxx11::path')
|| (__p.has_root_name() && __p.root_name() != root_name()))
~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~
and others
Why is that?
Logged
eXpl0it3r
SFML Team
Hero Member
Posts: 11030
Re: MinGW-W64 8.1.0 can't compile SFML from git
«
Reply #1 on:
July 04, 2022, 08:58:04 am »
The master branch on the repository is newly targeting C++17. Unfortunately the MinGW 8.1 version doesn't seem to contain a full/proper
<filesystem>
implementation (see this
SO answer
).
If you want to stick to GCC on Windows, I recommend using
WinLibs
(pick the MSVCRT and not the UCRT version) or
MSYS2
.
Logged
Official FAQ:
https://www.sfml-dev.org/faq.php
Official Discord Server:
https://discord.gg/nr4X7Fh
——————————————————————
Dev Blog:
https://duerrenberger.dev/blog/
abcnb
Newbie
Posts: 12
Re: MinGW-W64 8.1.0 can't compile SFML from git
«
Reply #2 on:
July 04, 2022, 09:08:06 am »
Thank you very much! I'm just studying all of it (c++, git, cmake) and your answer saved a ton of time!
Logged
Print
Pages: [
1
]
SFML community forums
»
Help
»
General
»
MinGW-W64 8.1.0 can't compile SFML from git