Closed jim68000 closed 13 years ago
Hi, I'm trying to install image-jpeg on my node-0.3.5 system. I'm running into the problem that others have seen with:
../src/fixed_jpeg_stack.cpp:291: error: ‘class node::Buffer’ has no member named ‘data’
Looking at the source for node_buffer.h in 0.3.5 it appears there's no data() member, but there is one for 0.2.5.
UPDATE: OK, comparing against node-png, I can see this is definitely the issue. Trying to work out how to add the buffer-compat stuff to node-jpeg.
Is this correct?
Yep, Node 3 has different API from Node 2. And only node-png has been upgraded to work with Node 2.
Throwing my vote in here for the fix. I'm having the same issue on node 0.4.
sorry, no time to fix it.
Hi, I'm trying to install image-jpeg on my node-0.3.5 system. I'm running into the problem that others have seen with:
../src/fixed_jpeg_stack.cpp:291: error: ‘class node::Buffer’ has no member named ‘data’
Looking at the source for node_buffer.h in 0.3.5 it appears there's no data() member, but there is one for 0.2.5.
UPDATE: OK, comparing against node-png, I can see this is definitely the issue. Trying to work out how to add the buffer-compat stuff to node-jpeg.
Is this correct?