Code Monkey home page Code Monkey logo

Comments (5)

kornelski avatar kornelski commented on July 4, 2024

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:

from libimagequant.

dogeFu avatar dogeFu commented on July 4, 2024

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.

dogeFu avatar dogeFu commented on July 4, 2024

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.

kornelski avatar kornelski commented on July 4, 2024

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.

dogeFu avatar dogeFu commented on July 4, 2024

I buiild the msvc-branch with openMP option turn off , and it works.

thanks for your help.

from libimagequant.

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.