lagolunatic / pyfasttextureutils Goto Github PK
View Code? Open in Web Editor NEWPython module for quickly making certain modifications to images
License: MIT License
Python module for quickly making certain modifications to images
License: MIT License
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.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.