Skip to content

Support raw formats on windows #25

@til-schneider

Description

@til-schneider

Reading raw camera formats is currently only supported on macOS and Linux - not on Windows.

The problem on Windows is that node-libraw doesn't compile on Windows. I forked node-libraw and tried some things but I didn't get it to work.

There is a compile error in the code of LibRaw (LibRaw is wrapped by node-libraw). Compiling LibRaw should generally be possible, since they provide downloads for Windows.

Here is the error (see full log):

c:\projects\ansel\node_modules\libraw\vendor\libraw\src\libraw_c_api.cpp(277): error C2491: 'libraw_set_demosaic': definition of dllimport function not allowed [C:\projects\ansel\node_modules\libraw\build\vendor\libraw.vcxproj]

According to Microsoft's description of error C2491, the code of LibRaw marks DLL imports the wrong way - see source code of libraw_c_api.cpp. So I wonder why the LibRaw-Team can build this on windows. I also tried to build node-libraw as static library, but this doesn't work either.

I'm a relative nowise when it comes to building C code. I don't know what else to do. So if anybody can help here - please go ahead.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions