Code Monkey home page Code Monkey logo

pyfasttextureutils's People

Contributors

lagolunatic avatar

Watchers

 avatar  avatar

Forkers

ethanarmbrust

pyfasttextureutils's Issues

Building fails on MacOS

min and max are not defined with gcc on macOS

    pyfasttextureutils.c:138:7: warning: assigning to 'unsigned char *' from 'char *' converts between pointers to integer types with different sign [-Wpointer-sign]
      src = PyBytes_AsString(src_image_bytes);
          ^ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    pyfasttextureutils.c:153:10: warning: assigning to 'unsigned char *' from 'char *' converts between pointers to integer types with different sign [-Wpointer-sign]
        mask = PyBytes_AsString(mask_image_bytes);
             ^ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    pyfasttextureutils.c:243:11: error: implicit declaration of function 'max' is invalid in C99 [-Werror,-Wimplicit-function-declaration]
          s = max(0, min(100, s));
              ^
    pyfasttextureutils.c:243:11: note: did you mean 'fmax'?
    /Library/Developer/CommandLineTools/SDKs/MacOSX10.15.sdk/usr/include/math.h:532:15: note: 'fmax' declared here
    extern double fmax(double, double);
                  ^
    pyfasttextureutils.c:243:18: error: implicit declaration of function 'min' is invalid in C99 [-Werror,-Wimplicit-function-declaration]
          s = max(0, min(100, s));
                     ^
    pyfasttextureutils.c:256:51: warning: passing 'unsigned char *' to parameter of type 'const char *' converts between pointers to integer types with different sign [-Wpointer-sign]
      PyObject* dst_bytes = PyBytes_FromStringAndSize(dst, dst_size);
                                                      ^~~
    /Users/runner/hostedtoolcache/Python/3.8.8/x64/include/python3.8/bytesobject.h:51:62: note: passing argument to parameter here
    PyAPI_FUNC(PyObject *) PyBytes_FromStringAndSize(const char *, Py_ssize_t);
                                                                 ^
    3 warnings and 2 errors generated.
    error: command 'gcc' failed with exit status 1
    ----------------------------------------
ERROR: Command errored out with exit status 1: /Users/runner/hostedtoolcache/Python/3.8.8/x64/bin/python -u -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'/private/var/folders/24/8k48jl6d249_n_qfxwsl6xvm0000gn/T/pip-install-i9z7eto9/pyfasttextureutils_452888ae87ea4ee2899e5897c6b8184e/setup.py'"'"'; __file__='"'"'/private/var/folders/24/8k48jl6d249_n_qfxwsl6xvm0000gn/T/pip-install-i9z7eto9/pyfasttextureutils_452888ae87ea4ee2899e5897c6b8184e/setup.py'"'"';f=getattr(tokenize, '"'"'open'"'"', open)(__file__);code=f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, __file__, '"'"'exec'"'"'))' install --record /private/var/folders/24/8k48jl6d249_n_qfxwsl6xvm0000gn/T/pip-record-db8rptua/install-record.txt --single-version-externally-managed --compile --install-headers /Users/runner/hostedtoolcache/Python/3.8.8/x64/include/python3.8/PyFastTextureUtils Check the logs for full command output.
Error: Process completed with exit code 1.

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.