Coder Social home page Coder Social logo

Comments (7)

cobalt2727 avatar cobalt2727 commented on June 4, 2024

Currently, trying to build from source on - for example - Ubuntu 18.04 will result in the following:

[ 71%] Building CXX object CMakeFiles/supertux2_lib.dir/src/supertux/main.cpp.o /home/kirbyking/supertux/src/supertux/main.cpp:21:10: fatal error: filesystem: No such file or directory
#include <filesystem>
                ^~~~~~~~~~~~
compilation terminated.
CMakeFiles/supertux2_lib.dir/build.make:4851: recipe for target 'CMakeFiles/supertux2_lib.dir/src/supertux/main.cpp.o' failed
make[2]: *** [CMakeFiles/supertux2_lib.dir/src/supertux/main.cpp.o] Error 1
make[2]: *** Waiting for unfinished jobs....
CMakeFiles/Makefile2:332: recipe for target 'CMakeFiles/supertux2_lib.dir/all' failed
make[1]: *** [CMakeFiles/supertux2_lib.dir/all] Error 2
Makefile:155: recipe for target 'all' failed
make: *** [all] Error 2 

from supertux.

mrkubax10 avatar mrkubax10 commented on June 4, 2024

SuperTux requires compiler supporting C++17.

from supertux.

theofficialgman avatar theofficialgman commented on June 4, 2024

SuperTux requires compiler supporting C++17.

its a misconception that C++17 support implies the presence of #include <filesystem>
gcc-7 and gcc-8 are available on bionic, support C++17 in every other sense, yet do not have #include <filesystem>

from supertux.

MatusGuy avatar MatusGuy commented on June 4, 2024

I remember compiling for ubuntu 18. I was using an old i386 asus laptop. I installed g++ 8, used it, and it worked. But I'm not entirely sure if that's how it went. I might've added some ppa.

from supertux.

tulpenkiste avatar tulpenkiste commented on June 4, 2024

its a misconception that C++17 support implies the presence of #include <filesystem> gcc-7 and gcc-8 are available on bionic, support C++17 in every other sense, yet do not have #include <filesystem>

I believe kubax meant you need a compiler that supports most of the C++17 specification, with a hard requirement of an std::filesystem implementation.

I believe gcc-7 and gcc-8 do technically have these, if not directly available, then they are probably locked behind both a compiler flag (-lstdc++fs) and an experimental header (#include <experimental/filesystem>)

from supertux.

tulpenkiste avatar tulpenkiste commented on June 4, 2024

Actually just checked, gcc-8 supports C++17's std::filesystem out of the box.

from supertux.

mrkubax10 avatar mrkubax10 commented on June 4, 2024

its a misconception that C++17 support implies the presence of #include <filesystem>

Well if compiler doesn't provide complete C++17 implementation then we cannot do anything about that. You can try doing what @tulpenkiste mentioned.

from supertux.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.