Git Product home page Git Product logo

Comments (8)

RichLewis007 avatar RichLewis007 commented on June 1, 2024

The source code line triggering the build error is line 35 of Image.h:

  explicit Image(std::size_t capacity)
      : m_data{capacity, default_init_allocator<uchar>{}} {
    m_data.resize(0);
  }

from cscore.

PeterJohnson avatar PeterJohnson commented on June 1, 2024

What compiler are you using? While this approach optimizes performance (important on embedded systems), it's almost certainly not necessary for desktops. There's a workaround a few lines above for MSVC (which has a similar issue compiling this code) using #ifdef _WIN32 but it could easily be more broadly applied based on the compiler or compiler version in use.

from cscore.

RichLewis007 avatar RichLewis007 commented on June 1, 2024

I'm using XCode in the latest macOS. It doesn't look like this code has been tested for building on macOS - I'll make some changes and do a pull request. It should be able to build and run on a desktop just as it does on an embedded system, right?

from cscore.

virtuald avatar virtuald commented on June 1, 2024

The python package robotpy-cscore compiles and runs on OSX (but it uses its own build system), so you should be able to fix it to work without changing source code I suspect... though, I think my build system prefers C++14 if it finds support for that.

from cscore.

TaylerUva avatar TaylerUva commented on June 1, 2024

I am having the same issue. Has a fix been created yet or is at least in the works?

from cscore.

PeterJohnson avatar PeterJohnson commented on June 1, 2024

A fix is in the works.

from cscore.

TaylerUva avatar TaylerUva commented on June 1, 2024

Running ./gradlew build -PskipAthena with the latest build seems to fix the issue for me.

from cscore.

PeterJohnson avatar PeterJohnson commented on June 1, 2024

This has been fixed; the code that caused an issue on Mac is now conditionally compiled so it is used only on Linux.

from cscore.

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.