Comments (2)
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.
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)
- Does not compile on nodejs v0.10.11 HOT 1
- flag for inverted alpha HOT 2
- Build failing HOT 1
- Documentation example for encodeSync is missing the "Sync" part
- Requiring png only exposes the Png() class
- Unable to install or build on Mac OS X Yosemite HOT 8
- Fails to build HOT 3
- Cannot find png.h with custom Homebrew root because Boxen HOT 1
- node-gyp build fails with io.js
- Does not compile on Win 7 Pro
- Unable to run any example from the examples folder
- cannot build under nodejs v4.1.2 with node-gyp v3.0.3 HOT 5
- Cannot build under Windows 10 - node 0.12.7 - node-gyp 3.3.1 HOT 3
- Security issue. You can provide wrong size of image. It will countinue read out of buffer range.
- Update module
- can't install on node-v.6.0.0 & node-gyp -v3.0.3
- [Windows] compilation error (master/trunk) HOT 1
- License? HOT 2
- Hi! Any plans of providing support for latest node?
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 node-png.