Coder Social home page Coder Social logo

Comments (7)

RedTopper avatar RedTopper commented on June 26, 2024 1

Glad the issue was fixed!

Unfortunately I don't have a chromebook on hand to test the 'Failed to open X11 display' issue, so I can't say much about that.

However, if you manage to get it working then please feel free to make a PR for it. I'd be happy to see this game working on more hardware!

from super-haxagon.

RedTopper avatar RedTopper commented on June 26, 2024

I'm going to take a shot in the dark here, but just going off the error alone, it looks like your compiler is wanting to use c++11 instead of c++17. I've only ever used the cmake files in an IDE like Visual Studio or CLion, so I'm not quite sure how to fix that. I was pretty sure the cmake file specified to use c++17 so this might not be the actual issue.

Could you see if you can get it to use the c++17 standard or maybe try out the traditional Makefile? I didn't consider ARM when programming it but I don't see why it shouldn't work.

If there needs to be actual code changes to support ARM I'd be happy to make them too!

from super-haxagon.

sly-roccoon avatar sly-roccoon commented on June 26, 2024

The error happened after the make command, cmake worked fine. Should I check if make works correctly or cmake? I've never really gotten into make files in the first place so I'll have to look into that. ^^

from super-haxagon.

RedTopper avatar RedTopper commented on June 26, 2024

Yeah, cmake will actually make a Makefile for you, as you just showed. I think it's more likely that you will get the cmake generated Makefile working over my Makefile that's in the root directory since I only wrote my Makefile with x86-64 in mind. But it's possible that running make TARGET:=LINUX64 will work anyway (even though the target architecture is wrong)

With that said, maybe doing something like this might work for you:
https://stackoverflow.com/a/44477264

Basically add
stdc++fs
to the file
https://github.com/RedTopper/Super-Haxagon/blob/master/CMakeLists.txt#L67

from super-haxagon.

sly-roccoon avatar sly-roccoon commented on June 26, 2024

Ok, so I added set(CMAKE_CXX_FLAGS "-std=c++17 -lstdc++fs" ) now... (that's what you meant right? ^^') but it still spits out cxx11 stuff in the error output. So I think it's the same problem still...

from super-haxagon.

RedTopper avatar RedTopper commented on June 26, 2024

Ha, sorry, that was a bit unclear.

Try editing the line to look like
target_link_libraries(SuperHaxagon sfml-graphics sfml-window sfml-audio sfml-system stdc++fs)

from super-haxagon.

sly-roccoon avatar sly-roccoon commented on June 26, 2024

Ah well, no worries, I'm just a bit new to this.... Yeah this compiled it, but.... now I got a new error... 'Failed to open X11 display'... (Maybe should've mentioned I'm on a chromebook...)

But yeah the compiling issue was resolved now :D

from super-haxagon.

Related Issues (18)

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.