Git Product home page Git Product logo

Comments (3)

MayaPosch avatar MayaPosch commented on July 19, 2024

Hello, and thank you for the comments :)

The issues you mentioned should be addressed in the current master. I changed the use of pthread_t, and the entire codebase compiles cleanly with MSVC 2017.

from nymphcast.

adriaandegroot avatar adriaandegroot commented on July 19, 2024

Remaining patches to build on FreeBSD are in that PR.

There's two things that I still change in packaging (e.g. relevant for #61 and not-really here):

  • moving version to version.mk (and corresponding change in the Makefile). This is very much an implementation detail, but Clang has a <version> header (so does gcc, for that matter) and because of -I . it ends up being picked up by system headers. Compilation errors look like:
    In file included from /usr/include/c++/v1/exception:85:
    ./version:1:3: error: invalid preprocessing directive
    # Versioning file for the NymphCast server.
    
    It's easiest just to rename the file and get it out of the way.
  • Fixing up the Makefile:
    • replacing make by $(MAKE) to ensure the same flavor of make is run each time. (This could probably be upstreamed, though)
    • using c++ instead of g++, cc instead of gcc.
    • dropping unneeded libraries like -latomic and -lstdc++fs, which don't exist and are not needed on the FreeBSD / Clang side of things.

from nymphcast.

adriaandegroot avatar adriaandegroot commented on July 19, 2024

One last one, (which would apply to the upstream ES-Core that is vendored into NymphCast, too):

--- gui/core/utils/TimeUtil.h.orig      2022-02-16 14:27:26 UTC
+++ gui/core/utils/TimeUtil.h
@@ -2,6 +2,7 @@
 #ifndef ES_CORE_UTILS_TIME_UTIL_H
 #define ES_CORE_UTILS_TIME_UTIL_H
 
+#include <ctime>
 #include <string>
 
 namespace Utils

This is one of those implicit-includes-that-annoys-people things. In FreeBSD recent releases do not need this anymore, as there was an effort to make the system headers less pedantically-annoying. But older, still supported versions, do. Not PR'ing this because it's not particularly necessary upstream, it's in packaging downstream anyway, and the problem is going away with the EoL of FreeBSD 12.

(Closing the issue, too: NymphCast builds on FreeBSDs 12, 13 and 14 and is available from packaging).

from nymphcast.

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.