Giter Site home page Giter Site logo

mahi-util's People

Contributors

ebachard avatar epezent avatar gianulli avatar joellinn avatar joeynelson avatar nathandunk avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar

mahi-util's Issues

Fails to build under Ubuntu 20.10

I get the following error:

/home/joey/work/mahi-util/src/Mahi/Util/System.cpp:21:10: fatal error: sys/sysctl.h: No such file or directory
   21 | #include <sys/sysctl.h>
      |          ^~~~~~~~~~~~~~

Simply removing the line, seems to build fine.

get_key_nb() returns 0 for either no input or "Esc" input

If there was no key pressed, get_key_nb() returns 0. But pressing Enter returns the KEY_ESC enum, which is also 0. We could either:

  • Change return for get_key_nb() and get_ch_nb() to be -1
  • Change the 0 enum to be something like KEY_NO_INPUT so that they result in the same thing

Build issue on MacOS + workaround

Building on MacOS yields:

...
[ 50%] Building CXX object CMakeFiles/gui.dir/src/Mahi/Gui/Native.cpp.o
/Users/mark/dev/mark/sfs/gui/build/_deps/mahi-gui-src/src/Mahi/Gui/Native.cpp:25:10: fatal error: 'filesystem' file not found
#include <filesystem>

I was able to figure out that this relates to the Native dialogs and also the <filesystem> header is not available in my environment. I have been able to work around this (for now) by disabling the native dialogs. Ideally CMake should be finding my <filesystem> headers (I think they're there); I also noticed that it's set to use C++14 but <filesystem> is a C++17 thing (I think).

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.