Git Product home page Git Product logo

Comments (2)

NedimBo avatar NedimBo commented on September 15, 2024

Same error here with Win7 x64, Python2.7 msbuild(.net v4.0.30319).
But i had no problems on ArchLinux.
Any idea about that problem?

BUILD LOG:

1>------ Rebuild All started: Project: png, Configuration: Release x64 ------
1> common.cpp
1> png_encoder.cpp
1> png.cpp
1> fixed_png_stack.cpp
1> dynamic_png_stack.cpp
1> module.cpp
1> buffer_compat.cpp
1>..\src\png_encoder.cpp(23): warning C4267: '+=' : conversion from 'size_t' to 'unsigned int', possible loss of data
1>..\src\png_encoder.cpp(26): warning C4267: '+=' : conversion from 'size_t' to 'unsigned int', possible loss of data
1>..\src\png_encoder.cpp(75): warning C4530: C++ exception handler used, but unwind semantics are not enabled. Specify /EHsc
1>..\src\png_encoder.cpp(107): warning C4101: 'err' : unreferenced local variable
1>C:\Users\NedimBo.node-gyp\0.10.26\deps\v8\include\v8.h(179): warning C4506: no definition for inline function 'v8::Persistent v8::Persistent::New(v8::Handle)'
1> with
1> [
1> T=v8::Object
1> ]
1>C:\Users\NedimBo.node-gyp\0.10.26\deps\v8\include\v8.h(179): warning C4506: no definition for inline function 'v8::Persistent v8::Persistent::New(v8::Handle)'
1> with
1> [
1> T=v8::Object
1> ]
1>..\src\png.cpp(35): warning C4530: C++ exception handler used, but unwind semantics are not enabled. Specify /EHsc
1>..\src\fixed_png_stack.cpp(58): warning C4530: C++ exception handler used, but unwind semantics are not enabled. Specify /EHsc
1>C:\Users\NedimBo.node-gyp\0.10.26\deps\v8\include\v8.h(218): warning C4506: no definition for inline function 'v8::Persistent v8::Persistent::New(v8::Handle)'
1> with
1> [
1> T=v8::Object
1> ]
1>C:\Users\NedimBo.node-gyp\0.10.26\deps\v8\include\v8.h(218): warning C4506: no definition for inline function 'v8::Persistent v8::Persistent::New(v8::Handle)'
1> with
1> [
1> T=v8::Object
1> ]
1>C:\Users\NedimBo.node-gyp\0.10.26\deps\v8\include\v8.h(179): warning C4506: no definition for inline function 'v8::Persistent v8::Persistent::New(v8::Handle)'
1> with
1> [
1> T=v8::Object
1> ]
1>..\src\dynamic_png_stack.cpp(77): warning C4530: C++ exception handler used, but unwind semantics are not enabled. Specify /EHsc
1>..\src\dynamic_png_stack.cpp(78): warning C4267: 'argument' : conversion from 'size_t' to 'int', possible loss of data
1>C:\Users\NedimBo.node-gyp\0.10.26\deps\v8\include\v8.h(218): warning C4506: no definition for inline function 'v8::Persistent v8::Persistent::New(v8::Handle)'
1> with
1> [
1> T=v8::Object
1> ]
1>C:\Users\NedimBo.node-gyp\0.10.26\deps\v8\include\v8.h(179): warning C4506: no definition for inline function 'v8::Persistent v8::Persistent::New(v8::Handle)'
1> with
1> [
1> T=v8::Object
1> ]
1> Creating library C:\Users\NedimBo\node-png\build\Release\png.lib and object C:\Users\NedimBo\node-png\build\Release\png.exp
1>png_encoder.obj : error LNK2001: unresolved external symbol png_write_info
1>png_encoder.obj : error LNK2001: unresolved external symbol png_set_invert_alpha
1>png_encoder.obj : error LNK2001: unresolved external symbol png_write_image
1>png_encoder.obj : error LNK2001: unresolved external symbol png_destroy_write_struct
1>png_encoder.obj : error LNK2001: unresolved external symbol png_set_write_fn
1>png_encoder.obj : error LNK2001: unresolved external symbol png_write_end
1>png_encoder.obj : error LNK2001: unresolved external symbol png_get_io_ptr
1>png_encoder.obj : error LNK2001: unresolved external symbol png_create_info_struct
1>png_encoder.obj : error LNK2001: unresolved external symbol png_create_write_struct
1>png_encoder.obj : error LNK2001: unresolved external symbol png_set_bgr
1>png_encoder.obj : error LNK2001: unresolved external symbol png_set_IHDR

from node-png.

croquelois avatar croquelois commented on September 15, 2024

The binaries of zlib & libpng are for x86
The solution is to recompile libpng for x64
No major hurdle with VC++ 2010 Express
Don't forget to install Windows SDK 7.1, and to patch the compiler (like for other x64 node.js binary module)
download both zlib and libpng from their respective website
put both on them in the same directory (libpng will need zlib source to compile)
Then in libpng/projects/vstudio you will have the solution
Before to compile you will need to change the platform for each project (it need to be x64)
Then compile zlib, then pnglibconf, then libpng
Then replace header & binaries in the module directory gyp/include and gyp/lib
And you can compile the module

from node-png.

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.