Comments (5)
Is that all output you have?
The second error "No rule to make target 'config.mk'" just means the ./configure
didn't run.
However, "process_begin: CreateProcess(NULL, env bash D:\Librarys\libimagequant-master\configure, ...) failed." doesn't really mean anything. There are dozens of ways in which ./configure
can fail, so it's hard to say what's going on without more information.
Another option is to use Rust/Cargo to build it for MSVC (note that MinGW is not compatible with MSVC projects).
I'm assuming you're building 64-bit executable for 64-bit Windows:
- Run https://static.rust-lang.org/rustup/dist/x86_64-pc-windows-msvc/rustup-init.exe (say yes to default config)
- Reboot (to update
PATH
otherwisecargo.exe
won't be found) - Run
cargo build --release
in libimagequant directory. It will createtarget/release/libimagequant.lib
(or*.a
or similar).
from libimagequant.
Is that all output you have?
The second error "No rule to make target 'config.mk'" just means the
./configure
didn't run.However, "process_begin: CreateProcess(NULL, env bash D:\Librarys\libimagequant-master\configure, ...) failed." doesn't really mean anything. There are dozens of ways in which
./configure
can fail, so it's hard to say what's going on without more information.Another option is to use Rust/Cargo to build it for MSVC (note that MinGW is not compatible with MSVC projects).
I'm assuming you're building 64-bit executable for 64-bit Windows:
* Run https://static.rust-lang.org/rustup/dist/x86_64-pc-windows-msvc/rustup-init.exe (say yes to default config) * Reboot (to update `PATH` otherwise `cargo.exe` won't be found) * Run `cargo build --release` in libimagequant directory. It will create `target/release/libimagequant.lib` (or `*.a` or similar).
Yes,that was all I got.
I think minGW's make command doesn't work in this project, or there muse be something I did wrong.
I build a Rust version too, but, it's a 64-bit lib. I need a 32-bit lib for my vc++ project.
from libimagequant.
I use MSYS2 to build it, and get a 32-bit "libimagequant.a" file ;
But when I build my project, which links libimagequant.a and libgcc.a as the REMEAD says.
this error shows :
LNK2019:unresolved external symbol ___getreent, referenced at _liq_crash_if_invalid_handle_pointer_given.constprop.19
LNK2019:unresolved external symbol _vsnprintf, referenced at _liq_verbose_printf
LNK2001:unresolved external symbol _vsnprintf.
looks like this issue : https://github.com/kornelski/pngquant/issues/41
I tried as the issue said, link a "libmingwex.a" with my project , It didn't work...
Windows is just so unflattering , isn't it...
from libimagequant.
These uresolved symbols look like you've tried to use MinGW library with Visual Studio. They are incompatible in many subtle, but crashy ways. You can only use MinGW gcc with MinGW-only projects. And for Visual Studio projects you must use Microsoft's compiler.
If you have an existing Visual Studio project, then add the .c
files to it.
from libimagequant.
I buiild the msvc-branch with openMP option turn off , and it works.
thanks for your help.
from libimagequant.
Related Issues (20)
- smarter color reducer? (considering visual similarity) HOT 2
- Duplicate transparency palette entry generated since v4.0.0 with some inputs HOT 1
- 2.18.0: build fails on linking HOT 5
- faster in c++ than in rust? HOT 1
- Could libimagequant be extended to more than 256 colours? HOT 1
- Please don't hide Cargo.lock HOT 2
- imagequant-sys: Makefile problem HOT 3
- keep alpha channel HOT 1
- libimagequant_sys: missing shared library HOT 5
- Generate c static library problem HOT 5
- Problems from Java developers
- Different results on ppc64le HOT 7
- Latest version doesn't appear to be compiled HOT 3
- Test failure on big-endian HOT 2
- Process images with premultiplied alpha HOT 2
- Some question about LISENCE. HOT 1
- The color channel of the palette, red and blue reverse,Only the following code is the correct color result HOT 4
- can not get the target .a file by use cargo build HOT 6
- Big resolution images crash the library
- latest version of libimagequant seems not be compiled on Windows HOT 3
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from libimagequant.