Comments (7)
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.
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.
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.
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.
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.
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.
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)
- Editor should maybe have its own repo HOT 1
- Tasks HOT 3
- Can you please make BGM/no BGM builds with different titleIDs? HOT 6
- No music on anny of the versions HOT 2
- This isn't really a real issue but.. HOT 2
- "New Record!" display HOT 8
- Specifications for custom music? HOT 1
- windows problem: HOT 3
- compilation problem HOT 11
- compilation problem2 HOT 13
- Sleep mode bug HOT 1
- Audio doesn't play on linux HOT 7
- Windows 7: Game crashes almost immediately HOT 7
- ARM Linux port
- Occasional freeze on old 3DS upon app exit
- Issues on Linux HOT 13
- Recursive clone fails, github.com/Steveice10/buildtools repo is gone HOT 3
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from super-haxagon.