Coder Social home page Coder Social logo

Comments (14)

sonozaki avatar sonozaki commented on June 5, 2024 2

Thank you very much! Now, it works for me.

Before I did exactly what you told me but with the .zip that I downloaded from the website and then I tried doing a git clone, with both forms I gave an error. Maybe you should change the .zip of the website because it does not compile.

from opmon-archive.

navet56 avatar navet56 commented on June 5, 2024 1

I know, the actual master branch is broken, We are in the middle of refounding the code.
I'm glad it works anyway

from opmon-archive.

milkyroute avatar milkyroute commented on June 5, 2024

Sorry, my fault, I will try to create the deb as soon as possible.

from opmon-archive.

milkyroute avatar milkyroute commented on June 5, 2024

You can try to build the game from the source with cmake, while waiting for the deb.

from opmon-archive.

sonozaki avatar sonozaki commented on June 5, 2024

I'm trying, but 80% gives me this compilation error:

https://pastebin.com/cqs3xWWc

I do not know if I'm doing something wrong or it's a failure.

Thanks.

from opmon-archive.

navet56 avatar navet56 commented on June 5, 2024

Hi, please click here : https://github.com/jlppc/OpMon/archive/60c9155858449abb7066629e1e95b4993f707442.zip
Extract the repo
Open a terminal in the new OpMon folder
And write this :
./build-and-run.sh

from opmon-archive.

navet56 avatar navet56 commented on June 5, 2024

if it still does not work:
write

sudo apt install gcc libstdc++6 libsmpeg0 libsfml-dev cmake

in a terminal and retry

from opmon-archive.

BAKFR avatar BAKFR commented on June 5, 2024

It's because the code use std::map::try_emplace(), which is a c++17 feature.
You need to have a more recent c++ compiler.

@jlppc @navet56 maybe we should limit the features we use to c++14 (or c++11) ?

from opmon-archive.

navet56 avatar navet56 commented on June 5, 2024

It is @gberthou who passed the code in c ++ 17, basic it was in 8, I believe.

from opmon-archive.

navet56 avatar navet56 commented on June 5, 2024

That's why I propose @sonozaki to play with a version dating from last week, it should work

from opmon-archive.

gberthou avatar gberthou commented on June 5, 2024

We could downgrade to c++11 by using emplace instead of try_emplace, however code would get more verbose (http://en.cppreference.com/w/cpp/container/map/emplace).
This feature of c++17 is supported in GCC 6. @sonozaki I don't know what version of GCC you're running, but regardless of this project it might be a good idea to upgrade GCC to version 6 or more.
@jlppc If required I can modify the code to use c++11 emplace, but I need the source folders to reach a stable state.

from opmon-archive.

milkyroute avatar milkyroute commented on June 5, 2024

@gberthou I could use macros to define the compiler version and use try_emplace if possible, but if not, just use emplace.

from opmon-archive.

gberthou avatar gberthou commented on June 5, 2024

Using only emplace everywhere without using macros would be better than using both emplace and try_emplace with macros.
So the thing is, do you want to support old compilers without c++17 support (e.g., GCC < 6)?

from opmon-archive.

milkyroute avatar milkyroute commented on June 5, 2024

The .deb is now avilable on the website!

from opmon-archive.

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.