k0lb3 / tex2img Goto Github PK
View Code? Open in Web Editor NEWa texture decompression C++-extension for Python
License: MIT License
a texture decompression C++-extension for Python
License: MIT License
You can write an img2tex for this project.
Thank you
Hello, I am having trouble building this module
OS: Windows 7 64bit SP1
Python Version: 3.8.5
PIP Version: 20.3.3
Microsoft Visual C++ Version: 15.0
running install
running build
running build_ext
building 'tex2img' extension
creating build
creating build\temp.win32-3.8
creating build\temp.win32-3.8\Release
creating build\temp.win32-3.8\Release\src
creating build\temp.win32-3.8\Release\src\basisu
creating build\temp.win32-3.8\Release\src\basisu\transcoder
creating build\temp.win32-3.8\Release\src\etcpack
creating build\temp.win32-3.8\Release\src\pvrtc_decoder
E:\Microsoft Visual Studio\VC\Tools\MSVC\14.28.29333\bin\HostX86\x86\cl.exe /c /nologo /Ox /W3 /GL /DNDEBUG /MD -Id:\python\include -Id:\python\include "-IE:\Microsoft Visual Studio\VC\Tools\MSVC\14.28.29333\include" "-IC:\Program Files (x86)\Windows Kits\NETFXSDK\4.6.1\include\um" "-IC:\Program Files (x86)\Windows Kits\10\include\10.0.10240.0\ucrt" /EHsc /Tpsrc\main.cpp /Fobuild\temp.win32-3.8\Release\src\main.obj -std=c++11
cl : Command line warning D9002 : ignoring unknown option '-std=c++11'
main.cpp
C:\Users\User\AppData\Local\Temp\pip-install-e30erjpj\tex2img_836879c5d2fc4641b8a8f99a7ea1cd78\src\basisu\basisu_enc.h(689): error C3861: 'tolower': identifier not found
src\main.cpp(58): warning C4018: '>=': signed/unsigned mismatch
src\main.cpp(77): warning C4018: '<': signed/unsigned mismatch
src\main.cpp(78): warning C4018: '<': signed/unsigned mismatch
src\main.cpp(114): warning C4018: '>=': signed/unsigned mismatch
src\main.cpp(119): warning C4018: '>=': signed/unsigned mismatch
error: command 'E:\\Microsoft Visual Studio\\VC\\Tools\\MSVC\\14.28.29333\\bin\\HostX86\\x86\\cl.exe' failed with exit status 2
pip install tex2img
Line 185 in 7b1aea9
On the above referenced line, this would be better to throw an exception like raise ValueError('Failed decoding')
instead of printf(). This helps anyone using the library in detecting errors. If you anticipate that users may need the script to still move on and continue processing, perhaps add a boolean argument to the function like ignore_errors=False
tex2img
is an awesome tool, it's working very well with common ETC(2) or ASTC textures, however it crashes on decompressing PVRTC_RGBA4 textures.
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.